]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
Use wxGtkString here to clean up code, and not leak in debug builds
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* 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 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2821 wxArrayInt lst;
2822 self->GetSelections(lst);
2823 PyObject *tup = PyTuple_New(lst.GetCount());
2824 for(size_t i=0; i<lst.GetCount(); i++) {
2825 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2826 }
2827 return tup;
2828 }
2829 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2830 #ifdef __WXMSW__
2831 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2832 self->GetItem(item)->SetTextColour(c);
2833 #endif
2834 }
2835 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2836 #ifdef __WXMSW__
2837 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2838 self->GetItem(item)->SetBackgroundColour(c);
2839 #endif
2840 }
2841 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2842 #ifdef __WXMSW__
2843 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2844 self->GetItem(item)->SetFont(f);
2845 #endif
2846 }
2847 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2848
2849 SWIGINTERN int
2850 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2851 {
2852 long v = 0;
2853 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2854 return SWIG_TypeError;
2855 }
2856 else if (val)
2857 *val = (unsigned long)v;
2858 return SWIG_OK;
2859 }
2860
2861 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2862 self->AppendText(text);
2863 }
2864 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2865 return self->GetValue().Mid(from, to - from);
2866 }
2867 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2868 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2869 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2870 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2871 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2872 SWIGINTERN int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; }
2873 SWIGINTERN int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; }
2874 SWIGINTERN int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; }
2875
2876 #include <wx/slider.h>
2877
2878
2879 static const wxString wxPySliderNameStr(wxSliderNameStr);
2880 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2881
2882 #if !wxUSE_TOGGLEBTN
2883 // implement dummy items for platforms that don't have this class
2884
2885 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2886
2887 class wxToggleButton : public wxControl
2888 {
2889 public:
2890 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2891 const wxPoint&, const wxSize&, long,
2892 const wxValidator&, const wxString&)
2893 { wxPyRaiseNotImplemented(); }
2894
2895 wxToggleButton()
2896 { wxPyRaiseNotImplemented(); }
2897 };
2898 #endif
2899
2900 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2901
2902 SWIGINTERNINLINE PyObject*
2903 SWIG_From_unsigned_SS_long (unsigned long value)
2904 {
2905 return (value > LONG_MAX) ?
2906 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2907 }
2908
2909
2910 SWIGINTERNINLINE PyObject *
2911 SWIG_From_size_t (size_t value)
2912 {
2913 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2914 }
2915
2916
2917 SWIGINTERNINLINE int
2918 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2919 {
2920 unsigned long v;
2921 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2922 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2923 return res;
2924 }
2925
2926
2927 SWIGINTERNINLINE PyObject *
2928 SWIG_From_unsigned_SS_int (unsigned int value)
2929 {
2930 return SWIG_From_unsigned_SS_long (value);
2931 }
2932
2933
2934 SWIGINTERN int
2935 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2936 {
2937 unsigned long v;
2938 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v > UINT_MAX)) {
2941 return SWIG_OverflowError;
2942 } else {
2943 if (val) *val = static_cast< unsigned int >(v);
2944 }
2945 }
2946 return res;
2947 }
2948
2949 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2950 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2951 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2952 if (udata) {
2953 Py_INCREF(udata->m_obj);
2954 return udata->m_obj;
2955 } else {
2956 Py_INCREF(Py_None);
2957 return Py_None;
2958 }
2959 }
2960 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2961 self->SetClientData(new wxPyUserData(clientData));
2962 }
2963 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){
2964 wxPyUserData* udata = NULL;
2965 if (clientData && clientData != Py_None)
2966 udata = new wxPyUserData(clientData);
2967 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2968 shortHelp, longHelp, udata);
2969 }
2970 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){
2971 wxPyUserData* udata = NULL;
2972 if (clientData && clientData != Py_None)
2973 udata = new wxPyUserData(clientData);
2974 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2975 shortHelp, longHelp, udata);
2976 }
2977 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2978 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2979 if (udata) {
2980 Py_INCREF(udata->m_obj);
2981 return udata->m_obj;
2982 } else {
2983 Py_INCREF(Py_None);
2984 return Py_None;
2985 }
2986 }
2987 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2988 self->SetToolClientData(id, new wxPyUserData(clientData));
2989 }
2990
2991 #include <wx/listctrl.h>
2992
2993 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2994 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2995 // Python aware sorting function for wxPyListCtrl
2996 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2997 int retval = 0;
2998 PyObject* func = (PyObject*)funcPtr;
2999 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3000
3001 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3002 PyObject* result = PyEval_CallObject(func, args);
3003 Py_DECREF(args);
3004 if (result) {
3005 retval = PyInt_AsLong(result);
3006 Py_DECREF(result);
3007 }
3008
3009 wxPyEndBlockThreads(blocked);
3010 return retval;
3011 }
3012
3013 // C++ Version of a Python aware class
3014 class wxPyListCtrl : public wxListCtrl {
3015 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3016 public:
3017 wxPyListCtrl() : wxListCtrl() {}
3018 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3019 const wxPoint& pos,
3020 const wxSize& size,
3021 long style,
3022 const wxValidator& validator,
3023 const wxString& name) :
3024 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3025
3026 bool Create(wxWindow* parent, wxWindowID id,
3027 const wxPoint& pos,
3028 const wxSize& size,
3029 long style,
3030 const wxValidator& validator,
3031 const wxString& name) {
3032 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3033 }
3034
3035 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3036 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3037
3038 // use the virtual version to avoid a confusing assert in the base class
3039 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3040 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3041
3042 PYPRIVATE;
3043 };
3044
3045 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3046
3047 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3048 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3049 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3050 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3051
3052
3053 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3054 wxListItem item;
3055 item.SetMask( wxLIST_MASK_STATE |
3056 wxLIST_MASK_TEXT |
3057 wxLIST_MASK_IMAGE |
3058 wxLIST_MASK_DATA |
3059 wxLIST_SET_ITEM |
3060 wxLIST_MASK_WIDTH |
3061 wxLIST_MASK_FORMAT
3062 );
3063 if (self->GetColumn(col, item))
3064 return new wxListItem(item);
3065 else
3066 return NULL;
3067 }
3068 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3069 wxListItem* info = new wxListItem;
3070 info->m_itemId = itemId;
3071 info->m_col = col;
3072 info->m_mask = 0xFFFF;
3073 self->GetItem(*info);
3074 return info;
3075 }
3076 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3077 wxPoint pos;
3078 self->GetItemPosition(item, pos);
3079 return pos;
3080 }
3081 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3082 wxRect rect;
3083 self->GetItemRect(item, rect, code);
3084 return rect;
3085 }
3086 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3087 if (!PyCallable_Check(func))
3088 return false;
3089 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3090 }
3091 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3092
3093
3094
3095 return (wxWindow*)self->m_mainWin;
3096
3097 }
3098
3099 #include <wx/treectrl.h>
3100 #include "wx/wxPython/pytree.h"
3101
3102 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3103 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3104 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3105 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3106 // C++ version of Python aware wxTreeCtrl
3107 class wxPyTreeCtrl : public wxTreeCtrl {
3108 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3109 public:
3110 wxPyTreeCtrl() : wxTreeCtrl() {}
3111 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3112 const wxPoint& pos,
3113 const wxSize& size,
3114 long style,
3115 const wxValidator& validator,
3116 const wxString& name) :
3117 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3118
3119 bool Create(wxWindow *parent, wxWindowID id,
3120 const wxPoint& pos,
3121 const wxSize& size,
3122 long style,
3123 const wxValidator& validator,
3124 const wxString& name) {
3125 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3126 }
3127
3128
3129 int OnCompareItems(const wxTreeItemId& item1,
3130 const wxTreeItemId& item2) {
3131 int rval = 0;
3132 bool found;
3133 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3134 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3135 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3136 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3137 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3138 Py_DECREF(o1);
3139 Py_DECREF(o2);
3140 }
3141 wxPyEndBlockThreads(blocked);
3142 if (! found)
3143 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3144 return rval;
3145 }
3146 PYPRIVATE;
3147 };
3148
3149 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3150
3151
3152 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3153 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3154 if (data == NULL) {
3155 data = new wxPyTreeItemData();
3156 data->SetId(item); // set the id
3157 self->SetItemData(item, data);
3158 }
3159 return data;
3160 }
3161 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3162 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3163 if (data == NULL) {
3164 data = new wxPyTreeItemData();
3165 data->SetId(item); // set the id
3166 self->SetItemData(item, data);
3167 }
3168 return data->GetData();
3169 }
3170 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3171 data->SetId(item); // set the id
3172 self->SetItemData(item, data);
3173 }
3174 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3175 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3176 if (data == NULL) {
3177 data = new wxPyTreeItemData(obj);
3178 data->SetId(item); // set the id
3179 self->SetItemData(item, data);
3180 } else
3181 data->SetData(obj);
3182 }
3183 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3184 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3185 PyObject* rval = PyList_New(0);
3186 wxArrayTreeItemIds array;
3187 size_t num, x;
3188 num = self->GetSelections(array);
3189 for (x=0; x < num; x++) {
3190 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3191 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3192 PyList_Append(rval, item);
3193 Py_DECREF(item);
3194 }
3195 wxPyEndBlockThreads(blocked);
3196 return rval;
3197 }
3198 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3199 void* cookie = 0;
3200 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3201 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3202 PyObject* tup = PyTuple_New(2);
3203 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3204 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3205 wxPyEndBlockThreads(blocked);
3206 return tup;
3207 }
3208 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3209 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3210 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3211 PyObject* tup = PyTuple_New(2);
3212 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3213 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3214 wxPyEndBlockThreads(blocked);
3215 return tup;
3216 }
3217 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3218 wxRect rect;
3219 if (self->GetBoundingRect(item, rect, textOnly)) {
3220 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3221 wxRect* r = new wxRect(rect);
3222 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3223 wxPyEndBlockThreads(blocked);
3224 return val;
3225 }
3226 else
3227 RETURN_NONE();
3228 }
3229 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3230
3231 SWIGINTERNINLINE PyObject*
3232 SWIG_From_bool (bool value)
3233 {
3234 return PyBool_FromLong(value ? 1 : 0);
3235 }
3236
3237 // C++ version of Python aware wxControl
3238 class wxPyControl : public wxControl
3239 {
3240 DECLARE_DYNAMIC_CLASS(wxPyControl)
3241 public:
3242 wxPyControl() : wxControl() {}
3243 wxPyControl(wxWindow* parent, const wxWindowID id,
3244 const wxPoint& pos = wxDefaultPosition,
3245 const wxSize& size = wxDefaultSize,
3246 long style = 0,
3247 const wxValidator& validator=wxDefaultValidator,
3248 const wxString& name = wxPyControlNameStr)
3249 : wxControl(parent, id, pos, size, style, validator, name) {}
3250
3251 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3252
3253 bool DoEraseBackground(wxDC* dc) {
3254 #ifdef __WXMSW__
3255 return wxWindow::DoEraseBackground(dc->GetHDC());
3256 #else
3257 dc->SetBackground(wxBrush(GetBackgroundColour()));
3258 dc->Clear();
3259 return true;
3260 #endif
3261 }
3262
3263 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3264 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3265 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3266 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3267
3268 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3269 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3270 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3271
3272 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3273 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3274
3275 DEC_PYCALLBACK__(InitDialog);
3276 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3277 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3278 DEC_PYCALLBACK_BOOL_(Validate);
3279
3280 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3281 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3282 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3283
3284 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3285 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3286
3287 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3288 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3289
3290 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3291
3292 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3293
3294 PYPRIVATE;
3295 };
3296
3297 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3298
3299 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3300 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3301 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3302 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3303
3304 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3305 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3306 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3307
3308 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3309 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3310
3311 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3312 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3313 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3314 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3315
3316 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3317 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3318 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3319
3320 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3321 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3322
3323 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3324 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3325
3326 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3327
3328 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3329
3330
3331
3332 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3333
3334 #include <wx/generic/dragimgg.h>
3335
3336 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3337 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3338 wxDateTime rv;
3339 self->GetRange(&rv, NULL);
3340 return rv;
3341 }
3342 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3343 wxDateTime rv;
3344 self->GetRange(NULL, &rv);
3345 return rv;
3346 }
3347 #ifdef __cplusplus
3348 extern "C" {
3349 #endif
3350 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3351 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3352 return 1;
3353 }
3354
3355
3356 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3357 PyObject *pyobj = 0;
3358
3359 {
3360 #if wxUSE_UNICODE
3361 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3362 #else
3363 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3364 #endif
3365 }
3366 return pyobj;
3367 }
3368
3369
3370 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3371 PyObject *resultobj = 0;
3372 wxWindow *arg1 = (wxWindow *) 0 ;
3373 int arg2 = (int) -1 ;
3374 wxString const &arg3_defvalue = wxPyEmptyString ;
3375 wxString *arg3 = (wxString *) &arg3_defvalue ;
3376 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3377 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3378 wxSize const &arg5_defvalue = wxDefaultSize ;
3379 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3380 long arg6 = (long) 0 ;
3381 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3382 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3383 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3384 wxString *arg8 = (wxString *) &arg8_defvalue ;
3385 wxButton *result = 0 ;
3386 void *argp1 = 0 ;
3387 int res1 = 0 ;
3388 int val2 ;
3389 int ecode2 = 0 ;
3390 bool temp3 = false ;
3391 wxPoint temp4 ;
3392 wxSize temp5 ;
3393 long val6 ;
3394 int ecode6 = 0 ;
3395 void *argp7 = 0 ;
3396 int res7 = 0 ;
3397 bool temp8 = false ;
3398 PyObject * obj0 = 0 ;
3399 PyObject * obj1 = 0 ;
3400 PyObject * obj2 = 0 ;
3401 PyObject * obj3 = 0 ;
3402 PyObject * obj4 = 0 ;
3403 PyObject * obj5 = 0 ;
3404 PyObject * obj6 = 0 ;
3405 PyObject * obj7 = 0 ;
3406 char * kwnames[] = {
3407 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3408 };
3409
3410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3412 if (!SWIG_IsOK(res1)) {
3413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3414 }
3415 arg1 = reinterpret_cast< wxWindow * >(argp1);
3416 if (obj1) {
3417 ecode2 = SWIG_AsVal_int(obj1, &val2);
3418 if (!SWIG_IsOK(ecode2)) {
3419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3420 }
3421 arg2 = static_cast< int >(val2);
3422 }
3423 if (obj2) {
3424 {
3425 arg3 = wxString_in_helper(obj2);
3426 if (arg3 == NULL) SWIG_fail;
3427 temp3 = true;
3428 }
3429 }
3430 if (obj3) {
3431 {
3432 arg4 = &temp4;
3433 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3434 }
3435 }
3436 if (obj4) {
3437 {
3438 arg5 = &temp5;
3439 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3440 }
3441 }
3442 if (obj5) {
3443 ecode6 = SWIG_AsVal_long(obj5, &val6);
3444 if (!SWIG_IsOK(ecode6)) {
3445 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3446 }
3447 arg6 = static_cast< long >(val6);
3448 }
3449 if (obj6) {
3450 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3451 if (!SWIG_IsOK(res7)) {
3452 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3453 }
3454 if (!argp7) {
3455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3456 }
3457 arg7 = reinterpret_cast< wxValidator * >(argp7);
3458 }
3459 if (obj7) {
3460 {
3461 arg8 = wxString_in_helper(obj7);
3462 if (arg8 == NULL) SWIG_fail;
3463 temp8 = true;
3464 }
3465 }
3466 {
3467 if (!wxPyCheckForApp()) SWIG_fail;
3468 PyThreadState* __tstate = wxPyBeginAllowThreads();
3469 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3470 wxPyEndAllowThreads(__tstate);
3471 if (PyErr_Occurred()) SWIG_fail;
3472 }
3473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3474 {
3475 if (temp3)
3476 delete arg3;
3477 }
3478 {
3479 if (temp8)
3480 delete arg8;
3481 }
3482 return resultobj;
3483 fail:
3484 {
3485 if (temp3)
3486 delete arg3;
3487 }
3488 {
3489 if (temp8)
3490 delete arg8;
3491 }
3492 return NULL;
3493 }
3494
3495
3496 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3497 PyObject *resultobj = 0;
3498 wxButton *result = 0 ;
3499
3500 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3501 {
3502 if (!wxPyCheckForApp()) SWIG_fail;
3503 PyThreadState* __tstate = wxPyBeginAllowThreads();
3504 result = (wxButton *)new wxButton();
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3509 return resultobj;
3510 fail:
3511 return NULL;
3512 }
3513
3514
3515 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj = 0;
3517 wxButton *arg1 = (wxButton *) 0 ;
3518 wxWindow *arg2 = (wxWindow *) 0 ;
3519 int arg3 = (int) -1 ;
3520 wxString const &arg4_defvalue = wxPyEmptyString ;
3521 wxString *arg4 = (wxString *) &arg4_defvalue ;
3522 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3523 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3524 wxSize const &arg6_defvalue = wxDefaultSize ;
3525 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3526 long arg7 = (long) 0 ;
3527 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3528 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3529 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3530 wxString *arg9 = (wxString *) &arg9_defvalue ;
3531 bool result;
3532 void *argp1 = 0 ;
3533 int res1 = 0 ;
3534 void *argp2 = 0 ;
3535 int res2 = 0 ;
3536 int val3 ;
3537 int ecode3 = 0 ;
3538 bool temp4 = false ;
3539 wxPoint temp5 ;
3540 wxSize temp6 ;
3541 long val7 ;
3542 int ecode7 = 0 ;
3543 void *argp8 = 0 ;
3544 int res8 = 0 ;
3545 bool temp9 = false ;
3546 PyObject * obj0 = 0 ;
3547 PyObject * obj1 = 0 ;
3548 PyObject * obj2 = 0 ;
3549 PyObject * obj3 = 0 ;
3550 PyObject * obj4 = 0 ;
3551 PyObject * obj5 = 0 ;
3552 PyObject * obj6 = 0 ;
3553 PyObject * obj7 = 0 ;
3554 PyObject * obj8 = 0 ;
3555 char * kwnames[] = {
3556 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3557 };
3558
3559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3561 if (!SWIG_IsOK(res1)) {
3562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3563 }
3564 arg1 = reinterpret_cast< wxButton * >(argp1);
3565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3566 if (!SWIG_IsOK(res2)) {
3567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3568 }
3569 arg2 = reinterpret_cast< wxWindow * >(argp2);
3570 if (obj2) {
3571 ecode3 = SWIG_AsVal_int(obj2, &val3);
3572 if (!SWIG_IsOK(ecode3)) {
3573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3574 }
3575 arg3 = static_cast< int >(val3);
3576 }
3577 if (obj3) {
3578 {
3579 arg4 = wxString_in_helper(obj3);
3580 if (arg4 == NULL) SWIG_fail;
3581 temp4 = true;
3582 }
3583 }
3584 if (obj4) {
3585 {
3586 arg5 = &temp5;
3587 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3588 }
3589 }
3590 if (obj5) {
3591 {
3592 arg6 = &temp6;
3593 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3594 }
3595 }
3596 if (obj6) {
3597 ecode7 = SWIG_AsVal_long(obj6, &val7);
3598 if (!SWIG_IsOK(ecode7)) {
3599 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3600 }
3601 arg7 = static_cast< long >(val7);
3602 }
3603 if (obj7) {
3604 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3605 if (!SWIG_IsOK(res8)) {
3606 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3607 }
3608 if (!argp8) {
3609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3610 }
3611 arg8 = reinterpret_cast< wxValidator * >(argp8);
3612 }
3613 if (obj8) {
3614 {
3615 arg9 = wxString_in_helper(obj8);
3616 if (arg9 == NULL) SWIG_fail;
3617 temp9 = true;
3618 }
3619 }
3620 {
3621 PyThreadState* __tstate = wxPyBeginAllowThreads();
3622 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3623 wxPyEndAllowThreads(__tstate);
3624 if (PyErr_Occurred()) SWIG_fail;
3625 }
3626 {
3627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3628 }
3629 {
3630 if (temp4)
3631 delete arg4;
3632 }
3633 {
3634 if (temp9)
3635 delete arg9;
3636 }
3637 return resultobj;
3638 fail:
3639 {
3640 if (temp4)
3641 delete arg4;
3642 }
3643 {
3644 if (temp9)
3645 delete arg9;
3646 }
3647 return NULL;
3648 }
3649
3650
3651 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3652 PyObject *resultobj = 0;
3653 wxButton *arg1 = (wxButton *) 0 ;
3654 void *argp1 = 0 ;
3655 int res1 = 0 ;
3656 PyObject *swig_obj[1] ;
3657
3658 if (!args) SWIG_fail;
3659 swig_obj[0] = args;
3660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3661 if (!SWIG_IsOK(res1)) {
3662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3663 }
3664 arg1 = reinterpret_cast< wxButton * >(argp1);
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 (arg1)->SetDefault();
3668 wxPyEndAllowThreads(__tstate);
3669 if (PyErr_Occurred()) SWIG_fail;
3670 }
3671 resultobj = SWIG_Py_Void();
3672 return resultobj;
3673 fail:
3674 return NULL;
3675 }
3676
3677
3678 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3679 PyObject *resultobj = 0;
3680 wxSize result;
3681
3682 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3683 {
3684 PyThreadState* __tstate = wxPyBeginAllowThreads();
3685 result = wxButton::GetDefaultSize();
3686 wxPyEndAllowThreads(__tstate);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3690 return resultobj;
3691 fail:
3692 return NULL;
3693 }
3694
3695
3696 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3697 PyObject *resultobj = 0;
3698 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3699 SwigValueWrapper<wxVisualAttributes > result;
3700 int val1 ;
3701 int ecode1 = 0 ;
3702 PyObject * obj0 = 0 ;
3703 char * kwnames[] = {
3704 (char *) "variant", NULL
3705 };
3706
3707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3708 if (obj0) {
3709 ecode1 = SWIG_AsVal_int(obj0, &val1);
3710 if (!SWIG_IsOK(ecode1)) {
3711 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3712 }
3713 arg1 = static_cast< wxWindowVariant >(val1);
3714 }
3715 {
3716 if (!wxPyCheckForApp()) SWIG_fail;
3717 PyThreadState* __tstate = wxPyBeginAllowThreads();
3718 result = wxButton::GetClassDefaultAttributes(arg1);
3719 wxPyEndAllowThreads(__tstate);
3720 if (PyErr_Occurred()) SWIG_fail;
3721 }
3722 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3723 return resultobj;
3724 fail:
3725 return NULL;
3726 }
3727
3728
3729 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3730 PyObject *obj;
3731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3732 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3733 return SWIG_Py_Void();
3734 }
3735
3736 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3737 return SWIG_Python_InitShadowInstance(args);
3738 }
3739
3740 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj = 0;
3742 wxWindow *arg1 = (wxWindow *) 0 ;
3743 int arg2 = (int) -1 ;
3744 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3745 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3746 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3747 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3748 wxSize const &arg5_defvalue = wxDefaultSize ;
3749 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3750 long arg6 = (long) wxBU_AUTODRAW ;
3751 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3752 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3753 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3754 wxString *arg8 = (wxString *) &arg8_defvalue ;
3755 wxBitmapButton *result = 0 ;
3756 void *argp1 = 0 ;
3757 int res1 = 0 ;
3758 int val2 ;
3759 int ecode2 = 0 ;
3760 void *argp3 = 0 ;
3761 int res3 = 0 ;
3762 wxPoint temp4 ;
3763 wxSize temp5 ;
3764 long val6 ;
3765 int ecode6 = 0 ;
3766 void *argp7 = 0 ;
3767 int res7 = 0 ;
3768 bool temp8 = false ;
3769 PyObject * obj0 = 0 ;
3770 PyObject * obj1 = 0 ;
3771 PyObject * obj2 = 0 ;
3772 PyObject * obj3 = 0 ;
3773 PyObject * obj4 = 0 ;
3774 PyObject * obj5 = 0 ;
3775 PyObject * obj6 = 0 ;
3776 PyObject * obj7 = 0 ;
3777 char * kwnames[] = {
3778 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3779 };
3780
3781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3783 if (!SWIG_IsOK(res1)) {
3784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3785 }
3786 arg1 = reinterpret_cast< wxWindow * >(argp1);
3787 if (obj1) {
3788 ecode2 = SWIG_AsVal_int(obj1, &val2);
3789 if (!SWIG_IsOK(ecode2)) {
3790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3791 }
3792 arg2 = static_cast< int >(val2);
3793 }
3794 if (obj2) {
3795 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3796 if (!SWIG_IsOK(res3)) {
3797 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3798 }
3799 if (!argp3) {
3800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3801 }
3802 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3803 }
3804 if (obj3) {
3805 {
3806 arg4 = &temp4;
3807 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3808 }
3809 }
3810 if (obj4) {
3811 {
3812 arg5 = &temp5;
3813 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3814 }
3815 }
3816 if (obj5) {
3817 ecode6 = SWIG_AsVal_long(obj5, &val6);
3818 if (!SWIG_IsOK(ecode6)) {
3819 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3820 }
3821 arg6 = static_cast< long >(val6);
3822 }
3823 if (obj6) {
3824 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3825 if (!SWIG_IsOK(res7)) {
3826 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3827 }
3828 if (!argp7) {
3829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3830 }
3831 arg7 = reinterpret_cast< wxValidator * >(argp7);
3832 }
3833 if (obj7) {
3834 {
3835 arg8 = wxString_in_helper(obj7);
3836 if (arg8 == NULL) SWIG_fail;
3837 temp8 = true;
3838 }
3839 }
3840 {
3841 if (!wxPyCheckForApp()) SWIG_fail;
3842 PyThreadState* __tstate = wxPyBeginAllowThreads();
3843 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3844 wxPyEndAllowThreads(__tstate);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3848 {
3849 if (temp8)
3850 delete arg8;
3851 }
3852 return resultobj;
3853 fail:
3854 {
3855 if (temp8)
3856 delete arg8;
3857 }
3858 return NULL;
3859 }
3860
3861
3862 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3863 PyObject *resultobj = 0;
3864 wxBitmapButton *result = 0 ;
3865
3866 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3867 {
3868 if (!wxPyCheckForApp()) SWIG_fail;
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
3870 result = (wxBitmapButton *)new wxBitmapButton();
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3875 return resultobj;
3876 fail:
3877 return NULL;
3878 }
3879
3880
3881 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3882 PyObject *resultobj = 0;
3883 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3884 wxWindow *arg2 = (wxWindow *) 0 ;
3885 int arg3 = (int) -1 ;
3886 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3887 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3888 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3889 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3890 wxSize const &arg6_defvalue = wxDefaultSize ;
3891 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3892 long arg7 = (long) wxBU_AUTODRAW ;
3893 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3894 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3895 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3896 wxString *arg9 = (wxString *) &arg9_defvalue ;
3897 bool result;
3898 void *argp1 = 0 ;
3899 int res1 = 0 ;
3900 void *argp2 = 0 ;
3901 int res2 = 0 ;
3902 int val3 ;
3903 int ecode3 = 0 ;
3904 void *argp4 = 0 ;
3905 int res4 = 0 ;
3906 wxPoint temp5 ;
3907 wxSize temp6 ;
3908 long val7 ;
3909 int ecode7 = 0 ;
3910 void *argp8 = 0 ;
3911 int res8 = 0 ;
3912 bool temp9 = false ;
3913 PyObject * obj0 = 0 ;
3914 PyObject * obj1 = 0 ;
3915 PyObject * obj2 = 0 ;
3916 PyObject * obj3 = 0 ;
3917 PyObject * obj4 = 0 ;
3918 PyObject * obj5 = 0 ;
3919 PyObject * obj6 = 0 ;
3920 PyObject * obj7 = 0 ;
3921 PyObject * obj8 = 0 ;
3922 char * kwnames[] = {
3923 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3924 };
3925
3926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3928 if (!SWIG_IsOK(res1)) {
3929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3930 }
3931 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3933 if (!SWIG_IsOK(res2)) {
3934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3935 }
3936 arg2 = reinterpret_cast< wxWindow * >(argp2);
3937 if (obj2) {
3938 ecode3 = SWIG_AsVal_int(obj2, &val3);
3939 if (!SWIG_IsOK(ecode3)) {
3940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3941 }
3942 arg3 = static_cast< int >(val3);
3943 }
3944 if (obj3) {
3945 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3946 if (!SWIG_IsOK(res4)) {
3947 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3948 }
3949 if (!argp4) {
3950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3951 }
3952 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3953 }
3954 if (obj4) {
3955 {
3956 arg5 = &temp5;
3957 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3958 }
3959 }
3960 if (obj5) {
3961 {
3962 arg6 = &temp6;
3963 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3964 }
3965 }
3966 if (obj6) {
3967 ecode7 = SWIG_AsVal_long(obj6, &val7);
3968 if (!SWIG_IsOK(ecode7)) {
3969 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3970 }
3971 arg7 = static_cast< long >(val7);
3972 }
3973 if (obj7) {
3974 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3975 if (!SWIG_IsOK(res8)) {
3976 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3977 }
3978 if (!argp8) {
3979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3980 }
3981 arg8 = reinterpret_cast< wxValidator * >(argp8);
3982 }
3983 if (obj8) {
3984 {
3985 arg9 = wxString_in_helper(obj8);
3986 if (arg9 == NULL) SWIG_fail;
3987 temp9 = true;
3988 }
3989 }
3990 {
3991 PyThreadState* __tstate = wxPyBeginAllowThreads();
3992 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3993 wxPyEndAllowThreads(__tstate);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 }
3996 {
3997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3998 }
3999 {
4000 if (temp9)
4001 delete arg9;
4002 }
4003 return resultobj;
4004 fail:
4005 {
4006 if (temp9)
4007 delete arg9;
4008 }
4009 return NULL;
4010 }
4011
4012
4013 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4014 PyObject *resultobj = 0;
4015 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4016 wxBitmap result;
4017 void *argp1 = 0 ;
4018 int res1 = 0 ;
4019 PyObject *swig_obj[1] ;
4020
4021 if (!args) SWIG_fail;
4022 swig_obj[0] = args;
4023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4024 if (!SWIG_IsOK(res1)) {
4025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4026 }
4027 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4028 {
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 result = (arg1)->GetBitmapLabel();
4031 wxPyEndAllowThreads(__tstate);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4035 return resultobj;
4036 fail:
4037 return NULL;
4038 }
4039
4040
4041 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapDisabled();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064 fail:
4065 return NULL;
4066 }
4067
4068
4069 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapFocus();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapSelected();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapHover();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap *arg2 = 0 ;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 void *argp2 = 0 ;
4160 int res2 = 0 ;
4161 PyObject * obj0 = 0 ;
4162 PyObject * obj1 = 0 ;
4163 char * kwnames[] = {
4164 (char *) "self",(char *) "bitmap", NULL
4165 };
4166
4167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4169 if (!SWIG_IsOK(res1)) {
4170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4171 }
4172 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4173 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4174 if (!SWIG_IsOK(res2)) {
4175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4176 }
4177 if (!argp2) {
4178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4179 }
4180 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4181 {
4182 PyThreadState* __tstate = wxPyBeginAllowThreads();
4183 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4184 wxPyEndAllowThreads(__tstate);
4185 if (PyErr_Occurred()) SWIG_fail;
4186 }
4187 resultobj = SWIG_Py_Void();
4188 return resultobj;
4189 fail:
4190 return NULL;
4191 }
4192
4193
4194 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4195 PyObject *resultobj = 0;
4196 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4197 wxBitmap *arg2 = 0 ;
4198 void *argp1 = 0 ;
4199 int res1 = 0 ;
4200 void *argp2 = 0 ;
4201 int res2 = 0 ;
4202 PyObject * obj0 = 0 ;
4203 PyObject * obj1 = 0 ;
4204 char * kwnames[] = {
4205 (char *) "self",(char *) "bitmap", NULL
4206 };
4207
4208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4210 if (!SWIG_IsOK(res1)) {
4211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4212 }
4213 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4215 if (!SWIG_IsOK(res2)) {
4216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4217 }
4218 if (!argp2) {
4219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4220 }
4221 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 resultobj = SWIG_Py_Void();
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj = 0;
4237 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4238 wxBitmap *arg2 = 0 ;
4239 void *argp1 = 0 ;
4240 int res1 = 0 ;
4241 void *argp2 = 0 ;
4242 int res2 = 0 ;
4243 PyObject * obj0 = 0 ;
4244 PyObject * obj1 = 0 ;
4245 char * kwnames[] = {
4246 (char *) "self",(char *) "bitmap", NULL
4247 };
4248
4249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4251 if (!SWIG_IsOK(res1)) {
4252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4253 }
4254 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4256 if (!SWIG_IsOK(res2)) {
4257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 if (!argp2) {
4260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4261 }
4262 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_Py_Void();
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj = 0;
4278 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4279 wxBitmap *arg2 = 0 ;
4280 void *argp1 = 0 ;
4281 int res1 = 0 ;
4282 void *argp2 = 0 ;
4283 int res2 = 0 ;
4284 PyObject * obj0 = 0 ;
4285 PyObject * obj1 = 0 ;
4286 char * kwnames[] = {
4287 (char *) "self",(char *) "bitmap", NULL
4288 };
4289
4290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4292 if (!SWIG_IsOK(res1)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4294 }
4295 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4297 if (!SWIG_IsOK(res2)) {
4298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 if (!argp2) {
4301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4302 }
4303 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4304 {
4305 PyThreadState* __tstate = wxPyBeginAllowThreads();
4306 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) SWIG_fail;
4309 }
4310 resultobj = SWIG_Py_Void();
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4318 PyObject *resultobj = 0;
4319 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4320 wxBitmap *arg2 = 0 ;
4321 void *argp1 = 0 ;
4322 int res1 = 0 ;
4323 void *argp2 = 0 ;
4324 int res2 = 0 ;
4325 PyObject * obj0 = 0 ;
4326 PyObject * obj1 = 0 ;
4327 char * kwnames[] = {
4328 (char *) "self",(char *) "hover", NULL
4329 };
4330
4331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4335 }
4336 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4338 if (!SWIG_IsOK(res2)) {
4339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 if (!argp2) {
4342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4343 }
4344 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_Py_Void();
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj = 0;
4360 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4361 int arg2 ;
4362 int arg3 ;
4363 void *argp1 = 0 ;
4364 int res1 = 0 ;
4365 int val2 ;
4366 int ecode2 = 0 ;
4367 int val3 ;
4368 int ecode3 = 0 ;
4369 PyObject * obj0 = 0 ;
4370 PyObject * obj1 = 0 ;
4371 PyObject * obj2 = 0 ;
4372 char * kwnames[] = {
4373 (char *) "self",(char *) "x",(char *) "y", NULL
4374 };
4375
4376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4378 if (!SWIG_IsOK(res1)) {
4379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4380 }
4381 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4382 ecode2 = SWIG_AsVal_int(obj1, &val2);
4383 if (!SWIG_IsOK(ecode2)) {
4384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4385 }
4386 arg2 = static_cast< int >(val2);
4387 ecode3 = SWIG_AsVal_int(obj2, &val3);
4388 if (!SWIG_IsOK(ecode3)) {
4389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4390 }
4391 arg3 = static_cast< int >(val3);
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 (arg1)->SetMargins(arg2,arg3);
4395 wxPyEndAllowThreads(__tstate);
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 resultobj = SWIG_Py_Void();
4399 return resultobj;
4400 fail:
4401 return NULL;
4402 }
4403
4404
4405 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4406 PyObject *resultobj = 0;
4407 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4408 int result;
4409 void *argp1 = 0 ;
4410 int res1 = 0 ;
4411 PyObject *swig_obj[1] ;
4412
4413 if (!args) SWIG_fail;
4414 swig_obj[0] = args;
4415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4416 if (!SWIG_IsOK(res1)) {
4417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4418 }
4419 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_From_int(static_cast< int >(result));
4427 return resultobj;
4428 fail:
4429 return NULL;
4430 }
4431
4432
4433 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *obj;
4463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4464 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4465 return SWIG_Py_Void();
4466 }
4467
4468 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4469 return SWIG_Python_InitShadowInstance(args);
4470 }
4471
4472 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4473 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4474 return 1;
4475 }
4476
4477
4478 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4479 PyObject *pyobj = 0;
4480
4481 {
4482 #if wxUSE_UNICODE
4483 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4484 #else
4485 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4486 #endif
4487 }
4488 return pyobj;
4489 }
4490
4491
4492 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj = 0;
4494 wxWindow *arg1 = (wxWindow *) 0 ;
4495 int arg2 = (int) -1 ;
4496 wxString const &arg3_defvalue = wxPyEmptyString ;
4497 wxString *arg3 = (wxString *) &arg3_defvalue ;
4498 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4499 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4500 wxSize const &arg5_defvalue = wxDefaultSize ;
4501 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4502 long arg6 = (long) 0 ;
4503 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4504 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4505 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4506 wxString *arg8 = (wxString *) &arg8_defvalue ;
4507 wxCheckBox *result = 0 ;
4508 void *argp1 = 0 ;
4509 int res1 = 0 ;
4510 int val2 ;
4511 int ecode2 = 0 ;
4512 bool temp3 = false ;
4513 wxPoint temp4 ;
4514 wxSize temp5 ;
4515 long val6 ;
4516 int ecode6 = 0 ;
4517 void *argp7 = 0 ;
4518 int res7 = 0 ;
4519 bool temp8 = false ;
4520 PyObject * obj0 = 0 ;
4521 PyObject * obj1 = 0 ;
4522 PyObject * obj2 = 0 ;
4523 PyObject * obj3 = 0 ;
4524 PyObject * obj4 = 0 ;
4525 PyObject * obj5 = 0 ;
4526 PyObject * obj6 = 0 ;
4527 PyObject * obj7 = 0 ;
4528 char * kwnames[] = {
4529 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4530 };
4531
4532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4534 if (!SWIG_IsOK(res1)) {
4535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4536 }
4537 arg1 = reinterpret_cast< wxWindow * >(argp1);
4538 if (obj1) {
4539 ecode2 = SWIG_AsVal_int(obj1, &val2);
4540 if (!SWIG_IsOK(ecode2)) {
4541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4542 }
4543 arg2 = static_cast< int >(val2);
4544 }
4545 if (obj2) {
4546 {
4547 arg3 = wxString_in_helper(obj2);
4548 if (arg3 == NULL) SWIG_fail;
4549 temp3 = true;
4550 }
4551 }
4552 if (obj3) {
4553 {
4554 arg4 = &temp4;
4555 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4556 }
4557 }
4558 if (obj4) {
4559 {
4560 arg5 = &temp5;
4561 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4562 }
4563 }
4564 if (obj5) {
4565 ecode6 = SWIG_AsVal_long(obj5, &val6);
4566 if (!SWIG_IsOK(ecode6)) {
4567 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4568 }
4569 arg6 = static_cast< long >(val6);
4570 }
4571 if (obj6) {
4572 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4573 if (!SWIG_IsOK(res7)) {
4574 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4575 }
4576 if (!argp7) {
4577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4578 }
4579 arg7 = reinterpret_cast< wxValidator * >(argp7);
4580 }
4581 if (obj7) {
4582 {
4583 arg8 = wxString_in_helper(obj7);
4584 if (arg8 == NULL) SWIG_fail;
4585 temp8 = true;
4586 }
4587 }
4588 {
4589 if (!wxPyCheckForApp()) SWIG_fail;
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4592 wxPyEndAllowThreads(__tstate);
4593 if (PyErr_Occurred()) SWIG_fail;
4594 }
4595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4596 {
4597 if (temp3)
4598 delete arg3;
4599 }
4600 {
4601 if (temp8)
4602 delete arg8;
4603 }
4604 return resultobj;
4605 fail:
4606 {
4607 if (temp3)
4608 delete arg3;
4609 }
4610 {
4611 if (temp8)
4612 delete arg8;
4613 }
4614 return NULL;
4615 }
4616
4617
4618 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4619 PyObject *resultobj = 0;
4620 wxCheckBox *result = 0 ;
4621
4622 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4623 {
4624 if (!wxPyCheckForApp()) SWIG_fail;
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = (wxCheckBox *)new wxCheckBox();
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4631 return resultobj;
4632 fail:
4633 return NULL;
4634 }
4635
4636
4637 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4638 PyObject *resultobj = 0;
4639 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4640 wxWindow *arg2 = (wxWindow *) 0 ;
4641 int arg3 = (int) -1 ;
4642 wxString const &arg4_defvalue = wxPyEmptyString ;
4643 wxString *arg4 = (wxString *) &arg4_defvalue ;
4644 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4645 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4646 wxSize const &arg6_defvalue = wxDefaultSize ;
4647 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4648 long arg7 = (long) 0 ;
4649 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4650 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4651 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4652 wxString *arg9 = (wxString *) &arg9_defvalue ;
4653 bool result;
4654 void *argp1 = 0 ;
4655 int res1 = 0 ;
4656 void *argp2 = 0 ;
4657 int res2 = 0 ;
4658 int val3 ;
4659 int ecode3 = 0 ;
4660 bool temp4 = false ;
4661 wxPoint temp5 ;
4662 wxSize temp6 ;
4663 long val7 ;
4664 int ecode7 = 0 ;
4665 void *argp8 = 0 ;
4666 int res8 = 0 ;
4667 bool temp9 = false ;
4668 PyObject * obj0 = 0 ;
4669 PyObject * obj1 = 0 ;
4670 PyObject * obj2 = 0 ;
4671 PyObject * obj3 = 0 ;
4672 PyObject * obj4 = 0 ;
4673 PyObject * obj5 = 0 ;
4674 PyObject * obj6 = 0 ;
4675 PyObject * obj7 = 0 ;
4676 PyObject * obj8 = 0 ;
4677 char * kwnames[] = {
4678 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4679 };
4680
4681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4683 if (!SWIG_IsOK(res1)) {
4684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4685 }
4686 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4688 if (!SWIG_IsOK(res2)) {
4689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4690 }
4691 arg2 = reinterpret_cast< wxWindow * >(argp2);
4692 if (obj2) {
4693 ecode3 = SWIG_AsVal_int(obj2, &val3);
4694 if (!SWIG_IsOK(ecode3)) {
4695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4696 }
4697 arg3 = static_cast< int >(val3);
4698 }
4699 if (obj3) {
4700 {
4701 arg4 = wxString_in_helper(obj3);
4702 if (arg4 == NULL) SWIG_fail;
4703 temp4 = true;
4704 }
4705 }
4706 if (obj4) {
4707 {
4708 arg5 = &temp5;
4709 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4710 }
4711 }
4712 if (obj5) {
4713 {
4714 arg6 = &temp6;
4715 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4716 }
4717 }
4718 if (obj6) {
4719 ecode7 = SWIG_AsVal_long(obj6, &val7);
4720 if (!SWIG_IsOK(ecode7)) {
4721 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4722 }
4723 arg7 = static_cast< long >(val7);
4724 }
4725 if (obj7) {
4726 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4727 if (!SWIG_IsOK(res8)) {
4728 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4729 }
4730 if (!argp8) {
4731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4732 }
4733 arg8 = reinterpret_cast< wxValidator * >(argp8);
4734 }
4735 if (obj8) {
4736 {
4737 arg9 = wxString_in_helper(obj8);
4738 if (arg9 == NULL) SWIG_fail;
4739 temp9 = true;
4740 }
4741 }
4742 {
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 {
4749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4750 }
4751 {
4752 if (temp4)
4753 delete arg4;
4754 }
4755 {
4756 if (temp9)
4757 delete arg9;
4758 }
4759 return resultobj;
4760 fail:
4761 {
4762 if (temp4)
4763 delete arg4;
4764 }
4765 {
4766 if (temp9)
4767 delete arg9;
4768 }
4769 return NULL;
4770 }
4771
4772
4773 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4774 PyObject *resultobj = 0;
4775 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4776 bool result;
4777 void *argp1 = 0 ;
4778 int res1 = 0 ;
4779 PyObject *swig_obj[1] ;
4780
4781 if (!args) SWIG_fail;
4782 swig_obj[0] = args;
4783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4784 if (!SWIG_IsOK(res1)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4786 }
4787 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (bool)(arg1)->GetValue();
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 {
4795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4796 }
4797 return resultobj;
4798 fail:
4799 return NULL;
4800 }
4801
4802
4803 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4804 PyObject *resultobj = 0;
4805 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4806 bool result;
4807 void *argp1 = 0 ;
4808 int res1 = 0 ;
4809 PyObject *swig_obj[1] ;
4810
4811 if (!args) SWIG_fail;
4812 swig_obj[0] = args;
4813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4814 if (!SWIG_IsOK(res1)) {
4815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4816 }
4817 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4818 {
4819 PyThreadState* __tstate = wxPyBeginAllowThreads();
4820 result = (bool)(arg1)->IsChecked();
4821 wxPyEndAllowThreads(__tstate);
4822 if (PyErr_Occurred()) SWIG_fail;
4823 }
4824 {
4825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4826 }
4827 return resultobj;
4828 fail:
4829 return NULL;
4830 }
4831
4832
4833 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4834 PyObject *resultobj = 0;
4835 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4836 bool arg2 ;
4837 void *argp1 = 0 ;
4838 int res1 = 0 ;
4839 bool val2 ;
4840 int ecode2 = 0 ;
4841 PyObject * obj0 = 0 ;
4842 PyObject * obj1 = 0 ;
4843 char * kwnames[] = {
4844 (char *) "self",(char *) "state", NULL
4845 };
4846
4847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4849 if (!SWIG_IsOK(res1)) {
4850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4851 }
4852 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4853 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4854 if (!SWIG_IsOK(ecode2)) {
4855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4856 }
4857 arg2 = static_cast< bool >(val2);
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 (arg1)->SetValue(arg2);
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 resultobj = SWIG_Py_Void();
4865 return resultobj;
4866 fail:
4867 return NULL;
4868 }
4869
4870
4871 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4872 PyObject *resultobj = 0;
4873 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4874 wxCheckBoxState result;
4875 void *argp1 = 0 ;
4876 int res1 = 0 ;
4877 PyObject *swig_obj[1] ;
4878
4879 if (!args) SWIG_fail;
4880 swig_obj[0] = args;
4881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4882 if (!SWIG_IsOK(res1)) {
4883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4884 }
4885 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_From_int(static_cast< int >(result));
4893 return resultobj;
4894 fail:
4895 return NULL;
4896 }
4897
4898
4899 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState arg2 ;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 int val2 ;
4906 int ecode2 = 0 ;
4907 PyObject * obj0 = 0 ;
4908 PyObject * obj1 = 0 ;
4909 char * kwnames[] = {
4910 (char *) "self",(char *) "state", NULL
4911 };
4912
4913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4915 if (!SWIG_IsOK(res1)) {
4916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4917 }
4918 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4919 ecode2 = SWIG_AsVal_int(obj1, &val2);
4920 if (!SWIG_IsOK(ecode2)) {
4921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4922 }
4923 arg2 = static_cast< wxCheckBoxState >(val2);
4924 {
4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
4926 (arg1)->Set3StateValue(arg2);
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = SWIG_Py_Void();
4931 return resultobj;
4932 fail:
4933 return NULL;
4934 }
4935
4936
4937 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4938 PyObject *resultobj = 0;
4939 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4940 bool result;
4941 void *argp1 = 0 ;
4942 int res1 = 0 ;
4943 PyObject *swig_obj[1] ;
4944
4945 if (!args) SWIG_fail;
4946 swig_obj[0] = args;
4947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4948 if (!SWIG_IsOK(res1)) {
4949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4950 }
4951 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 {
4959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4960 }
4961 return resultobj;
4962 fail:
4963 return NULL;
4964 }
4965
4966
4967 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4968 PyObject *resultobj = 0;
4969 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4970 bool result;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 PyObject *swig_obj[1] ;
4974
4975 if (!args) SWIG_fail;
4976 swig_obj[0] = args;
4977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4978 if (!SWIG_IsOK(res1)) {
4979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4980 }
4981 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 {
4989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4990 }
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4998 PyObject *resultobj = 0;
4999 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5000 SwigValueWrapper<wxVisualAttributes > result;
5001 int val1 ;
5002 int ecode1 = 0 ;
5003 PyObject * obj0 = 0 ;
5004 char * kwnames[] = {
5005 (char *) "variant", NULL
5006 };
5007
5008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5009 if (obj0) {
5010 ecode1 = SWIG_AsVal_int(obj0, &val1);
5011 if (!SWIG_IsOK(ecode1)) {
5012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5013 }
5014 arg1 = static_cast< wxWindowVariant >(val1);
5015 }
5016 {
5017 if (!wxPyCheckForApp()) SWIG_fail;
5018 PyThreadState* __tstate = wxPyBeginAllowThreads();
5019 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5020 wxPyEndAllowThreads(__tstate);
5021 if (PyErr_Occurred()) SWIG_fail;
5022 }
5023 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5024 return resultobj;
5025 fail:
5026 return NULL;
5027 }
5028
5029
5030 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5031 PyObject *obj;
5032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5033 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5034 return SWIG_Py_Void();
5035 }
5036
5037 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5038 return SWIG_Python_InitShadowInstance(args);
5039 }
5040
5041 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5042 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5043 return 1;
5044 }
5045
5046
5047 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5048 PyObject *pyobj = 0;
5049
5050 {
5051 #if wxUSE_UNICODE
5052 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5053 #else
5054 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5055 #endif
5056 }
5057 return pyobj;
5058 }
5059
5060
5061 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj = 0;
5063 wxWindow *arg1 = (wxWindow *) 0 ;
5064 int arg2 = (int) -1 ;
5065 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5066 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5067 wxSize const &arg4_defvalue = wxDefaultSize ;
5068 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5069 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5070 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5071 long arg6 = (long) 0 ;
5072 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5073 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5074 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5075 wxString *arg8 = (wxString *) &arg8_defvalue ;
5076 wxChoice *result = 0 ;
5077 void *argp1 = 0 ;
5078 int res1 = 0 ;
5079 int val2 ;
5080 int ecode2 = 0 ;
5081 wxPoint temp3 ;
5082 wxSize temp4 ;
5083 bool temp5 = false ;
5084 long val6 ;
5085 int ecode6 = 0 ;
5086 void *argp7 = 0 ;
5087 int res7 = 0 ;
5088 bool temp8 = false ;
5089 PyObject * obj0 = 0 ;
5090 PyObject * obj1 = 0 ;
5091 PyObject * obj2 = 0 ;
5092 PyObject * obj3 = 0 ;
5093 PyObject * obj4 = 0 ;
5094 PyObject * obj5 = 0 ;
5095 PyObject * obj6 = 0 ;
5096 PyObject * obj7 = 0 ;
5097 char * kwnames[] = {
5098 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5099 };
5100
5101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5103 if (!SWIG_IsOK(res1)) {
5104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5105 }
5106 arg1 = reinterpret_cast< wxWindow * >(argp1);
5107 if (obj1) {
5108 ecode2 = SWIG_AsVal_int(obj1, &val2);
5109 if (!SWIG_IsOK(ecode2)) {
5110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5111 }
5112 arg2 = static_cast< int >(val2);
5113 }
5114 if (obj2) {
5115 {
5116 arg3 = &temp3;
5117 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5118 }
5119 }
5120 if (obj3) {
5121 {
5122 arg4 = &temp4;
5123 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5124 }
5125 }
5126 if (obj4) {
5127 {
5128 if (! PySequence_Check(obj4)) {
5129 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5130 SWIG_fail;
5131 }
5132 arg5 = new wxArrayString;
5133 temp5 = true;
5134 int i, len=PySequence_Length(obj4);
5135 for (i=0; i<len; i++) {
5136 PyObject* item = PySequence_GetItem(obj4, i);
5137 wxString* s = wxString_in_helper(item);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 arg5->Add(*s);
5140 delete s;
5141 Py_DECREF(item);
5142 }
5143 }
5144 }
5145 if (obj5) {
5146 ecode6 = SWIG_AsVal_long(obj5, &val6);
5147 if (!SWIG_IsOK(ecode6)) {
5148 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5149 }
5150 arg6 = static_cast< long >(val6);
5151 }
5152 if (obj6) {
5153 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5154 if (!SWIG_IsOK(res7)) {
5155 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5156 }
5157 if (!argp7) {
5158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5159 }
5160 arg7 = reinterpret_cast< wxValidator * >(argp7);
5161 }
5162 if (obj7) {
5163 {
5164 arg8 = wxString_in_helper(obj7);
5165 if (arg8 == NULL) SWIG_fail;
5166 temp8 = true;
5167 }
5168 }
5169 {
5170 if (!wxPyCheckForApp()) SWIG_fail;
5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5173 wxPyEndAllowThreads(__tstate);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 }
5176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5177 {
5178 if (temp5) delete arg5;
5179 }
5180 {
5181 if (temp8)
5182 delete arg8;
5183 }
5184 return resultobj;
5185 fail:
5186 {
5187 if (temp5) delete arg5;
5188 }
5189 {
5190 if (temp8)
5191 delete arg8;
5192 }
5193 return NULL;
5194 }
5195
5196
5197 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5198 PyObject *resultobj = 0;
5199 wxChoice *result = 0 ;
5200
5201 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5202 {
5203 if (!wxPyCheckForApp()) SWIG_fail;
5204 PyThreadState* __tstate = wxPyBeginAllowThreads();
5205 result = (wxChoice *)new wxChoice();
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5210 return resultobj;
5211 fail:
5212 return NULL;
5213 }
5214
5215
5216 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5217 PyObject *resultobj = 0;
5218 wxChoice *arg1 = (wxChoice *) 0 ;
5219 wxWindow *arg2 = (wxWindow *) 0 ;
5220 int arg3 = (int) -1 ;
5221 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5222 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5223 wxSize const &arg5_defvalue = wxDefaultSize ;
5224 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5225 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5226 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5227 long arg7 = (long) 0 ;
5228 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5229 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5230 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5231 wxString *arg9 = (wxString *) &arg9_defvalue ;
5232 bool result;
5233 void *argp1 = 0 ;
5234 int res1 = 0 ;
5235 void *argp2 = 0 ;
5236 int res2 = 0 ;
5237 int val3 ;
5238 int ecode3 = 0 ;
5239 wxPoint temp4 ;
5240 wxSize temp5 ;
5241 bool temp6 = false ;
5242 long val7 ;
5243 int ecode7 = 0 ;
5244 void *argp8 = 0 ;
5245 int res8 = 0 ;
5246 bool temp9 = false ;
5247 PyObject * obj0 = 0 ;
5248 PyObject * obj1 = 0 ;
5249 PyObject * obj2 = 0 ;
5250 PyObject * obj3 = 0 ;
5251 PyObject * obj4 = 0 ;
5252 PyObject * obj5 = 0 ;
5253 PyObject * obj6 = 0 ;
5254 PyObject * obj7 = 0 ;
5255 PyObject * obj8 = 0 ;
5256 char * kwnames[] = {
5257 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5258 };
5259
5260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5262 if (!SWIG_IsOK(res1)) {
5263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5264 }
5265 arg1 = reinterpret_cast< wxChoice * >(argp1);
5266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5267 if (!SWIG_IsOK(res2)) {
5268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5269 }
5270 arg2 = reinterpret_cast< wxWindow * >(argp2);
5271 if (obj2) {
5272 ecode3 = SWIG_AsVal_int(obj2, &val3);
5273 if (!SWIG_IsOK(ecode3)) {
5274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5275 }
5276 arg3 = static_cast< int >(val3);
5277 }
5278 if (obj3) {
5279 {
5280 arg4 = &temp4;
5281 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5282 }
5283 }
5284 if (obj4) {
5285 {
5286 arg5 = &temp5;
5287 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5288 }
5289 }
5290 if (obj5) {
5291 {
5292 if (! PySequence_Check(obj5)) {
5293 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5294 SWIG_fail;
5295 }
5296 arg6 = new wxArrayString;
5297 temp6 = true;
5298 int i, len=PySequence_Length(obj5);
5299 for (i=0; i<len; i++) {
5300 PyObject* item = PySequence_GetItem(obj5, i);
5301 wxString* s = wxString_in_helper(item);
5302 if (PyErr_Occurred()) SWIG_fail;
5303 arg6->Add(*s);
5304 delete s;
5305 Py_DECREF(item);
5306 }
5307 }
5308 }
5309 if (obj6) {
5310 ecode7 = SWIG_AsVal_long(obj6, &val7);
5311 if (!SWIG_IsOK(ecode7)) {
5312 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5313 }
5314 arg7 = static_cast< long >(val7);
5315 }
5316 if (obj7) {
5317 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5318 if (!SWIG_IsOK(res8)) {
5319 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5320 }
5321 if (!argp8) {
5322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5323 }
5324 arg8 = reinterpret_cast< wxValidator * >(argp8);
5325 }
5326 if (obj8) {
5327 {
5328 arg9 = wxString_in_helper(obj8);
5329 if (arg9 == NULL) SWIG_fail;
5330 temp9 = true;
5331 }
5332 }
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5336 wxPyEndAllowThreads(__tstate);
5337 if (PyErr_Occurred()) SWIG_fail;
5338 }
5339 {
5340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5341 }
5342 {
5343 if (temp6) delete arg6;
5344 }
5345 {
5346 if (temp9)
5347 delete arg9;
5348 }
5349 return resultobj;
5350 fail:
5351 {
5352 if (temp6) delete arg6;
5353 }
5354 {
5355 if (temp9)
5356 delete arg9;
5357 }
5358 return NULL;
5359 }
5360
5361
5362 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5363 PyObject *resultobj = 0;
5364 wxChoice *arg1 = (wxChoice *) 0 ;
5365 int result;
5366 void *argp1 = 0 ;
5367 int res1 = 0 ;
5368 PyObject *swig_obj[1] ;
5369
5370 if (!args) SWIG_fail;
5371 swig_obj[0] = args;
5372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5373 if (!SWIG_IsOK(res1)) {
5374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5375 }
5376 arg1 = reinterpret_cast< wxChoice * >(argp1);
5377 {
5378 PyThreadState* __tstate = wxPyBeginAllowThreads();
5379 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 resultobj = SWIG_From_int(static_cast< int >(result));
5384 return resultobj;
5385 fail:
5386 return NULL;
5387 }
5388
5389
5390 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5391 PyObject *resultobj = 0;
5392 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5393 SwigValueWrapper<wxVisualAttributes > result;
5394 int val1 ;
5395 int ecode1 = 0 ;
5396 PyObject * obj0 = 0 ;
5397 char * kwnames[] = {
5398 (char *) "variant", NULL
5399 };
5400
5401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5402 if (obj0) {
5403 ecode1 = SWIG_AsVal_int(obj0, &val1);
5404 if (!SWIG_IsOK(ecode1)) {
5405 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5406 }
5407 arg1 = static_cast< wxWindowVariant >(val1);
5408 }
5409 {
5410 if (!wxPyCheckForApp()) SWIG_fail;
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 result = wxChoice::GetClassDefaultAttributes(arg1);
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) SWIG_fail;
5415 }
5416 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5417 return resultobj;
5418 fail:
5419 return NULL;
5420 }
5421
5422
5423 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5424 PyObject *obj;
5425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5426 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5427 return SWIG_Py_Void();
5428 }
5429
5430 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5431 return SWIG_Python_InitShadowInstance(args);
5432 }
5433
5434 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5435 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5436 return 1;
5437 }
5438
5439
5440 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5441 PyObject *pyobj = 0;
5442
5443 {
5444 #if wxUSE_UNICODE
5445 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5446 #else
5447 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5448 #endif
5449 }
5450 return pyobj;
5451 }
5452
5453
5454 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj = 0;
5456 wxWindow *arg1 = (wxWindow *) 0 ;
5457 int arg2 = (int) -1 ;
5458 wxString const &arg3_defvalue = wxPyEmptyString ;
5459 wxString *arg3 = (wxString *) &arg3_defvalue ;
5460 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5461 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5462 wxSize const &arg5_defvalue = wxDefaultSize ;
5463 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5464 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5465 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5466 long arg7 = (long) 0 ;
5467 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5468 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5469 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5470 wxString *arg9 = (wxString *) &arg9_defvalue ;
5471 wxComboBox *result = 0 ;
5472 void *argp1 = 0 ;
5473 int res1 = 0 ;
5474 int val2 ;
5475 int ecode2 = 0 ;
5476 bool temp3 = false ;
5477 wxPoint temp4 ;
5478 wxSize temp5 ;
5479 bool temp6 = false ;
5480 long val7 ;
5481 int ecode7 = 0 ;
5482 void *argp8 = 0 ;
5483 int res8 = 0 ;
5484 bool temp9 = false ;
5485 PyObject * obj0 = 0 ;
5486 PyObject * obj1 = 0 ;
5487 PyObject * obj2 = 0 ;
5488 PyObject * obj3 = 0 ;
5489 PyObject * obj4 = 0 ;
5490 PyObject * obj5 = 0 ;
5491 PyObject * obj6 = 0 ;
5492 PyObject * obj7 = 0 ;
5493 PyObject * obj8 = 0 ;
5494 char * kwnames[] = {
5495 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5496 };
5497
5498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5500 if (!SWIG_IsOK(res1)) {
5501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5502 }
5503 arg1 = reinterpret_cast< wxWindow * >(argp1);
5504 if (obj1) {
5505 ecode2 = SWIG_AsVal_int(obj1, &val2);
5506 if (!SWIG_IsOK(ecode2)) {
5507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5508 }
5509 arg2 = static_cast< int >(val2);
5510 }
5511 if (obj2) {
5512 {
5513 arg3 = wxString_in_helper(obj2);
5514 if (arg3 == NULL) SWIG_fail;
5515 temp3 = true;
5516 }
5517 }
5518 if (obj3) {
5519 {
5520 arg4 = &temp4;
5521 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5522 }
5523 }
5524 if (obj4) {
5525 {
5526 arg5 = &temp5;
5527 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5528 }
5529 }
5530 if (obj5) {
5531 {
5532 if (! PySequence_Check(obj5)) {
5533 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5534 SWIG_fail;
5535 }
5536 arg6 = new wxArrayString;
5537 temp6 = true;
5538 int i, len=PySequence_Length(obj5);
5539 for (i=0; i<len; i++) {
5540 PyObject* item = PySequence_GetItem(obj5, i);
5541 wxString* s = wxString_in_helper(item);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 arg6->Add(*s);
5544 delete s;
5545 Py_DECREF(item);
5546 }
5547 }
5548 }
5549 if (obj6) {
5550 ecode7 = SWIG_AsVal_long(obj6, &val7);
5551 if (!SWIG_IsOK(ecode7)) {
5552 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5553 }
5554 arg7 = static_cast< long >(val7);
5555 }
5556 if (obj7) {
5557 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5558 if (!SWIG_IsOK(res8)) {
5559 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5560 }
5561 if (!argp8) {
5562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5563 }
5564 arg8 = reinterpret_cast< wxValidator * >(argp8);
5565 }
5566 if (obj8) {
5567 {
5568 arg9 = wxString_in_helper(obj8);
5569 if (arg9 == NULL) SWIG_fail;
5570 temp9 = true;
5571 }
5572 }
5573 {
5574 if (!wxPyCheckForApp()) SWIG_fail;
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 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);
5577 wxPyEndAllowThreads(__tstate);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 }
5580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5581 {
5582 if (temp3)
5583 delete arg3;
5584 }
5585 {
5586 if (temp6) delete arg6;
5587 }
5588 {
5589 if (temp9)
5590 delete arg9;
5591 }
5592 return resultobj;
5593 fail:
5594 {
5595 if (temp3)
5596 delete arg3;
5597 }
5598 {
5599 if (temp6) delete arg6;
5600 }
5601 {
5602 if (temp9)
5603 delete arg9;
5604 }
5605 return NULL;
5606 }
5607
5608
5609 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5610 PyObject *resultobj = 0;
5611 wxComboBox *result = 0 ;
5612
5613 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5614 {
5615 if (!wxPyCheckForApp()) SWIG_fail;
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 result = (wxComboBox *)new wxComboBox();
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5622 return resultobj;
5623 fail:
5624 return NULL;
5625 }
5626
5627
5628 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5629 PyObject *resultobj = 0;
5630 wxComboBox *arg1 = (wxComboBox *) 0 ;
5631 wxWindow *arg2 = (wxWindow *) 0 ;
5632 int arg3 = (int) -1 ;
5633 wxString const &arg4_defvalue = wxPyEmptyString ;
5634 wxString *arg4 = (wxString *) &arg4_defvalue ;
5635 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5636 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5637 wxSize const &arg6_defvalue = wxDefaultSize ;
5638 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5639 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5640 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5641 long arg8 = (long) 0 ;
5642 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5643 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5644 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5645 wxString *arg10 = (wxString *) &arg10_defvalue ;
5646 bool result;
5647 void *argp1 = 0 ;
5648 int res1 = 0 ;
5649 void *argp2 = 0 ;
5650 int res2 = 0 ;
5651 int val3 ;
5652 int ecode3 = 0 ;
5653 bool temp4 = false ;
5654 wxPoint temp5 ;
5655 wxSize temp6 ;
5656 bool temp7 = false ;
5657 long val8 ;
5658 int ecode8 = 0 ;
5659 void *argp9 = 0 ;
5660 int res9 = 0 ;
5661 bool temp10 = false ;
5662 PyObject * obj0 = 0 ;
5663 PyObject * obj1 = 0 ;
5664 PyObject * obj2 = 0 ;
5665 PyObject * obj3 = 0 ;
5666 PyObject * obj4 = 0 ;
5667 PyObject * obj5 = 0 ;
5668 PyObject * obj6 = 0 ;
5669 PyObject * obj7 = 0 ;
5670 PyObject * obj8 = 0 ;
5671 PyObject * obj9 = 0 ;
5672 char * kwnames[] = {
5673 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5674 };
5675
5676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5678 if (!SWIG_IsOK(res1)) {
5679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5680 }
5681 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5683 if (!SWIG_IsOK(res2)) {
5684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5685 }
5686 arg2 = reinterpret_cast< wxWindow * >(argp2);
5687 if (obj2) {
5688 ecode3 = SWIG_AsVal_int(obj2, &val3);
5689 if (!SWIG_IsOK(ecode3)) {
5690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5691 }
5692 arg3 = static_cast< int >(val3);
5693 }
5694 if (obj3) {
5695 {
5696 arg4 = wxString_in_helper(obj3);
5697 if (arg4 == NULL) SWIG_fail;
5698 temp4 = true;
5699 }
5700 }
5701 if (obj4) {
5702 {
5703 arg5 = &temp5;
5704 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5705 }
5706 }
5707 if (obj5) {
5708 {
5709 arg6 = &temp6;
5710 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5711 }
5712 }
5713 if (obj6) {
5714 {
5715 if (! PySequence_Check(obj6)) {
5716 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5717 SWIG_fail;
5718 }
5719 arg7 = new wxArrayString;
5720 temp7 = true;
5721 int i, len=PySequence_Length(obj6);
5722 for (i=0; i<len; i++) {
5723 PyObject* item = PySequence_GetItem(obj6, i);
5724 wxString* s = wxString_in_helper(item);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 arg7->Add(*s);
5727 delete s;
5728 Py_DECREF(item);
5729 }
5730 }
5731 }
5732 if (obj7) {
5733 ecode8 = SWIG_AsVal_long(obj7, &val8);
5734 if (!SWIG_IsOK(ecode8)) {
5735 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5736 }
5737 arg8 = static_cast< long >(val8);
5738 }
5739 if (obj8) {
5740 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5741 if (!SWIG_IsOK(res9)) {
5742 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5743 }
5744 if (!argp9) {
5745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5746 }
5747 arg9 = reinterpret_cast< wxValidator * >(argp9);
5748 }
5749 if (obj9) {
5750 {
5751 arg10 = wxString_in_helper(obj9);
5752 if (arg10 == NULL) SWIG_fail;
5753 temp10 = true;
5754 }
5755 }
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 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);
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 {
5763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5764 }
5765 {
5766 if (temp4)
5767 delete arg4;
5768 }
5769 {
5770 if (temp7) delete arg7;
5771 }
5772 {
5773 if (temp10)
5774 delete arg10;
5775 }
5776 return resultobj;
5777 fail:
5778 {
5779 if (temp4)
5780 delete arg4;
5781 }
5782 {
5783 if (temp7) delete arg7;
5784 }
5785 {
5786 if (temp10)
5787 delete arg10;
5788 }
5789 return NULL;
5790 }
5791
5792
5793 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5794 PyObject *resultobj = 0;
5795 wxComboBox *arg1 = (wxComboBox *) 0 ;
5796 wxString result;
5797 void *argp1 = 0 ;
5798 int res1 = 0 ;
5799 PyObject *swig_obj[1] ;
5800
5801 if (!args) SWIG_fail;
5802 swig_obj[0] = args;
5803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5804 if (!SWIG_IsOK(res1)) {
5805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5806 }
5807 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5808 {
5809 PyThreadState* __tstate = wxPyBeginAllowThreads();
5810 result = ((wxComboBox const *)arg1)->GetValue();
5811 wxPyEndAllowThreads(__tstate);
5812 if (PyErr_Occurred()) SWIG_fail;
5813 }
5814 {
5815 #if wxUSE_UNICODE
5816 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5817 #else
5818 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5819 #endif
5820 }
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj = 0;
5829 wxComboBox *arg1 = (wxComboBox *) 0 ;
5830 wxString *arg2 = 0 ;
5831 void *argp1 = 0 ;
5832 int res1 = 0 ;
5833 bool temp2 = false ;
5834 PyObject * obj0 = 0 ;
5835 PyObject * obj1 = 0 ;
5836 char * kwnames[] = {
5837 (char *) "self",(char *) "value", NULL
5838 };
5839
5840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5842 if (!SWIG_IsOK(res1)) {
5843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5844 }
5845 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5846 {
5847 arg2 = wxString_in_helper(obj1);
5848 if (arg2 == NULL) SWIG_fail;
5849 temp2 = true;
5850 }
5851 {
5852 PyThreadState* __tstate = wxPyBeginAllowThreads();
5853 (arg1)->SetValue((wxString const &)*arg2);
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 resultobj = SWIG_Py_Void();
5858 {
5859 if (temp2)
5860 delete arg2;
5861 }
5862 return resultobj;
5863 fail:
5864 {
5865 if (temp2)
5866 delete arg2;
5867 }
5868 return NULL;
5869 }
5870
5871
5872 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5873 PyObject *resultobj = 0;
5874 wxComboBox *arg1 = (wxComboBox *) 0 ;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 PyObject *swig_obj[1] ;
5878
5879 if (!args) SWIG_fail;
5880 swig_obj[0] = args;
5881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5882 if (!SWIG_IsOK(res1)) {
5883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5884 }
5885 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 (arg1)->Copy();
5889 wxPyEndAllowThreads(__tstate);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 resultobj = SWIG_Py_Void();
5893 return resultobj;
5894 fail:
5895 return NULL;
5896 }
5897
5898
5899 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5900 PyObject *resultobj = 0;
5901 wxComboBox *arg1 = (wxComboBox *) 0 ;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 PyObject *swig_obj[1] ;
5905
5906 if (!args) SWIG_fail;
5907 swig_obj[0] = args;
5908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5911 }
5912 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 (arg1)->Cut();
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = SWIG_Py_Void();
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5927 PyObject *resultobj = 0;
5928 wxComboBox *arg1 = (wxComboBox *) 0 ;
5929 void *argp1 = 0 ;
5930 int res1 = 0 ;
5931 PyObject *swig_obj[1] ;
5932
5933 if (!args) SWIG_fail;
5934 swig_obj[0] = args;
5935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5936 if (!SWIG_IsOK(res1)) {
5937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5938 }
5939 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 (arg1)->Paste();
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 }
5946 resultobj = SWIG_Py_Void();
5947 return resultobj;
5948 fail:
5949 return NULL;
5950 }
5951
5952
5953 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj = 0;
5955 wxComboBox *arg1 = (wxComboBox *) 0 ;
5956 long arg2 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 long val2 ;
5960 int ecode2 = 0 ;
5961 PyObject * obj0 = 0 ;
5962 PyObject * obj1 = 0 ;
5963 char * kwnames[] = {
5964 (char *) "self",(char *) "pos", NULL
5965 };
5966
5967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5969 if (!SWIG_IsOK(res1)) {
5970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5971 }
5972 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5973 ecode2 = SWIG_AsVal_long(obj1, &val2);
5974 if (!SWIG_IsOK(ecode2)) {
5975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5976 }
5977 arg2 = static_cast< long >(val2);
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 (arg1)->SetInsertionPoint(arg2);
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 resultobj = SWIG_Py_Void();
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5992 PyObject *resultobj = 0;
5993 wxComboBox *arg1 = (wxComboBox *) 0 ;
5994 long result;
5995 void *argp1 = 0 ;
5996 int res1 = 0 ;
5997 PyObject *swig_obj[1] ;
5998
5999 if (!args) SWIG_fail;
6000 swig_obj[0] = args;
6001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6002 if (!SWIG_IsOK(res1)) {
6003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6004 }
6005 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_From_long(static_cast< long >(result));
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long arg2 ;
6051 long arg3 ;
6052 wxString *arg4 = 0 ;
6053 void *argp1 = 0 ;
6054 int res1 = 0 ;
6055 long val2 ;
6056 int ecode2 = 0 ;
6057 long val3 ;
6058 int ecode3 = 0 ;
6059 bool temp4 = false ;
6060 PyObject * obj0 = 0 ;
6061 PyObject * obj1 = 0 ;
6062 PyObject * obj2 = 0 ;
6063 PyObject * obj3 = 0 ;
6064 char * kwnames[] = {
6065 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
6066 };
6067
6068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6070 if (!SWIG_IsOK(res1)) {
6071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6072 }
6073 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6074 ecode2 = SWIG_AsVal_long(obj1, &val2);
6075 if (!SWIG_IsOK(ecode2)) {
6076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6077 }
6078 arg2 = static_cast< long >(val2);
6079 ecode3 = SWIG_AsVal_long(obj2, &val3);
6080 if (!SWIG_IsOK(ecode3)) {
6081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6082 }
6083 arg3 = static_cast< long >(val3);
6084 {
6085 arg4 = wxString_in_helper(obj3);
6086 if (arg4 == NULL) SWIG_fail;
6087 temp4 = true;
6088 }
6089 {
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 resultobj = SWIG_Py_Void();
6096 {
6097 if (temp4)
6098 delete arg4;
6099 }
6100 return resultobj;
6101 fail:
6102 {
6103 if (temp4)
6104 delete arg4;
6105 }
6106 return NULL;
6107 }
6108
6109
6110 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6111 PyObject *resultobj = 0;
6112 wxComboBox *arg1 = (wxComboBox *) 0 ;
6113 long arg2 ;
6114 long arg3 ;
6115 void *argp1 = 0 ;
6116 int res1 = 0 ;
6117 long val2 ;
6118 int ecode2 = 0 ;
6119 long val3 ;
6120 int ecode3 = 0 ;
6121 PyObject * obj0 = 0 ;
6122 PyObject * obj1 = 0 ;
6123 PyObject * obj2 = 0 ;
6124 char * kwnames[] = {
6125 (char *) "self",(char *) "_from",(char *) "to", NULL
6126 };
6127
6128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6130 if (!SWIG_IsOK(res1)) {
6131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6132 }
6133 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6134 ecode2 = SWIG_AsVal_long(obj1, &val2);
6135 if (!SWIG_IsOK(ecode2)) {
6136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6137 }
6138 arg2 = static_cast< long >(val2);
6139 ecode3 = SWIG_AsVal_long(obj2, &val3);
6140 if (!SWIG_IsOK(ecode3)) {
6141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6142 }
6143 arg3 = static_cast< long >(val3);
6144 {
6145 PyThreadState* __tstate = wxPyBeginAllowThreads();
6146 (arg1)->SetSelection(arg2,arg3);
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 resultobj = SWIG_Py_Void();
6151 return resultobj;
6152 fail:
6153 return NULL;
6154 }
6155
6156
6157 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6158 PyObject *resultobj = 0;
6159 wxComboBox *arg1 = (wxComboBox *) 0 ;
6160 long *arg2 = (long *) 0 ;
6161 long *arg3 = (long *) 0 ;
6162 void *argp1 = 0 ;
6163 int res1 = 0 ;
6164 long temp2 ;
6165 int res2 = SWIG_TMPOBJ ;
6166 long temp3 ;
6167 int res3 = SWIG_TMPOBJ ;
6168 PyObject *swig_obj[1] ;
6169
6170 arg2 = &temp2;
6171 arg3 = &temp3;
6172 if (!args) SWIG_fail;
6173 swig_obj[0] = args;
6174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6175 if (!SWIG_IsOK(res1)) {
6176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6177 }
6178 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6179 {
6180 PyThreadState* __tstate = wxPyBeginAllowThreads();
6181 (arg1)->GetSelection(arg2,arg3);
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 resultobj = SWIG_Py_Void();
6186 if (SWIG_IsTmpObj(res2)) {
6187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6188 } else {
6189 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6191 }
6192 if (SWIG_IsTmpObj(res3)) {
6193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6194 } else {
6195 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6197 }
6198 return resultobj;
6199 fail:
6200 return NULL;
6201 }
6202
6203
6204 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6205 PyObject *resultobj = 0;
6206 wxComboBox *arg1 = (wxComboBox *) 0 ;
6207 int result;
6208 void *argp1 = 0 ;
6209 int res1 = 0 ;
6210 PyObject *swig_obj[1] ;
6211
6212 if (!args) SWIG_fail;
6213 swig_obj[0] = args;
6214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6215 if (!SWIG_IsOK(res1)) {
6216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6217 }
6218 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6219 {
6220 PyThreadState* __tstate = wxPyBeginAllowThreads();
6221 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6222 wxPyEndAllowThreads(__tstate);
6223 if (PyErr_Occurred()) SWIG_fail;
6224 }
6225 resultobj = SWIG_From_int(static_cast< int >(result));
6226 return resultobj;
6227 fail:
6228 return NULL;
6229 }
6230
6231
6232 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6233 PyObject *resultobj = 0;
6234 wxComboBox *arg1 = (wxComboBox *) 0 ;
6235 wxString *arg2 = 0 ;
6236 bool result;
6237 void *argp1 = 0 ;
6238 int res1 = 0 ;
6239 bool temp2 = false ;
6240 PyObject * obj0 = 0 ;
6241 PyObject * obj1 = 0 ;
6242 char * kwnames[] = {
6243 (char *) "self",(char *) "string", NULL
6244 };
6245
6246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6248 if (!SWIG_IsOK(res1)) {
6249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6250 }
6251 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6252 {
6253 arg2 = wxString_in_helper(obj1);
6254 if (arg2 == NULL) SWIG_fail;
6255 temp2 = true;
6256 }
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 {
6264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6265 }
6266 {
6267 if (temp2)
6268 delete arg2;
6269 }
6270 return resultobj;
6271 fail:
6272 {
6273 if (temp2)
6274 delete arg2;
6275 }
6276 return NULL;
6277 }
6278
6279
6280 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6281 PyObject *resultobj = 0;
6282 wxComboBox *arg1 = (wxComboBox *) 0 ;
6283 bool arg2 ;
6284 void *argp1 = 0 ;
6285 int res1 = 0 ;
6286 bool val2 ;
6287 int ecode2 = 0 ;
6288 PyObject * obj0 = 0 ;
6289 PyObject * obj1 = 0 ;
6290 char * kwnames[] = {
6291 (char *) "self",(char *) "editable", NULL
6292 };
6293
6294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) 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_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6298 }
6299 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6300 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6301 if (!SWIG_IsOK(ecode2)) {
6302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6303 }
6304 arg2 = static_cast< bool >(val2);
6305 {
6306 PyThreadState* __tstate = wxPyBeginAllowThreads();
6307 (arg1)->SetEditable(arg2);
6308 wxPyEndAllowThreads(__tstate);
6309 if (PyErr_Occurred()) SWIG_fail;
6310 }
6311 resultobj = SWIG_Py_Void();
6312 return resultobj;
6313 fail:
6314 return NULL;
6315 }
6316
6317
6318 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6319 PyObject *resultobj = 0;
6320 wxComboBox *arg1 = (wxComboBox *) 0 ;
6321 void *argp1 = 0 ;
6322 int res1 = 0 ;
6323 PyObject *swig_obj[1] ;
6324
6325 if (!args) SWIG_fail;
6326 swig_obj[0] = args;
6327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6328 if (!SWIG_IsOK(res1)) {
6329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6330 }
6331 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 (arg1)->SetInsertionPointEnd();
6335 wxPyEndAllowThreads(__tstate);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 resultobj = SWIG_Py_Void();
6339 return resultobj;
6340 fail:
6341 return NULL;
6342 }
6343
6344
6345 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6346 PyObject *resultobj = 0;
6347 wxComboBox *arg1 = (wxComboBox *) 0 ;
6348 long arg2 ;
6349 long arg3 ;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 long val2 ;
6353 int ecode2 = 0 ;
6354 long val3 ;
6355 int ecode3 = 0 ;
6356 PyObject * obj0 = 0 ;
6357 PyObject * obj1 = 0 ;
6358 PyObject * obj2 = 0 ;
6359 char * kwnames[] = {
6360 (char *) "self",(char *) "_from",(char *) "to", NULL
6361 };
6362
6363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6365 if (!SWIG_IsOK(res1)) {
6366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6367 }
6368 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6369 ecode2 = SWIG_AsVal_long(obj1, &val2);
6370 if (!SWIG_IsOK(ecode2)) {
6371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6372 }
6373 arg2 = static_cast< long >(val2);
6374 ecode3 = SWIG_AsVal_long(obj2, &val3);
6375 if (!SWIG_IsOK(ecode3)) {
6376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6377 }
6378 arg3 = static_cast< long >(val3);
6379 {
6380 PyThreadState* __tstate = wxPyBeginAllowThreads();
6381 (arg1)->Remove(arg2,arg3);
6382 wxPyEndAllowThreads(__tstate);
6383 if (PyErr_Occurred()) SWIG_fail;
6384 }
6385 resultobj = SWIG_Py_Void();
6386 return resultobj;
6387 fail:
6388 return NULL;
6389 }
6390
6391
6392 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6393 PyObject *resultobj = 0;
6394 wxComboBox *arg1 = (wxComboBox *) 0 ;
6395 bool result;
6396 void *argp1 = 0 ;
6397 int res1 = 0 ;
6398 PyObject *swig_obj[1] ;
6399
6400 if (!args) SWIG_fail;
6401 swig_obj[0] = args;
6402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6403 if (!SWIG_IsOK(res1)) {
6404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6405 }
6406 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6407 {
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 {
6414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6415 }
6416 return resultobj;
6417 fail:
6418 return NULL;
6419 }
6420
6421
6422 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6423 PyObject *resultobj = 0;
6424 wxComboBox *arg1 = (wxComboBox *) 0 ;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 PyObject *swig_obj[1] ;
6428
6429 if (!args) SWIG_fail;
6430 swig_obj[0] = args;
6431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6432 if (!SWIG_IsOK(res1)) {
6433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6434 }
6435 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6436 {
6437 PyThreadState* __tstate = wxPyBeginAllowThreads();
6438 (arg1)->Undo();
6439 wxPyEndAllowThreads(__tstate);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 resultobj = SWIG_Py_Void();
6443 return resultobj;
6444 fail:
6445 return NULL;
6446 }
6447
6448
6449 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6450 PyObject *resultobj = 0;
6451 wxComboBox *arg1 = (wxComboBox *) 0 ;
6452 void *argp1 = 0 ;
6453 int res1 = 0 ;
6454 PyObject *swig_obj[1] ;
6455
6456 if (!args) SWIG_fail;
6457 swig_obj[0] = args;
6458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6459 if (!SWIG_IsOK(res1)) {
6460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6461 }
6462 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 (arg1)->Redo();
6466 wxPyEndAllowThreads(__tstate);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 resultobj = SWIG_Py_Void();
6470 return resultobj;
6471 fail:
6472 return NULL;
6473 }
6474
6475
6476 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6477 PyObject *resultobj = 0;
6478 wxComboBox *arg1 = (wxComboBox *) 0 ;
6479 void *argp1 = 0 ;
6480 int res1 = 0 ;
6481 PyObject *swig_obj[1] ;
6482
6483 if (!args) SWIG_fail;
6484 swig_obj[0] = args;
6485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6486 if (!SWIG_IsOK(res1)) {
6487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6488 }
6489 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 (arg1)->SelectAll();
6493 wxPyEndAllowThreads(__tstate);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 resultobj = SWIG_Py_Void();
6497 return resultobj;
6498 fail:
6499 return NULL;
6500 }
6501
6502
6503 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6504 PyObject *resultobj = 0;
6505 wxComboBox *arg1 = (wxComboBox *) 0 ;
6506 bool result;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 {
6525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6526 }
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6534 PyObject *resultobj = 0;
6535 wxComboBox *arg1 = (wxComboBox *) 0 ;
6536 bool result;
6537 void *argp1 = 0 ;
6538 int res1 = 0 ;
6539 PyObject *swig_obj[1] ;
6540
6541 if (!args) SWIG_fail;
6542 swig_obj[0] = args;
6543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6544 if (!SWIG_IsOK(res1)) {
6545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6546 }
6547 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6548 {
6549 PyThreadState* __tstate = wxPyBeginAllowThreads();
6550 result = (bool)((wxComboBox const *)arg1)->CanCut();
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 {
6555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6556 }
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6564 PyObject *resultobj = 0;
6565 wxComboBox *arg1 = (wxComboBox *) 0 ;
6566 bool result;
6567 void *argp1 = 0 ;
6568 int res1 = 0 ;
6569 PyObject *swig_obj[1] ;
6570
6571 if (!args) SWIG_fail;
6572 swig_obj[0] = args;
6573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6574 if (!SWIG_IsOK(res1)) {
6575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6576 }
6577 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6578 {
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 {
6585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6586 }
6587 return resultobj;
6588 fail:
6589 return NULL;
6590 }
6591
6592
6593 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6594 PyObject *resultobj = 0;
6595 wxComboBox *arg1 = (wxComboBox *) 0 ;
6596 bool result;
6597 void *argp1 = 0 ;
6598 int res1 = 0 ;
6599 PyObject *swig_obj[1] ;
6600
6601 if (!args) SWIG_fail;
6602 swig_obj[0] = args;
6603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6604 if (!SWIG_IsOK(res1)) {
6605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6606 }
6607 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6608 {
6609 PyThreadState* __tstate = wxPyBeginAllowThreads();
6610 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 {
6615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6616 }
6617 return resultobj;
6618 fail:
6619 return NULL;
6620 }
6621
6622
6623 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6624 PyObject *resultobj = 0;
6625 wxComboBox *arg1 = (wxComboBox *) 0 ;
6626 bool result;
6627 void *argp1 = 0 ;
6628 int res1 = 0 ;
6629 PyObject *swig_obj[1] ;
6630
6631 if (!args) SWIG_fail;
6632 swig_obj[0] = args;
6633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6634 if (!SWIG_IsOK(res1)) {
6635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6636 }
6637 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6641 wxPyEndAllowThreads(__tstate);
6642 if (PyErr_Occurred()) SWIG_fail;
6643 }
6644 {
6645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6646 }
6647 return resultobj;
6648 fail:
6649 return NULL;
6650 }
6651
6652
6653 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6654 PyObject *resultobj = 0;
6655 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6656 SwigValueWrapper<wxVisualAttributes > result;
6657 int val1 ;
6658 int ecode1 = 0 ;
6659 PyObject * obj0 = 0 ;
6660 char * kwnames[] = {
6661 (char *) "variant", NULL
6662 };
6663
6664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6665 if (obj0) {
6666 ecode1 = SWIG_AsVal_int(obj0, &val1);
6667 if (!SWIG_IsOK(ecode1)) {
6668 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6669 }
6670 arg1 = static_cast< wxWindowVariant >(val1);
6671 }
6672 {
6673 if (!wxPyCheckForApp()) SWIG_fail;
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = wxComboBox::GetClassDefaultAttributes(arg1);
6676 wxPyEndAllowThreads(__tstate);
6677 if (PyErr_Occurred()) SWIG_fail;
6678 }
6679 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6680 return resultobj;
6681 fail:
6682 return NULL;
6683 }
6684
6685
6686 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6687 PyObject *obj;
6688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6689 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6690 return SWIG_Py_Void();
6691 }
6692
6693 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6694 return SWIG_Python_InitShadowInstance(args);
6695 }
6696
6697 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6698 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6699 return 1;
6700 }
6701
6702
6703 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6704 PyObject *pyobj = 0;
6705
6706 {
6707 #if wxUSE_UNICODE
6708 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6709 #else
6710 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6711 #endif
6712 }
6713 return pyobj;
6714 }
6715
6716
6717 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6718 PyObject *resultobj = 0;
6719 wxWindow *arg1 = (wxWindow *) 0 ;
6720 int arg2 = (int) -1 ;
6721 int arg3 = (int) 100 ;
6722 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6723 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6724 wxSize const &arg5_defvalue = wxDefaultSize ;
6725 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6726 long arg6 = (long) wxGA_HORIZONTAL ;
6727 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6728 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6729 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6730 wxString *arg8 = (wxString *) &arg8_defvalue ;
6731 wxGauge *result = 0 ;
6732 void *argp1 = 0 ;
6733 int res1 = 0 ;
6734 int val2 ;
6735 int ecode2 = 0 ;
6736 int val3 ;
6737 int ecode3 = 0 ;
6738 wxPoint temp4 ;
6739 wxSize temp5 ;
6740 long val6 ;
6741 int ecode6 = 0 ;
6742 void *argp7 = 0 ;
6743 int res7 = 0 ;
6744 bool temp8 = false ;
6745 PyObject * obj0 = 0 ;
6746 PyObject * obj1 = 0 ;
6747 PyObject * obj2 = 0 ;
6748 PyObject * obj3 = 0 ;
6749 PyObject * obj4 = 0 ;
6750 PyObject * obj5 = 0 ;
6751 PyObject * obj6 = 0 ;
6752 PyObject * obj7 = 0 ;
6753 char * kwnames[] = {
6754 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6755 };
6756
6757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6759 if (!SWIG_IsOK(res1)) {
6760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6761 }
6762 arg1 = reinterpret_cast< wxWindow * >(argp1);
6763 if (obj1) {
6764 ecode2 = SWIG_AsVal_int(obj1, &val2);
6765 if (!SWIG_IsOK(ecode2)) {
6766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6767 }
6768 arg2 = static_cast< int >(val2);
6769 }
6770 if (obj2) {
6771 ecode3 = SWIG_AsVal_int(obj2, &val3);
6772 if (!SWIG_IsOK(ecode3)) {
6773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6774 }
6775 arg3 = static_cast< int >(val3);
6776 }
6777 if (obj3) {
6778 {
6779 arg4 = &temp4;
6780 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6781 }
6782 }
6783 if (obj4) {
6784 {
6785 arg5 = &temp5;
6786 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6787 }
6788 }
6789 if (obj5) {
6790 ecode6 = SWIG_AsVal_long(obj5, &val6);
6791 if (!SWIG_IsOK(ecode6)) {
6792 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6793 }
6794 arg6 = static_cast< long >(val6);
6795 }
6796 if (obj6) {
6797 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6798 if (!SWIG_IsOK(res7)) {
6799 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6800 }
6801 if (!argp7) {
6802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6803 }
6804 arg7 = reinterpret_cast< wxValidator * >(argp7);
6805 }
6806 if (obj7) {
6807 {
6808 arg8 = wxString_in_helper(obj7);
6809 if (arg8 == NULL) SWIG_fail;
6810 temp8 = true;
6811 }
6812 }
6813 {
6814 if (!wxPyCheckForApp()) SWIG_fail;
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6817 wxPyEndAllowThreads(__tstate);
6818 if (PyErr_Occurred()) SWIG_fail;
6819 }
6820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6821 {
6822 if (temp8)
6823 delete arg8;
6824 }
6825 return resultobj;
6826 fail:
6827 {
6828 if (temp8)
6829 delete arg8;
6830 }
6831 return NULL;
6832 }
6833
6834
6835 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6836 PyObject *resultobj = 0;
6837 wxGauge *result = 0 ;
6838
6839 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6840 {
6841 if (!wxPyCheckForApp()) SWIG_fail;
6842 PyThreadState* __tstate = wxPyBeginAllowThreads();
6843 result = (wxGauge *)new wxGauge();
6844 wxPyEndAllowThreads(__tstate);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = 0;
6856 wxGauge *arg1 = (wxGauge *) 0 ;
6857 wxWindow *arg2 = (wxWindow *) 0 ;
6858 int arg3 = (int) -1 ;
6859 int arg4 = (int) 100 ;
6860 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6861 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6862 wxSize const &arg6_defvalue = wxDefaultSize ;
6863 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6864 long arg7 = (long) wxGA_HORIZONTAL ;
6865 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6866 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6867 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6868 wxString *arg9 = (wxString *) &arg9_defvalue ;
6869 bool result;
6870 void *argp1 = 0 ;
6871 int res1 = 0 ;
6872 void *argp2 = 0 ;
6873 int res2 = 0 ;
6874 int val3 ;
6875 int ecode3 = 0 ;
6876 int val4 ;
6877 int ecode4 = 0 ;
6878 wxPoint temp5 ;
6879 wxSize temp6 ;
6880 long val7 ;
6881 int ecode7 = 0 ;
6882 void *argp8 = 0 ;
6883 int res8 = 0 ;
6884 bool temp9 = false ;
6885 PyObject * obj0 = 0 ;
6886 PyObject * obj1 = 0 ;
6887 PyObject * obj2 = 0 ;
6888 PyObject * obj3 = 0 ;
6889 PyObject * obj4 = 0 ;
6890 PyObject * obj5 = 0 ;
6891 PyObject * obj6 = 0 ;
6892 PyObject * obj7 = 0 ;
6893 PyObject * obj8 = 0 ;
6894 char * kwnames[] = {
6895 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6896 };
6897
6898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6900 if (!SWIG_IsOK(res1)) {
6901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6902 }
6903 arg1 = reinterpret_cast< wxGauge * >(argp1);
6904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6905 if (!SWIG_IsOK(res2)) {
6906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6907 }
6908 arg2 = reinterpret_cast< wxWindow * >(argp2);
6909 if (obj2) {
6910 ecode3 = SWIG_AsVal_int(obj2, &val3);
6911 if (!SWIG_IsOK(ecode3)) {
6912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6913 }
6914 arg3 = static_cast< int >(val3);
6915 }
6916 if (obj3) {
6917 ecode4 = SWIG_AsVal_int(obj3, &val4);
6918 if (!SWIG_IsOK(ecode4)) {
6919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6920 }
6921 arg4 = static_cast< int >(val4);
6922 }
6923 if (obj4) {
6924 {
6925 arg5 = &temp5;
6926 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6927 }
6928 }
6929 if (obj5) {
6930 {
6931 arg6 = &temp6;
6932 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6933 }
6934 }
6935 if (obj6) {
6936 ecode7 = SWIG_AsVal_long(obj6, &val7);
6937 if (!SWIG_IsOK(ecode7)) {
6938 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6939 }
6940 arg7 = static_cast< long >(val7);
6941 }
6942 if (obj7) {
6943 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6944 if (!SWIG_IsOK(res8)) {
6945 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6946 }
6947 if (!argp8) {
6948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6949 }
6950 arg8 = reinterpret_cast< wxValidator * >(argp8);
6951 }
6952 if (obj8) {
6953 {
6954 arg9 = wxString_in_helper(obj8);
6955 if (arg9 == NULL) SWIG_fail;
6956 temp9 = true;
6957 }
6958 }
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6962 wxPyEndAllowThreads(__tstate);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 {
6966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6967 }
6968 {
6969 if (temp9)
6970 delete arg9;
6971 }
6972 return resultobj;
6973 fail:
6974 {
6975 if (temp9)
6976 delete arg9;
6977 }
6978 return NULL;
6979 }
6980
6981
6982 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6983 PyObject *resultobj = 0;
6984 wxGauge *arg1 = (wxGauge *) 0 ;
6985 int arg2 ;
6986 void *argp1 = 0 ;
6987 int res1 = 0 ;
6988 int val2 ;
6989 int ecode2 = 0 ;
6990 PyObject * obj0 = 0 ;
6991 PyObject * obj1 = 0 ;
6992 char * kwnames[] = {
6993 (char *) "self",(char *) "range", NULL
6994 };
6995
6996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
6997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6998 if (!SWIG_IsOK(res1)) {
6999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7000 }
7001 arg1 = reinterpret_cast< wxGauge * >(argp1);
7002 ecode2 = SWIG_AsVal_int(obj1, &val2);
7003 if (!SWIG_IsOK(ecode2)) {
7004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7005 }
7006 arg2 = static_cast< int >(val2);
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 (arg1)->SetRange(arg2);
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 resultobj = SWIG_Py_Void();
7014 return resultobj;
7015 fail:
7016 return NULL;
7017 }
7018
7019
7020 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7021 PyObject *resultobj = 0;
7022 wxGauge *arg1 = (wxGauge *) 0 ;
7023 int result;
7024 void *argp1 = 0 ;
7025 int res1 = 0 ;
7026 PyObject *swig_obj[1] ;
7027
7028 if (!args) SWIG_fail;
7029 swig_obj[0] = args;
7030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7031 if (!SWIG_IsOK(res1)) {
7032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7033 }
7034 arg1 = reinterpret_cast< wxGauge * >(argp1);
7035 {
7036 PyThreadState* __tstate = wxPyBeginAllowThreads();
7037 result = (int)((wxGauge const *)arg1)->GetRange();
7038 wxPyEndAllowThreads(__tstate);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 resultobj = SWIG_From_int(static_cast< int >(result));
7042 return resultobj;
7043 fail:
7044 return NULL;
7045 }
7046
7047
7048 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj = 0;
7050 wxGauge *arg1 = (wxGauge *) 0 ;
7051 int arg2 ;
7052 void *argp1 = 0 ;
7053 int res1 = 0 ;
7054 int val2 ;
7055 int ecode2 = 0 ;
7056 PyObject * obj0 = 0 ;
7057 PyObject * obj1 = 0 ;
7058 char * kwnames[] = {
7059 (char *) "self",(char *) "pos", NULL
7060 };
7061
7062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7066 }
7067 arg1 = reinterpret_cast< wxGauge * >(argp1);
7068 ecode2 = SWIG_AsVal_int(obj1, &val2);
7069 if (!SWIG_IsOK(ecode2)) {
7070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7071 }
7072 arg2 = static_cast< int >(val2);
7073 {
7074 PyThreadState* __tstate = wxPyBeginAllowThreads();
7075 (arg1)->SetValue(arg2);
7076 wxPyEndAllowThreads(__tstate);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 resultobj = SWIG_Py_Void();
7080 return resultobj;
7081 fail:
7082 return NULL;
7083 }
7084
7085
7086 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7087 PyObject *resultobj = 0;
7088 wxGauge *arg1 = (wxGauge *) 0 ;
7089 int result;
7090 void *argp1 = 0 ;
7091 int res1 = 0 ;
7092 PyObject *swig_obj[1] ;
7093
7094 if (!args) SWIG_fail;
7095 swig_obj[0] = args;
7096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7097 if (!SWIG_IsOK(res1)) {
7098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7099 }
7100 arg1 = reinterpret_cast< wxGauge * >(argp1);
7101 {
7102 PyThreadState* __tstate = wxPyBeginAllowThreads();
7103 result = (int)((wxGauge const *)arg1)->GetValue();
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 resultobj = SWIG_From_int(static_cast< int >(result));
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7115 PyObject *resultobj = 0;
7116 wxGauge *arg1 = (wxGauge *) 0 ;
7117 bool result;
7118 void *argp1 = 0 ;
7119 int res1 = 0 ;
7120 PyObject *swig_obj[1] ;
7121
7122 if (!args) SWIG_fail;
7123 swig_obj[0] = args;
7124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7127 }
7128 arg1 = reinterpret_cast< wxGauge * >(argp1);
7129 {
7130 PyThreadState* __tstate = wxPyBeginAllowThreads();
7131 result = (bool)((wxGauge const *)arg1)->IsVertical();
7132 wxPyEndAllowThreads(__tstate);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 {
7136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7137 }
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj = 0;
7146 wxGauge *arg1 = (wxGauge *) 0 ;
7147 int arg2 ;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 int val2 ;
7151 int ecode2 = 0 ;
7152 PyObject * obj0 = 0 ;
7153 PyObject * obj1 = 0 ;
7154 char * kwnames[] = {
7155 (char *) "self",(char *) "w", NULL
7156 };
7157
7158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7160 if (!SWIG_IsOK(res1)) {
7161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7162 }
7163 arg1 = reinterpret_cast< wxGauge * >(argp1);
7164 ecode2 = SWIG_AsVal_int(obj1, &val2);
7165 if (!SWIG_IsOK(ecode2)) {
7166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7167 }
7168 arg2 = static_cast< int >(val2);
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 (arg1)->SetShadowWidth(arg2);
7172 wxPyEndAllowThreads(__tstate);
7173 if (PyErr_Occurred()) SWIG_fail;
7174 }
7175 resultobj = SWIG_Py_Void();
7176 return resultobj;
7177 fail:
7178 return NULL;
7179 }
7180
7181
7182 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7183 PyObject *resultobj = 0;
7184 wxGauge *arg1 = (wxGauge *) 0 ;
7185 int result;
7186 void *argp1 = 0 ;
7187 int res1 = 0 ;
7188 PyObject *swig_obj[1] ;
7189
7190 if (!args) SWIG_fail;
7191 swig_obj[0] = args;
7192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7193 if (!SWIG_IsOK(res1)) {
7194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7195 }
7196 arg1 = reinterpret_cast< wxGauge * >(argp1);
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_From_int(static_cast< int >(result));
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj = 0;
7212 wxGauge *arg1 = (wxGauge *) 0 ;
7213 int arg2 ;
7214 void *argp1 = 0 ;
7215 int res1 = 0 ;
7216 int val2 ;
7217 int ecode2 = 0 ;
7218 PyObject * obj0 = 0 ;
7219 PyObject * obj1 = 0 ;
7220 char * kwnames[] = {
7221 (char *) "self",(char *) "w", NULL
7222 };
7223
7224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7226 if (!SWIG_IsOK(res1)) {
7227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7228 }
7229 arg1 = reinterpret_cast< wxGauge * >(argp1);
7230 ecode2 = SWIG_AsVal_int(obj1, &val2);
7231 if (!SWIG_IsOK(ecode2)) {
7232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7233 }
7234 arg2 = static_cast< int >(val2);
7235 {
7236 PyThreadState* __tstate = wxPyBeginAllowThreads();
7237 (arg1)->SetBezelFace(arg2);
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_Py_Void();
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7249 PyObject *resultobj = 0;
7250 wxGauge *arg1 = (wxGauge *) 0 ;
7251 int result;
7252 void *argp1 = 0 ;
7253 int res1 = 0 ;
7254 PyObject *swig_obj[1] ;
7255
7256 if (!args) SWIG_fail;
7257 swig_obj[0] = args;
7258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7259 if (!SWIG_IsOK(res1)) {
7260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7261 }
7262 arg1 = reinterpret_cast< wxGauge * >(argp1);
7263 {
7264 PyThreadState* __tstate = wxPyBeginAllowThreads();
7265 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7266 wxPyEndAllowThreads(__tstate);
7267 if (PyErr_Occurred()) SWIG_fail;
7268 }
7269 resultobj = SWIG_From_int(static_cast< int >(result));
7270 return resultobj;
7271 fail:
7272 return NULL;
7273 }
7274
7275
7276 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj = 0;
7278 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7279 SwigValueWrapper<wxVisualAttributes > result;
7280 int val1 ;
7281 int ecode1 = 0 ;
7282 PyObject * obj0 = 0 ;
7283 char * kwnames[] = {
7284 (char *) "variant", NULL
7285 };
7286
7287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7288 if (obj0) {
7289 ecode1 = SWIG_AsVal_int(obj0, &val1);
7290 if (!SWIG_IsOK(ecode1)) {
7291 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7292 }
7293 arg1 = static_cast< wxWindowVariant >(val1);
7294 }
7295 {
7296 if (!wxPyCheckForApp()) SWIG_fail;
7297 PyThreadState* __tstate = wxPyBeginAllowThreads();
7298 result = wxGauge::GetClassDefaultAttributes(arg1);
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7303 return resultobj;
7304 fail:
7305 return NULL;
7306 }
7307
7308
7309 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7310 PyObject *obj;
7311 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7312 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7313 return SWIG_Py_Void();
7314 }
7315
7316 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7317 return SWIG_Python_InitShadowInstance(args);
7318 }
7319
7320 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7321 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7322 return 1;
7323 }
7324
7325
7326 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7327 PyObject *pyobj = 0;
7328
7329 {
7330 #if wxUSE_UNICODE
7331 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7332 #else
7333 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7334 #endif
7335 }
7336 return pyobj;
7337 }
7338
7339
7340 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7341 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7342 return 1;
7343 }
7344
7345
7346 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7347 PyObject *pyobj = 0;
7348
7349 {
7350 #if wxUSE_UNICODE
7351 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7352 #else
7353 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7354 #endif
7355 }
7356 return pyobj;
7357 }
7358
7359
7360 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7361 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7362 return 1;
7363 }
7364
7365
7366 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7367 PyObject *pyobj = 0;
7368
7369 {
7370 #if wxUSE_UNICODE
7371 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7372 #else
7373 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7374 #endif
7375 }
7376 return pyobj;
7377 }
7378
7379
7380 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7381 PyObject *resultobj = 0;
7382 wxWindow *arg1 = (wxWindow *) 0 ;
7383 int arg2 = (int) -1 ;
7384 wxString const &arg3_defvalue = wxPyEmptyString ;
7385 wxString *arg3 = (wxString *) &arg3_defvalue ;
7386 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7387 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7388 wxSize const &arg5_defvalue = wxDefaultSize ;
7389 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7390 long arg6 = (long) 0 ;
7391 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7392 wxString *arg7 = (wxString *) &arg7_defvalue ;
7393 wxStaticBox *result = 0 ;
7394 void *argp1 = 0 ;
7395 int res1 = 0 ;
7396 int val2 ;
7397 int ecode2 = 0 ;
7398 bool temp3 = false ;
7399 wxPoint temp4 ;
7400 wxSize temp5 ;
7401 long val6 ;
7402 int ecode6 = 0 ;
7403 bool temp7 = false ;
7404 PyObject * obj0 = 0 ;
7405 PyObject * obj1 = 0 ;
7406 PyObject * obj2 = 0 ;
7407 PyObject * obj3 = 0 ;
7408 PyObject * obj4 = 0 ;
7409 PyObject * obj5 = 0 ;
7410 PyObject * obj6 = 0 ;
7411 char * kwnames[] = {
7412 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7413 };
7414
7415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7417 if (!SWIG_IsOK(res1)) {
7418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7419 }
7420 arg1 = reinterpret_cast< wxWindow * >(argp1);
7421 if (obj1) {
7422 ecode2 = SWIG_AsVal_int(obj1, &val2);
7423 if (!SWIG_IsOK(ecode2)) {
7424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7425 }
7426 arg2 = static_cast< int >(val2);
7427 }
7428 if (obj2) {
7429 {
7430 arg3 = wxString_in_helper(obj2);
7431 if (arg3 == NULL) SWIG_fail;
7432 temp3 = true;
7433 }
7434 }
7435 if (obj3) {
7436 {
7437 arg4 = &temp4;
7438 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7439 }
7440 }
7441 if (obj4) {
7442 {
7443 arg5 = &temp5;
7444 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7445 }
7446 }
7447 if (obj5) {
7448 ecode6 = SWIG_AsVal_long(obj5, &val6);
7449 if (!SWIG_IsOK(ecode6)) {
7450 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7451 }
7452 arg6 = static_cast< long >(val6);
7453 }
7454 if (obj6) {
7455 {
7456 arg7 = wxString_in_helper(obj6);
7457 if (arg7 == NULL) SWIG_fail;
7458 temp7 = true;
7459 }
7460 }
7461 {
7462 if (!wxPyCheckForApp()) SWIG_fail;
7463 PyThreadState* __tstate = wxPyBeginAllowThreads();
7464 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
7468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7469 {
7470 if (temp3)
7471 delete arg3;
7472 }
7473 {
7474 if (temp7)
7475 delete arg7;
7476 }
7477 return resultobj;
7478 fail:
7479 {
7480 if (temp3)
7481 delete arg3;
7482 }
7483 {
7484 if (temp7)
7485 delete arg7;
7486 }
7487 return NULL;
7488 }
7489
7490
7491 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7492 PyObject *resultobj = 0;
7493 wxStaticBox *result = 0 ;
7494
7495 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7496 {
7497 if (!wxPyCheckForApp()) SWIG_fail;
7498 PyThreadState* __tstate = wxPyBeginAllowThreads();
7499 result = (wxStaticBox *)new wxStaticBox();
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7504 return resultobj;
7505 fail:
7506 return NULL;
7507 }
7508
7509
7510 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7511 PyObject *resultobj = 0;
7512 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7513 wxWindow *arg2 = (wxWindow *) 0 ;
7514 int arg3 = (int) -1 ;
7515 wxString const &arg4_defvalue = wxPyEmptyString ;
7516 wxString *arg4 = (wxString *) &arg4_defvalue ;
7517 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7518 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7519 wxSize const &arg6_defvalue = wxDefaultSize ;
7520 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7521 long arg7 = (long) 0 ;
7522 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7523 wxString *arg8 = (wxString *) &arg8_defvalue ;
7524 bool result;
7525 void *argp1 = 0 ;
7526 int res1 = 0 ;
7527 void *argp2 = 0 ;
7528 int res2 = 0 ;
7529 int val3 ;
7530 int ecode3 = 0 ;
7531 bool temp4 = false ;
7532 wxPoint temp5 ;
7533 wxSize temp6 ;
7534 long val7 ;
7535 int ecode7 = 0 ;
7536 bool temp8 = false ;
7537 PyObject * obj0 = 0 ;
7538 PyObject * obj1 = 0 ;
7539 PyObject * obj2 = 0 ;
7540 PyObject * obj3 = 0 ;
7541 PyObject * obj4 = 0 ;
7542 PyObject * obj5 = 0 ;
7543 PyObject * obj6 = 0 ;
7544 PyObject * obj7 = 0 ;
7545 char * kwnames[] = {
7546 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7547 };
7548
7549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7551 if (!SWIG_IsOK(res1)) {
7552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7553 }
7554 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7555 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7556 if (!SWIG_IsOK(res2)) {
7557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7558 }
7559 arg2 = reinterpret_cast< wxWindow * >(argp2);
7560 if (obj2) {
7561 ecode3 = SWIG_AsVal_int(obj2, &val3);
7562 if (!SWIG_IsOK(ecode3)) {
7563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7564 }
7565 arg3 = static_cast< int >(val3);
7566 }
7567 if (obj3) {
7568 {
7569 arg4 = wxString_in_helper(obj3);
7570 if (arg4 == NULL) SWIG_fail;
7571 temp4 = true;
7572 }
7573 }
7574 if (obj4) {
7575 {
7576 arg5 = &temp5;
7577 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7578 }
7579 }
7580 if (obj5) {
7581 {
7582 arg6 = &temp6;
7583 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7584 }
7585 }
7586 if (obj6) {
7587 ecode7 = SWIG_AsVal_long(obj6, &val7);
7588 if (!SWIG_IsOK(ecode7)) {
7589 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7590 }
7591 arg7 = static_cast< long >(val7);
7592 }
7593 if (obj7) {
7594 {
7595 arg8 = wxString_in_helper(obj7);
7596 if (arg8 == NULL) SWIG_fail;
7597 temp8 = true;
7598 }
7599 }
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7603 wxPyEndAllowThreads(__tstate);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 {
7607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7608 }
7609 {
7610 if (temp4)
7611 delete arg4;
7612 }
7613 {
7614 if (temp8)
7615 delete arg8;
7616 }
7617 return resultobj;
7618 fail:
7619 {
7620 if (temp4)
7621 delete arg4;
7622 }
7623 {
7624 if (temp8)
7625 delete arg8;
7626 }
7627 return NULL;
7628 }
7629
7630
7631 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7632 PyObject *resultobj = 0;
7633 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7634 SwigValueWrapper<wxVisualAttributes > result;
7635 int val1 ;
7636 int ecode1 = 0 ;
7637 PyObject * obj0 = 0 ;
7638 char * kwnames[] = {
7639 (char *) "variant", NULL
7640 };
7641
7642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7643 if (obj0) {
7644 ecode1 = SWIG_AsVal_int(obj0, &val1);
7645 if (!SWIG_IsOK(ecode1)) {
7646 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7647 }
7648 arg1 = static_cast< wxWindowVariant >(val1);
7649 }
7650 {
7651 if (!wxPyCheckForApp()) SWIG_fail;
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7654 wxPyEndAllowThreads(__tstate);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7658 return resultobj;
7659 fail:
7660 return NULL;
7661 }
7662
7663
7664 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7665 PyObject *obj;
7666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7667 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7668 return SWIG_Py_Void();
7669 }
7670
7671 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7672 return SWIG_Python_InitShadowInstance(args);
7673 }
7674
7675 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7676 PyObject *resultobj = 0;
7677 wxWindow *arg1 = (wxWindow *) 0 ;
7678 int arg2 = (int) -1 ;
7679 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7680 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7681 wxSize const &arg4_defvalue = wxDefaultSize ;
7682 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7683 long arg5 = (long) wxLI_HORIZONTAL ;
7684 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7685 wxString *arg6 = (wxString *) &arg6_defvalue ;
7686 wxStaticLine *result = 0 ;
7687 void *argp1 = 0 ;
7688 int res1 = 0 ;
7689 int val2 ;
7690 int ecode2 = 0 ;
7691 wxPoint temp3 ;
7692 wxSize temp4 ;
7693 long val5 ;
7694 int ecode5 = 0 ;
7695 bool temp6 = false ;
7696 PyObject * obj0 = 0 ;
7697 PyObject * obj1 = 0 ;
7698 PyObject * obj2 = 0 ;
7699 PyObject * obj3 = 0 ;
7700 PyObject * obj4 = 0 ;
7701 PyObject * obj5 = 0 ;
7702 char * kwnames[] = {
7703 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7704 };
7705
7706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7708 if (!SWIG_IsOK(res1)) {
7709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7710 }
7711 arg1 = reinterpret_cast< wxWindow * >(argp1);
7712 if (obj1) {
7713 ecode2 = SWIG_AsVal_int(obj1, &val2);
7714 if (!SWIG_IsOK(ecode2)) {
7715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7716 }
7717 arg2 = static_cast< int >(val2);
7718 }
7719 if (obj2) {
7720 {
7721 arg3 = &temp3;
7722 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7723 }
7724 }
7725 if (obj3) {
7726 {
7727 arg4 = &temp4;
7728 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7729 }
7730 }
7731 if (obj4) {
7732 ecode5 = SWIG_AsVal_long(obj4, &val5);
7733 if (!SWIG_IsOK(ecode5)) {
7734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7735 }
7736 arg5 = static_cast< long >(val5);
7737 }
7738 if (obj5) {
7739 {
7740 arg6 = wxString_in_helper(obj5);
7741 if (arg6 == NULL) SWIG_fail;
7742 temp6 = true;
7743 }
7744 }
7745 {
7746 if (!wxPyCheckForApp()) SWIG_fail;
7747 PyThreadState* __tstate = wxPyBeginAllowThreads();
7748 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7749 wxPyEndAllowThreads(__tstate);
7750 if (PyErr_Occurred()) SWIG_fail;
7751 }
7752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7753 {
7754 if (temp6)
7755 delete arg6;
7756 }
7757 return resultobj;
7758 fail:
7759 {
7760 if (temp6)
7761 delete arg6;
7762 }
7763 return NULL;
7764 }
7765
7766
7767 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7768 PyObject *resultobj = 0;
7769 wxStaticLine *result = 0 ;
7770
7771 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7772 {
7773 if (!wxPyCheckForApp()) SWIG_fail;
7774 PyThreadState* __tstate = wxPyBeginAllowThreads();
7775 result = (wxStaticLine *)new wxStaticLine();
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
7779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7780 return resultobj;
7781 fail:
7782 return NULL;
7783 }
7784
7785
7786 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7787 PyObject *resultobj = 0;
7788 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7789 wxWindow *arg2 = (wxWindow *) 0 ;
7790 int arg3 = (int) -1 ;
7791 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7792 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7793 wxSize const &arg5_defvalue = wxDefaultSize ;
7794 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7795 long arg6 = (long) wxLI_HORIZONTAL ;
7796 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7797 wxString *arg7 = (wxString *) &arg7_defvalue ;
7798 bool result;
7799 void *argp1 = 0 ;
7800 int res1 = 0 ;
7801 void *argp2 = 0 ;
7802 int res2 = 0 ;
7803 int val3 ;
7804 int ecode3 = 0 ;
7805 wxPoint temp4 ;
7806 wxSize temp5 ;
7807 long val6 ;
7808 int ecode6 = 0 ;
7809 bool temp7 = false ;
7810 PyObject * obj0 = 0 ;
7811 PyObject * obj1 = 0 ;
7812 PyObject * obj2 = 0 ;
7813 PyObject * obj3 = 0 ;
7814 PyObject * obj4 = 0 ;
7815 PyObject * obj5 = 0 ;
7816 PyObject * obj6 = 0 ;
7817 char * kwnames[] = {
7818 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7819 };
7820
7821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7823 if (!SWIG_IsOK(res1)) {
7824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7825 }
7826 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7827 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7828 if (!SWIG_IsOK(res2)) {
7829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7830 }
7831 arg2 = reinterpret_cast< wxWindow * >(argp2);
7832 if (obj2) {
7833 ecode3 = SWIG_AsVal_int(obj2, &val3);
7834 if (!SWIG_IsOK(ecode3)) {
7835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7836 }
7837 arg3 = static_cast< int >(val3);
7838 }
7839 if (obj3) {
7840 {
7841 arg4 = &temp4;
7842 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7843 }
7844 }
7845 if (obj4) {
7846 {
7847 arg5 = &temp5;
7848 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7849 }
7850 }
7851 if (obj5) {
7852 ecode6 = SWIG_AsVal_long(obj5, &val6);
7853 if (!SWIG_IsOK(ecode6)) {
7854 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7855 }
7856 arg6 = static_cast< long >(val6);
7857 }
7858 if (obj6) {
7859 {
7860 arg7 = wxString_in_helper(obj6);
7861 if (arg7 == NULL) SWIG_fail;
7862 temp7 = true;
7863 }
7864 }
7865 {
7866 PyThreadState* __tstate = wxPyBeginAllowThreads();
7867 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 {
7872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7873 }
7874 {
7875 if (temp7)
7876 delete arg7;
7877 }
7878 return resultobj;
7879 fail:
7880 {
7881 if (temp7)
7882 delete arg7;
7883 }
7884 return NULL;
7885 }
7886
7887
7888 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7889 PyObject *resultobj = 0;
7890 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7891 bool result;
7892 void *argp1 = 0 ;
7893 int res1 = 0 ;
7894 PyObject *swig_obj[1] ;
7895
7896 if (!args) SWIG_fail;
7897 swig_obj[0] = args;
7898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7899 if (!SWIG_IsOK(res1)) {
7900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7901 }
7902 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7906 wxPyEndAllowThreads(__tstate);
7907 if (PyErr_Occurred()) SWIG_fail;
7908 }
7909 {
7910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7911 }
7912 return resultobj;
7913 fail:
7914 return NULL;
7915 }
7916
7917
7918 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7919 PyObject *resultobj = 0;
7920 int result;
7921
7922 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7923 {
7924 PyThreadState* __tstate = wxPyBeginAllowThreads();
7925 result = (int)wxStaticLine::GetDefaultSize();
7926 wxPyEndAllowThreads(__tstate);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 resultobj = SWIG_From_int(static_cast< int >(result));
7930 return resultobj;
7931 fail:
7932 return NULL;
7933 }
7934
7935
7936 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7937 PyObject *resultobj = 0;
7938 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7939 SwigValueWrapper<wxVisualAttributes > result;
7940 int val1 ;
7941 int ecode1 = 0 ;
7942 PyObject * obj0 = 0 ;
7943 char * kwnames[] = {
7944 (char *) "variant", NULL
7945 };
7946
7947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7948 if (obj0) {
7949 ecode1 = SWIG_AsVal_int(obj0, &val1);
7950 if (!SWIG_IsOK(ecode1)) {
7951 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7952 }
7953 arg1 = static_cast< wxWindowVariant >(val1);
7954 }
7955 {
7956 if (!wxPyCheckForApp()) SWIG_fail;
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7959 wxPyEndAllowThreads(__tstate);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7970 PyObject *obj;
7971 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7972 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
7973 return SWIG_Py_Void();
7974 }
7975
7976 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7977 return SWIG_Python_InitShadowInstance(args);
7978 }
7979
7980 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj = 0;
7982 wxWindow *arg1 = (wxWindow *) 0 ;
7983 int arg2 = (int) -1 ;
7984 wxString const &arg3_defvalue = wxPyEmptyString ;
7985 wxString *arg3 = (wxString *) &arg3_defvalue ;
7986 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7987 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7988 wxSize const &arg5_defvalue = wxDefaultSize ;
7989 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7990 long arg6 = (long) 0 ;
7991 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7992 wxString *arg7 = (wxString *) &arg7_defvalue ;
7993 wxStaticText *result = 0 ;
7994 void *argp1 = 0 ;
7995 int res1 = 0 ;
7996 int val2 ;
7997 int ecode2 = 0 ;
7998 bool temp3 = false ;
7999 wxPoint temp4 ;
8000 wxSize temp5 ;
8001 long val6 ;
8002 int ecode6 = 0 ;
8003 bool temp7 = false ;
8004 PyObject * obj0 = 0 ;
8005 PyObject * obj1 = 0 ;
8006 PyObject * obj2 = 0 ;
8007 PyObject * obj3 = 0 ;
8008 PyObject * obj4 = 0 ;
8009 PyObject * obj5 = 0 ;
8010 PyObject * obj6 = 0 ;
8011 char * kwnames[] = {
8012 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8013 };
8014
8015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8017 if (!SWIG_IsOK(res1)) {
8018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8019 }
8020 arg1 = reinterpret_cast< wxWindow * >(argp1);
8021 if (obj1) {
8022 ecode2 = SWIG_AsVal_int(obj1, &val2);
8023 if (!SWIG_IsOK(ecode2)) {
8024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8025 }
8026 arg2 = static_cast< int >(val2);
8027 }
8028 if (obj2) {
8029 {
8030 arg3 = wxString_in_helper(obj2);
8031 if (arg3 == NULL) SWIG_fail;
8032 temp3 = true;
8033 }
8034 }
8035 if (obj3) {
8036 {
8037 arg4 = &temp4;
8038 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8039 }
8040 }
8041 if (obj4) {
8042 {
8043 arg5 = &temp5;
8044 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8045 }
8046 }
8047 if (obj5) {
8048 ecode6 = SWIG_AsVal_long(obj5, &val6);
8049 if (!SWIG_IsOK(ecode6)) {
8050 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8051 }
8052 arg6 = static_cast< long >(val6);
8053 }
8054 if (obj6) {
8055 {
8056 arg7 = wxString_in_helper(obj6);
8057 if (arg7 == NULL) SWIG_fail;
8058 temp7 = true;
8059 }
8060 }
8061 {
8062 if (!wxPyCheckForApp()) SWIG_fail;
8063 PyThreadState* __tstate = wxPyBeginAllowThreads();
8064 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8065 wxPyEndAllowThreads(__tstate);
8066 if (PyErr_Occurred()) SWIG_fail;
8067 }
8068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8069 {
8070 if (temp3)
8071 delete arg3;
8072 }
8073 {
8074 if (temp7)
8075 delete arg7;
8076 }
8077 return resultobj;
8078 fail:
8079 {
8080 if (temp3)
8081 delete arg3;
8082 }
8083 {
8084 if (temp7)
8085 delete arg7;
8086 }
8087 return NULL;
8088 }
8089
8090
8091 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8092 PyObject *resultobj = 0;
8093 wxStaticText *result = 0 ;
8094
8095 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8096 {
8097 if (!wxPyCheckForApp()) SWIG_fail;
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = (wxStaticText *)new wxStaticText();
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8104 return resultobj;
8105 fail:
8106 return NULL;
8107 }
8108
8109
8110 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8111 PyObject *resultobj = 0;
8112 wxStaticText *arg1 = (wxStaticText *) 0 ;
8113 wxWindow *arg2 = (wxWindow *) 0 ;
8114 int arg3 = (int) -1 ;
8115 wxString const &arg4_defvalue = wxPyEmptyString ;
8116 wxString *arg4 = (wxString *) &arg4_defvalue ;
8117 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8118 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8119 wxSize const &arg6_defvalue = wxDefaultSize ;
8120 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8121 long arg7 = (long) 0 ;
8122 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8123 wxString *arg8 = (wxString *) &arg8_defvalue ;
8124 bool result;
8125 void *argp1 = 0 ;
8126 int res1 = 0 ;
8127 void *argp2 = 0 ;
8128 int res2 = 0 ;
8129 int val3 ;
8130 int ecode3 = 0 ;
8131 bool temp4 = false ;
8132 wxPoint temp5 ;
8133 wxSize temp6 ;
8134 long val7 ;
8135 int ecode7 = 0 ;
8136 bool temp8 = false ;
8137 PyObject * obj0 = 0 ;
8138 PyObject * obj1 = 0 ;
8139 PyObject * obj2 = 0 ;
8140 PyObject * obj3 = 0 ;
8141 PyObject * obj4 = 0 ;
8142 PyObject * obj5 = 0 ;
8143 PyObject * obj6 = 0 ;
8144 PyObject * obj7 = 0 ;
8145 char * kwnames[] = {
8146 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8147 };
8148
8149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8151 if (!SWIG_IsOK(res1)) {
8152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8153 }
8154 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8156 if (!SWIG_IsOK(res2)) {
8157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8158 }
8159 arg2 = reinterpret_cast< wxWindow * >(argp2);
8160 if (obj2) {
8161 ecode3 = SWIG_AsVal_int(obj2, &val3);
8162 if (!SWIG_IsOK(ecode3)) {
8163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8164 }
8165 arg3 = static_cast< int >(val3);
8166 }
8167 if (obj3) {
8168 {
8169 arg4 = wxString_in_helper(obj3);
8170 if (arg4 == NULL) SWIG_fail;
8171 temp4 = true;
8172 }
8173 }
8174 if (obj4) {
8175 {
8176 arg5 = &temp5;
8177 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8178 }
8179 }
8180 if (obj5) {
8181 {
8182 arg6 = &temp6;
8183 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8184 }
8185 }
8186 if (obj6) {
8187 ecode7 = SWIG_AsVal_long(obj6, &val7);
8188 if (!SWIG_IsOK(ecode7)) {
8189 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8190 }
8191 arg7 = static_cast< long >(val7);
8192 }
8193 if (obj7) {
8194 {
8195 arg8 = wxString_in_helper(obj7);
8196 if (arg8 == NULL) SWIG_fail;
8197 temp8 = true;
8198 }
8199 }
8200 {
8201 PyThreadState* __tstate = wxPyBeginAllowThreads();
8202 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8203 wxPyEndAllowThreads(__tstate);
8204 if (PyErr_Occurred()) SWIG_fail;
8205 }
8206 {
8207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8208 }
8209 {
8210 if (temp4)
8211 delete arg4;
8212 }
8213 {
8214 if (temp8)
8215 delete arg8;
8216 }
8217 return resultobj;
8218 fail:
8219 {
8220 if (temp4)
8221 delete arg4;
8222 }
8223 {
8224 if (temp8)
8225 delete arg8;
8226 }
8227 return NULL;
8228 }
8229
8230
8231 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8232 PyObject *resultobj = 0;
8233 wxStaticText *arg1 = (wxStaticText *) 0 ;
8234 int arg2 ;
8235 void *argp1 = 0 ;
8236 int res1 = 0 ;
8237 int val2 ;
8238 int ecode2 = 0 ;
8239 PyObject * obj0 = 0 ;
8240 PyObject * obj1 = 0 ;
8241 char * kwnames[] = {
8242 (char *) "self",(char *) "width", NULL
8243 };
8244
8245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8247 if (!SWIG_IsOK(res1)) {
8248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8249 }
8250 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8251 ecode2 = SWIG_AsVal_int(obj1, &val2);
8252 if (!SWIG_IsOK(ecode2)) {
8253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8254 }
8255 arg2 = static_cast< int >(val2);
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 (arg1)->Wrap(arg2);
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 resultobj = SWIG_Py_Void();
8263 return resultobj;
8264 fail:
8265 return NULL;
8266 }
8267
8268
8269 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj = 0;
8271 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8272 SwigValueWrapper<wxVisualAttributes > result;
8273 int val1 ;
8274 int ecode1 = 0 ;
8275 PyObject * obj0 = 0 ;
8276 char * kwnames[] = {
8277 (char *) "variant", NULL
8278 };
8279
8280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8281 if (obj0) {
8282 ecode1 = SWIG_AsVal_int(obj0, &val1);
8283 if (!SWIG_IsOK(ecode1)) {
8284 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8285 }
8286 arg1 = static_cast< wxWindowVariant >(val1);
8287 }
8288 {
8289 if (!wxPyCheckForApp()) SWIG_fail;
8290 PyThreadState* __tstate = wxPyBeginAllowThreads();
8291 result = wxStaticText::GetClassDefaultAttributes(arg1);
8292 wxPyEndAllowThreads(__tstate);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8296 return resultobj;
8297 fail:
8298 return NULL;
8299 }
8300
8301
8302 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8303 PyObject *obj;
8304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8305 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8306 return SWIG_Py_Void();
8307 }
8308
8309 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8310 return SWIG_Python_InitShadowInstance(args);
8311 }
8312
8313 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8314 PyObject *resultobj = 0;
8315 wxWindow *arg1 = (wxWindow *) 0 ;
8316 int arg2 = (int) -1 ;
8317 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8318 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8319 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8320 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8321 wxSize const &arg5_defvalue = wxDefaultSize ;
8322 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8323 long arg6 = (long) 0 ;
8324 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8325 wxString *arg7 = (wxString *) &arg7_defvalue ;
8326 wxStaticBitmap *result = 0 ;
8327 void *argp1 = 0 ;
8328 int res1 = 0 ;
8329 int val2 ;
8330 int ecode2 = 0 ;
8331 void *argp3 = 0 ;
8332 int res3 = 0 ;
8333 wxPoint temp4 ;
8334 wxSize temp5 ;
8335 long val6 ;
8336 int ecode6 = 0 ;
8337 bool temp7 = false ;
8338 PyObject * obj0 = 0 ;
8339 PyObject * obj1 = 0 ;
8340 PyObject * obj2 = 0 ;
8341 PyObject * obj3 = 0 ;
8342 PyObject * obj4 = 0 ;
8343 PyObject * obj5 = 0 ;
8344 PyObject * obj6 = 0 ;
8345 char * kwnames[] = {
8346 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8347 };
8348
8349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8351 if (!SWIG_IsOK(res1)) {
8352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8353 }
8354 arg1 = reinterpret_cast< wxWindow * >(argp1);
8355 if (obj1) {
8356 ecode2 = SWIG_AsVal_int(obj1, &val2);
8357 if (!SWIG_IsOK(ecode2)) {
8358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8359 }
8360 arg2 = static_cast< int >(val2);
8361 }
8362 if (obj2) {
8363 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8364 if (!SWIG_IsOK(res3)) {
8365 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8366 }
8367 if (!argp3) {
8368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8369 }
8370 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8371 }
8372 if (obj3) {
8373 {
8374 arg4 = &temp4;
8375 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8376 }
8377 }
8378 if (obj4) {
8379 {
8380 arg5 = &temp5;
8381 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8382 }
8383 }
8384 if (obj5) {
8385 ecode6 = SWIG_AsVal_long(obj5, &val6);
8386 if (!SWIG_IsOK(ecode6)) {
8387 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8388 }
8389 arg6 = static_cast< long >(val6);
8390 }
8391 if (obj6) {
8392 {
8393 arg7 = wxString_in_helper(obj6);
8394 if (arg7 == NULL) SWIG_fail;
8395 temp7 = true;
8396 }
8397 }
8398 {
8399 if (!wxPyCheckForApp()) SWIG_fail;
8400 PyThreadState* __tstate = wxPyBeginAllowThreads();
8401 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8402 wxPyEndAllowThreads(__tstate);
8403 if (PyErr_Occurred()) SWIG_fail;
8404 }
8405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8406 {
8407 if (temp7)
8408 delete arg7;
8409 }
8410 return resultobj;
8411 fail:
8412 {
8413 if (temp7)
8414 delete arg7;
8415 }
8416 return NULL;
8417 }
8418
8419
8420 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8421 PyObject *resultobj = 0;
8422 wxStaticBitmap *result = 0 ;
8423
8424 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8425 {
8426 if (!wxPyCheckForApp()) SWIG_fail;
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 result = (wxStaticBitmap *)new wxStaticBitmap();
8429 wxPyEndAllowThreads(__tstate);
8430 if (PyErr_Occurred()) SWIG_fail;
8431 }
8432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8433 return resultobj;
8434 fail:
8435 return NULL;
8436 }
8437
8438
8439 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8440 PyObject *resultobj = 0;
8441 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8442 wxWindow *arg2 = (wxWindow *) 0 ;
8443 int arg3 = (int) -1 ;
8444 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8445 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8446 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8447 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8448 wxSize const &arg6_defvalue = wxDefaultSize ;
8449 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8450 long arg7 = (long) 0 ;
8451 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8452 wxString *arg8 = (wxString *) &arg8_defvalue ;
8453 bool result;
8454 void *argp1 = 0 ;
8455 int res1 = 0 ;
8456 void *argp2 = 0 ;
8457 int res2 = 0 ;
8458 int val3 ;
8459 int ecode3 = 0 ;
8460 void *argp4 = 0 ;
8461 int res4 = 0 ;
8462 wxPoint temp5 ;
8463 wxSize temp6 ;
8464 long val7 ;
8465 int ecode7 = 0 ;
8466 bool temp8 = false ;
8467 PyObject * obj0 = 0 ;
8468 PyObject * obj1 = 0 ;
8469 PyObject * obj2 = 0 ;
8470 PyObject * obj3 = 0 ;
8471 PyObject * obj4 = 0 ;
8472 PyObject * obj5 = 0 ;
8473 PyObject * obj6 = 0 ;
8474 PyObject * obj7 = 0 ;
8475 char * kwnames[] = {
8476 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8477 };
8478
8479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8481 if (!SWIG_IsOK(res1)) {
8482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8483 }
8484 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8485 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8486 if (!SWIG_IsOK(res2)) {
8487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8488 }
8489 arg2 = reinterpret_cast< wxWindow * >(argp2);
8490 if (obj2) {
8491 ecode3 = SWIG_AsVal_int(obj2, &val3);
8492 if (!SWIG_IsOK(ecode3)) {
8493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8494 }
8495 arg3 = static_cast< int >(val3);
8496 }
8497 if (obj3) {
8498 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8499 if (!SWIG_IsOK(res4)) {
8500 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8501 }
8502 if (!argp4) {
8503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8504 }
8505 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8506 }
8507 if (obj4) {
8508 {
8509 arg5 = &temp5;
8510 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8511 }
8512 }
8513 if (obj5) {
8514 {
8515 arg6 = &temp6;
8516 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8517 }
8518 }
8519 if (obj6) {
8520 ecode7 = SWIG_AsVal_long(obj6, &val7);
8521 if (!SWIG_IsOK(ecode7)) {
8522 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8523 }
8524 arg7 = static_cast< long >(val7);
8525 }
8526 if (obj7) {
8527 {
8528 arg8 = wxString_in_helper(obj7);
8529 if (arg8 == NULL) SWIG_fail;
8530 temp8 = true;
8531 }
8532 }
8533 {
8534 PyThreadState* __tstate = wxPyBeginAllowThreads();
8535 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 {
8540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8541 }
8542 {
8543 if (temp8)
8544 delete arg8;
8545 }
8546 return resultobj;
8547 fail:
8548 {
8549 if (temp8)
8550 delete arg8;
8551 }
8552 return NULL;
8553 }
8554
8555
8556 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8557 PyObject *resultobj = 0;
8558 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8559 wxBitmap result;
8560 void *argp1 = 0 ;
8561 int res1 = 0 ;
8562 PyObject *swig_obj[1] ;
8563
8564 if (!args) SWIG_fail;
8565 swig_obj[0] = args;
8566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8567 if (!SWIG_IsOK(res1)) {
8568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8569 }
8570 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8571 {
8572 PyThreadState* __tstate = wxPyBeginAllowThreads();
8573 result = (arg1)->GetBitmap();
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8578 return resultobj;
8579 fail:
8580 return NULL;
8581 }
8582
8583
8584 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8585 PyObject *resultobj = 0;
8586 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8587 wxBitmap *arg2 = 0 ;
8588 void *argp1 = 0 ;
8589 int res1 = 0 ;
8590 void *argp2 = 0 ;
8591 int res2 = 0 ;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 char * kwnames[] = {
8595 (char *) "self",(char *) "bitmap", NULL
8596 };
8597
8598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8600 if (!SWIG_IsOK(res1)) {
8601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8602 }
8603 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8605 if (!SWIG_IsOK(res2)) {
8606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8607 }
8608 if (!argp2) {
8609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8610 }
8611 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8612 {
8613 PyThreadState* __tstate = wxPyBeginAllowThreads();
8614 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 resultobj = SWIG_Py_Void();
8619 return resultobj;
8620 fail:
8621 return NULL;
8622 }
8623
8624
8625 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8626 PyObject *resultobj = 0;
8627 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8628 wxIcon *arg2 = 0 ;
8629 void *argp1 = 0 ;
8630 int res1 = 0 ;
8631 void *argp2 = 0 ;
8632 int res2 = 0 ;
8633 PyObject * obj0 = 0 ;
8634 PyObject * obj1 = 0 ;
8635 char * kwnames[] = {
8636 (char *) "self",(char *) "icon", NULL
8637 };
8638
8639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8641 if (!SWIG_IsOK(res1)) {
8642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8643 }
8644 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8646 if (!SWIG_IsOK(res2)) {
8647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8648 }
8649 if (!argp2) {
8650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8651 }
8652 arg2 = reinterpret_cast< wxIcon * >(argp2);
8653 {
8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
8655 (arg1)->SetIcon((wxIcon const &)*arg2);
8656 wxPyEndAllowThreads(__tstate);
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 resultobj = SWIG_Py_Void();
8660 return resultobj;
8661 fail:
8662 return NULL;
8663 }
8664
8665
8666 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj = 0;
8668 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8669 SwigValueWrapper<wxVisualAttributes > result;
8670 int val1 ;
8671 int ecode1 = 0 ;
8672 PyObject * obj0 = 0 ;
8673 char * kwnames[] = {
8674 (char *) "variant", NULL
8675 };
8676
8677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8678 if (obj0) {
8679 ecode1 = SWIG_AsVal_int(obj0, &val1);
8680 if (!SWIG_IsOK(ecode1)) {
8681 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8682 }
8683 arg1 = static_cast< wxWindowVariant >(val1);
8684 }
8685 {
8686 if (!wxPyCheckForApp()) SWIG_fail;
8687 PyThreadState* __tstate = wxPyBeginAllowThreads();
8688 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8693 return resultobj;
8694 fail:
8695 return NULL;
8696 }
8697
8698
8699 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8700 PyObject *obj;
8701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8702 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8703 return SWIG_Py_Void();
8704 }
8705
8706 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8707 return SWIG_Python_InitShadowInstance(args);
8708 }
8709
8710 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8711 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8712 return 1;
8713 }
8714
8715
8716 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8717 PyObject *pyobj = 0;
8718
8719 {
8720 #if wxUSE_UNICODE
8721 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8722 #else
8723 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8724 #endif
8725 }
8726 return pyobj;
8727 }
8728
8729
8730 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8731 PyObject *resultobj = 0;
8732 wxWindow *arg1 = (wxWindow *) 0 ;
8733 int arg2 = (int) -1 ;
8734 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8735 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8736 wxSize const &arg4_defvalue = wxDefaultSize ;
8737 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8738 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8739 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8740 long arg6 = (long) 0 ;
8741 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8742 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8743 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8744 wxString *arg8 = (wxString *) &arg8_defvalue ;
8745 wxListBox *result = 0 ;
8746 void *argp1 = 0 ;
8747 int res1 = 0 ;
8748 int val2 ;
8749 int ecode2 = 0 ;
8750 wxPoint temp3 ;
8751 wxSize temp4 ;
8752 bool temp5 = false ;
8753 long val6 ;
8754 int ecode6 = 0 ;
8755 void *argp7 = 0 ;
8756 int res7 = 0 ;
8757 bool temp8 = false ;
8758 PyObject * obj0 = 0 ;
8759 PyObject * obj1 = 0 ;
8760 PyObject * obj2 = 0 ;
8761 PyObject * obj3 = 0 ;
8762 PyObject * obj4 = 0 ;
8763 PyObject * obj5 = 0 ;
8764 PyObject * obj6 = 0 ;
8765 PyObject * obj7 = 0 ;
8766 char * kwnames[] = {
8767 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8768 };
8769
8770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8772 if (!SWIG_IsOK(res1)) {
8773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8774 }
8775 arg1 = reinterpret_cast< wxWindow * >(argp1);
8776 if (obj1) {
8777 ecode2 = SWIG_AsVal_int(obj1, &val2);
8778 if (!SWIG_IsOK(ecode2)) {
8779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8780 }
8781 arg2 = static_cast< int >(val2);
8782 }
8783 if (obj2) {
8784 {
8785 arg3 = &temp3;
8786 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8787 }
8788 }
8789 if (obj3) {
8790 {
8791 arg4 = &temp4;
8792 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8793 }
8794 }
8795 if (obj4) {
8796 {
8797 if (! PySequence_Check(obj4)) {
8798 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8799 SWIG_fail;
8800 }
8801 arg5 = new wxArrayString;
8802 temp5 = true;
8803 int i, len=PySequence_Length(obj4);
8804 for (i=0; i<len; i++) {
8805 PyObject* item = PySequence_GetItem(obj4, i);
8806 wxString* s = wxString_in_helper(item);
8807 if (PyErr_Occurred()) SWIG_fail;
8808 arg5->Add(*s);
8809 delete s;
8810 Py_DECREF(item);
8811 }
8812 }
8813 }
8814 if (obj5) {
8815 ecode6 = SWIG_AsVal_long(obj5, &val6);
8816 if (!SWIG_IsOK(ecode6)) {
8817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8818 }
8819 arg6 = static_cast< long >(val6);
8820 }
8821 if (obj6) {
8822 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8823 if (!SWIG_IsOK(res7)) {
8824 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8825 }
8826 if (!argp7) {
8827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8828 }
8829 arg7 = reinterpret_cast< wxValidator * >(argp7);
8830 }
8831 if (obj7) {
8832 {
8833 arg8 = wxString_in_helper(obj7);
8834 if (arg8 == NULL) SWIG_fail;
8835 temp8 = true;
8836 }
8837 }
8838 {
8839 if (!wxPyCheckForApp()) SWIG_fail;
8840 PyThreadState* __tstate = wxPyBeginAllowThreads();
8841 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8842 wxPyEndAllowThreads(__tstate);
8843 if (PyErr_Occurred()) SWIG_fail;
8844 }
8845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8846 {
8847 if (temp5) delete arg5;
8848 }
8849 {
8850 if (temp8)
8851 delete arg8;
8852 }
8853 return resultobj;
8854 fail:
8855 {
8856 if (temp5) delete arg5;
8857 }
8858 {
8859 if (temp8)
8860 delete arg8;
8861 }
8862 return NULL;
8863 }
8864
8865
8866 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8867 PyObject *resultobj = 0;
8868 wxListBox *result = 0 ;
8869
8870 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8871 {
8872 if (!wxPyCheckForApp()) SWIG_fail;
8873 PyThreadState* __tstate = wxPyBeginAllowThreads();
8874 result = (wxListBox *)new wxListBox();
8875 wxPyEndAllowThreads(__tstate);
8876 if (PyErr_Occurred()) SWIG_fail;
8877 }
8878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8879 return resultobj;
8880 fail:
8881 return NULL;
8882 }
8883
8884
8885 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8886 PyObject *resultobj = 0;
8887 wxListBox *arg1 = (wxListBox *) 0 ;
8888 wxWindow *arg2 = (wxWindow *) 0 ;
8889 int arg3 = (int) -1 ;
8890 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8891 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8892 wxSize const &arg5_defvalue = wxDefaultSize ;
8893 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8894 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8895 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8896 long arg7 = (long) 0 ;
8897 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8898 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8899 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8900 wxString *arg9 = (wxString *) &arg9_defvalue ;
8901 bool result;
8902 void *argp1 = 0 ;
8903 int res1 = 0 ;
8904 void *argp2 = 0 ;
8905 int res2 = 0 ;
8906 int val3 ;
8907 int ecode3 = 0 ;
8908 wxPoint temp4 ;
8909 wxSize temp5 ;
8910 bool temp6 = false ;
8911 long val7 ;
8912 int ecode7 = 0 ;
8913 void *argp8 = 0 ;
8914 int res8 = 0 ;
8915 bool temp9 = false ;
8916 PyObject * obj0 = 0 ;
8917 PyObject * obj1 = 0 ;
8918 PyObject * obj2 = 0 ;
8919 PyObject * obj3 = 0 ;
8920 PyObject * obj4 = 0 ;
8921 PyObject * obj5 = 0 ;
8922 PyObject * obj6 = 0 ;
8923 PyObject * obj7 = 0 ;
8924 PyObject * obj8 = 0 ;
8925 char * kwnames[] = {
8926 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8927 };
8928
8929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8931 if (!SWIG_IsOK(res1)) {
8932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8933 }
8934 arg1 = reinterpret_cast< wxListBox * >(argp1);
8935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8936 if (!SWIG_IsOK(res2)) {
8937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8938 }
8939 arg2 = reinterpret_cast< wxWindow * >(argp2);
8940 if (obj2) {
8941 ecode3 = SWIG_AsVal_int(obj2, &val3);
8942 if (!SWIG_IsOK(ecode3)) {
8943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8944 }
8945 arg3 = static_cast< int >(val3);
8946 }
8947 if (obj3) {
8948 {
8949 arg4 = &temp4;
8950 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8951 }
8952 }
8953 if (obj4) {
8954 {
8955 arg5 = &temp5;
8956 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8957 }
8958 }
8959 if (obj5) {
8960 {
8961 if (! PySequence_Check(obj5)) {
8962 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8963 SWIG_fail;
8964 }
8965 arg6 = new wxArrayString;
8966 temp6 = true;
8967 int i, len=PySequence_Length(obj5);
8968 for (i=0; i<len; i++) {
8969 PyObject* item = PySequence_GetItem(obj5, i);
8970 wxString* s = wxString_in_helper(item);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 arg6->Add(*s);
8973 delete s;
8974 Py_DECREF(item);
8975 }
8976 }
8977 }
8978 if (obj6) {
8979 ecode7 = SWIG_AsVal_long(obj6, &val7);
8980 if (!SWIG_IsOK(ecode7)) {
8981 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
8982 }
8983 arg7 = static_cast< long >(val7);
8984 }
8985 if (obj7) {
8986 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
8987 if (!SWIG_IsOK(res8)) {
8988 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
8989 }
8990 if (!argp8) {
8991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
8992 }
8993 arg8 = reinterpret_cast< wxValidator * >(argp8);
8994 }
8995 if (obj8) {
8996 {
8997 arg9 = wxString_in_helper(obj8);
8998 if (arg9 == NULL) SWIG_fail;
8999 temp9 = true;
9000 }
9001 }
9002 {
9003 PyThreadState* __tstate = wxPyBeginAllowThreads();
9004 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9005 wxPyEndAllowThreads(__tstate);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 }
9008 {
9009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9010 }
9011 {
9012 if (temp6) delete arg6;
9013 }
9014 {
9015 if (temp9)
9016 delete arg9;
9017 }
9018 return resultobj;
9019 fail:
9020 {
9021 if (temp6) delete arg6;
9022 }
9023 {
9024 if (temp9)
9025 delete arg9;
9026 }
9027 return NULL;
9028 }
9029
9030
9031 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9032 PyObject *resultobj = 0;
9033 wxListBox *arg1 = (wxListBox *) 0 ;
9034 wxString *arg2 = 0 ;
9035 int arg3 ;
9036 PyObject *arg4 = (PyObject *) NULL ;
9037 void *argp1 = 0 ;
9038 int res1 = 0 ;
9039 bool temp2 = false ;
9040 int val3 ;
9041 int ecode3 = 0 ;
9042 PyObject * obj0 = 0 ;
9043 PyObject * obj1 = 0 ;
9044 PyObject * obj2 = 0 ;
9045 PyObject * obj3 = 0 ;
9046 char * kwnames[] = {
9047 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9048 };
9049
9050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9052 if (!SWIG_IsOK(res1)) {
9053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9054 }
9055 arg1 = reinterpret_cast< wxListBox * >(argp1);
9056 {
9057 arg2 = wxString_in_helper(obj1);
9058 if (arg2 == NULL) SWIG_fail;
9059 temp2 = true;
9060 }
9061 ecode3 = SWIG_AsVal_int(obj2, &val3);
9062 if (!SWIG_IsOK(ecode3)) {
9063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9064 }
9065 arg3 = static_cast< int >(val3);
9066 if (obj3) {
9067 arg4 = obj3;
9068 }
9069 {
9070 PyThreadState* __tstate = wxPyBeginAllowThreads();
9071 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) SWIG_fail;
9074 }
9075 resultobj = SWIG_Py_Void();
9076 {
9077 if (temp2)
9078 delete arg2;
9079 }
9080 return resultobj;
9081 fail:
9082 {
9083 if (temp2)
9084 delete arg2;
9085 }
9086 return NULL;
9087 }
9088
9089
9090 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj = 0;
9092 wxListBox *arg1 = (wxListBox *) 0 ;
9093 wxArrayString *arg2 = 0 ;
9094 int arg3 ;
9095 void *argp1 = 0 ;
9096 int res1 = 0 ;
9097 bool temp2 = false ;
9098 int val3 ;
9099 int ecode3 = 0 ;
9100 PyObject * obj0 = 0 ;
9101 PyObject * obj1 = 0 ;
9102 PyObject * obj2 = 0 ;
9103 char * kwnames[] = {
9104 (char *) "self",(char *) "items",(char *) "pos", NULL
9105 };
9106
9107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9109 if (!SWIG_IsOK(res1)) {
9110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9111 }
9112 arg1 = reinterpret_cast< wxListBox * >(argp1);
9113 {
9114 if (! PySequence_Check(obj1)) {
9115 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9116 SWIG_fail;
9117 }
9118 arg2 = new wxArrayString;
9119 temp2 = true;
9120 int i, len=PySequence_Length(obj1);
9121 for (i=0; i<len; i++) {
9122 PyObject* item = PySequence_GetItem(obj1, i);
9123 wxString* s = wxString_in_helper(item);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 arg2->Add(*s);
9126 delete s;
9127 Py_DECREF(item);
9128 }
9129 }
9130 ecode3 = SWIG_AsVal_int(obj2, &val3);
9131 if (!SWIG_IsOK(ecode3)) {
9132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "int""'");
9133 }
9134 arg3 = static_cast< int >(val3);
9135 {
9136 PyThreadState* __tstate = wxPyBeginAllowThreads();
9137 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 resultobj = SWIG_Py_Void();
9142 {
9143 if (temp2) delete arg2;
9144 }
9145 return resultobj;
9146 fail:
9147 {
9148 if (temp2) delete arg2;
9149 }
9150 return NULL;
9151 }
9152
9153
9154 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj = 0;
9156 wxListBox *arg1 = (wxListBox *) 0 ;
9157 wxArrayString *arg2 = 0 ;
9158 void *argp1 = 0 ;
9159 int res1 = 0 ;
9160 bool temp2 = false ;
9161 PyObject * obj0 = 0 ;
9162 PyObject * obj1 = 0 ;
9163 char * kwnames[] = {
9164 (char *) "self",(char *) "items", NULL
9165 };
9166
9167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9169 if (!SWIG_IsOK(res1)) {
9170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9171 }
9172 arg1 = reinterpret_cast< wxListBox * >(argp1);
9173 {
9174 if (! PySequence_Check(obj1)) {
9175 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9176 SWIG_fail;
9177 }
9178 arg2 = new wxArrayString;
9179 temp2 = true;
9180 int i, len=PySequence_Length(obj1);
9181 for (i=0; i<len; i++) {
9182 PyObject* item = PySequence_GetItem(obj1, i);
9183 wxString* s = wxString_in_helper(item);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 arg2->Add(*s);
9186 delete s;
9187 Py_DECREF(item);
9188 }
9189 }
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 (arg1)->Set((wxArrayString const &)*arg2);
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_Py_Void();
9197 {
9198 if (temp2) delete arg2;
9199 }
9200 return resultobj;
9201 fail:
9202 {
9203 if (temp2) delete arg2;
9204 }
9205 return NULL;
9206 }
9207
9208
9209 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj = 0;
9211 wxListBox *arg1 = (wxListBox *) 0 ;
9212 int arg2 ;
9213 bool result;
9214 void *argp1 = 0 ;
9215 int res1 = 0 ;
9216 int val2 ;
9217 int ecode2 = 0 ;
9218 PyObject * obj0 = 0 ;
9219 PyObject * obj1 = 0 ;
9220 char * kwnames[] = {
9221 (char *) "self",(char *) "n", NULL
9222 };
9223
9224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9226 if (!SWIG_IsOK(res1)) {
9227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9228 }
9229 arg1 = reinterpret_cast< wxListBox * >(argp1);
9230 ecode2 = SWIG_AsVal_int(obj1, &val2);
9231 if (!SWIG_IsOK(ecode2)) {
9232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9233 }
9234 arg2 = static_cast< int >(val2);
9235 {
9236 PyThreadState* __tstate = wxPyBeginAllowThreads();
9237 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9238 wxPyEndAllowThreads(__tstate);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 }
9241 {
9242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9243 }
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj = 0;
9252 wxListBox *arg1 = (wxListBox *) 0 ;
9253 int arg2 ;
9254 bool arg3 = (bool) true ;
9255 void *argp1 = 0 ;
9256 int res1 = 0 ;
9257 int val2 ;
9258 int ecode2 = 0 ;
9259 bool val3 ;
9260 int ecode3 = 0 ;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 PyObject * obj2 = 0 ;
9264 char * kwnames[] = {
9265 (char *) "self",(char *) "n",(char *) "select", NULL
9266 };
9267
9268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9270 if (!SWIG_IsOK(res1)) {
9271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9272 }
9273 arg1 = reinterpret_cast< wxListBox * >(argp1);
9274 ecode2 = SWIG_AsVal_int(obj1, &val2);
9275 if (!SWIG_IsOK(ecode2)) {
9276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9277 }
9278 arg2 = static_cast< int >(val2);
9279 if (obj2) {
9280 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9281 if (!SWIG_IsOK(ecode3)) {
9282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9283 }
9284 arg3 = static_cast< bool >(val3);
9285 }
9286 {
9287 PyThreadState* __tstate = wxPyBeginAllowThreads();
9288 (arg1)->SetSelection(arg2,arg3);
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 resultobj = SWIG_Py_Void();
9293 return resultobj;
9294 fail:
9295 return NULL;
9296 }
9297
9298
9299 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9300 PyObject *resultobj = 0;
9301 wxListBox *arg1 = (wxListBox *) 0 ;
9302 int arg2 ;
9303 void *argp1 = 0 ;
9304 int res1 = 0 ;
9305 int val2 ;
9306 int ecode2 = 0 ;
9307 PyObject * obj0 = 0 ;
9308 PyObject * obj1 = 0 ;
9309 char * kwnames[] = {
9310 (char *) "self",(char *) "n", NULL
9311 };
9312
9313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9315 if (!SWIG_IsOK(res1)) {
9316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9317 }
9318 arg1 = reinterpret_cast< wxListBox * >(argp1);
9319 ecode2 = SWIG_AsVal_int(obj1, &val2);
9320 if (!SWIG_IsOK(ecode2)) {
9321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9322 }
9323 arg2 = static_cast< int >(val2);
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 (arg1)->Select(arg2);
9327 wxPyEndAllowThreads(__tstate);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 }
9330 resultobj = SWIG_Py_Void();
9331 return resultobj;
9332 fail:
9333 return NULL;
9334 }
9335
9336
9337 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9338 PyObject *resultobj = 0;
9339 wxListBox *arg1 = (wxListBox *) 0 ;
9340 int arg2 ;
9341 void *argp1 = 0 ;
9342 int res1 = 0 ;
9343 int val2 ;
9344 int ecode2 = 0 ;
9345 PyObject * obj0 = 0 ;
9346 PyObject * obj1 = 0 ;
9347 char * kwnames[] = {
9348 (char *) "self",(char *) "n", NULL
9349 };
9350
9351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9353 if (!SWIG_IsOK(res1)) {
9354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9355 }
9356 arg1 = reinterpret_cast< wxListBox * >(argp1);
9357 ecode2 = SWIG_AsVal_int(obj1, &val2);
9358 if (!SWIG_IsOK(ecode2)) {
9359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9360 }
9361 arg2 = static_cast< int >(val2);
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 (arg1)->Deselect(arg2);
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 resultobj = SWIG_Py_Void();
9369 return resultobj;
9370 fail:
9371 return NULL;
9372 }
9373
9374
9375 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9376 PyObject *resultobj = 0;
9377 wxListBox *arg1 = (wxListBox *) 0 ;
9378 int arg2 = (int) -1 ;
9379 void *argp1 = 0 ;
9380 int res1 = 0 ;
9381 int val2 ;
9382 int ecode2 = 0 ;
9383 PyObject * obj0 = 0 ;
9384 PyObject * obj1 = 0 ;
9385 char * kwnames[] = {
9386 (char *) "self",(char *) "itemToLeaveSelected", NULL
9387 };
9388
9389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9391 if (!SWIG_IsOK(res1)) {
9392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9393 }
9394 arg1 = reinterpret_cast< wxListBox * >(argp1);
9395 if (obj1) {
9396 ecode2 = SWIG_AsVal_int(obj1, &val2);
9397 if (!SWIG_IsOK(ecode2)) {
9398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9399 }
9400 arg2 = static_cast< int >(val2);
9401 }
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->DeselectAll(arg2);
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_Py_Void();
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj = 0;
9417 wxListBox *arg1 = (wxListBox *) 0 ;
9418 wxString *arg2 = 0 ;
9419 bool arg3 = (bool) true ;
9420 bool result;
9421 void *argp1 = 0 ;
9422 int res1 = 0 ;
9423 bool temp2 = false ;
9424 bool val3 ;
9425 int ecode3 = 0 ;
9426 PyObject * obj0 = 0 ;
9427 PyObject * obj1 = 0 ;
9428 PyObject * obj2 = 0 ;
9429 char * kwnames[] = {
9430 (char *) "self",(char *) "s",(char *) "select", NULL
9431 };
9432
9433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9435 if (!SWIG_IsOK(res1)) {
9436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9437 }
9438 arg1 = reinterpret_cast< wxListBox * >(argp1);
9439 {
9440 arg2 = wxString_in_helper(obj1);
9441 if (arg2 == NULL) SWIG_fail;
9442 temp2 = true;
9443 }
9444 if (obj2) {
9445 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9446 if (!SWIG_IsOK(ecode3)) {
9447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9448 }
9449 arg3 = static_cast< bool >(val3);
9450 }
9451 {
9452 PyThreadState* __tstate = wxPyBeginAllowThreads();
9453 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9454 wxPyEndAllowThreads(__tstate);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 }
9457 {
9458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9459 }
9460 {
9461 if (temp2)
9462 delete arg2;
9463 }
9464 return resultobj;
9465 fail:
9466 {
9467 if (temp2)
9468 delete arg2;
9469 }
9470 return NULL;
9471 }
9472
9473
9474 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9475 PyObject *resultobj = 0;
9476 wxListBox *arg1 = (wxListBox *) 0 ;
9477 PyObject *result = 0 ;
9478 void *argp1 = 0 ;
9479 int res1 = 0 ;
9480 PyObject *swig_obj[1] ;
9481
9482 if (!args) SWIG_fail;
9483 swig_obj[0] = args;
9484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9485 if (!SWIG_IsOK(res1)) {
9486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9487 }
9488 arg1 = reinterpret_cast< wxListBox * >(argp1);
9489 {
9490 PyThreadState* __tstate = wxPyBeginAllowThreads();
9491 result = (PyObject *)wxListBox_GetSelections(arg1);
9492 wxPyEndAllowThreads(__tstate);
9493 if (PyErr_Occurred()) SWIG_fail;
9494 }
9495 resultobj = result;
9496 return resultobj;
9497 fail:
9498 return NULL;
9499 }
9500
9501
9502 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9503 PyObject *resultobj = 0;
9504 wxListBox *arg1 = (wxListBox *) 0 ;
9505 int arg2 ;
9506 void *argp1 = 0 ;
9507 int res1 = 0 ;
9508 int val2 ;
9509 int ecode2 = 0 ;
9510 PyObject * obj0 = 0 ;
9511 PyObject * obj1 = 0 ;
9512 char * kwnames[] = {
9513 (char *) "self",(char *) "n", NULL
9514 };
9515
9516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9518 if (!SWIG_IsOK(res1)) {
9519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9520 }
9521 arg1 = reinterpret_cast< wxListBox * >(argp1);
9522 ecode2 = SWIG_AsVal_int(obj1, &val2);
9523 if (!SWIG_IsOK(ecode2)) {
9524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9525 }
9526 arg2 = static_cast< int >(val2);
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 (arg1)->SetFirstItem(arg2);
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_Py_Void();
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj = 0;
9542 wxListBox *arg1 = (wxListBox *) 0 ;
9543 wxString *arg2 = 0 ;
9544 void *argp1 = 0 ;
9545 int res1 = 0 ;
9546 bool temp2 = false ;
9547 PyObject * obj0 = 0 ;
9548 PyObject * obj1 = 0 ;
9549 char * kwnames[] = {
9550 (char *) "self",(char *) "s", NULL
9551 };
9552
9553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9555 if (!SWIG_IsOK(res1)) {
9556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9557 }
9558 arg1 = reinterpret_cast< wxListBox * >(argp1);
9559 {
9560 arg2 = wxString_in_helper(obj1);
9561 if (arg2 == NULL) SWIG_fail;
9562 temp2 = true;
9563 }
9564 {
9565 PyThreadState* __tstate = wxPyBeginAllowThreads();
9566 (arg1)->SetFirstItem((wxString const &)*arg2);
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 resultobj = SWIG_Py_Void();
9571 {
9572 if (temp2)
9573 delete arg2;
9574 }
9575 return resultobj;
9576 fail:
9577 {
9578 if (temp2)
9579 delete arg2;
9580 }
9581 return NULL;
9582 }
9583
9584
9585 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9586 PyObject *resultobj = 0;
9587 wxListBox *arg1 = (wxListBox *) 0 ;
9588 int arg2 ;
9589 void *argp1 = 0 ;
9590 int res1 = 0 ;
9591 int val2 ;
9592 int ecode2 = 0 ;
9593 PyObject * obj0 = 0 ;
9594 PyObject * obj1 = 0 ;
9595 char * kwnames[] = {
9596 (char *) "self",(char *) "n", NULL
9597 };
9598
9599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9601 if (!SWIG_IsOK(res1)) {
9602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9603 }
9604 arg1 = reinterpret_cast< wxListBox * >(argp1);
9605 ecode2 = SWIG_AsVal_int(obj1, &val2);
9606 if (!SWIG_IsOK(ecode2)) {
9607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9608 }
9609 arg2 = static_cast< int >(val2);
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 (arg1)->EnsureVisible(arg2);
9613 wxPyEndAllowThreads(__tstate);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 }
9616 resultobj = SWIG_Py_Void();
9617 return resultobj;
9618 fail:
9619 return NULL;
9620 }
9621
9622
9623 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9624 PyObject *resultobj = 0;
9625 wxListBox *arg1 = (wxListBox *) 0 ;
9626 wxString *arg2 = 0 ;
9627 void *argp1 = 0 ;
9628 int res1 = 0 ;
9629 bool temp2 = false ;
9630 PyObject * obj0 = 0 ;
9631 PyObject * obj1 = 0 ;
9632 char * kwnames[] = {
9633 (char *) "self",(char *) "s", NULL
9634 };
9635
9636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9638 if (!SWIG_IsOK(res1)) {
9639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9640 }
9641 arg1 = reinterpret_cast< wxListBox * >(argp1);
9642 {
9643 arg2 = wxString_in_helper(obj1);
9644 if (arg2 == NULL) SWIG_fail;
9645 temp2 = true;
9646 }
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_Py_Void();
9654 {
9655 if (temp2)
9656 delete arg2;
9657 }
9658 return resultobj;
9659 fail:
9660 {
9661 if (temp2)
9662 delete arg2;
9663 }
9664 return NULL;
9665 }
9666
9667
9668 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9669 PyObject *resultobj = 0;
9670 wxListBox *arg1 = (wxListBox *) 0 ;
9671 bool result;
9672 void *argp1 = 0 ;
9673 int res1 = 0 ;
9674 PyObject *swig_obj[1] ;
9675
9676 if (!args) SWIG_fail;
9677 swig_obj[0] = args;
9678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9681 }
9682 arg1 = reinterpret_cast< wxListBox * >(argp1);
9683 {
9684 PyThreadState* __tstate = wxPyBeginAllowThreads();
9685 result = (bool)((wxListBox const *)arg1)->IsSorted();
9686 wxPyEndAllowThreads(__tstate);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 {
9690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9691 }
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj = 0;
9700 wxListBox *arg1 = (wxListBox *) 0 ;
9701 wxPoint *arg2 = 0 ;
9702 int result;
9703 void *argp1 = 0 ;
9704 int res1 = 0 ;
9705 wxPoint temp2 ;
9706 PyObject * obj0 = 0 ;
9707 PyObject * obj1 = 0 ;
9708 char * kwnames[] = {
9709 (char *) "self",(char *) "pt", NULL
9710 };
9711
9712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9716 }
9717 arg1 = reinterpret_cast< wxListBox * >(argp1);
9718 {
9719 arg2 = &temp2;
9720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9721 }
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 resultobj = SWIG_From_int(static_cast< int >(result));
9729 return resultobj;
9730 fail:
9731 return NULL;
9732 }
9733
9734
9735 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = 0;
9737 wxListBox *arg1 = (wxListBox *) 0 ;
9738 int arg2 ;
9739 wxColour *arg3 = 0 ;
9740 void *argp1 = 0 ;
9741 int res1 = 0 ;
9742 int val2 ;
9743 int ecode2 = 0 ;
9744 wxColour temp3 ;
9745 PyObject * obj0 = 0 ;
9746 PyObject * obj1 = 0 ;
9747 PyObject * obj2 = 0 ;
9748 char * kwnames[] = {
9749 (char *) "self",(char *) "item",(char *) "c", NULL
9750 };
9751
9752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9754 if (!SWIG_IsOK(res1)) {
9755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9756 }
9757 arg1 = reinterpret_cast< wxListBox * >(argp1);
9758 ecode2 = SWIG_AsVal_int(obj1, &val2);
9759 if (!SWIG_IsOK(ecode2)) {
9760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9761 }
9762 arg2 = static_cast< int >(val2);
9763 {
9764 arg3 = &temp3;
9765 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9766 }
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9770 wxPyEndAllowThreads(__tstate);
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
9773 resultobj = SWIG_Py_Void();
9774 return resultobj;
9775 fail:
9776 return NULL;
9777 }
9778
9779
9780 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9781 PyObject *resultobj = 0;
9782 wxListBox *arg1 = (wxListBox *) 0 ;
9783 int arg2 ;
9784 wxColour *arg3 = 0 ;
9785 void *argp1 = 0 ;
9786 int res1 = 0 ;
9787 int val2 ;
9788 int ecode2 = 0 ;
9789 wxColour temp3 ;
9790 PyObject * obj0 = 0 ;
9791 PyObject * obj1 = 0 ;
9792 PyObject * obj2 = 0 ;
9793 char * kwnames[] = {
9794 (char *) "self",(char *) "item",(char *) "c", NULL
9795 };
9796
9797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9799 if (!SWIG_IsOK(res1)) {
9800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9801 }
9802 arg1 = reinterpret_cast< wxListBox * >(argp1);
9803 ecode2 = SWIG_AsVal_int(obj1, &val2);
9804 if (!SWIG_IsOK(ecode2)) {
9805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9806 }
9807 arg2 = static_cast< int >(val2);
9808 {
9809 arg3 = &temp3;
9810 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9811 }
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 resultobj = SWIG_Py_Void();
9819 return resultobj;
9820 fail:
9821 return NULL;
9822 }
9823
9824
9825 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9826 PyObject *resultobj = 0;
9827 wxListBox *arg1 = (wxListBox *) 0 ;
9828 int arg2 ;
9829 wxFont *arg3 = 0 ;
9830 void *argp1 = 0 ;
9831 int res1 = 0 ;
9832 int val2 ;
9833 int ecode2 = 0 ;
9834 void *argp3 = 0 ;
9835 int res3 = 0 ;
9836 PyObject * obj0 = 0 ;
9837 PyObject * obj1 = 0 ;
9838 PyObject * obj2 = 0 ;
9839 char * kwnames[] = {
9840 (char *) "self",(char *) "item",(char *) "f", NULL
9841 };
9842
9843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9845 if (!SWIG_IsOK(res1)) {
9846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9847 }
9848 arg1 = reinterpret_cast< wxListBox * >(argp1);
9849 ecode2 = SWIG_AsVal_int(obj1, &val2);
9850 if (!SWIG_IsOK(ecode2)) {
9851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9852 }
9853 arg2 = static_cast< int >(val2);
9854 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9855 if (!SWIG_IsOK(res3)) {
9856 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9857 }
9858 if (!argp3) {
9859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9860 }
9861 arg3 = reinterpret_cast< wxFont * >(argp3);
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 resultobj = SWIG_Py_Void();
9869 return resultobj;
9870 fail:
9871 return NULL;
9872 }
9873
9874
9875 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9876 PyObject *resultobj = 0;
9877 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9878 SwigValueWrapper<wxVisualAttributes > result;
9879 int val1 ;
9880 int ecode1 = 0 ;
9881 PyObject * obj0 = 0 ;
9882 char * kwnames[] = {
9883 (char *) "variant", NULL
9884 };
9885
9886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9887 if (obj0) {
9888 ecode1 = SWIG_AsVal_int(obj0, &val1);
9889 if (!SWIG_IsOK(ecode1)) {
9890 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9891 }
9892 arg1 = static_cast< wxWindowVariant >(val1);
9893 }
9894 {
9895 if (!wxPyCheckForApp()) SWIG_fail;
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 result = wxListBox::GetClassDefaultAttributes(arg1);
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9909 PyObject *obj;
9910 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9911 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9912 return SWIG_Py_Void();
9913 }
9914
9915 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9916 return SWIG_Python_InitShadowInstance(args);
9917 }
9918
9919 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9920 PyObject *resultobj = 0;
9921 wxWindow *arg1 = (wxWindow *) 0 ;
9922 int arg2 = (int) -1 ;
9923 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9924 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9925 wxSize const &arg4_defvalue = wxDefaultSize ;
9926 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9927 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9928 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9929 long arg6 = (long) 0 ;
9930 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9931 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9932 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9933 wxString *arg8 = (wxString *) &arg8_defvalue ;
9934 wxCheckListBox *result = 0 ;
9935 void *argp1 = 0 ;
9936 int res1 = 0 ;
9937 int val2 ;
9938 int ecode2 = 0 ;
9939 wxPoint temp3 ;
9940 wxSize temp4 ;
9941 bool temp5 = false ;
9942 long val6 ;
9943 int ecode6 = 0 ;
9944 void *argp7 = 0 ;
9945 int res7 = 0 ;
9946 bool temp8 = false ;
9947 PyObject * obj0 = 0 ;
9948 PyObject * obj1 = 0 ;
9949 PyObject * obj2 = 0 ;
9950 PyObject * obj3 = 0 ;
9951 PyObject * obj4 = 0 ;
9952 PyObject * obj5 = 0 ;
9953 PyObject * obj6 = 0 ;
9954 PyObject * obj7 = 0 ;
9955 char * kwnames[] = {
9956 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9957 };
9958
9959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9961 if (!SWIG_IsOK(res1)) {
9962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9963 }
9964 arg1 = reinterpret_cast< wxWindow * >(argp1);
9965 if (obj1) {
9966 ecode2 = SWIG_AsVal_int(obj1, &val2);
9967 if (!SWIG_IsOK(ecode2)) {
9968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
9969 }
9970 arg2 = static_cast< int >(val2);
9971 }
9972 if (obj2) {
9973 {
9974 arg3 = &temp3;
9975 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9976 }
9977 }
9978 if (obj3) {
9979 {
9980 arg4 = &temp4;
9981 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9982 }
9983 }
9984 if (obj4) {
9985 {
9986 if (! PySequence_Check(obj4)) {
9987 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9988 SWIG_fail;
9989 }
9990 arg5 = new wxArrayString;
9991 temp5 = true;
9992 int i, len=PySequence_Length(obj4);
9993 for (i=0; i<len; i++) {
9994 PyObject* item = PySequence_GetItem(obj4, i);
9995 wxString* s = wxString_in_helper(item);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 arg5->Add(*s);
9998 delete s;
9999 Py_DECREF(item);
10000 }
10001 }
10002 }
10003 if (obj5) {
10004 ecode6 = SWIG_AsVal_long(obj5, &val6);
10005 if (!SWIG_IsOK(ecode6)) {
10006 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10007 }
10008 arg6 = static_cast< long >(val6);
10009 }
10010 if (obj6) {
10011 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10012 if (!SWIG_IsOK(res7)) {
10013 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10014 }
10015 if (!argp7) {
10016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10017 }
10018 arg7 = reinterpret_cast< wxValidator * >(argp7);
10019 }
10020 if (obj7) {
10021 {
10022 arg8 = wxString_in_helper(obj7);
10023 if (arg8 == NULL) SWIG_fail;
10024 temp8 = true;
10025 }
10026 }
10027 {
10028 if (!wxPyCheckForApp()) SWIG_fail;
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10031 wxPyEndAllowThreads(__tstate);
10032 if (PyErr_Occurred()) SWIG_fail;
10033 }
10034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10035 {
10036 if (temp5) delete arg5;
10037 }
10038 {
10039 if (temp8)
10040 delete arg8;
10041 }
10042 return resultobj;
10043 fail:
10044 {
10045 if (temp5) delete arg5;
10046 }
10047 {
10048 if (temp8)
10049 delete arg8;
10050 }
10051 return NULL;
10052 }
10053
10054
10055 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10056 PyObject *resultobj = 0;
10057 wxCheckListBox *result = 0 ;
10058
10059 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10060 {
10061 if (!wxPyCheckForApp()) SWIG_fail;
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 result = (wxCheckListBox *)new wxCheckListBox();
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj = 0;
10076 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10077 wxWindow *arg2 = (wxWindow *) 0 ;
10078 int arg3 = (int) -1 ;
10079 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10080 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10081 wxSize const &arg5_defvalue = wxDefaultSize ;
10082 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10083 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10084 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10085 long arg7 = (long) 0 ;
10086 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10087 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10088 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10089 wxString *arg9 = (wxString *) &arg9_defvalue ;
10090 bool result;
10091 void *argp1 = 0 ;
10092 int res1 = 0 ;
10093 void *argp2 = 0 ;
10094 int res2 = 0 ;
10095 int val3 ;
10096 int ecode3 = 0 ;
10097 wxPoint temp4 ;
10098 wxSize temp5 ;
10099 bool temp6 = false ;
10100 long val7 ;
10101 int ecode7 = 0 ;
10102 void *argp8 = 0 ;
10103 int res8 = 0 ;
10104 bool temp9 = false ;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 PyObject * obj2 = 0 ;
10108 PyObject * obj3 = 0 ;
10109 PyObject * obj4 = 0 ;
10110 PyObject * obj5 = 0 ;
10111 PyObject * obj6 = 0 ;
10112 PyObject * obj7 = 0 ;
10113 PyObject * obj8 = 0 ;
10114 char * kwnames[] = {
10115 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10116 };
10117
10118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10120 if (!SWIG_IsOK(res1)) {
10121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10122 }
10123 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10125 if (!SWIG_IsOK(res2)) {
10126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10127 }
10128 arg2 = reinterpret_cast< wxWindow * >(argp2);
10129 if (obj2) {
10130 ecode3 = SWIG_AsVal_int(obj2, &val3);
10131 if (!SWIG_IsOK(ecode3)) {
10132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10133 }
10134 arg3 = static_cast< int >(val3);
10135 }
10136 if (obj3) {
10137 {
10138 arg4 = &temp4;
10139 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10140 }
10141 }
10142 if (obj4) {
10143 {
10144 arg5 = &temp5;
10145 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10146 }
10147 }
10148 if (obj5) {
10149 {
10150 if (! PySequence_Check(obj5)) {
10151 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10152 SWIG_fail;
10153 }
10154 arg6 = new wxArrayString;
10155 temp6 = true;
10156 int i, len=PySequence_Length(obj5);
10157 for (i=0; i<len; i++) {
10158 PyObject* item = PySequence_GetItem(obj5, i);
10159 wxString* s = wxString_in_helper(item);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 arg6->Add(*s);
10162 delete s;
10163 Py_DECREF(item);
10164 }
10165 }
10166 }
10167 if (obj6) {
10168 ecode7 = SWIG_AsVal_long(obj6, &val7);
10169 if (!SWIG_IsOK(ecode7)) {
10170 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10171 }
10172 arg7 = static_cast< long >(val7);
10173 }
10174 if (obj7) {
10175 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10176 if (!SWIG_IsOK(res8)) {
10177 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10178 }
10179 if (!argp8) {
10180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10181 }
10182 arg8 = reinterpret_cast< wxValidator * >(argp8);
10183 }
10184 if (obj8) {
10185 {
10186 arg9 = wxString_in_helper(obj8);
10187 if (arg9 == NULL) SWIG_fail;
10188 temp9 = true;
10189 }
10190 }
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 {
10198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10199 }
10200 {
10201 if (temp6) delete arg6;
10202 }
10203 {
10204 if (temp9)
10205 delete arg9;
10206 }
10207 return resultobj;
10208 fail:
10209 {
10210 if (temp6) delete arg6;
10211 }
10212 {
10213 if (temp9)
10214 delete arg9;
10215 }
10216 return NULL;
10217 }
10218
10219
10220 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10221 PyObject *resultobj = 0;
10222 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10223 int arg2 ;
10224 bool result;
10225 void *argp1 = 0 ;
10226 int res1 = 0 ;
10227 int val2 ;
10228 int ecode2 = 0 ;
10229 PyObject * obj0 = 0 ;
10230 PyObject * obj1 = 0 ;
10231 char * kwnames[] = {
10232 (char *) "self",(char *) "index", NULL
10233 };
10234
10235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10237 if (!SWIG_IsOK(res1)) {
10238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10239 }
10240 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10241 ecode2 = SWIG_AsVal_int(obj1, &val2);
10242 if (!SWIG_IsOK(ecode2)) {
10243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "int""'");
10244 }
10245 arg2 = static_cast< int >(val2);
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->IsChecked(arg2);
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10254 }
10255 return resultobj;
10256 fail:
10257 return NULL;
10258 }
10259
10260
10261 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10262 PyObject *resultobj = 0;
10263 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10264 int arg2 ;
10265 int arg3 = (int) true ;
10266 void *argp1 = 0 ;
10267 int res1 = 0 ;
10268 int val2 ;
10269 int ecode2 = 0 ;
10270 int val3 ;
10271 int ecode3 = 0 ;
10272 PyObject * obj0 = 0 ;
10273 PyObject * obj1 = 0 ;
10274 PyObject * obj2 = 0 ;
10275 char * kwnames[] = {
10276 (char *) "self",(char *) "index",(char *) "check", NULL
10277 };
10278
10279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10281 if (!SWIG_IsOK(res1)) {
10282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10283 }
10284 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10285 ecode2 = SWIG_AsVal_int(obj1, &val2);
10286 if (!SWIG_IsOK(ecode2)) {
10287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "int""'");
10288 }
10289 arg2 = static_cast< int >(val2);
10290 if (obj2) {
10291 ecode3 = SWIG_AsVal_int(obj2, &val3);
10292 if (!SWIG_IsOK(ecode3)) {
10293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10294 }
10295 arg3 = static_cast< int >(val3);
10296 }
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 (arg1)->Check(arg2,arg3);
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 resultobj = SWIG_Py_Void();
10304 return resultobj;
10305 fail:
10306 return NULL;
10307 }
10308
10309
10310 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10311 PyObject *resultobj = 0;
10312 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10313 int result;
10314 void *argp1 = 0 ;
10315 int res1 = 0 ;
10316 PyObject *swig_obj[1] ;
10317
10318 if (!args) SWIG_fail;
10319 swig_obj[0] = args;
10320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10321 if (!SWIG_IsOK(res1)) {
10322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10323 }
10324 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10325 {
10326 PyThreadState* __tstate = wxPyBeginAllowThreads();
10327 result = (int)(arg1)->GetItemHeight();
10328 wxPyEndAllowThreads(__tstate);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 resultobj = SWIG_From_int(static_cast< int >(result));
10332 return resultobj;
10333 fail:
10334 return NULL;
10335 }
10336
10337
10338 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10339 PyObject *obj;
10340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10341 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10342 return SWIG_Py_Void();
10343 }
10344
10345 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10346 return SWIG_Python_InitShadowInstance(args);
10347 }
10348
10349 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10350 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10351 return 1;
10352 }
10353
10354
10355 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10356 PyObject *pyobj = 0;
10357
10358 {
10359 #if wxUSE_UNICODE
10360 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10361 #else
10362 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10363 #endif
10364 }
10365 return pyobj;
10366 }
10367
10368
10369 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10370 PyObject *resultobj = 0;
10371 wxColour const &arg1_defvalue = wxNullColour ;
10372 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10373 wxColour const &arg2_defvalue = wxNullColour ;
10374 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10375 wxFont const &arg3_defvalue = wxNullFont ;
10376 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10377 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10378 wxTextAttr *result = 0 ;
10379 wxColour temp1 ;
10380 wxColour temp2 ;
10381 void *argp3 = 0 ;
10382 int res3 = 0 ;
10383 int val4 ;
10384 int ecode4 = 0 ;
10385 PyObject * obj0 = 0 ;
10386 PyObject * obj1 = 0 ;
10387 PyObject * obj2 = 0 ;
10388 PyObject * obj3 = 0 ;
10389 char * kwnames[] = {
10390 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10391 };
10392
10393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10394 if (obj0) {
10395 {
10396 arg1 = &temp1;
10397 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10398 }
10399 }
10400 if (obj1) {
10401 {
10402 arg2 = &temp2;
10403 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10404 }
10405 }
10406 if (obj2) {
10407 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10408 if (!SWIG_IsOK(res3)) {
10409 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10410 }
10411 if (!argp3) {
10412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10413 }
10414 arg3 = reinterpret_cast< wxFont * >(argp3);
10415 }
10416 if (obj3) {
10417 ecode4 = SWIG_AsVal_int(obj3, &val4);
10418 if (!SWIG_IsOK(ecode4)) {
10419 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10420 }
10421 arg4 = static_cast< wxTextAttrAlignment >(val4);
10422 }
10423 {
10424 PyThreadState* __tstate = wxPyBeginAllowThreads();
10425 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10426 wxPyEndAllowThreads(__tstate);
10427 if (PyErr_Occurred()) SWIG_fail;
10428 }
10429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10430 return resultobj;
10431 fail:
10432 return NULL;
10433 }
10434
10435
10436 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10437 PyObject *resultobj = 0;
10438 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10439 void *argp1 = 0 ;
10440 int res1 = 0 ;
10441 PyObject *swig_obj[1] ;
10442
10443 if (!args) SWIG_fail;
10444 swig_obj[0] = args;
10445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10446 if (!SWIG_IsOK(res1)) {
10447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10448 }
10449 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 delete arg1;
10453
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 resultobj = SWIG_Py_Void();
10458 return resultobj;
10459 fail:
10460 return NULL;
10461 }
10462
10463
10464 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10465 PyObject *resultobj = 0;
10466 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10467 void *argp1 = 0 ;
10468 int res1 = 0 ;
10469 PyObject *swig_obj[1] ;
10470
10471 if (!args) SWIG_fail;
10472 swig_obj[0] = args;
10473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10474 if (!SWIG_IsOK(res1)) {
10475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10476 }
10477 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 (arg1)->Init();
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 resultobj = SWIG_Py_Void();
10485 return resultobj;
10486 fail:
10487 return NULL;
10488 }
10489
10490
10491 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10492 PyObject *resultobj = 0;
10493 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10494 wxColour *arg2 = 0 ;
10495 void *argp1 = 0 ;
10496 int res1 = 0 ;
10497 wxColour temp2 ;
10498 PyObject * obj0 = 0 ;
10499 PyObject * obj1 = 0 ;
10500 char * kwnames[] = {
10501 (char *) "self",(char *) "colText", NULL
10502 };
10503
10504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10506 if (!SWIG_IsOK(res1)) {
10507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10508 }
10509 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10510 {
10511 arg2 = &temp2;
10512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10513 }
10514 {
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 (arg1)->SetTextColour((wxColour const &)*arg2);
10517 wxPyEndAllowThreads(__tstate);
10518 if (PyErr_Occurred()) SWIG_fail;
10519 }
10520 resultobj = SWIG_Py_Void();
10521 return resultobj;
10522 fail:
10523 return NULL;
10524 }
10525
10526
10527 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10528 PyObject *resultobj = 0;
10529 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10530 wxColour *arg2 = 0 ;
10531 void *argp1 = 0 ;
10532 int res1 = 0 ;
10533 wxColour temp2 ;
10534 PyObject * obj0 = 0 ;
10535 PyObject * obj1 = 0 ;
10536 char * kwnames[] = {
10537 (char *) "self",(char *) "colBack", NULL
10538 };
10539
10540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10542 if (!SWIG_IsOK(res1)) {
10543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10544 }
10545 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10546 {
10547 arg2 = &temp2;
10548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10549 }
10550 {
10551 PyThreadState* __tstate = wxPyBeginAllowThreads();
10552 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10553 wxPyEndAllowThreads(__tstate);
10554 if (PyErr_Occurred()) SWIG_fail;
10555 }
10556 resultobj = SWIG_Py_Void();
10557 return resultobj;
10558 fail:
10559 return NULL;
10560 }
10561
10562
10563 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10564 PyObject *resultobj = 0;
10565 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10566 wxFont *arg2 = 0 ;
10567 long arg3 = (long) wxTEXT_ATTR_FONT ;
10568 void *argp1 = 0 ;
10569 int res1 = 0 ;
10570 void *argp2 = 0 ;
10571 int res2 = 0 ;
10572 long val3 ;
10573 int ecode3 = 0 ;
10574 PyObject * obj0 = 0 ;
10575 PyObject * obj1 = 0 ;
10576 PyObject * obj2 = 0 ;
10577 char * kwnames[] = {
10578 (char *) "self",(char *) "font",(char *) "flags", NULL
10579 };
10580
10581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10583 if (!SWIG_IsOK(res1)) {
10584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10585 }
10586 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10588 if (!SWIG_IsOK(res2)) {
10589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10590 }
10591 if (!argp2) {
10592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10593 }
10594 arg2 = reinterpret_cast< wxFont * >(argp2);
10595 if (obj2) {
10596 ecode3 = SWIG_AsVal_long(obj2, &val3);
10597 if (!SWIG_IsOK(ecode3)) {
10598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10599 }
10600 arg3 = static_cast< long >(val3);
10601 }
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_Py_Void();
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj = 0;
10617 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10618 wxTextAttrAlignment arg2 ;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 int val2 ;
10622 int ecode2 = 0 ;
10623 PyObject * obj0 = 0 ;
10624 PyObject * obj1 = 0 ;
10625 char * kwnames[] = {
10626 (char *) "self",(char *) "alignment", NULL
10627 };
10628
10629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10631 if (!SWIG_IsOK(res1)) {
10632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10633 }
10634 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10635 ecode2 = SWIG_AsVal_int(obj1, &val2);
10636 if (!SWIG_IsOK(ecode2)) {
10637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10638 }
10639 arg2 = static_cast< wxTextAttrAlignment >(val2);
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 (arg1)->SetAlignment(arg2);
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 resultobj = SWIG_Py_Void();
10647 return resultobj;
10648 fail:
10649 return NULL;
10650 }
10651
10652
10653 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10654 PyObject *resultobj = 0;
10655 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10656 wxArrayInt *arg2 = 0 ;
10657 void *argp1 = 0 ;
10658 int res1 = 0 ;
10659 bool temp2 = false ;
10660 PyObject * obj0 = 0 ;
10661 PyObject * obj1 = 0 ;
10662 char * kwnames[] = {
10663 (char *) "self",(char *) "tabs", NULL
10664 };
10665
10666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10668 if (!SWIG_IsOK(res1)) {
10669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10670 }
10671 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10672 {
10673 if (! PySequence_Check(obj1)) {
10674 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10675 SWIG_fail;
10676 }
10677 arg2 = new wxArrayInt;
10678 temp2 = true;
10679 int i, len=PySequence_Length(obj1);
10680 for (i=0; i<len; i++) {
10681 PyObject* item = PySequence_GetItem(obj1, i);
10682 PyObject* number = PyNumber_Int(item);
10683 arg2->Add(PyInt_AS_LONG(number));
10684 Py_DECREF(item);
10685 Py_DECREF(number);
10686 }
10687 }
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_Py_Void();
10695 {
10696 if (temp2) delete arg2;
10697 }
10698 return resultobj;
10699 fail:
10700 {
10701 if (temp2) delete arg2;
10702 }
10703 return NULL;
10704 }
10705
10706
10707 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10708 PyObject *resultobj = 0;
10709 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10710 int arg2 ;
10711 int arg3 = (int) 0 ;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 int val2 ;
10715 int ecode2 = 0 ;
10716 int val3 ;
10717 int ecode3 = 0 ;
10718 PyObject * obj0 = 0 ;
10719 PyObject * obj1 = 0 ;
10720 PyObject * obj2 = 0 ;
10721 char * kwnames[] = {
10722 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10723 };
10724
10725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10727 if (!SWIG_IsOK(res1)) {
10728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10729 }
10730 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10731 ecode2 = SWIG_AsVal_int(obj1, &val2);
10732 if (!SWIG_IsOK(ecode2)) {
10733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10734 }
10735 arg2 = static_cast< int >(val2);
10736 if (obj2) {
10737 ecode3 = SWIG_AsVal_int(obj2, &val3);
10738 if (!SWIG_IsOK(ecode3)) {
10739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10740 }
10741 arg3 = static_cast< int >(val3);
10742 }
10743 {
10744 PyThreadState* __tstate = wxPyBeginAllowThreads();
10745 (arg1)->SetLeftIndent(arg2,arg3);
10746 wxPyEndAllowThreads(__tstate);
10747 if (PyErr_Occurred()) SWIG_fail;
10748 }
10749 resultobj = SWIG_Py_Void();
10750 return resultobj;
10751 fail:
10752 return NULL;
10753 }
10754
10755
10756 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10757 PyObject *resultobj = 0;
10758 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10759 int arg2 ;
10760 void *argp1 = 0 ;
10761 int res1 = 0 ;
10762 int val2 ;
10763 int ecode2 = 0 ;
10764 PyObject * obj0 = 0 ;
10765 PyObject * obj1 = 0 ;
10766 char * kwnames[] = {
10767 (char *) "self",(char *) "indent", NULL
10768 };
10769
10770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10772 if (!SWIG_IsOK(res1)) {
10773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10774 }
10775 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10776 ecode2 = SWIG_AsVal_int(obj1, &val2);
10777 if (!SWIG_IsOK(ecode2)) {
10778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10779 }
10780 arg2 = static_cast< int >(val2);
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 (arg1)->SetRightIndent(arg2);
10784 wxPyEndAllowThreads(__tstate);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 }
10787 resultobj = SWIG_Py_Void();
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10795 PyObject *resultobj = 0;
10796 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10797 long arg2 ;
10798 void *argp1 = 0 ;
10799 int res1 = 0 ;
10800 long val2 ;
10801 int ecode2 = 0 ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 char * kwnames[] = {
10805 (char *) "self",(char *) "flags", NULL
10806 };
10807
10808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10810 if (!SWIG_IsOK(res1)) {
10811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10812 }
10813 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10814 ecode2 = SWIG_AsVal_long(obj1, &val2);
10815 if (!SWIG_IsOK(ecode2)) {
10816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10817 }
10818 arg2 = static_cast< long >(val2);
10819 {
10820 PyThreadState* __tstate = wxPyBeginAllowThreads();
10821 (arg1)->SetFlags(arg2);
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
10825 resultobj = SWIG_Py_Void();
10826 return resultobj;
10827 fail:
10828 return NULL;
10829 }
10830
10831
10832 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10833 PyObject *resultobj = 0;
10834 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10835 bool result;
10836 void *argp1 = 0 ;
10837 int res1 = 0 ;
10838 PyObject *swig_obj[1] ;
10839
10840 if (!args) SWIG_fail;
10841 swig_obj[0] = args;
10842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10843 if (!SWIG_IsOK(res1)) {
10844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10845 }
10846 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10847 {
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10850 wxPyEndAllowThreads(__tstate);
10851 if (PyErr_Occurred()) SWIG_fail;
10852 }
10853 {
10854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10855 }
10856 return resultobj;
10857 fail:
10858 return NULL;
10859 }
10860
10861
10862 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10863 PyObject *resultobj = 0;
10864 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10865 bool result;
10866 void *argp1 = 0 ;
10867 int res1 = 0 ;
10868 PyObject *swig_obj[1] ;
10869
10870 if (!args) SWIG_fail;
10871 swig_obj[0] = args;
10872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10873 if (!SWIG_IsOK(res1)) {
10874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10875 }
10876 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 {
10884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10885 }
10886 return resultobj;
10887 fail:
10888 return NULL;
10889 }
10890
10891
10892 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10893 PyObject *resultobj = 0;
10894 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10895 bool result;
10896 void *argp1 = 0 ;
10897 int res1 = 0 ;
10898 PyObject *swig_obj[1] ;
10899
10900 if (!args) SWIG_fail;
10901 swig_obj[0] = args;
10902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10903 if (!SWIG_IsOK(res1)) {
10904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10905 }
10906 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 {
10914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10915 }
10916 return resultobj;
10917 fail:
10918 return NULL;
10919 }
10920
10921
10922 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10923 PyObject *resultobj = 0;
10924 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10925 bool result;
10926 void *argp1 = 0 ;
10927 int res1 = 0 ;
10928 PyObject *swig_obj[1] ;
10929
10930 if (!args) SWIG_fail;
10931 swig_obj[0] = args;
10932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10933 if (!SWIG_IsOK(res1)) {
10934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10935 }
10936 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10937 {
10938 PyThreadState* __tstate = wxPyBeginAllowThreads();
10939 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10940 wxPyEndAllowThreads(__tstate);
10941 if (PyErr_Occurred()) SWIG_fail;
10942 }
10943 {
10944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10945 }
10946 return resultobj;
10947 fail:
10948 return NULL;
10949 }
10950
10951
10952 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10953 PyObject *resultobj = 0;
10954 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10955 bool result;
10956 void *argp1 = 0 ;
10957 int res1 = 0 ;
10958 PyObject *swig_obj[1] ;
10959
10960 if (!args) SWIG_fail;
10961 swig_obj[0] = args;
10962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10963 if (!SWIG_IsOK(res1)) {
10964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10965 }
10966 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
10970 wxPyEndAllowThreads(__tstate);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 }
10973 {
10974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10975 }
10976 return resultobj;
10977 fail:
10978 return NULL;
10979 }
10980
10981
10982 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10983 PyObject *resultobj = 0;
10984 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10985 bool result;
10986 void *argp1 = 0 ;
10987 int res1 = 0 ;
10988 PyObject *swig_obj[1] ;
10989
10990 if (!args) SWIG_fail;
10991 swig_obj[0] = args;
10992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10993 if (!SWIG_IsOK(res1)) {
10994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10995 }
10996 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 {
11004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11005 }
11006 return resultobj;
11007 fail:
11008 return NULL;
11009 }
11010
11011
11012 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11013 PyObject *resultobj = 0;
11014 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11015 bool result;
11016 void *argp1 = 0 ;
11017 int res1 = 0 ;
11018 PyObject *swig_obj[1] ;
11019
11020 if (!args) SWIG_fail;
11021 swig_obj[0] = args;
11022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11023 if (!SWIG_IsOK(res1)) {
11024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11025 }
11026 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11027 {
11028 PyThreadState* __tstate = wxPyBeginAllowThreads();
11029 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11030 wxPyEndAllowThreads(__tstate);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 }
11033 {
11034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11035 }
11036 return resultobj;
11037 fail:
11038 return NULL;
11039 }
11040
11041
11042 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11043 PyObject *resultobj = 0;
11044 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11045 long arg2 ;
11046 bool result;
11047 void *argp1 = 0 ;
11048 int res1 = 0 ;
11049 long val2 ;
11050 int ecode2 = 0 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 char * kwnames[] = {
11054 (char *) "self",(char *) "flag", NULL
11055 };
11056
11057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11059 if (!SWIG_IsOK(res1)) {
11060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11061 }
11062 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11063 ecode2 = SWIG_AsVal_long(obj1, &val2);
11064 if (!SWIG_IsOK(ecode2)) {
11065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11066 }
11067 arg2 = static_cast< long >(val2);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078 fail:
11079 return NULL;
11080 }
11081
11082
11083 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 wxColour *result = 0 ;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 {
11101 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11102 result = (wxColour *) &_result_ref;
11103 }
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11108 return resultobj;
11109 fail:
11110 return NULL;
11111 }
11112
11113
11114 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11115 PyObject *resultobj = 0;
11116 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11117 wxColour *result = 0 ;
11118 void *argp1 = 0 ;
11119 int res1 = 0 ;
11120 PyObject *swig_obj[1] ;
11121
11122 if (!args) SWIG_fail;
11123 swig_obj[0] = args;
11124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11125 if (!SWIG_IsOK(res1)) {
11126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11127 }
11128 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 {
11132 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11133 result = (wxColour *) &_result_ref;
11134 }
11135 wxPyEndAllowThreads(__tstate);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11139 return resultobj;
11140 fail:
11141 return NULL;
11142 }
11143
11144
11145 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11146 PyObject *resultobj = 0;
11147 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11148 wxFont *result = 0 ;
11149 void *argp1 = 0 ;
11150 int res1 = 0 ;
11151 PyObject *swig_obj[1] ;
11152
11153 if (!args) SWIG_fail;
11154 swig_obj[0] = args;
11155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11156 if (!SWIG_IsOK(res1)) {
11157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11158 }
11159 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 {
11163 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11164 result = (wxFont *) &_result_ref;
11165 }
11166 wxPyEndAllowThreads(__tstate);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 {
11170 wxFont* resultptr = new wxFont(*result);
11171 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11172 }
11173 return resultobj;
11174 fail:
11175 return NULL;
11176 }
11177
11178
11179 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11180 PyObject *resultobj = 0;
11181 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11182 wxTextAttrAlignment result;
11183 void *argp1 = 0 ;
11184 int res1 = 0 ;
11185 PyObject *swig_obj[1] ;
11186
11187 if (!args) SWIG_fail;
11188 swig_obj[0] = args;
11189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11190 if (!SWIG_IsOK(res1)) {
11191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11192 }
11193 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11197 wxPyEndAllowThreads(__tstate);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 resultobj = SWIG_From_int(static_cast< int >(result));
11201 return resultobj;
11202 fail:
11203 return NULL;
11204 }
11205
11206
11207 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11208 PyObject *resultobj = 0;
11209 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11210 wxArrayInt *result = 0 ;
11211 void *argp1 = 0 ;
11212 int res1 = 0 ;
11213 PyObject *swig_obj[1] ;
11214
11215 if (!args) SWIG_fail;
11216 swig_obj[0] = args;
11217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11218 if (!SWIG_IsOK(res1)) {
11219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11220 }
11221 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
11224 {
11225 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11226 result = (wxArrayInt *) &_result_ref;
11227 }
11228 wxPyEndAllowThreads(__tstate);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 }
11231 {
11232 resultobj = PyList_New(0);
11233 size_t idx;
11234 for (idx = 0; idx < result->GetCount(); idx += 1) {
11235 PyObject* val = PyInt_FromLong( result->Item(idx) );
11236 PyList_Append(resultobj, val);
11237 Py_DECREF(val);
11238 }
11239 }
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11249 long result;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 PyObject *swig_obj[1] ;
11253
11254 if (!args) SWIG_fail;
11255 swig_obj[0] = args;
11256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11259 }
11260 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 resultobj = SWIG_From_long(static_cast< long >(result));
11268 return resultobj;
11269 fail:
11270 return NULL;
11271 }
11272
11273
11274 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11275 PyObject *resultobj = 0;
11276 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11277 long result;
11278 void *argp1 = 0 ;
11279 int res1 = 0 ;
11280 PyObject *swig_obj[1] ;
11281
11282 if (!args) SWIG_fail;
11283 swig_obj[0] = args;
11284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11285 if (!SWIG_IsOK(res1)) {
11286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11287 }
11288 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 resultobj = SWIG_From_long(static_cast< long >(result));
11296 return resultobj;
11297 fail:
11298 return NULL;
11299 }
11300
11301
11302 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11303 PyObject *resultobj = 0;
11304 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11305 long result;
11306 void *argp1 = 0 ;
11307 int res1 = 0 ;
11308 PyObject *swig_obj[1] ;
11309
11310 if (!args) SWIG_fail;
11311 swig_obj[0] = args;
11312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11315 }
11316 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 resultobj = SWIG_From_long(static_cast< long >(result));
11324 return resultobj;
11325 fail:
11326 return NULL;
11327 }
11328
11329
11330 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11331 PyObject *resultobj = 0;
11332 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11333 long result;
11334 void *argp1 = 0 ;
11335 int res1 = 0 ;
11336 PyObject *swig_obj[1] ;
11337
11338 if (!args) SWIG_fail;
11339 swig_obj[0] = args;
11340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11343 }
11344 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
11347 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11348 wxPyEndAllowThreads(__tstate);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 }
11351 resultobj = SWIG_From_long(static_cast< long >(result));
11352 return resultobj;
11353 fail:
11354 return NULL;
11355 }
11356
11357
11358 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11359 PyObject *resultobj = 0;
11360 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11361 bool result;
11362 void *argp1 = 0 ;
11363 int res1 = 0 ;
11364 PyObject *swig_obj[1] ;
11365
11366 if (!args) SWIG_fail;
11367 swig_obj[0] = args;
11368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11369 if (!SWIG_IsOK(res1)) {
11370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11371 }
11372 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11373 {
11374 PyThreadState* __tstate = wxPyBeginAllowThreads();
11375 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11376 wxPyEndAllowThreads(__tstate);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 {
11380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11381 }
11382 return resultobj;
11383 fail:
11384 return NULL;
11385 }
11386
11387
11388 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11389 PyObject *resultobj = 0;
11390 wxTextAttr *arg1 = 0 ;
11391 wxTextAttr *arg2 = 0 ;
11392 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11393 wxTextAttr result;
11394 void *argp1 = 0 ;
11395 int res1 = 0 ;
11396 void *argp2 = 0 ;
11397 int res2 = 0 ;
11398 void *argp3 = 0 ;
11399 int res3 = 0 ;
11400 PyObject * obj0 = 0 ;
11401 PyObject * obj1 = 0 ;
11402 PyObject * obj2 = 0 ;
11403 char * kwnames[] = {
11404 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11405 };
11406
11407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11408 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11409 if (!SWIG_IsOK(res1)) {
11410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11411 }
11412 if (!argp1) {
11413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11414 }
11415 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11417 if (!SWIG_IsOK(res2)) {
11418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11419 }
11420 if (!argp2) {
11421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11422 }
11423 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11424 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11425 if (!SWIG_IsOK(res3)) {
11426 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11427 }
11428 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11436 return resultobj;
11437 fail:
11438 return NULL;
11439 }
11440
11441
11442 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11443 PyObject *obj;
11444 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11445 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11446 return SWIG_Py_Void();
11447 }
11448
11449 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11450 return SWIG_Python_InitShadowInstance(args);
11451 }
11452
11453 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11454 PyObject *resultobj = 0;
11455 wxWindow *arg1 = (wxWindow *) 0 ;
11456 int arg2 = (int) -1 ;
11457 wxString const &arg3_defvalue = wxPyEmptyString ;
11458 wxString *arg3 = (wxString *) &arg3_defvalue ;
11459 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11460 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11461 wxSize const &arg5_defvalue = wxDefaultSize ;
11462 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11463 long arg6 = (long) 0 ;
11464 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11465 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11466 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11467 wxString *arg8 = (wxString *) &arg8_defvalue ;
11468 wxTextCtrl *result = 0 ;
11469 void *argp1 = 0 ;
11470 int res1 = 0 ;
11471 int val2 ;
11472 int ecode2 = 0 ;
11473 bool temp3 = false ;
11474 wxPoint temp4 ;
11475 wxSize temp5 ;
11476 long val6 ;
11477 int ecode6 = 0 ;
11478 void *argp7 = 0 ;
11479 int res7 = 0 ;
11480 bool temp8 = false ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 PyObject * obj2 = 0 ;
11484 PyObject * obj3 = 0 ;
11485 PyObject * obj4 = 0 ;
11486 PyObject * obj5 = 0 ;
11487 PyObject * obj6 = 0 ;
11488 PyObject * obj7 = 0 ;
11489 char * kwnames[] = {
11490 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11491 };
11492
11493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11495 if (!SWIG_IsOK(res1)) {
11496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11497 }
11498 arg1 = reinterpret_cast< wxWindow * >(argp1);
11499 if (obj1) {
11500 ecode2 = SWIG_AsVal_int(obj1, &val2);
11501 if (!SWIG_IsOK(ecode2)) {
11502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11503 }
11504 arg2 = static_cast< int >(val2);
11505 }
11506 if (obj2) {
11507 {
11508 arg3 = wxString_in_helper(obj2);
11509 if (arg3 == NULL) SWIG_fail;
11510 temp3 = true;
11511 }
11512 }
11513 if (obj3) {
11514 {
11515 arg4 = &temp4;
11516 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11517 }
11518 }
11519 if (obj4) {
11520 {
11521 arg5 = &temp5;
11522 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11523 }
11524 }
11525 if (obj5) {
11526 ecode6 = SWIG_AsVal_long(obj5, &val6);
11527 if (!SWIG_IsOK(ecode6)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11529 }
11530 arg6 = static_cast< long >(val6);
11531 }
11532 if (obj6) {
11533 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11534 if (!SWIG_IsOK(res7)) {
11535 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11536 }
11537 if (!argp7) {
11538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11539 }
11540 arg7 = reinterpret_cast< wxValidator * >(argp7);
11541 }
11542 if (obj7) {
11543 {
11544 arg8 = wxString_in_helper(obj7);
11545 if (arg8 == NULL) SWIG_fail;
11546 temp8 = true;
11547 }
11548 }
11549 {
11550 if (!wxPyCheckForApp()) SWIG_fail;
11551 PyThreadState* __tstate = wxPyBeginAllowThreads();
11552 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11553 wxPyEndAllowThreads(__tstate);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 }
11556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11557 {
11558 if (temp3)
11559 delete arg3;
11560 }
11561 {
11562 if (temp8)
11563 delete arg8;
11564 }
11565 return resultobj;
11566 fail:
11567 {
11568 if (temp3)
11569 delete arg3;
11570 }
11571 {
11572 if (temp8)
11573 delete arg8;
11574 }
11575 return NULL;
11576 }
11577
11578
11579 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11580 PyObject *resultobj = 0;
11581 wxTextCtrl *result = 0 ;
11582
11583 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11584 {
11585 if (!wxPyCheckForApp()) SWIG_fail;
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 result = (wxTextCtrl *)new wxTextCtrl();
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11592 return resultobj;
11593 fail:
11594 return NULL;
11595 }
11596
11597
11598 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj = 0;
11600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11601 wxWindow *arg2 = (wxWindow *) 0 ;
11602 int arg3 = (int) -1 ;
11603 wxString const &arg4_defvalue = wxPyEmptyString ;
11604 wxString *arg4 = (wxString *) &arg4_defvalue ;
11605 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11606 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11607 wxSize const &arg6_defvalue = wxDefaultSize ;
11608 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11609 long arg7 = (long) 0 ;
11610 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11611 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11612 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11613 wxString *arg9 = (wxString *) &arg9_defvalue ;
11614 bool result;
11615 void *argp1 = 0 ;
11616 int res1 = 0 ;
11617 void *argp2 = 0 ;
11618 int res2 = 0 ;
11619 int val3 ;
11620 int ecode3 = 0 ;
11621 bool temp4 = false ;
11622 wxPoint temp5 ;
11623 wxSize temp6 ;
11624 long val7 ;
11625 int ecode7 = 0 ;
11626 void *argp8 = 0 ;
11627 int res8 = 0 ;
11628 bool temp9 = false ;
11629 PyObject * obj0 = 0 ;
11630 PyObject * obj1 = 0 ;
11631 PyObject * obj2 = 0 ;
11632 PyObject * obj3 = 0 ;
11633 PyObject * obj4 = 0 ;
11634 PyObject * obj5 = 0 ;
11635 PyObject * obj6 = 0 ;
11636 PyObject * obj7 = 0 ;
11637 PyObject * obj8 = 0 ;
11638 char * kwnames[] = {
11639 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11640 };
11641
11642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11644 if (!SWIG_IsOK(res1)) {
11645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11646 }
11647 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11649 if (!SWIG_IsOK(res2)) {
11650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11651 }
11652 arg2 = reinterpret_cast< wxWindow * >(argp2);
11653 if (obj2) {
11654 ecode3 = SWIG_AsVal_int(obj2, &val3);
11655 if (!SWIG_IsOK(ecode3)) {
11656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11657 }
11658 arg3 = static_cast< int >(val3);
11659 }
11660 if (obj3) {
11661 {
11662 arg4 = wxString_in_helper(obj3);
11663 if (arg4 == NULL) SWIG_fail;
11664 temp4 = true;
11665 }
11666 }
11667 if (obj4) {
11668 {
11669 arg5 = &temp5;
11670 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11671 }
11672 }
11673 if (obj5) {
11674 {
11675 arg6 = &temp6;
11676 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11677 }
11678 }
11679 if (obj6) {
11680 ecode7 = SWIG_AsVal_long(obj6, &val7);
11681 if (!SWIG_IsOK(ecode7)) {
11682 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11683 }
11684 arg7 = static_cast< long >(val7);
11685 }
11686 if (obj7) {
11687 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11688 if (!SWIG_IsOK(res8)) {
11689 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11690 }
11691 if (!argp8) {
11692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11693 }
11694 arg8 = reinterpret_cast< wxValidator * >(argp8);
11695 }
11696 if (obj8) {
11697 {
11698 arg9 = wxString_in_helper(obj8);
11699 if (arg9 == NULL) SWIG_fail;
11700 temp9 = true;
11701 }
11702 }
11703 {
11704 PyThreadState* __tstate = wxPyBeginAllowThreads();
11705 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 {
11710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11711 }
11712 {
11713 if (temp4)
11714 delete arg4;
11715 }
11716 {
11717 if (temp9)
11718 delete arg9;
11719 }
11720 return resultobj;
11721 fail:
11722 {
11723 if (temp4)
11724 delete arg4;
11725 }
11726 {
11727 if (temp9)
11728 delete arg9;
11729 }
11730 return NULL;
11731 }
11732
11733
11734 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11735 PyObject *resultobj = 0;
11736 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11737 wxString result;
11738 void *argp1 = 0 ;
11739 int res1 = 0 ;
11740 PyObject *swig_obj[1] ;
11741
11742 if (!args) SWIG_fail;
11743 swig_obj[0] = args;
11744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11745 if (!SWIG_IsOK(res1)) {
11746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11747 }
11748 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11749 {
11750 PyThreadState* __tstate = wxPyBeginAllowThreads();
11751 result = ((wxTextCtrl const *)arg1)->GetValue();
11752 wxPyEndAllowThreads(__tstate);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 }
11755 {
11756 #if wxUSE_UNICODE
11757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11758 #else
11759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11760 #endif
11761 }
11762 return resultobj;
11763 fail:
11764 return NULL;
11765 }
11766
11767
11768 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11769 PyObject *resultobj = 0;
11770 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11771 wxString *arg2 = 0 ;
11772 void *argp1 = 0 ;
11773 int res1 = 0 ;
11774 bool temp2 = false ;
11775 PyObject * obj0 = 0 ;
11776 PyObject * obj1 = 0 ;
11777 char * kwnames[] = {
11778 (char *) "self",(char *) "value", NULL
11779 };
11780
11781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11783 if (!SWIG_IsOK(res1)) {
11784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11785 }
11786 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11787 {
11788 arg2 = wxString_in_helper(obj1);
11789 if (arg2 == NULL) SWIG_fail;
11790 temp2 = true;
11791 }
11792 {
11793 PyThreadState* __tstate = wxPyBeginAllowThreads();
11794 (arg1)->SetValue((wxString const &)*arg2);
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 resultobj = SWIG_Py_Void();
11799 {
11800 if (temp2)
11801 delete arg2;
11802 }
11803 return resultobj;
11804 fail:
11805 {
11806 if (temp2)
11807 delete arg2;
11808 }
11809 return NULL;
11810 }
11811
11812
11813 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11814 PyObject *resultobj = 0;
11815 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11816 long arg2 ;
11817 long arg3 ;
11818 wxString result;
11819 void *argp1 = 0 ;
11820 int res1 = 0 ;
11821 long val2 ;
11822 int ecode2 = 0 ;
11823 long val3 ;
11824 int ecode3 = 0 ;
11825 PyObject * obj0 = 0 ;
11826 PyObject * obj1 = 0 ;
11827 PyObject * obj2 = 0 ;
11828 char * kwnames[] = {
11829 (char *) "self",(char *) "_from",(char *) "to", NULL
11830 };
11831
11832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) 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_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11836 }
11837 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11838 ecode2 = SWIG_AsVal_long(obj1, &val2);
11839 if (!SWIG_IsOK(ecode2)) {
11840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11841 }
11842 arg2 = static_cast< long >(val2);
11843 ecode3 = SWIG_AsVal_long(obj2, &val3);
11844 if (!SWIG_IsOK(ecode3)) {
11845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11846 }
11847 arg3 = static_cast< long >(val3);
11848 {
11849 PyThreadState* __tstate = wxPyBeginAllowThreads();
11850 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 {
11855 #if wxUSE_UNICODE
11856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11857 #else
11858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11859 #endif
11860 }
11861 return resultobj;
11862 fail:
11863 return NULL;
11864 }
11865
11866
11867 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11868 PyObject *resultobj = 0;
11869 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11870 long arg2 ;
11871 int result;
11872 void *argp1 = 0 ;
11873 int res1 = 0 ;
11874 long val2 ;
11875 int ecode2 = 0 ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 char * kwnames[] = {
11879 (char *) "self",(char *) "lineNo", NULL
11880 };
11881
11882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11884 if (!SWIG_IsOK(res1)) {
11885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11886 }
11887 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11888 ecode2 = SWIG_AsVal_long(obj1, &val2);
11889 if (!SWIG_IsOK(ecode2)) {
11890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11891 }
11892 arg2 = static_cast< long >(val2);
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = SWIG_From_int(static_cast< int >(result));
11900 return resultobj;
11901 fail:
11902 return NULL;
11903 }
11904
11905
11906 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj = 0;
11908 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11909 long arg2 ;
11910 wxString result;
11911 void *argp1 = 0 ;
11912 int res1 = 0 ;
11913 long val2 ;
11914 int ecode2 = 0 ;
11915 PyObject * obj0 = 0 ;
11916 PyObject * obj1 = 0 ;
11917 char * kwnames[] = {
11918 (char *) "self",(char *) "lineNo", NULL
11919 };
11920
11921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11925 }
11926 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11927 ecode2 = SWIG_AsVal_long(obj1, &val2);
11928 if (!SWIG_IsOK(ecode2)) {
11929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11930 }
11931 arg2 = static_cast< long >(val2);
11932 {
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 {
11939 #if wxUSE_UNICODE
11940 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11941 #else
11942 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11943 #endif
11944 }
11945 return resultobj;
11946 fail:
11947 return NULL;
11948 }
11949
11950
11951 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11952 PyObject *resultobj = 0;
11953 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11954 int result;
11955 void *argp1 = 0 ;
11956 int res1 = 0 ;
11957 PyObject *swig_obj[1] ;
11958
11959 if (!args) SWIG_fail;
11960 swig_obj[0] = args;
11961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11962 if (!SWIG_IsOK(res1)) {
11963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11964 }
11965 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11966 {
11967 PyThreadState* __tstate = wxPyBeginAllowThreads();
11968 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
11969 wxPyEndAllowThreads(__tstate);
11970 if (PyErr_Occurred()) SWIG_fail;
11971 }
11972 resultobj = SWIG_From_int(static_cast< int >(result));
11973 return resultobj;
11974 fail:
11975 return NULL;
11976 }
11977
11978
11979 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11980 PyObject *resultobj = 0;
11981 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11982 bool result;
11983 void *argp1 = 0 ;
11984 int res1 = 0 ;
11985 PyObject *swig_obj[1] ;
11986
11987 if (!args) SWIG_fail;
11988 swig_obj[0] = args;
11989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11990 if (!SWIG_IsOK(res1)) {
11991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11992 }
11993 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 {
12001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12002 }
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12010 PyObject *resultobj = 0;
12011 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12012 bool result;
12013 void *argp1 = 0 ;
12014 int res1 = 0 ;
12015 PyObject *swig_obj[1] ;
12016
12017 if (!args) SWIG_fail;
12018 swig_obj[0] = args;
12019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12020 if (!SWIG_IsOK(res1)) {
12021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12022 }
12023 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12032 }
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12040 PyObject *resultobj = 0;
12041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12042 bool result;
12043 void *argp1 = 0 ;
12044 int res1 = 0 ;
12045 PyObject *swig_obj[1] ;
12046
12047 if (!args) SWIG_fail;
12048 swig_obj[0] = args;
12049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12050 if (!SWIG_IsOK(res1)) {
12051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12052 }
12053 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12054 {
12055 PyThreadState* __tstate = wxPyBeginAllowThreads();
12056 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12057 wxPyEndAllowThreads(__tstate);
12058 if (PyErr_Occurred()) SWIG_fail;
12059 }
12060 {
12061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12062 }
12063 return resultobj;
12064 fail:
12065 return NULL;
12066 }
12067
12068
12069 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12070 PyObject *resultobj = 0;
12071 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12072 bool result;
12073 void *argp1 = 0 ;
12074 int res1 = 0 ;
12075 PyObject *swig_obj[1] ;
12076
12077 if (!args) SWIG_fail;
12078 swig_obj[0] = args;
12079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12080 if (!SWIG_IsOK(res1)) {
12081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12082 }
12083 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12084 {
12085 PyThreadState* __tstate = wxPyBeginAllowThreads();
12086 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12087 wxPyEndAllowThreads(__tstate);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 {
12091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12092 }
12093 return resultobj;
12094 fail:
12095 return NULL;
12096 }
12097
12098
12099 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12100 PyObject *resultobj = 0;
12101 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12102 long *arg2 = (long *) 0 ;
12103 long *arg3 = (long *) 0 ;
12104 void *argp1 = 0 ;
12105 int res1 = 0 ;
12106 long temp2 ;
12107 int res2 = SWIG_TMPOBJ ;
12108 long temp3 ;
12109 int res3 = SWIG_TMPOBJ ;
12110 PyObject *swig_obj[1] ;
12111
12112 arg2 = &temp2;
12113 arg3 = &temp3;
12114 if (!args) SWIG_fail;
12115 swig_obj[0] = args;
12116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12119 }
12120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 resultobj = SWIG_Py_Void();
12128 if (SWIG_IsTmpObj(res2)) {
12129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12130 } else {
12131 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12133 }
12134 if (SWIG_IsTmpObj(res3)) {
12135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12136 } else {
12137 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12139 }
12140 return resultobj;
12141 fail:
12142 return NULL;
12143 }
12144
12145
12146 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12147 PyObject *resultobj = 0;
12148 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12149 wxString result;
12150 void *argp1 = 0 ;
12151 int res1 = 0 ;
12152 PyObject *swig_obj[1] ;
12153
12154 if (!args) SWIG_fail;
12155 swig_obj[0] = args;
12156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12157 if (!SWIG_IsOK(res1)) {
12158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12159 }
12160 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 {
12168 #if wxUSE_UNICODE
12169 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12170 #else
12171 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12172 #endif
12173 }
12174 return resultobj;
12175 fail:
12176 return NULL;
12177 }
12178
12179
12180 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12181 PyObject *resultobj = 0;
12182 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12183 void *argp1 = 0 ;
12184 int res1 = 0 ;
12185 PyObject *swig_obj[1] ;
12186
12187 if (!args) SWIG_fail;
12188 swig_obj[0] = args;
12189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12190 if (!SWIG_IsOK(res1)) {
12191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12192 }
12193 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 (arg1)->Clear();
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 resultobj = SWIG_Py_Void();
12201 return resultobj;
12202 fail:
12203 return NULL;
12204 }
12205
12206
12207 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj = 0;
12209 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12210 long arg2 ;
12211 long arg3 ;
12212 wxString *arg4 = 0 ;
12213 void *argp1 = 0 ;
12214 int res1 = 0 ;
12215 long val2 ;
12216 int ecode2 = 0 ;
12217 long val3 ;
12218 int ecode3 = 0 ;
12219 bool temp4 = false ;
12220 PyObject * obj0 = 0 ;
12221 PyObject * obj1 = 0 ;
12222 PyObject * obj2 = 0 ;
12223 PyObject * obj3 = 0 ;
12224 char * kwnames[] = {
12225 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
12226 };
12227
12228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12230 if (!SWIG_IsOK(res1)) {
12231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12232 }
12233 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12234 ecode2 = SWIG_AsVal_long(obj1, &val2);
12235 if (!SWIG_IsOK(ecode2)) {
12236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12237 }
12238 arg2 = static_cast< long >(val2);
12239 ecode3 = SWIG_AsVal_long(obj2, &val3);
12240 if (!SWIG_IsOK(ecode3)) {
12241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12242 }
12243 arg3 = static_cast< long >(val3);
12244 {
12245 arg4 = wxString_in_helper(obj3);
12246 if (arg4 == NULL) SWIG_fail;
12247 temp4 = true;
12248 }
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12252 wxPyEndAllowThreads(__tstate);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 resultobj = SWIG_Py_Void();
12256 {
12257 if (temp4)
12258 delete arg4;
12259 }
12260 return resultobj;
12261 fail:
12262 {
12263 if (temp4)
12264 delete arg4;
12265 }
12266 return NULL;
12267 }
12268
12269
12270 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12271 PyObject *resultobj = 0;
12272 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12273 long arg2 ;
12274 long arg3 ;
12275 void *argp1 = 0 ;
12276 int res1 = 0 ;
12277 long val2 ;
12278 int ecode2 = 0 ;
12279 long val3 ;
12280 int ecode3 = 0 ;
12281 PyObject * obj0 = 0 ;
12282 PyObject * obj1 = 0 ;
12283 PyObject * obj2 = 0 ;
12284 char * kwnames[] = {
12285 (char *) "self",(char *) "_from",(char *) "to", NULL
12286 };
12287
12288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12290 if (!SWIG_IsOK(res1)) {
12291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12292 }
12293 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12294 ecode2 = SWIG_AsVal_long(obj1, &val2);
12295 if (!SWIG_IsOK(ecode2)) {
12296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12297 }
12298 arg2 = static_cast< long >(val2);
12299 ecode3 = SWIG_AsVal_long(obj2, &val3);
12300 if (!SWIG_IsOK(ecode3)) {
12301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12302 }
12303 arg3 = static_cast< long >(val3);
12304 {
12305 PyThreadState* __tstate = wxPyBeginAllowThreads();
12306 (arg1)->Remove(arg2,arg3);
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 resultobj = SWIG_Py_Void();
12311 return resultobj;
12312 fail:
12313 return NULL;
12314 }
12315
12316
12317 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12318 PyObject *resultobj = 0;
12319 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12320 wxString *arg2 = 0 ;
12321 bool result;
12322 void *argp1 = 0 ;
12323 int res1 = 0 ;
12324 bool temp2 = false ;
12325 PyObject * obj0 = 0 ;
12326 PyObject * obj1 = 0 ;
12327 char * kwnames[] = {
12328 (char *) "self",(char *) "file", NULL
12329 };
12330
12331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12333 if (!SWIG_IsOK(res1)) {
12334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12335 }
12336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12337 {
12338 arg2 = wxString_in_helper(obj1);
12339 if (arg2 == NULL) SWIG_fail;
12340 temp2 = true;
12341 }
12342 {
12343 PyThreadState* __tstate = wxPyBeginAllowThreads();
12344 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 {
12349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12350 }
12351 {
12352 if (temp2)
12353 delete arg2;
12354 }
12355 return resultobj;
12356 fail:
12357 {
12358 if (temp2)
12359 delete arg2;
12360 }
12361 return NULL;
12362 }
12363
12364
12365 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12366 PyObject *resultobj = 0;
12367 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12368 wxString const &arg2_defvalue = wxPyEmptyString ;
12369 wxString *arg2 = (wxString *) &arg2_defvalue ;
12370 bool result;
12371 void *argp1 = 0 ;
12372 int res1 = 0 ;
12373 bool temp2 = false ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 char * kwnames[] = {
12377 (char *) "self",(char *) "file", NULL
12378 };
12379
12380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12382 if (!SWIG_IsOK(res1)) {
12383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12384 }
12385 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12386 if (obj1) {
12387 {
12388 arg2 = wxString_in_helper(obj1);
12389 if (arg2 == NULL) SWIG_fail;
12390 temp2 = true;
12391 }
12392 }
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (bool)(arg1)->SaveFile((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_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12417 PyObject *resultobj = 0;
12418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12419 void *argp1 = 0 ;
12420 int res1 = 0 ;
12421 PyObject *swig_obj[1] ;
12422
12423 if (!args) SWIG_fail;
12424 swig_obj[0] = args;
12425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12426 if (!SWIG_IsOK(res1)) {
12427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12428 }
12429 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 (arg1)->MarkDirty();
12433 wxPyEndAllowThreads(__tstate);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 }
12436 resultobj = SWIG_Py_Void();
12437 return resultobj;
12438 fail:
12439 return NULL;
12440 }
12441
12442
12443 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12444 PyObject *resultobj = 0;
12445 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12446 void *argp1 = 0 ;
12447 int res1 = 0 ;
12448 PyObject *swig_obj[1] ;
12449
12450 if (!args) SWIG_fail;
12451 swig_obj[0] = args;
12452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12453 if (!SWIG_IsOK(res1)) {
12454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12455 }
12456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12457 {
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 (arg1)->DiscardEdits();
12460 wxPyEndAllowThreads(__tstate);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 }
12463 resultobj = SWIG_Py_Void();
12464 return resultobj;
12465 fail:
12466 return NULL;
12467 }
12468
12469
12470 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12471 PyObject *resultobj = 0;
12472 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12473 unsigned long arg2 ;
12474 void *argp1 = 0 ;
12475 int res1 = 0 ;
12476 unsigned long val2 ;
12477 int ecode2 = 0 ;
12478 PyObject * obj0 = 0 ;
12479 PyObject * obj1 = 0 ;
12480 char * kwnames[] = {
12481 (char *) "self",(char *) "len", NULL
12482 };
12483
12484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12486 if (!SWIG_IsOK(res1)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12488 }
12489 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12490 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12491 if (!SWIG_IsOK(ecode2)) {
12492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12493 }
12494 arg2 = static_cast< unsigned long >(val2);
12495 {
12496 PyThreadState* __tstate = wxPyBeginAllowThreads();
12497 (arg1)->SetMaxLength(arg2);
12498 wxPyEndAllowThreads(__tstate);
12499 if (PyErr_Occurred()) SWIG_fail;
12500 }
12501 resultobj = SWIG_Py_Void();
12502 return resultobj;
12503 fail:
12504 return NULL;
12505 }
12506
12507
12508 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12509 PyObject *resultobj = 0;
12510 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12511 wxString *arg2 = 0 ;
12512 void *argp1 = 0 ;
12513 int res1 = 0 ;
12514 bool temp2 = false ;
12515 PyObject * obj0 = 0 ;
12516 PyObject * obj1 = 0 ;
12517 char * kwnames[] = {
12518 (char *) "self",(char *) "text", NULL
12519 };
12520
12521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12523 if (!SWIG_IsOK(res1)) {
12524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12525 }
12526 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12527 {
12528 arg2 = wxString_in_helper(obj1);
12529 if (arg2 == NULL) SWIG_fail;
12530 temp2 = true;
12531 }
12532 {
12533 PyThreadState* __tstate = wxPyBeginAllowThreads();
12534 (arg1)->WriteText((wxString const &)*arg2);
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 resultobj = SWIG_Py_Void();
12539 {
12540 if (temp2)
12541 delete arg2;
12542 }
12543 return resultobj;
12544 fail:
12545 {
12546 if (temp2)
12547 delete arg2;
12548 }
12549 return NULL;
12550 }
12551
12552
12553 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12554 PyObject *resultobj = 0;
12555 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12556 wxString *arg2 = 0 ;
12557 void *argp1 = 0 ;
12558 int res1 = 0 ;
12559 bool temp2 = false ;
12560 PyObject * obj0 = 0 ;
12561 PyObject * obj1 = 0 ;
12562 char * kwnames[] = {
12563 (char *) "self",(char *) "text", NULL
12564 };
12565
12566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12568 if (!SWIG_IsOK(res1)) {
12569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12570 }
12571 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12572 {
12573 arg2 = wxString_in_helper(obj1);
12574 if (arg2 == NULL) SWIG_fail;
12575 temp2 = true;
12576 }
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->AppendText((wxString const &)*arg2);
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 resultobj = SWIG_Py_Void();
12584 {
12585 if (temp2)
12586 delete arg2;
12587 }
12588 return resultobj;
12589 fail:
12590 {
12591 if (temp2)
12592 delete arg2;
12593 }
12594 return NULL;
12595 }
12596
12597
12598 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj = 0;
12600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12601 wxKeyEvent *arg2 = 0 ;
12602 bool result;
12603 void *argp1 = 0 ;
12604 int res1 = 0 ;
12605 void *argp2 = 0 ;
12606 int res2 = 0 ;
12607 PyObject * obj0 = 0 ;
12608 PyObject * obj1 = 0 ;
12609 char * kwnames[] = {
12610 (char *) "self",(char *) "event", NULL
12611 };
12612
12613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12615 if (!SWIG_IsOK(res1)) {
12616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12617 }
12618 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12620 if (!SWIG_IsOK(res2)) {
12621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12622 }
12623 if (!argp2) {
12624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12625 }
12626 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 {
12634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12635 }
12636 return resultobj;
12637 fail:
12638 return NULL;
12639 }
12640
12641
12642 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj = 0;
12644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12645 long arg2 ;
12646 long arg3 ;
12647 wxTextAttr *arg4 = 0 ;
12648 bool result;
12649 void *argp1 = 0 ;
12650 int res1 = 0 ;
12651 long val2 ;
12652 int ecode2 = 0 ;
12653 long val3 ;
12654 int ecode3 = 0 ;
12655 void *argp4 = 0 ;
12656 int res4 = 0 ;
12657 PyObject * obj0 = 0 ;
12658 PyObject * obj1 = 0 ;
12659 PyObject * obj2 = 0 ;
12660 PyObject * obj3 = 0 ;
12661 char * kwnames[] = {
12662 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12663 };
12664
12665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12667 if (!SWIG_IsOK(res1)) {
12668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12669 }
12670 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12671 ecode2 = SWIG_AsVal_long(obj1, &val2);
12672 if (!SWIG_IsOK(ecode2)) {
12673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12674 }
12675 arg2 = static_cast< long >(val2);
12676 ecode3 = SWIG_AsVal_long(obj2, &val3);
12677 if (!SWIG_IsOK(ecode3)) {
12678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12679 }
12680 arg3 = static_cast< long >(val3);
12681 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12682 if (!SWIG_IsOK(res4)) {
12683 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12684 }
12685 if (!argp4) {
12686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12687 }
12688 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 {
12696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12697 }
12698 return resultobj;
12699 fail:
12700 return NULL;
12701 }
12702
12703
12704 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12705 PyObject *resultobj = 0;
12706 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12707 long arg2 ;
12708 wxTextAttr *arg3 = 0 ;
12709 bool result;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 long val2 ;
12713 int ecode2 = 0 ;
12714 void *argp3 = 0 ;
12715 int res3 = 0 ;
12716 PyObject * obj0 = 0 ;
12717 PyObject * obj1 = 0 ;
12718 PyObject * obj2 = 0 ;
12719 char * kwnames[] = {
12720 (char *) "self",(char *) "position",(char *) "style", NULL
12721 };
12722
12723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12725 if (!SWIG_IsOK(res1)) {
12726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12727 }
12728 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12729 ecode2 = SWIG_AsVal_long(obj1, &val2);
12730 if (!SWIG_IsOK(ecode2)) {
12731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12732 }
12733 arg2 = static_cast< long >(val2);
12734 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12735 if (!SWIG_IsOK(res3)) {
12736 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12737 }
12738 if (!argp3) {
12739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12740 }
12741 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12742 {
12743 PyThreadState* __tstate = wxPyBeginAllowThreads();
12744 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 {
12749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12750 }
12751 return resultobj;
12752 fail:
12753 return NULL;
12754 }
12755
12756
12757 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj = 0;
12759 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12760 wxTextAttr *arg2 = 0 ;
12761 bool result;
12762 void *argp1 = 0 ;
12763 int res1 = 0 ;
12764 void *argp2 = 0 ;
12765 int res2 = 0 ;
12766 PyObject * obj0 = 0 ;
12767 PyObject * obj1 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "self",(char *) "style", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12776 }
12777 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12779 if (!SWIG_IsOK(res2)) {
12780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12781 }
12782 if (!argp2) {
12783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12784 }
12785 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12789 wxPyEndAllowThreads(__tstate);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 {
12793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12794 }
12795 return resultobj;
12796 fail:
12797 return NULL;
12798 }
12799
12800
12801 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12802 PyObject *resultobj = 0;
12803 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12804 wxTextAttr *result = 0 ;
12805 void *argp1 = 0 ;
12806 int res1 = 0 ;
12807 PyObject *swig_obj[1] ;
12808
12809 if (!args) SWIG_fail;
12810 swig_obj[0] = args;
12811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12812 if (!SWIG_IsOK(res1)) {
12813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12814 }
12815 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12816 {
12817 PyThreadState* __tstate = wxPyBeginAllowThreads();
12818 {
12819 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12820 result = (wxTextAttr *) &_result_ref;
12821 }
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12826 return resultobj;
12827 fail:
12828 return NULL;
12829 }
12830
12831
12832 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12833 PyObject *resultobj = 0;
12834 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12835 long arg2 ;
12836 long arg3 ;
12837 long result;
12838 void *argp1 = 0 ;
12839 int res1 = 0 ;
12840 long val2 ;
12841 int ecode2 = 0 ;
12842 long val3 ;
12843 int ecode3 = 0 ;
12844 PyObject * obj0 = 0 ;
12845 PyObject * obj1 = 0 ;
12846 PyObject * obj2 = 0 ;
12847 char * kwnames[] = {
12848 (char *) "self",(char *) "x",(char *) "y", NULL
12849 };
12850
12851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12853 if (!SWIG_IsOK(res1)) {
12854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12855 }
12856 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12857 ecode2 = SWIG_AsVal_long(obj1, &val2);
12858 if (!SWIG_IsOK(ecode2)) {
12859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12860 }
12861 arg2 = static_cast< long >(val2);
12862 ecode3 = SWIG_AsVal_long(obj2, &val3);
12863 if (!SWIG_IsOK(ecode3)) {
12864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12865 }
12866 arg3 = static_cast< long >(val3);
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 resultobj = SWIG_From_long(static_cast< long >(result));
12874 return resultobj;
12875 fail:
12876 return NULL;
12877 }
12878
12879
12880 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj = 0;
12882 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12883 long arg2 ;
12884 long *arg3 = (long *) 0 ;
12885 long *arg4 = (long *) 0 ;
12886 void *argp1 = 0 ;
12887 int res1 = 0 ;
12888 long val2 ;
12889 int ecode2 = 0 ;
12890 long temp3 ;
12891 int res3 = SWIG_TMPOBJ ;
12892 long temp4 ;
12893 int res4 = SWIG_TMPOBJ ;
12894 PyObject * obj0 = 0 ;
12895 PyObject * obj1 = 0 ;
12896 char * kwnames[] = {
12897 (char *) "self",(char *) "pos", NULL
12898 };
12899
12900 arg3 = &temp3;
12901 arg4 = &temp4;
12902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) 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_PositionToXY" "', 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_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12911 }
12912 arg2 = static_cast< long >(val2);
12913 {
12914 PyThreadState* __tstate = wxPyBeginAllowThreads();
12915 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12916 wxPyEndAllowThreads(__tstate);
12917 if (PyErr_Occurred()) SWIG_fail;
12918 }
12919 resultobj = SWIG_Py_Void();
12920 if (SWIG_IsTmpObj(res3)) {
12921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12922 } else {
12923 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12925 }
12926 if (SWIG_IsTmpObj(res4)) {
12927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12928 } else {
12929 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12931 }
12932 return resultobj;
12933 fail:
12934 return NULL;
12935 }
12936
12937
12938 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12939 PyObject *resultobj = 0;
12940 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12941 long arg2 ;
12942 void *argp1 = 0 ;
12943 int res1 = 0 ;
12944 long val2 ;
12945 int ecode2 = 0 ;
12946 PyObject * obj0 = 0 ;
12947 PyObject * obj1 = 0 ;
12948 char * kwnames[] = {
12949 (char *) "self",(char *) "pos", NULL
12950 };
12951
12952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
12953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12954 if (!SWIG_IsOK(res1)) {
12955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12956 }
12957 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12958 ecode2 = SWIG_AsVal_long(obj1, &val2);
12959 if (!SWIG_IsOK(ecode2)) {
12960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
12961 }
12962 arg2 = static_cast< long >(val2);
12963 {
12964 PyThreadState* __tstate = wxPyBeginAllowThreads();
12965 (arg1)->ShowPosition(arg2);
12966 wxPyEndAllowThreads(__tstate);
12967 if (PyErr_Occurred()) SWIG_fail;
12968 }
12969 resultobj = SWIG_Py_Void();
12970 return resultobj;
12971 fail:
12972 return NULL;
12973 }
12974
12975
12976 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12977 PyObject *resultobj = 0;
12978 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12979 wxPoint *arg2 = 0 ;
12980 long *arg3 = (long *) 0 ;
12981 long *arg4 = (long *) 0 ;
12982 wxTextCtrlHitTestResult result;
12983 void *argp1 = 0 ;
12984 int res1 = 0 ;
12985 wxPoint temp2 ;
12986 long temp3 ;
12987 int res3 = SWIG_TMPOBJ ;
12988 long temp4 ;
12989 int res4 = SWIG_TMPOBJ ;
12990 PyObject * obj0 = 0 ;
12991 PyObject * obj1 = 0 ;
12992 char * kwnames[] = {
12993 (char *) "self",(char *) "pt", NULL
12994 };
12995
12996 arg3 = &temp3;
12997 arg4 = &temp4;
12998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
12999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13000 if (!SWIG_IsOK(res1)) {
13001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13002 }
13003 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13004 {
13005 arg2 = &temp2;
13006 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13007 }
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13011 wxPyEndAllowThreads(__tstate);
13012 if (PyErr_Occurred()) SWIG_fail;
13013 }
13014 resultobj = SWIG_From_int(static_cast< int >(result));
13015 if (SWIG_IsTmpObj(res3)) {
13016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13017 } else {
13018 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13020 }
13021 if (SWIG_IsTmpObj(res4)) {
13022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13023 } else {
13024 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13026 }
13027 return resultobj;
13028 fail:
13029 return NULL;
13030 }
13031
13032
13033 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13034 PyObject *resultobj = 0;
13035 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13036 wxPoint *arg2 = 0 ;
13037 long *arg3 = (long *) 0 ;
13038 wxTextCtrlHitTestResult result;
13039 void *argp1 = 0 ;
13040 int res1 = 0 ;
13041 wxPoint temp2 ;
13042 long temp3 ;
13043 int res3 = SWIG_TMPOBJ ;
13044 PyObject * obj0 = 0 ;
13045 PyObject * obj1 = 0 ;
13046 char * kwnames[] = {
13047 (char *) "self",(char *) "pt", NULL
13048 };
13049
13050 arg3 = &temp3;
13051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13053 if (!SWIG_IsOK(res1)) {
13054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13055 }
13056 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13057 {
13058 arg2 = &temp2;
13059 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13060 }
13061 {
13062 PyThreadState* __tstate = wxPyBeginAllowThreads();
13063 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13064 wxPyEndAllowThreads(__tstate);
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
13067 resultobj = SWIG_From_int(static_cast< int >(result));
13068 if (SWIG_IsTmpObj(res3)) {
13069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13070 } else {
13071 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13073 }
13074 return resultobj;
13075 fail:
13076 return NULL;
13077 }
13078
13079
13080 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13081 PyObject *resultobj = 0;
13082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13083 void *argp1 = 0 ;
13084 int res1 = 0 ;
13085 PyObject *swig_obj[1] ;
13086
13087 if (!args) SWIG_fail;
13088 swig_obj[0] = args;
13089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13092 }
13093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13094 {
13095 PyThreadState* __tstate = wxPyBeginAllowThreads();
13096 (arg1)->Copy();
13097 wxPyEndAllowThreads(__tstate);
13098 if (PyErr_Occurred()) SWIG_fail;
13099 }
13100 resultobj = SWIG_Py_Void();
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13108 PyObject *resultobj = 0;
13109 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13110 void *argp1 = 0 ;
13111 int res1 = 0 ;
13112 PyObject *swig_obj[1] ;
13113
13114 if (!args) SWIG_fail;
13115 swig_obj[0] = args;
13116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13117 if (!SWIG_IsOK(res1)) {
13118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13119 }
13120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13121 {
13122 PyThreadState* __tstate = wxPyBeginAllowThreads();
13123 (arg1)->Cut();
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 resultobj = SWIG_Py_Void();
13128 return resultobj;
13129 fail:
13130 return NULL;
13131 }
13132
13133
13134 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13135 PyObject *resultobj = 0;
13136 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13137 void *argp1 = 0 ;
13138 int res1 = 0 ;
13139 PyObject *swig_obj[1] ;
13140
13141 if (!args) SWIG_fail;
13142 swig_obj[0] = args;
13143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13144 if (!SWIG_IsOK(res1)) {
13145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13146 }
13147 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 (arg1)->Paste();
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 resultobj = SWIG_Py_Void();
13155 return resultobj;
13156 fail:
13157 return NULL;
13158 }
13159
13160
13161 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13162 PyObject *resultobj = 0;
13163 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13164 bool result;
13165 void *argp1 = 0 ;
13166 int res1 = 0 ;
13167 PyObject *swig_obj[1] ;
13168
13169 if (!args) SWIG_fail;
13170 swig_obj[0] = args;
13171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13172 if (!SWIG_IsOK(res1)) {
13173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13174 }
13175 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13176 {
13177 PyThreadState* __tstate = wxPyBeginAllowThreads();
13178 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13179 wxPyEndAllowThreads(__tstate);
13180 if (PyErr_Occurred()) SWIG_fail;
13181 }
13182 {
13183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13184 }
13185 return resultobj;
13186 fail:
13187 return NULL;
13188 }
13189
13190
13191 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13192 PyObject *resultobj = 0;
13193 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13194 bool result;
13195 void *argp1 = 0 ;
13196 int res1 = 0 ;
13197 PyObject *swig_obj[1] ;
13198
13199 if (!args) SWIG_fail;
13200 swig_obj[0] = args;
13201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13204 }
13205 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 {
13213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13214 }
13215 return resultobj;
13216 fail:
13217 return NULL;
13218 }
13219
13220
13221 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13222 PyObject *resultobj = 0;
13223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13224 bool result;
13225 void *argp1 = 0 ;
13226 int res1 = 0 ;
13227 PyObject *swig_obj[1] ;
13228
13229 if (!args) SWIG_fail;
13230 swig_obj[0] = args;
13231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13232 if (!SWIG_IsOK(res1)) {
13233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13234 }
13235 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13236 {
13237 PyThreadState* __tstate = wxPyBeginAllowThreads();
13238 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13239 wxPyEndAllowThreads(__tstate);
13240 if (PyErr_Occurred()) SWIG_fail;
13241 }
13242 {
13243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13244 }
13245 return resultobj;
13246 fail:
13247 return NULL;
13248 }
13249
13250
13251 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13252 PyObject *resultobj = 0;
13253 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13254 void *argp1 = 0 ;
13255 int res1 = 0 ;
13256 PyObject *swig_obj[1] ;
13257
13258 if (!args) SWIG_fail;
13259 swig_obj[0] = args;
13260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13261 if (!SWIG_IsOK(res1)) {
13262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13263 }
13264 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 (arg1)->Undo();
13268 wxPyEndAllowThreads(__tstate);
13269 if (PyErr_Occurred()) SWIG_fail;
13270 }
13271 resultobj = SWIG_Py_Void();
13272 return resultobj;
13273 fail:
13274 return NULL;
13275 }
13276
13277
13278 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13279 PyObject *resultobj = 0;
13280 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13281 void *argp1 = 0 ;
13282 int res1 = 0 ;
13283 PyObject *swig_obj[1] ;
13284
13285 if (!args) SWIG_fail;
13286 swig_obj[0] = args;
13287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13288 if (!SWIG_IsOK(res1)) {
13289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13290 }
13291 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13292 {
13293 PyThreadState* __tstate = wxPyBeginAllowThreads();
13294 (arg1)->Redo();
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 resultobj = SWIG_Py_Void();
13299 return resultobj;
13300 fail:
13301 return NULL;
13302 }
13303
13304
13305 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13306 PyObject *resultobj = 0;
13307 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13308 bool result;
13309 void *argp1 = 0 ;
13310 int res1 = 0 ;
13311 PyObject *swig_obj[1] ;
13312
13313 if (!args) SWIG_fail;
13314 swig_obj[0] = args;
13315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13316 if (!SWIG_IsOK(res1)) {
13317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13318 }
13319 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13320 {
13321 PyThreadState* __tstate = wxPyBeginAllowThreads();
13322 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 {
13327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13328 }
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13336 PyObject *resultobj = 0;
13337 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13338 bool result;
13339 void *argp1 = 0 ;
13340 int res1 = 0 ;
13341 PyObject *swig_obj[1] ;
13342
13343 if (!args) SWIG_fail;
13344 swig_obj[0] = args;
13345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13346 if (!SWIG_IsOK(res1)) {
13347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13348 }
13349 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13353 wxPyEndAllowThreads(__tstate);
13354 if (PyErr_Occurred()) SWIG_fail;
13355 }
13356 {
13357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13358 }
13359 return resultobj;
13360 fail:
13361 return NULL;
13362 }
13363
13364
13365 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13366 PyObject *resultobj = 0;
13367 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13368 long arg2 ;
13369 void *argp1 = 0 ;
13370 int res1 = 0 ;
13371 long val2 ;
13372 int ecode2 = 0 ;
13373 PyObject * obj0 = 0 ;
13374 PyObject * obj1 = 0 ;
13375 char * kwnames[] = {
13376 (char *) "self",(char *) "pos", NULL
13377 };
13378
13379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13381 if (!SWIG_IsOK(res1)) {
13382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13383 }
13384 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13385 ecode2 = SWIG_AsVal_long(obj1, &val2);
13386 if (!SWIG_IsOK(ecode2)) {
13387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13388 }
13389 arg2 = static_cast< long >(val2);
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 (arg1)->SetInsertionPoint(arg2);
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 resultobj = SWIG_Py_Void();
13397 return resultobj;
13398 fail:
13399 return NULL;
13400 }
13401
13402
13403 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13404 PyObject *resultobj = 0;
13405 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13406 void *argp1 = 0 ;
13407 int res1 = 0 ;
13408 PyObject *swig_obj[1] ;
13409
13410 if (!args) SWIG_fail;
13411 swig_obj[0] = args;
13412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13413 if (!SWIG_IsOK(res1)) {
13414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13415 }
13416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 (arg1)->SetInsertionPointEnd();
13420 wxPyEndAllowThreads(__tstate);
13421 if (PyErr_Occurred()) SWIG_fail;
13422 }
13423 resultobj = SWIG_Py_Void();
13424 return resultobj;
13425 fail:
13426 return NULL;
13427 }
13428
13429
13430 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13431 PyObject *resultobj = 0;
13432 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13433 long result;
13434 void *argp1 = 0 ;
13435 int res1 = 0 ;
13436 PyObject *swig_obj[1] ;
13437
13438 if (!args) SWIG_fail;
13439 swig_obj[0] = args;
13440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13441 if (!SWIG_IsOK(res1)) {
13442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13443 }
13444 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13445 {
13446 PyThreadState* __tstate = wxPyBeginAllowThreads();
13447 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13448 wxPyEndAllowThreads(__tstate);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 resultobj = SWIG_From_long(static_cast< long >(result));
13452 return resultobj;
13453 fail:
13454 return NULL;
13455 }
13456
13457
13458 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13459 PyObject *resultobj = 0;
13460 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13461 long result;
13462 void *argp1 = 0 ;
13463 int res1 = 0 ;
13464 PyObject *swig_obj[1] ;
13465
13466 if (!args) SWIG_fail;
13467 swig_obj[0] = args;
13468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13469 if (!SWIG_IsOK(res1)) {
13470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13471 }
13472 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13476 wxPyEndAllowThreads(__tstate);
13477 if (PyErr_Occurred()) SWIG_fail;
13478 }
13479 resultobj = SWIG_From_long(static_cast< long >(result));
13480 return resultobj;
13481 fail:
13482 return NULL;
13483 }
13484
13485
13486 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13487 PyObject *resultobj = 0;
13488 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13489 long arg2 ;
13490 long arg3 ;
13491 void *argp1 = 0 ;
13492 int res1 = 0 ;
13493 long val2 ;
13494 int ecode2 = 0 ;
13495 long val3 ;
13496 int ecode3 = 0 ;
13497 PyObject * obj0 = 0 ;
13498 PyObject * obj1 = 0 ;
13499 PyObject * obj2 = 0 ;
13500 char * kwnames[] = {
13501 (char *) "self",(char *) "_from",(char *) "to", NULL
13502 };
13503
13504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13506 if (!SWIG_IsOK(res1)) {
13507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13508 }
13509 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13510 ecode2 = SWIG_AsVal_long(obj1, &val2);
13511 if (!SWIG_IsOK(ecode2)) {
13512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13513 }
13514 arg2 = static_cast< long >(val2);
13515 ecode3 = SWIG_AsVal_long(obj2, &val3);
13516 if (!SWIG_IsOK(ecode3)) {
13517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13518 }
13519 arg3 = static_cast< long >(val3);
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 (arg1)->SetSelection(arg2,arg3);
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 resultobj = SWIG_Py_Void();
13527 return resultobj;
13528 fail:
13529 return NULL;
13530 }
13531
13532
13533 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13534 PyObject *resultobj = 0;
13535 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13536 void *argp1 = 0 ;
13537 int res1 = 0 ;
13538 PyObject *swig_obj[1] ;
13539
13540 if (!args) SWIG_fail;
13541 swig_obj[0] = args;
13542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13543 if (!SWIG_IsOK(res1)) {
13544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13545 }
13546 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13547 {
13548 PyThreadState* __tstate = wxPyBeginAllowThreads();
13549 (arg1)->SelectAll();
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 resultobj = SWIG_Py_Void();
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj = 0;
13562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13563 bool arg2 ;
13564 void *argp1 = 0 ;
13565 int res1 = 0 ;
13566 bool val2 ;
13567 int ecode2 = 0 ;
13568 PyObject * obj0 = 0 ;
13569 PyObject * obj1 = 0 ;
13570 char * kwnames[] = {
13571 (char *) "self",(char *) "editable", NULL
13572 };
13573
13574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13576 if (!SWIG_IsOK(res1)) {
13577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13578 }
13579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13580 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13581 if (!SWIG_IsOK(ecode2)) {
13582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13583 }
13584 arg2 = static_cast< bool >(val2);
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 (arg1)->SetEditable(arg2);
13588 wxPyEndAllowThreads(__tstate);
13589 if (PyErr_Occurred()) SWIG_fail;
13590 }
13591 resultobj = SWIG_Py_Void();
13592 return resultobj;
13593 fail:
13594 return NULL;
13595 }
13596
13597
13598 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13599 PyObject *resultobj = 0;
13600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13601 wxString *arg2 = 0 ;
13602 void *argp1 = 0 ;
13603 int res1 = 0 ;
13604 bool temp2 = false ;
13605 PyObject * obj0 = 0 ;
13606 PyObject * obj1 = 0 ;
13607 char * kwnames[] = {
13608 (char *) "self",(char *) "text", NULL
13609 };
13610
13611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13613 if (!SWIG_IsOK(res1)) {
13614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13615 }
13616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13617 {
13618 arg2 = wxString_in_helper(obj1);
13619 if (arg2 == NULL) SWIG_fail;
13620 temp2 = true;
13621 }
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13625 wxPyEndAllowThreads(__tstate);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 resultobj = SWIG_Py_Void();
13629 {
13630 if (temp2)
13631 delete arg2;
13632 }
13633 return resultobj;
13634 fail:
13635 {
13636 if (temp2)
13637 delete arg2;
13638 }
13639 return NULL;
13640 }
13641
13642
13643 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj = 0;
13645 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13646 long arg2 ;
13647 long arg3 ;
13648 wxString result;
13649 void *argp1 = 0 ;
13650 int res1 = 0 ;
13651 long val2 ;
13652 int ecode2 = 0 ;
13653 long val3 ;
13654 int ecode3 = 0 ;
13655 PyObject * obj0 = 0 ;
13656 PyObject * obj1 = 0 ;
13657 PyObject * obj2 = 0 ;
13658 char * kwnames[] = {
13659 (char *) "self",(char *) "_from",(char *) "to", NULL
13660 };
13661
13662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13664 if (!SWIG_IsOK(res1)) {
13665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13666 }
13667 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13668 ecode2 = SWIG_AsVal_long(obj1, &val2);
13669 if (!SWIG_IsOK(ecode2)) {
13670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13671 }
13672 arg2 = static_cast< long >(val2);
13673 ecode3 = SWIG_AsVal_long(obj2, &val3);
13674 if (!SWIG_IsOK(ecode3)) {
13675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13676 }
13677 arg3 = static_cast< long >(val3);
13678 {
13679 PyThreadState* __tstate = wxPyBeginAllowThreads();
13680 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13681 wxPyEndAllowThreads(__tstate);
13682 if (PyErr_Occurred()) SWIG_fail;
13683 }
13684 {
13685 #if wxUSE_UNICODE
13686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13687 #else
13688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13689 #endif
13690 }
13691 return resultobj;
13692 fail:
13693 return NULL;
13694 }
13695
13696
13697 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13698 PyObject *resultobj = 0;
13699 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13700 SwigValueWrapper<wxVisualAttributes > result;
13701 int val1 ;
13702 int ecode1 = 0 ;
13703 PyObject * obj0 = 0 ;
13704 char * kwnames[] = {
13705 (char *) "variant", NULL
13706 };
13707
13708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13709 if (obj0) {
13710 ecode1 = SWIG_AsVal_int(obj0, &val1);
13711 if (!SWIG_IsOK(ecode1)) {
13712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13713 }
13714 arg1 = static_cast< wxWindowVariant >(val1);
13715 }
13716 {
13717 if (!wxPyCheckForApp()) SWIG_fail;
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13724 return resultobj;
13725 fail:
13726 return NULL;
13727 }
13728
13729
13730 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13731 PyObject *obj;
13732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13733 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13734 return SWIG_Py_Void();
13735 }
13736
13737 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13738 return SWIG_Python_InitShadowInstance(args);
13739 }
13740
13741 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13742 PyObject *resultobj = 0;
13743 int arg1 ;
13744 wxMouseEvent *arg2 = 0 ;
13745 long arg3 ;
13746 long arg4 ;
13747 wxTextUrlEvent *result = 0 ;
13748 int val1 ;
13749 int ecode1 = 0 ;
13750 void *argp2 = 0 ;
13751 int res2 = 0 ;
13752 long val3 ;
13753 int ecode3 = 0 ;
13754 long val4 ;
13755 int ecode4 = 0 ;
13756 PyObject * obj0 = 0 ;
13757 PyObject * obj1 = 0 ;
13758 PyObject * obj2 = 0 ;
13759 PyObject * obj3 = 0 ;
13760 char * kwnames[] = {
13761 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13762 };
13763
13764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13765 ecode1 = SWIG_AsVal_int(obj0, &val1);
13766 if (!SWIG_IsOK(ecode1)) {
13767 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13768 }
13769 arg1 = static_cast< int >(val1);
13770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13771 if (!SWIG_IsOK(res2)) {
13772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13773 }
13774 if (!argp2) {
13775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13776 }
13777 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13778 ecode3 = SWIG_AsVal_long(obj2, &val3);
13779 if (!SWIG_IsOK(ecode3)) {
13780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13781 }
13782 arg3 = static_cast< long >(val3);
13783 ecode4 = SWIG_AsVal_long(obj3, &val4);
13784 if (!SWIG_IsOK(ecode4)) {
13785 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13786 }
13787 arg4 = static_cast< long >(val4);
13788 {
13789 PyThreadState* __tstate = wxPyBeginAllowThreads();
13790 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13791 wxPyEndAllowThreads(__tstate);
13792 if (PyErr_Occurred()) SWIG_fail;
13793 }
13794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13795 return resultobj;
13796 fail:
13797 return NULL;
13798 }
13799
13800
13801 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13802 PyObject *resultobj = 0;
13803 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13804 wxMouseEvent *result = 0 ;
13805 void *argp1 = 0 ;
13806 int res1 = 0 ;
13807 PyObject *swig_obj[1] ;
13808
13809 if (!args) SWIG_fail;
13810 swig_obj[0] = args;
13811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13812 if (!SWIG_IsOK(res1)) {
13813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13814 }
13815 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13816 {
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 {
13819 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13820 result = (wxMouseEvent *) &_result_ref;
13821 }
13822 wxPyEndAllowThreads(__tstate);
13823 if (PyErr_Occurred()) SWIG_fail;
13824 }
13825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13826 return resultobj;
13827 fail:
13828 return NULL;
13829 }
13830
13831
13832 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13833 PyObject *resultobj = 0;
13834 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13835 long result;
13836 void *argp1 = 0 ;
13837 int res1 = 0 ;
13838 PyObject *swig_obj[1] ;
13839
13840 if (!args) SWIG_fail;
13841 swig_obj[0] = args;
13842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13843 if (!SWIG_IsOK(res1)) {
13844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13845 }
13846 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13850 wxPyEndAllowThreads(__tstate);
13851 if (PyErr_Occurred()) SWIG_fail;
13852 }
13853 resultobj = SWIG_From_long(static_cast< long >(result));
13854 return resultobj;
13855 fail:
13856 return NULL;
13857 }
13858
13859
13860 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13861 PyObject *resultobj = 0;
13862 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13863 long result;
13864 void *argp1 = 0 ;
13865 int res1 = 0 ;
13866 PyObject *swig_obj[1] ;
13867
13868 if (!args) SWIG_fail;
13869 swig_obj[0] = args;
13870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13871 if (!SWIG_IsOK(res1)) {
13872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13873 }
13874 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 resultobj = SWIG_From_long(static_cast< long >(result));
13882 return resultobj;
13883 fail:
13884 return NULL;
13885 }
13886
13887
13888 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13889 PyObject *obj;
13890 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13891 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13892 return SWIG_Py_Void();
13893 }
13894
13895 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13896 return SWIG_Python_InitShadowInstance(args);
13897 }
13898
13899 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13900 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13901 return 1;
13902 }
13903
13904
13905 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13906 PyObject *pyobj = 0;
13907
13908 {
13909 #if wxUSE_UNICODE
13910 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13911 #else
13912 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13913 #endif
13914 }
13915 return pyobj;
13916 }
13917
13918
13919 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13920 PyObject *resultobj = 0;
13921 wxWindow *arg1 = (wxWindow *) 0 ;
13922 int arg2 = (int) -1 ;
13923 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13924 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13925 wxSize const &arg4_defvalue = wxDefaultSize ;
13926 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13927 long arg5 = (long) wxSB_HORIZONTAL ;
13928 wxValidator const &arg6_defvalue = wxDefaultValidator ;
13929 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
13930 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
13931 wxString *arg7 = (wxString *) &arg7_defvalue ;
13932 wxScrollBar *result = 0 ;
13933 void *argp1 = 0 ;
13934 int res1 = 0 ;
13935 int val2 ;
13936 int ecode2 = 0 ;
13937 wxPoint temp3 ;
13938 wxSize temp4 ;
13939 long val5 ;
13940 int ecode5 = 0 ;
13941 void *argp6 = 0 ;
13942 int res6 = 0 ;
13943 bool temp7 = false ;
13944 PyObject * obj0 = 0 ;
13945 PyObject * obj1 = 0 ;
13946 PyObject * obj2 = 0 ;
13947 PyObject * obj3 = 0 ;
13948 PyObject * obj4 = 0 ;
13949 PyObject * obj5 = 0 ;
13950 PyObject * obj6 = 0 ;
13951 char * kwnames[] = {
13952 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13953 };
13954
13955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
13957 if (!SWIG_IsOK(res1)) {
13958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
13959 }
13960 arg1 = reinterpret_cast< wxWindow * >(argp1);
13961 if (obj1) {
13962 ecode2 = SWIG_AsVal_int(obj1, &val2);
13963 if (!SWIG_IsOK(ecode2)) {
13964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
13965 }
13966 arg2 = static_cast< int >(val2);
13967 }
13968 if (obj2) {
13969 {
13970 arg3 = &temp3;
13971 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13972 }
13973 }
13974 if (obj3) {
13975 {
13976 arg4 = &temp4;
13977 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
13978 }
13979 }
13980 if (obj4) {
13981 ecode5 = SWIG_AsVal_long(obj4, &val5);
13982 if (!SWIG_IsOK(ecode5)) {
13983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
13984 }
13985 arg5 = static_cast< long >(val5);
13986 }
13987 if (obj5) {
13988 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
13989 if (!SWIG_IsOK(res6)) {
13990 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
13991 }
13992 if (!argp6) {
13993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
13994 }
13995 arg6 = reinterpret_cast< wxValidator * >(argp6);
13996 }
13997 if (obj6) {
13998 {
13999 arg7 = wxString_in_helper(obj6);
14000 if (arg7 == NULL) SWIG_fail;
14001 temp7 = true;
14002 }
14003 }
14004 {
14005 if (!wxPyCheckForApp()) SWIG_fail;
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
14007 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14008 wxPyEndAllowThreads(__tstate);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14012 {
14013 if (temp7)
14014 delete arg7;
14015 }
14016 return resultobj;
14017 fail:
14018 {
14019 if (temp7)
14020 delete arg7;
14021 }
14022 return NULL;
14023 }
14024
14025
14026 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14027 PyObject *resultobj = 0;
14028 wxScrollBar *result = 0 ;
14029
14030 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14031 {
14032 if (!wxPyCheckForApp()) SWIG_fail;
14033 PyThreadState* __tstate = wxPyBeginAllowThreads();
14034 result = (wxScrollBar *)new wxScrollBar();
14035 wxPyEndAllowThreads(__tstate);
14036 if (PyErr_Occurred()) SWIG_fail;
14037 }
14038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14039 return resultobj;
14040 fail:
14041 return NULL;
14042 }
14043
14044
14045 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14046 PyObject *resultobj = 0;
14047 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14048 wxWindow *arg2 = (wxWindow *) 0 ;
14049 int arg3 = (int) -1 ;
14050 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14051 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14052 wxSize const &arg5_defvalue = wxDefaultSize ;
14053 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14054 long arg6 = (long) wxSB_HORIZONTAL ;
14055 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14056 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14057 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14058 wxString *arg8 = (wxString *) &arg8_defvalue ;
14059 bool result;
14060 void *argp1 = 0 ;
14061 int res1 = 0 ;
14062 void *argp2 = 0 ;
14063 int res2 = 0 ;
14064 int val3 ;
14065 int ecode3 = 0 ;
14066 wxPoint temp4 ;
14067 wxSize temp5 ;
14068 long val6 ;
14069 int ecode6 = 0 ;
14070 void *argp7 = 0 ;
14071 int res7 = 0 ;
14072 bool temp8 = false ;
14073 PyObject * obj0 = 0 ;
14074 PyObject * obj1 = 0 ;
14075 PyObject * obj2 = 0 ;
14076 PyObject * obj3 = 0 ;
14077 PyObject * obj4 = 0 ;
14078 PyObject * obj5 = 0 ;
14079 PyObject * obj6 = 0 ;
14080 PyObject * obj7 = 0 ;
14081 char * kwnames[] = {
14082 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14083 };
14084
14085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14087 if (!SWIG_IsOK(res1)) {
14088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14089 }
14090 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14091 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14092 if (!SWIG_IsOK(res2)) {
14093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14094 }
14095 arg2 = reinterpret_cast< wxWindow * >(argp2);
14096 if (obj2) {
14097 ecode3 = SWIG_AsVal_int(obj2, &val3);
14098 if (!SWIG_IsOK(ecode3)) {
14099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14100 }
14101 arg3 = static_cast< int >(val3);
14102 }
14103 if (obj3) {
14104 {
14105 arg4 = &temp4;
14106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14107 }
14108 }
14109 if (obj4) {
14110 {
14111 arg5 = &temp5;
14112 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14113 }
14114 }
14115 if (obj5) {
14116 ecode6 = SWIG_AsVal_long(obj5, &val6);
14117 if (!SWIG_IsOK(ecode6)) {
14118 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14119 }
14120 arg6 = static_cast< long >(val6);
14121 }
14122 if (obj6) {
14123 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14124 if (!SWIG_IsOK(res7)) {
14125 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14126 }
14127 if (!argp7) {
14128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14129 }
14130 arg7 = reinterpret_cast< wxValidator * >(argp7);
14131 }
14132 if (obj7) {
14133 {
14134 arg8 = wxString_in_helper(obj7);
14135 if (arg8 == NULL) SWIG_fail;
14136 temp8 = true;
14137 }
14138 }
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14142 wxPyEndAllowThreads(__tstate);
14143 if (PyErr_Occurred()) SWIG_fail;
14144 }
14145 {
14146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14147 }
14148 {
14149 if (temp8)
14150 delete arg8;
14151 }
14152 return resultobj;
14153 fail:
14154 {
14155 if (temp8)
14156 delete arg8;
14157 }
14158 return NULL;
14159 }
14160
14161
14162 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14163 PyObject *resultobj = 0;
14164 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14165 int result;
14166 void *argp1 = 0 ;
14167 int res1 = 0 ;
14168 PyObject *swig_obj[1] ;
14169
14170 if (!args) SWIG_fail;
14171 swig_obj[0] = args;
14172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14173 if (!SWIG_IsOK(res1)) {
14174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14175 }
14176 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14177 {
14178 PyThreadState* __tstate = wxPyBeginAllowThreads();
14179 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14180 wxPyEndAllowThreads(__tstate);
14181 if (PyErr_Occurred()) SWIG_fail;
14182 }
14183 resultobj = SWIG_From_int(static_cast< int >(result));
14184 return resultobj;
14185 fail:
14186 return NULL;
14187 }
14188
14189
14190 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14191 PyObject *resultobj = 0;
14192 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14193 int result;
14194 void *argp1 = 0 ;
14195 int res1 = 0 ;
14196 PyObject *swig_obj[1] ;
14197
14198 if (!args) SWIG_fail;
14199 swig_obj[0] = args;
14200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14201 if (!SWIG_IsOK(res1)) {
14202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14203 }
14204 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 resultobj = SWIG_From_int(static_cast< int >(result));
14212 return resultobj;
14213 fail:
14214 return NULL;
14215 }
14216
14217
14218 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14219 PyObject *resultobj = 0;
14220 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14221 int result;
14222 void *argp1 = 0 ;
14223 int res1 = 0 ;
14224 PyObject *swig_obj[1] ;
14225
14226 if (!args) SWIG_fail;
14227 swig_obj[0] = args;
14228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14229 if (!SWIG_IsOK(res1)) {
14230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14231 }
14232 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14233 {
14234 PyThreadState* __tstate = wxPyBeginAllowThreads();
14235 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
14239 resultobj = SWIG_From_int(static_cast< int >(result));
14240 return resultobj;
14241 fail:
14242 return NULL;
14243 }
14244
14245
14246 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14247 PyObject *resultobj = 0;
14248 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14249 int result;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 PyObject *swig_obj[1] ;
14253
14254 if (!args) SWIG_fail;
14255 swig_obj[0] = args;
14256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14257 if (!SWIG_IsOK(res1)) {
14258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14259 }
14260 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14261 {
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 result = (int)((wxScrollBar const *)arg1)->GetRange();
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 resultobj = SWIG_From_int(static_cast< int >(result));
14268 return resultobj;
14269 fail:
14270 return NULL;
14271 }
14272
14273
14274 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14275 PyObject *resultobj = 0;
14276 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14277 bool result;
14278 void *argp1 = 0 ;
14279 int res1 = 0 ;
14280 PyObject *swig_obj[1] ;
14281
14282 if (!args) SWIG_fail;
14283 swig_obj[0] = args;
14284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14285 if (!SWIG_IsOK(res1)) {
14286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14287 }
14288 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 {
14296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14297 }
14298 return resultobj;
14299 fail:
14300 return NULL;
14301 }
14302
14303
14304 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj = 0;
14306 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14307 int arg2 ;
14308 void *argp1 = 0 ;
14309 int res1 = 0 ;
14310 int val2 ;
14311 int ecode2 = 0 ;
14312 PyObject * obj0 = 0 ;
14313 PyObject * obj1 = 0 ;
14314 char * kwnames[] = {
14315 (char *) "self",(char *) "viewStart", NULL
14316 };
14317
14318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14320 if (!SWIG_IsOK(res1)) {
14321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14322 }
14323 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14324 ecode2 = SWIG_AsVal_int(obj1, &val2);
14325 if (!SWIG_IsOK(ecode2)) {
14326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14327 }
14328 arg2 = static_cast< int >(val2);
14329 {
14330 PyThreadState* __tstate = wxPyBeginAllowThreads();
14331 (arg1)->SetThumbPosition(arg2);
14332 wxPyEndAllowThreads(__tstate);
14333 if (PyErr_Occurred()) SWIG_fail;
14334 }
14335 resultobj = SWIG_Py_Void();
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14343 PyObject *resultobj = 0;
14344 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14345 SwigValueWrapper<wxVisualAttributes > result;
14346 int val1 ;
14347 int ecode1 = 0 ;
14348 PyObject * obj0 = 0 ;
14349 char * kwnames[] = {
14350 (char *) "variant", NULL
14351 };
14352
14353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14354 if (obj0) {
14355 ecode1 = SWIG_AsVal_int(obj0, &val1);
14356 if (!SWIG_IsOK(ecode1)) {
14357 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14358 }
14359 arg1 = static_cast< wxWindowVariant >(val1);
14360 }
14361 {
14362 if (!wxPyCheckForApp()) SWIG_fail;
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14369 return resultobj;
14370 fail:
14371 return NULL;
14372 }
14373
14374
14375 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14376 PyObject *obj;
14377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14378 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14379 return SWIG_Py_Void();
14380 }
14381
14382 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14383 return SWIG_Python_InitShadowInstance(args);
14384 }
14385
14386 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14387 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14388 return 1;
14389 }
14390
14391
14392 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14393 PyObject *pyobj = 0;
14394
14395 {
14396 #if wxUSE_UNICODE
14397 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14398 #else
14399 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14400 #endif
14401 }
14402 return pyobj;
14403 }
14404
14405
14406 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14407 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14408 return 1;
14409 }
14410
14411
14412 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14413 PyObject *pyobj = 0;
14414
14415 {
14416 #if wxUSE_UNICODE
14417 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14418 #else
14419 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14420 #endif
14421 }
14422 return pyobj;
14423 }
14424
14425
14426 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14427 PyObject *resultobj = 0;
14428 wxWindow *arg1 = (wxWindow *) 0 ;
14429 int arg2 = (int) -1 ;
14430 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14431 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14432 wxSize const &arg4_defvalue = wxDefaultSize ;
14433 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14434 long arg5 = (long) wxSP_HORIZONTAL ;
14435 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14436 wxString *arg6 = (wxString *) &arg6_defvalue ;
14437 wxSpinButton *result = 0 ;
14438 void *argp1 = 0 ;
14439 int res1 = 0 ;
14440 int val2 ;
14441 int ecode2 = 0 ;
14442 wxPoint temp3 ;
14443 wxSize temp4 ;
14444 long val5 ;
14445 int ecode5 = 0 ;
14446 bool temp6 = false ;
14447 PyObject * obj0 = 0 ;
14448 PyObject * obj1 = 0 ;
14449 PyObject * obj2 = 0 ;
14450 PyObject * obj3 = 0 ;
14451 PyObject * obj4 = 0 ;
14452 PyObject * obj5 = 0 ;
14453 char * kwnames[] = {
14454 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14455 };
14456
14457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14459 if (!SWIG_IsOK(res1)) {
14460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14461 }
14462 arg1 = reinterpret_cast< wxWindow * >(argp1);
14463 if (obj1) {
14464 ecode2 = SWIG_AsVal_int(obj1, &val2);
14465 if (!SWIG_IsOK(ecode2)) {
14466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14467 }
14468 arg2 = static_cast< int >(val2);
14469 }
14470 if (obj2) {
14471 {
14472 arg3 = &temp3;
14473 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14474 }
14475 }
14476 if (obj3) {
14477 {
14478 arg4 = &temp4;
14479 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14480 }
14481 }
14482 if (obj4) {
14483 ecode5 = SWIG_AsVal_long(obj4, &val5);
14484 if (!SWIG_IsOK(ecode5)) {
14485 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14486 }
14487 arg5 = static_cast< long >(val5);
14488 }
14489 if (obj5) {
14490 {
14491 arg6 = wxString_in_helper(obj5);
14492 if (arg6 == NULL) SWIG_fail;
14493 temp6 = true;
14494 }
14495 }
14496 {
14497 if (!wxPyCheckForApp()) SWIG_fail;
14498 PyThreadState* __tstate = wxPyBeginAllowThreads();
14499 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14500 wxPyEndAllowThreads(__tstate);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 }
14503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14504 {
14505 if (temp6)
14506 delete arg6;
14507 }
14508 return resultobj;
14509 fail:
14510 {
14511 if (temp6)
14512 delete arg6;
14513 }
14514 return NULL;
14515 }
14516
14517
14518 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14519 PyObject *resultobj = 0;
14520 wxSpinButton *result = 0 ;
14521
14522 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14523 {
14524 if (!wxPyCheckForApp()) SWIG_fail;
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 result = (wxSpinButton *)new wxSpinButton();
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14531 return resultobj;
14532 fail:
14533 return NULL;
14534 }
14535
14536
14537 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14538 PyObject *resultobj = 0;
14539 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14540 wxWindow *arg2 = (wxWindow *) 0 ;
14541 int arg3 = (int) -1 ;
14542 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14543 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14544 wxSize const &arg5_defvalue = wxDefaultSize ;
14545 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14546 long arg6 = (long) wxSP_HORIZONTAL ;
14547 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14548 wxString *arg7 = (wxString *) &arg7_defvalue ;
14549 bool result;
14550 void *argp1 = 0 ;
14551 int res1 = 0 ;
14552 void *argp2 = 0 ;
14553 int res2 = 0 ;
14554 int val3 ;
14555 int ecode3 = 0 ;
14556 wxPoint temp4 ;
14557 wxSize temp5 ;
14558 long val6 ;
14559 int ecode6 = 0 ;
14560 bool temp7 = false ;
14561 PyObject * obj0 = 0 ;
14562 PyObject * obj1 = 0 ;
14563 PyObject * obj2 = 0 ;
14564 PyObject * obj3 = 0 ;
14565 PyObject * obj4 = 0 ;
14566 PyObject * obj5 = 0 ;
14567 PyObject * obj6 = 0 ;
14568 char * kwnames[] = {
14569 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14570 };
14571
14572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14574 if (!SWIG_IsOK(res1)) {
14575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14576 }
14577 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14579 if (!SWIG_IsOK(res2)) {
14580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14581 }
14582 arg2 = reinterpret_cast< wxWindow * >(argp2);
14583 if (obj2) {
14584 ecode3 = SWIG_AsVal_int(obj2, &val3);
14585 if (!SWIG_IsOK(ecode3)) {
14586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14587 }
14588 arg3 = static_cast< int >(val3);
14589 }
14590 if (obj3) {
14591 {
14592 arg4 = &temp4;
14593 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14594 }
14595 }
14596 if (obj4) {
14597 {
14598 arg5 = &temp5;
14599 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14600 }
14601 }
14602 if (obj5) {
14603 ecode6 = SWIG_AsVal_long(obj5, &val6);
14604 if (!SWIG_IsOK(ecode6)) {
14605 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14606 }
14607 arg6 = static_cast< long >(val6);
14608 }
14609 if (obj6) {
14610 {
14611 arg7 = wxString_in_helper(obj6);
14612 if (arg7 == NULL) SWIG_fail;
14613 temp7 = true;
14614 }
14615 }
14616 {
14617 PyThreadState* __tstate = wxPyBeginAllowThreads();
14618 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 {
14623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14624 }
14625 {
14626 if (temp7)
14627 delete arg7;
14628 }
14629 return resultobj;
14630 fail:
14631 {
14632 if (temp7)
14633 delete arg7;
14634 }
14635 return NULL;
14636 }
14637
14638
14639 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14640 PyObject *resultobj = 0;
14641 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14642 int result;
14643 void *argp1 = 0 ;
14644 int res1 = 0 ;
14645 PyObject *swig_obj[1] ;
14646
14647 if (!args) SWIG_fail;
14648 swig_obj[0] = args;
14649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14650 if (!SWIG_IsOK(res1)) {
14651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14652 }
14653 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14654 {
14655 PyThreadState* __tstate = wxPyBeginAllowThreads();
14656 result = (int)((wxSpinButton const *)arg1)->GetValue();
14657 wxPyEndAllowThreads(__tstate);
14658 if (PyErr_Occurred()) SWIG_fail;
14659 }
14660 resultobj = SWIG_From_int(static_cast< int >(result));
14661 return resultobj;
14662 fail:
14663 return NULL;
14664 }
14665
14666
14667 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14668 PyObject *resultobj = 0;
14669 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14670 int result;
14671 void *argp1 = 0 ;
14672 int res1 = 0 ;
14673 PyObject *swig_obj[1] ;
14674
14675 if (!args) SWIG_fail;
14676 swig_obj[0] = args;
14677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14678 if (!SWIG_IsOK(res1)) {
14679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14680 }
14681 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 result = (int)((wxSpinButton const *)arg1)->GetMin();
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 resultobj = SWIG_From_int(static_cast< int >(result));
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14696 PyObject *resultobj = 0;
14697 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14698 int result;
14699 void *argp1 = 0 ;
14700 int res1 = 0 ;
14701 PyObject *swig_obj[1] ;
14702
14703 if (!args) SWIG_fail;
14704 swig_obj[0] = args;
14705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14706 if (!SWIG_IsOK(res1)) {
14707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14708 }
14709 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = (int)((wxSpinButton const *)arg1)->GetMax();
14713 wxPyEndAllowThreads(__tstate);
14714 if (PyErr_Occurred()) SWIG_fail;
14715 }
14716 resultobj = SWIG_From_int(static_cast< int >(result));
14717 return resultobj;
14718 fail:
14719 return NULL;
14720 }
14721
14722
14723 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14724 PyObject *resultobj = 0;
14725 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14726 int arg2 ;
14727 void *argp1 = 0 ;
14728 int res1 = 0 ;
14729 int val2 ;
14730 int ecode2 = 0 ;
14731 PyObject * obj0 = 0 ;
14732 PyObject * obj1 = 0 ;
14733 char * kwnames[] = {
14734 (char *) "self",(char *) "val", NULL
14735 };
14736
14737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14739 if (!SWIG_IsOK(res1)) {
14740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14741 }
14742 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14743 ecode2 = SWIG_AsVal_int(obj1, &val2);
14744 if (!SWIG_IsOK(ecode2)) {
14745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14746 }
14747 arg2 = static_cast< int >(val2);
14748 {
14749 PyThreadState* __tstate = wxPyBeginAllowThreads();
14750 (arg1)->SetValue(arg2);
14751 wxPyEndAllowThreads(__tstate);
14752 if (PyErr_Occurred()) SWIG_fail;
14753 }
14754 resultobj = SWIG_Py_Void();
14755 return resultobj;
14756 fail:
14757 return NULL;
14758 }
14759
14760
14761 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14762 PyObject *resultobj = 0;
14763 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14764 int arg2 ;
14765 void *argp1 = 0 ;
14766 int res1 = 0 ;
14767 int val2 ;
14768 int ecode2 = 0 ;
14769 PyObject * obj0 = 0 ;
14770 PyObject * obj1 = 0 ;
14771 char * kwnames[] = {
14772 (char *) "self",(char *) "minVal", NULL
14773 };
14774
14775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14777 if (!SWIG_IsOK(res1)) {
14778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14779 }
14780 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14781 ecode2 = SWIG_AsVal_int(obj1, &val2);
14782 if (!SWIG_IsOK(ecode2)) {
14783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14784 }
14785 arg2 = static_cast< int >(val2);
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 (arg1)->SetMin(arg2);
14789 wxPyEndAllowThreads(__tstate);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 resultobj = SWIG_Py_Void();
14793 return resultobj;
14794 fail:
14795 return NULL;
14796 }
14797
14798
14799 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14800 PyObject *resultobj = 0;
14801 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14802 int arg2 ;
14803 void *argp1 = 0 ;
14804 int res1 = 0 ;
14805 int val2 ;
14806 int ecode2 = 0 ;
14807 PyObject * obj0 = 0 ;
14808 PyObject * obj1 = 0 ;
14809 char * kwnames[] = {
14810 (char *) "self",(char *) "maxVal", NULL
14811 };
14812
14813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14815 if (!SWIG_IsOK(res1)) {
14816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14817 }
14818 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14819 ecode2 = SWIG_AsVal_int(obj1, &val2);
14820 if (!SWIG_IsOK(ecode2)) {
14821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14822 }
14823 arg2 = static_cast< int >(val2);
14824 {
14825 PyThreadState* __tstate = wxPyBeginAllowThreads();
14826 (arg1)->SetMax(arg2);
14827 wxPyEndAllowThreads(__tstate);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 resultobj = SWIG_Py_Void();
14831 return resultobj;
14832 fail:
14833 return NULL;
14834 }
14835
14836
14837 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14838 PyObject *resultobj = 0;
14839 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14840 int arg2 ;
14841 int arg3 ;
14842 void *argp1 = 0 ;
14843 int res1 = 0 ;
14844 int val2 ;
14845 int ecode2 = 0 ;
14846 int val3 ;
14847 int ecode3 = 0 ;
14848 PyObject * obj0 = 0 ;
14849 PyObject * obj1 = 0 ;
14850 PyObject * obj2 = 0 ;
14851 char * kwnames[] = {
14852 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14853 };
14854
14855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14857 if (!SWIG_IsOK(res1)) {
14858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14859 }
14860 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14861 ecode2 = SWIG_AsVal_int(obj1, &val2);
14862 if (!SWIG_IsOK(ecode2)) {
14863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14864 }
14865 arg2 = static_cast< int >(val2);
14866 ecode3 = SWIG_AsVal_int(obj2, &val3);
14867 if (!SWIG_IsOK(ecode3)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14869 }
14870 arg3 = static_cast< int >(val3);
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 (arg1)->SetRange(arg2,arg3);
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 resultobj = SWIG_Py_Void();
14878 return resultobj;
14879 fail:
14880 return NULL;
14881 }
14882
14883
14884 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14885 PyObject *resultobj = 0;
14886 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14887 bool result;
14888 void *argp1 = 0 ;
14889 int res1 = 0 ;
14890 PyObject *swig_obj[1] ;
14891
14892 if (!args) SWIG_fail;
14893 swig_obj[0] = args;
14894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14895 if (!SWIG_IsOK(res1)) {
14896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14897 }
14898 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14902 wxPyEndAllowThreads(__tstate);
14903 if (PyErr_Occurred()) SWIG_fail;
14904 }
14905 {
14906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14907 }
14908 return resultobj;
14909 fail:
14910 return NULL;
14911 }
14912
14913
14914 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj = 0;
14916 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14917 SwigValueWrapper<wxVisualAttributes > result;
14918 int val1 ;
14919 int ecode1 = 0 ;
14920 PyObject * obj0 = 0 ;
14921 char * kwnames[] = {
14922 (char *) "variant", NULL
14923 };
14924
14925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14926 if (obj0) {
14927 ecode1 = SWIG_AsVal_int(obj0, &val1);
14928 if (!SWIG_IsOK(ecode1)) {
14929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14930 }
14931 arg1 = static_cast< wxWindowVariant >(val1);
14932 }
14933 {
14934 if (!wxPyCheckForApp()) SWIG_fail;
14935 PyThreadState* __tstate = wxPyBeginAllowThreads();
14936 result = wxSpinButton::GetClassDefaultAttributes(arg1);
14937 wxPyEndAllowThreads(__tstate);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14941 return resultobj;
14942 fail:
14943 return NULL;
14944 }
14945
14946
14947 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14948 PyObject *obj;
14949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14950 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
14951 return SWIG_Py_Void();
14952 }
14953
14954 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14955 return SWIG_Python_InitShadowInstance(args);
14956 }
14957
14958 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj = 0;
14960 wxWindow *arg1 = (wxWindow *) 0 ;
14961 int arg2 = (int) -1 ;
14962 wxString const &arg3_defvalue = wxPyEmptyString ;
14963 wxString *arg3 = (wxString *) &arg3_defvalue ;
14964 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14965 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14966 wxSize const &arg5_defvalue = wxDefaultSize ;
14967 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14968 long arg6 = (long) wxSP_ARROW_KEYS ;
14969 int arg7 = (int) 0 ;
14970 int arg8 = (int) 100 ;
14971 int arg9 = (int) 0 ;
14972 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
14973 wxString *arg10 = (wxString *) &arg10_defvalue ;
14974 wxSpinCtrl *result = 0 ;
14975 void *argp1 = 0 ;
14976 int res1 = 0 ;
14977 int val2 ;
14978 int ecode2 = 0 ;
14979 bool temp3 = false ;
14980 wxPoint temp4 ;
14981 wxSize temp5 ;
14982 long val6 ;
14983 int ecode6 = 0 ;
14984 int val7 ;
14985 int ecode7 = 0 ;
14986 int val8 ;
14987 int ecode8 = 0 ;
14988 int val9 ;
14989 int ecode9 = 0 ;
14990 bool temp10 = false ;
14991 PyObject * obj0 = 0 ;
14992 PyObject * obj1 = 0 ;
14993 PyObject * obj2 = 0 ;
14994 PyObject * obj3 = 0 ;
14995 PyObject * obj4 = 0 ;
14996 PyObject * obj5 = 0 ;
14997 PyObject * obj6 = 0 ;
14998 PyObject * obj7 = 0 ;
14999 PyObject * obj8 = 0 ;
15000 PyObject * obj9 = 0 ;
15001 char * kwnames[] = {
15002 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15003 };
15004
15005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15007 if (!SWIG_IsOK(res1)) {
15008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15009 }
15010 arg1 = reinterpret_cast< wxWindow * >(argp1);
15011 if (obj1) {
15012 ecode2 = SWIG_AsVal_int(obj1, &val2);
15013 if (!SWIG_IsOK(ecode2)) {
15014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15015 }
15016 arg2 = static_cast< int >(val2);
15017 }
15018 if (obj2) {
15019 {
15020 arg3 = wxString_in_helper(obj2);
15021 if (arg3 == NULL) SWIG_fail;
15022 temp3 = true;
15023 }
15024 }
15025 if (obj3) {
15026 {
15027 arg4 = &temp4;
15028 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15029 }
15030 }
15031 if (obj4) {
15032 {
15033 arg5 = &temp5;
15034 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15035 }
15036 }
15037 if (obj5) {
15038 ecode6 = SWIG_AsVal_long(obj5, &val6);
15039 if (!SWIG_IsOK(ecode6)) {
15040 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15041 }
15042 arg6 = static_cast< long >(val6);
15043 }
15044 if (obj6) {
15045 ecode7 = SWIG_AsVal_int(obj6, &val7);
15046 if (!SWIG_IsOK(ecode7)) {
15047 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15048 }
15049 arg7 = static_cast< int >(val7);
15050 }
15051 if (obj7) {
15052 ecode8 = SWIG_AsVal_int(obj7, &val8);
15053 if (!SWIG_IsOK(ecode8)) {
15054 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15055 }
15056 arg8 = static_cast< int >(val8);
15057 }
15058 if (obj8) {
15059 ecode9 = SWIG_AsVal_int(obj8, &val9);
15060 if (!SWIG_IsOK(ecode9)) {
15061 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15062 }
15063 arg9 = static_cast< int >(val9);
15064 }
15065 if (obj9) {
15066 {
15067 arg10 = wxString_in_helper(obj9);
15068 if (arg10 == NULL) SWIG_fail;
15069 temp10 = true;
15070 }
15071 }
15072 {
15073 if (!wxPyCheckForApp()) SWIG_fail;
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15080 {
15081 if (temp3)
15082 delete arg3;
15083 }
15084 {
15085 if (temp10)
15086 delete arg10;
15087 }
15088 return resultobj;
15089 fail:
15090 {
15091 if (temp3)
15092 delete arg3;
15093 }
15094 {
15095 if (temp10)
15096 delete arg10;
15097 }
15098 return NULL;
15099 }
15100
15101
15102 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15103 PyObject *resultobj = 0;
15104 wxSpinCtrl *result = 0 ;
15105
15106 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15107 {
15108 if (!wxPyCheckForApp()) SWIG_fail;
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 result = (wxSpinCtrl *)new wxSpinCtrl();
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj = 0;
15123 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15124 wxWindow *arg2 = (wxWindow *) 0 ;
15125 int arg3 = (int) -1 ;
15126 wxString const &arg4_defvalue = wxPyEmptyString ;
15127 wxString *arg4 = (wxString *) &arg4_defvalue ;
15128 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15129 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15130 wxSize const &arg6_defvalue = wxDefaultSize ;
15131 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15132 long arg7 = (long) wxSP_ARROW_KEYS ;
15133 int arg8 = (int) 0 ;
15134 int arg9 = (int) 100 ;
15135 int arg10 = (int) 0 ;
15136 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15137 wxString *arg11 = (wxString *) &arg11_defvalue ;
15138 bool result;
15139 void *argp1 = 0 ;
15140 int res1 = 0 ;
15141 void *argp2 = 0 ;
15142 int res2 = 0 ;
15143 int val3 ;
15144 int ecode3 = 0 ;
15145 bool temp4 = false ;
15146 wxPoint temp5 ;
15147 wxSize temp6 ;
15148 long val7 ;
15149 int ecode7 = 0 ;
15150 int val8 ;
15151 int ecode8 = 0 ;
15152 int val9 ;
15153 int ecode9 = 0 ;
15154 int val10 ;
15155 int ecode10 = 0 ;
15156 bool temp11 = false ;
15157 PyObject * obj0 = 0 ;
15158 PyObject * obj1 = 0 ;
15159 PyObject * obj2 = 0 ;
15160 PyObject * obj3 = 0 ;
15161 PyObject * obj4 = 0 ;
15162 PyObject * obj5 = 0 ;
15163 PyObject * obj6 = 0 ;
15164 PyObject * obj7 = 0 ;
15165 PyObject * obj8 = 0 ;
15166 PyObject * obj9 = 0 ;
15167 PyObject * obj10 = 0 ;
15168 char * kwnames[] = {
15169 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15170 };
15171
15172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15174 if (!SWIG_IsOK(res1)) {
15175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15176 }
15177 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15178 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15179 if (!SWIG_IsOK(res2)) {
15180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15181 }
15182 arg2 = reinterpret_cast< wxWindow * >(argp2);
15183 if (obj2) {
15184 ecode3 = SWIG_AsVal_int(obj2, &val3);
15185 if (!SWIG_IsOK(ecode3)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15187 }
15188 arg3 = static_cast< int >(val3);
15189 }
15190 if (obj3) {
15191 {
15192 arg4 = wxString_in_helper(obj3);
15193 if (arg4 == NULL) SWIG_fail;
15194 temp4 = true;
15195 }
15196 }
15197 if (obj4) {
15198 {
15199 arg5 = &temp5;
15200 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15201 }
15202 }
15203 if (obj5) {
15204 {
15205 arg6 = &temp6;
15206 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15207 }
15208 }
15209 if (obj6) {
15210 ecode7 = SWIG_AsVal_long(obj6, &val7);
15211 if (!SWIG_IsOK(ecode7)) {
15212 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15213 }
15214 arg7 = static_cast< long >(val7);
15215 }
15216 if (obj7) {
15217 ecode8 = SWIG_AsVal_int(obj7, &val8);
15218 if (!SWIG_IsOK(ecode8)) {
15219 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15220 }
15221 arg8 = static_cast< int >(val8);
15222 }
15223 if (obj8) {
15224 ecode9 = SWIG_AsVal_int(obj8, &val9);
15225 if (!SWIG_IsOK(ecode9)) {
15226 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15227 }
15228 arg9 = static_cast< int >(val9);
15229 }
15230 if (obj9) {
15231 ecode10 = SWIG_AsVal_int(obj9, &val10);
15232 if (!SWIG_IsOK(ecode10)) {
15233 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15234 }
15235 arg10 = static_cast< int >(val10);
15236 }
15237 if (obj10) {
15238 {
15239 arg11 = wxString_in_helper(obj10);
15240 if (arg11 == NULL) SWIG_fail;
15241 temp11 = true;
15242 }
15243 }
15244 {
15245 PyThreadState* __tstate = wxPyBeginAllowThreads();
15246 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15247 wxPyEndAllowThreads(__tstate);
15248 if (PyErr_Occurred()) SWIG_fail;
15249 }
15250 {
15251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15252 }
15253 {
15254 if (temp4)
15255 delete arg4;
15256 }
15257 {
15258 if (temp11)
15259 delete arg11;
15260 }
15261 return resultobj;
15262 fail:
15263 {
15264 if (temp4)
15265 delete arg4;
15266 }
15267 {
15268 if (temp11)
15269 delete arg11;
15270 }
15271 return NULL;
15272 }
15273
15274
15275 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15276 PyObject *resultobj = 0;
15277 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15278 int result;
15279 void *argp1 = 0 ;
15280 int res1 = 0 ;
15281 PyObject *swig_obj[1] ;
15282
15283 if (!args) SWIG_fail;
15284 swig_obj[0] = args;
15285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15286 if (!SWIG_IsOK(res1)) {
15287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15288 }
15289 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15290 {
15291 PyThreadState* __tstate = wxPyBeginAllowThreads();
15292 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15293 wxPyEndAllowThreads(__tstate);
15294 if (PyErr_Occurred()) SWIG_fail;
15295 }
15296 resultobj = SWIG_From_int(static_cast< int >(result));
15297 return resultobj;
15298 fail:
15299 return NULL;
15300 }
15301
15302
15303 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15304 PyObject *resultobj = 0;
15305 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15306 int arg2 ;
15307 void *argp1 = 0 ;
15308 int res1 = 0 ;
15309 int val2 ;
15310 int ecode2 = 0 ;
15311 PyObject * obj0 = 0 ;
15312 PyObject * obj1 = 0 ;
15313 char * kwnames[] = {
15314 (char *) "self",(char *) "value", NULL
15315 };
15316
15317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15319 if (!SWIG_IsOK(res1)) {
15320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15321 }
15322 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15323 ecode2 = SWIG_AsVal_int(obj1, &val2);
15324 if (!SWIG_IsOK(ecode2)) {
15325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15326 }
15327 arg2 = static_cast< int >(val2);
15328 {
15329 PyThreadState* __tstate = wxPyBeginAllowThreads();
15330 (arg1)->SetValue(arg2);
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 resultobj = SWIG_Py_Void();
15335 return resultobj;
15336 fail:
15337 return NULL;
15338 }
15339
15340
15341 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj = 0;
15343 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15344 wxString *arg2 = 0 ;
15345 void *argp1 = 0 ;
15346 int res1 = 0 ;
15347 bool temp2 = false ;
15348 PyObject * obj0 = 0 ;
15349 PyObject * obj1 = 0 ;
15350 char * kwnames[] = {
15351 (char *) "self",(char *) "text", NULL
15352 };
15353
15354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15356 if (!SWIG_IsOK(res1)) {
15357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15358 }
15359 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15360 {
15361 arg2 = wxString_in_helper(obj1);
15362 if (arg2 == NULL) SWIG_fail;
15363 temp2 = true;
15364 }
15365 {
15366 PyThreadState* __tstate = wxPyBeginAllowThreads();
15367 (arg1)->SetValue((wxString const &)*arg2);
15368 wxPyEndAllowThreads(__tstate);
15369 if (PyErr_Occurred()) SWIG_fail;
15370 }
15371 resultobj = SWIG_Py_Void();
15372 {
15373 if (temp2)
15374 delete arg2;
15375 }
15376 return resultobj;
15377 fail:
15378 {
15379 if (temp2)
15380 delete arg2;
15381 }
15382 return NULL;
15383 }
15384
15385
15386 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj = 0;
15388 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15389 int arg2 ;
15390 int arg3 ;
15391 void *argp1 = 0 ;
15392 int res1 = 0 ;
15393 int val2 ;
15394 int ecode2 = 0 ;
15395 int val3 ;
15396 int ecode3 = 0 ;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 PyObject * obj2 = 0 ;
15400 char * kwnames[] = {
15401 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15402 };
15403
15404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15406 if (!SWIG_IsOK(res1)) {
15407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15408 }
15409 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15410 ecode2 = SWIG_AsVal_int(obj1, &val2);
15411 if (!SWIG_IsOK(ecode2)) {
15412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15413 }
15414 arg2 = static_cast< int >(val2);
15415 ecode3 = SWIG_AsVal_int(obj2, &val3);
15416 if (!SWIG_IsOK(ecode3)) {
15417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15418 }
15419 arg3 = static_cast< int >(val3);
15420 {
15421 PyThreadState* __tstate = wxPyBeginAllowThreads();
15422 (arg1)->SetRange(arg2,arg3);
15423 wxPyEndAllowThreads(__tstate);
15424 if (PyErr_Occurred()) SWIG_fail;
15425 }
15426 resultobj = SWIG_Py_Void();
15427 return resultobj;
15428 fail:
15429 return NULL;
15430 }
15431
15432
15433 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15434 PyObject *resultobj = 0;
15435 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15436 int result;
15437 void *argp1 = 0 ;
15438 int res1 = 0 ;
15439 PyObject *swig_obj[1] ;
15440
15441 if (!args) SWIG_fail;
15442 swig_obj[0] = args;
15443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15444 if (!SWIG_IsOK(res1)) {
15445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15446 }
15447 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15448 {
15449 PyThreadState* __tstate = wxPyBeginAllowThreads();
15450 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15451 wxPyEndAllowThreads(__tstate);
15452 if (PyErr_Occurred()) SWIG_fail;
15453 }
15454 resultobj = SWIG_From_int(static_cast< int >(result));
15455 return resultobj;
15456 fail:
15457 return NULL;
15458 }
15459
15460
15461 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15462 PyObject *resultobj = 0;
15463 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15464 int result;
15465 void *argp1 = 0 ;
15466 int res1 = 0 ;
15467 PyObject *swig_obj[1] ;
15468
15469 if (!args) SWIG_fail;
15470 swig_obj[0] = args;
15471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15472 if (!SWIG_IsOK(res1)) {
15473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15474 }
15475 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15476 {
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 resultobj = SWIG_From_int(static_cast< int >(result));
15483 return resultobj;
15484 fail:
15485 return NULL;
15486 }
15487
15488
15489 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj = 0;
15491 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15492 long arg2 ;
15493 long arg3 ;
15494 void *argp1 = 0 ;
15495 int res1 = 0 ;
15496 long val2 ;
15497 int ecode2 = 0 ;
15498 long val3 ;
15499 int ecode3 = 0 ;
15500 PyObject * obj0 = 0 ;
15501 PyObject * obj1 = 0 ;
15502 PyObject * obj2 = 0 ;
15503 char * kwnames[] = {
15504 (char *) "self",(char *) "_from",(char *) "to", NULL
15505 };
15506
15507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15509 if (!SWIG_IsOK(res1)) {
15510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15511 }
15512 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15513 ecode2 = SWIG_AsVal_long(obj1, &val2);
15514 if (!SWIG_IsOK(ecode2)) {
15515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15516 }
15517 arg2 = static_cast< long >(val2);
15518 ecode3 = SWIG_AsVal_long(obj2, &val3);
15519 if (!SWIG_IsOK(ecode3)) {
15520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15521 }
15522 arg3 = static_cast< long >(val3);
15523 {
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 (arg1)->SetSelection(arg2,arg3);
15526 wxPyEndAllowThreads(__tstate);
15527 if (PyErr_Occurred()) SWIG_fail;
15528 }
15529 resultobj = SWIG_Py_Void();
15530 return resultobj;
15531 fail:
15532 return NULL;
15533 }
15534
15535
15536 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15537 PyObject *resultobj = 0;
15538 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15539 SwigValueWrapper<wxVisualAttributes > result;
15540 int val1 ;
15541 int ecode1 = 0 ;
15542 PyObject * obj0 = 0 ;
15543 char * kwnames[] = {
15544 (char *) "variant", NULL
15545 };
15546
15547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15548 if (obj0) {
15549 ecode1 = SWIG_AsVal_int(obj0, &val1);
15550 if (!SWIG_IsOK(ecode1)) {
15551 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15552 }
15553 arg1 = static_cast< wxWindowVariant >(val1);
15554 }
15555 {
15556 if (!wxPyCheckForApp()) SWIG_fail;
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15559 wxPyEndAllowThreads(__tstate);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15563 return resultobj;
15564 fail:
15565 return NULL;
15566 }
15567
15568
15569 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15570 PyObject *obj;
15571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15572 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15573 return SWIG_Py_Void();
15574 }
15575
15576 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15577 return SWIG_Python_InitShadowInstance(args);
15578 }
15579
15580 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15581 PyObject *resultobj = 0;
15582 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15583 int arg2 = (int) 0 ;
15584 wxSpinEvent *result = 0 ;
15585 int val1 ;
15586 int ecode1 = 0 ;
15587 int val2 ;
15588 int ecode2 = 0 ;
15589 PyObject * obj0 = 0 ;
15590 PyObject * obj1 = 0 ;
15591 char * kwnames[] = {
15592 (char *) "commandType",(char *) "winid", NULL
15593 };
15594
15595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15596 if (obj0) {
15597 ecode1 = SWIG_AsVal_int(obj0, &val1);
15598 if (!SWIG_IsOK(ecode1)) {
15599 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15600 }
15601 arg1 = static_cast< wxEventType >(val1);
15602 }
15603 if (obj1) {
15604 ecode2 = SWIG_AsVal_int(obj1, &val2);
15605 if (!SWIG_IsOK(ecode2)) {
15606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15607 }
15608 arg2 = static_cast< int >(val2);
15609 }
15610 {
15611 PyThreadState* __tstate = wxPyBeginAllowThreads();
15612 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15613 wxPyEndAllowThreads(__tstate);
15614 if (PyErr_Occurred()) SWIG_fail;
15615 }
15616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15617 return resultobj;
15618 fail:
15619 return NULL;
15620 }
15621
15622
15623 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15624 PyObject *resultobj = 0;
15625 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15626 int result;
15627 void *argp1 = 0 ;
15628 int res1 = 0 ;
15629 PyObject *swig_obj[1] ;
15630
15631 if (!args) SWIG_fail;
15632 swig_obj[0] = args;
15633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15634 if (!SWIG_IsOK(res1)) {
15635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15636 }
15637 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15641 wxPyEndAllowThreads(__tstate);
15642 if (PyErr_Occurred()) SWIG_fail;
15643 }
15644 resultobj = SWIG_From_int(static_cast< int >(result));
15645 return resultobj;
15646 fail:
15647 return NULL;
15648 }
15649
15650
15651 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15652 PyObject *resultobj = 0;
15653 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15654 int arg2 ;
15655 void *argp1 = 0 ;
15656 int res1 = 0 ;
15657 int val2 ;
15658 int ecode2 = 0 ;
15659 PyObject * obj0 = 0 ;
15660 PyObject * obj1 = 0 ;
15661 char * kwnames[] = {
15662 (char *) "self",(char *) "pos", NULL
15663 };
15664
15665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15667 if (!SWIG_IsOK(res1)) {
15668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15669 }
15670 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15671 ecode2 = SWIG_AsVal_int(obj1, &val2);
15672 if (!SWIG_IsOK(ecode2)) {
15673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15674 }
15675 arg2 = static_cast< int >(val2);
15676 {
15677 PyThreadState* __tstate = wxPyBeginAllowThreads();
15678 (arg1)->SetPosition(arg2);
15679 wxPyEndAllowThreads(__tstate);
15680 if (PyErr_Occurred()) SWIG_fail;
15681 }
15682 resultobj = SWIG_Py_Void();
15683 return resultobj;
15684 fail:
15685 return NULL;
15686 }
15687
15688
15689 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15690 PyObject *obj;
15691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15692 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15693 return SWIG_Py_Void();
15694 }
15695
15696 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15697 return SWIG_Python_InitShadowInstance(args);
15698 }
15699
15700 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15701 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15702 return 1;
15703 }
15704
15705
15706 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15707 PyObject *pyobj = 0;
15708
15709 {
15710 #if wxUSE_UNICODE
15711 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15712 #else
15713 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15714 #endif
15715 }
15716 return pyobj;
15717 }
15718
15719
15720 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15721 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15722 return 1;
15723 }
15724
15725
15726 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15727 PyObject *pyobj = 0;
15728
15729 {
15730 #if wxUSE_UNICODE
15731 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15732 #else
15733 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15734 #endif
15735 }
15736 return pyobj;
15737 }
15738
15739
15740 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15741 PyObject *resultobj = 0;
15742 wxWindow *arg1 = (wxWindow *) 0 ;
15743 int arg2 = (int) -1 ;
15744 wxString const &arg3_defvalue = wxPyEmptyString ;
15745 wxString *arg3 = (wxString *) &arg3_defvalue ;
15746 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15747 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15748 wxSize const &arg5_defvalue = wxDefaultSize ;
15749 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15750 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15751 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15752 int arg7 = (int) 0 ;
15753 long arg8 = (long) wxRA_HORIZONTAL ;
15754 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15755 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15756 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15757 wxString *arg10 = (wxString *) &arg10_defvalue ;
15758 wxRadioBox *result = 0 ;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 int val2 ;
15762 int ecode2 = 0 ;
15763 bool temp3 = false ;
15764 wxPoint temp4 ;
15765 wxSize temp5 ;
15766 bool temp6 = false ;
15767 int val7 ;
15768 int ecode7 = 0 ;
15769 long val8 ;
15770 int ecode8 = 0 ;
15771 void *argp9 = 0 ;
15772 int res9 = 0 ;
15773 bool temp10 = false ;
15774 PyObject * obj0 = 0 ;
15775 PyObject * obj1 = 0 ;
15776 PyObject * obj2 = 0 ;
15777 PyObject * obj3 = 0 ;
15778 PyObject * obj4 = 0 ;
15779 PyObject * obj5 = 0 ;
15780 PyObject * obj6 = 0 ;
15781 PyObject * obj7 = 0 ;
15782 PyObject * obj8 = 0 ;
15783 PyObject * obj9 = 0 ;
15784 char * kwnames[] = {
15785 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15786 };
15787
15788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15790 if (!SWIG_IsOK(res1)) {
15791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15792 }
15793 arg1 = reinterpret_cast< wxWindow * >(argp1);
15794 if (obj1) {
15795 ecode2 = SWIG_AsVal_int(obj1, &val2);
15796 if (!SWIG_IsOK(ecode2)) {
15797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15798 }
15799 arg2 = static_cast< int >(val2);
15800 }
15801 if (obj2) {
15802 {
15803 arg3 = wxString_in_helper(obj2);
15804 if (arg3 == NULL) SWIG_fail;
15805 temp3 = true;
15806 }
15807 }
15808 if (obj3) {
15809 {
15810 arg4 = &temp4;
15811 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15812 }
15813 }
15814 if (obj4) {
15815 {
15816 arg5 = &temp5;
15817 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15818 }
15819 }
15820 if (obj5) {
15821 {
15822 if (! PySequence_Check(obj5)) {
15823 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15824 SWIG_fail;
15825 }
15826 arg6 = new wxArrayString;
15827 temp6 = true;
15828 int i, len=PySequence_Length(obj5);
15829 for (i=0; i<len; i++) {
15830 PyObject* item = PySequence_GetItem(obj5, i);
15831 wxString* s = wxString_in_helper(item);
15832 if (PyErr_Occurred()) SWIG_fail;
15833 arg6->Add(*s);
15834 delete s;
15835 Py_DECREF(item);
15836 }
15837 }
15838 }
15839 if (obj6) {
15840 ecode7 = SWIG_AsVal_int(obj6, &val7);
15841 if (!SWIG_IsOK(ecode7)) {
15842 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15843 }
15844 arg7 = static_cast< int >(val7);
15845 }
15846 if (obj7) {
15847 ecode8 = SWIG_AsVal_long(obj7, &val8);
15848 if (!SWIG_IsOK(ecode8)) {
15849 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15850 }
15851 arg8 = static_cast< long >(val8);
15852 }
15853 if (obj8) {
15854 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15855 if (!SWIG_IsOK(res9)) {
15856 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15857 }
15858 if (!argp9) {
15859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15860 }
15861 arg9 = reinterpret_cast< wxValidator * >(argp9);
15862 }
15863 if (obj9) {
15864 {
15865 arg10 = wxString_in_helper(obj9);
15866 if (arg10 == NULL) SWIG_fail;
15867 temp10 = true;
15868 }
15869 }
15870 {
15871 if (!wxPyCheckForApp()) SWIG_fail;
15872 PyThreadState* __tstate = wxPyBeginAllowThreads();
15873 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);
15874 wxPyEndAllowThreads(__tstate);
15875 if (PyErr_Occurred()) SWIG_fail;
15876 }
15877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15878 {
15879 if (temp3)
15880 delete arg3;
15881 }
15882 {
15883 if (temp6) delete arg6;
15884 }
15885 {
15886 if (temp10)
15887 delete arg10;
15888 }
15889 return resultobj;
15890 fail:
15891 {
15892 if (temp3)
15893 delete arg3;
15894 }
15895 {
15896 if (temp6) delete arg6;
15897 }
15898 {
15899 if (temp10)
15900 delete arg10;
15901 }
15902 return NULL;
15903 }
15904
15905
15906 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15907 PyObject *resultobj = 0;
15908 wxRadioBox *result = 0 ;
15909
15910 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15911 {
15912 if (!wxPyCheckForApp()) SWIG_fail;
15913 PyThreadState* __tstate = wxPyBeginAllowThreads();
15914 result = (wxRadioBox *)new wxRadioBox();
15915 wxPyEndAllowThreads(__tstate);
15916 if (PyErr_Occurred()) SWIG_fail;
15917 }
15918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
15919 return resultobj;
15920 fail:
15921 return NULL;
15922 }
15923
15924
15925 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15926 PyObject *resultobj = 0;
15927 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
15928 wxWindow *arg2 = (wxWindow *) 0 ;
15929 int arg3 = (int) -1 ;
15930 wxString const &arg4_defvalue = wxPyEmptyString ;
15931 wxString *arg4 = (wxString *) &arg4_defvalue ;
15932 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15933 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15934 wxSize const &arg6_defvalue = wxDefaultSize ;
15935 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15936 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
15937 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
15938 int arg8 = (int) 0 ;
15939 long arg9 = (long) wxRA_HORIZONTAL ;
15940 wxValidator const &arg10_defvalue = wxDefaultValidator ;
15941 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
15942 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
15943 wxString *arg11 = (wxString *) &arg11_defvalue ;
15944 bool result;
15945 void *argp1 = 0 ;
15946 int res1 = 0 ;
15947 void *argp2 = 0 ;
15948 int res2 = 0 ;
15949 int val3 ;
15950 int ecode3 = 0 ;
15951 bool temp4 = false ;
15952 wxPoint temp5 ;
15953 wxSize temp6 ;
15954 bool temp7 = false ;
15955 int val8 ;
15956 int ecode8 = 0 ;
15957 long val9 ;
15958 int ecode9 = 0 ;
15959 void *argp10 = 0 ;
15960 int res10 = 0 ;
15961 bool temp11 = false ;
15962 PyObject * obj0 = 0 ;
15963 PyObject * obj1 = 0 ;
15964 PyObject * obj2 = 0 ;
15965 PyObject * obj3 = 0 ;
15966 PyObject * obj4 = 0 ;
15967 PyObject * obj5 = 0 ;
15968 PyObject * obj6 = 0 ;
15969 PyObject * obj7 = 0 ;
15970 PyObject * obj8 = 0 ;
15971 PyObject * obj9 = 0 ;
15972 PyObject * obj10 = 0 ;
15973 char * kwnames[] = {
15974 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15975 };
15976
15977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
15979 if (!SWIG_IsOK(res1)) {
15980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
15981 }
15982 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
15983 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15984 if (!SWIG_IsOK(res2)) {
15985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15986 }
15987 arg2 = reinterpret_cast< wxWindow * >(argp2);
15988 if (obj2) {
15989 ecode3 = SWIG_AsVal_int(obj2, &val3);
15990 if (!SWIG_IsOK(ecode3)) {
15991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
15992 }
15993 arg3 = static_cast< int >(val3);
15994 }
15995 if (obj3) {
15996 {
15997 arg4 = wxString_in_helper(obj3);
15998 if (arg4 == NULL) SWIG_fail;
15999 temp4 = true;
16000 }
16001 }
16002 if (obj4) {
16003 {
16004 arg5 = &temp5;
16005 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16006 }
16007 }
16008 if (obj5) {
16009 {
16010 arg6 = &temp6;
16011 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16012 }
16013 }
16014 if (obj6) {
16015 {
16016 if (! PySequence_Check(obj6)) {
16017 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16018 SWIG_fail;
16019 }
16020 arg7 = new wxArrayString;
16021 temp7 = true;
16022 int i, len=PySequence_Length(obj6);
16023 for (i=0; i<len; i++) {
16024 PyObject* item = PySequence_GetItem(obj6, i);
16025 wxString* s = wxString_in_helper(item);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 arg7->Add(*s);
16028 delete s;
16029 Py_DECREF(item);
16030 }
16031 }
16032 }
16033 if (obj7) {
16034 ecode8 = SWIG_AsVal_int(obj7, &val8);
16035 if (!SWIG_IsOK(ecode8)) {
16036 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16037 }
16038 arg8 = static_cast< int >(val8);
16039 }
16040 if (obj8) {
16041 ecode9 = SWIG_AsVal_long(obj8, &val9);
16042 if (!SWIG_IsOK(ecode9)) {
16043 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16044 }
16045 arg9 = static_cast< long >(val9);
16046 }
16047 if (obj9) {
16048 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16049 if (!SWIG_IsOK(res10)) {
16050 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16051 }
16052 if (!argp10) {
16053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16054 }
16055 arg10 = reinterpret_cast< wxValidator * >(argp10);
16056 }
16057 if (obj10) {
16058 {
16059 arg11 = wxString_in_helper(obj10);
16060 if (arg11 == NULL) SWIG_fail;
16061 temp11 = true;
16062 }
16063 }
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 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);
16067 wxPyEndAllowThreads(__tstate);
16068 if (PyErr_Occurred()) SWIG_fail;
16069 }
16070 {
16071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16072 }
16073 {
16074 if (temp4)
16075 delete arg4;
16076 }
16077 {
16078 if (temp7) delete arg7;
16079 }
16080 {
16081 if (temp11)
16082 delete arg11;
16083 }
16084 return resultobj;
16085 fail:
16086 {
16087 if (temp4)
16088 delete arg4;
16089 }
16090 {
16091 if (temp7) delete arg7;
16092 }
16093 {
16094 if (temp11)
16095 delete arg11;
16096 }
16097 return NULL;
16098 }
16099
16100
16101 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16102 PyObject *resultobj = 0;
16103 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16104 int arg2 ;
16105 void *argp1 = 0 ;
16106 int res1 = 0 ;
16107 int val2 ;
16108 int ecode2 = 0 ;
16109 PyObject * obj0 = 0 ;
16110 PyObject * obj1 = 0 ;
16111 char * kwnames[] = {
16112 (char *) "self",(char *) "n", NULL
16113 };
16114
16115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16117 if (!SWIG_IsOK(res1)) {
16118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16119 }
16120 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16121 ecode2 = SWIG_AsVal_int(obj1, &val2);
16122 if (!SWIG_IsOK(ecode2)) {
16123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16124 }
16125 arg2 = static_cast< int >(val2);
16126 {
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 (arg1)->SetSelection(arg2);
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 resultobj = SWIG_Py_Void();
16133 return resultobj;
16134 fail:
16135 return NULL;
16136 }
16137
16138
16139 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16140 PyObject *resultobj = 0;
16141 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16142 int result;
16143 void *argp1 = 0 ;
16144 int res1 = 0 ;
16145 PyObject *swig_obj[1] ;
16146
16147 if (!args) SWIG_fail;
16148 swig_obj[0] = args;
16149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16150 if (!SWIG_IsOK(res1)) {
16151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16152 }
16153 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16154 {
16155 PyThreadState* __tstate = wxPyBeginAllowThreads();
16156 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16157 wxPyEndAllowThreads(__tstate);
16158 if (PyErr_Occurred()) SWIG_fail;
16159 }
16160 resultobj = SWIG_From_int(static_cast< int >(result));
16161 return resultobj;
16162 fail:
16163 return NULL;
16164 }
16165
16166
16167 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16168 PyObject *resultobj = 0;
16169 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16170 wxString result;
16171 void *argp1 = 0 ;
16172 int res1 = 0 ;
16173 PyObject *swig_obj[1] ;
16174
16175 if (!args) SWIG_fail;
16176 swig_obj[0] = args;
16177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16178 if (!SWIG_IsOK(res1)) {
16179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16180 }
16181 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16182 {
16183 PyThreadState* __tstate = wxPyBeginAllowThreads();
16184 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 {
16189 #if wxUSE_UNICODE
16190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16191 #else
16192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16193 #endif
16194 }
16195 return resultobj;
16196 fail:
16197 return NULL;
16198 }
16199
16200
16201 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16202 PyObject *resultobj = 0;
16203 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16204 wxString *arg2 = 0 ;
16205 bool result;
16206 void *argp1 = 0 ;
16207 int res1 = 0 ;
16208 bool temp2 = false ;
16209 PyObject * obj0 = 0 ;
16210 PyObject * obj1 = 0 ;
16211 char * kwnames[] = {
16212 (char *) "self",(char *) "s", NULL
16213 };
16214
16215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16217 if (!SWIG_IsOK(res1)) {
16218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16219 }
16220 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16221 {
16222 arg2 = wxString_in_helper(obj1);
16223 if (arg2 == NULL) SWIG_fail;
16224 temp2 = true;
16225 }
16226 {
16227 PyThreadState* __tstate = wxPyBeginAllowThreads();
16228 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16229 wxPyEndAllowThreads(__tstate);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 }
16232 {
16233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16234 }
16235 {
16236 if (temp2)
16237 delete arg2;
16238 }
16239 return resultobj;
16240 fail:
16241 {
16242 if (temp2)
16243 delete arg2;
16244 }
16245 return NULL;
16246 }
16247
16248
16249 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16250 PyObject *resultobj = 0;
16251 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16252 int result;
16253 void *argp1 = 0 ;
16254 int res1 = 0 ;
16255 PyObject *swig_obj[1] ;
16256
16257 if (!args) SWIG_fail;
16258 swig_obj[0] = args;
16259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16260 if (!SWIG_IsOK(res1)) {
16261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16262 }
16263 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16264 {
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 result = (int)((wxRadioBox const *)arg1)->GetCount();
16267 wxPyEndAllowThreads(__tstate);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 resultobj = SWIG_From_int(static_cast< int >(result));
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16278 PyObject *resultobj = 0;
16279 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16280 wxString *arg2 = 0 ;
16281 int result;
16282 void *argp1 = 0 ;
16283 int res1 = 0 ;
16284 bool temp2 = false ;
16285 PyObject * obj0 = 0 ;
16286 PyObject * obj1 = 0 ;
16287 char * kwnames[] = {
16288 (char *) "self",(char *) "s", NULL
16289 };
16290
16291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16293 if (!SWIG_IsOK(res1)) {
16294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16295 }
16296 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16297 {
16298 arg2 = wxString_in_helper(obj1);
16299 if (arg2 == NULL) SWIG_fail;
16300 temp2 = true;
16301 }
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16305 wxPyEndAllowThreads(__tstate);
16306 if (PyErr_Occurred()) SWIG_fail;
16307 }
16308 resultobj = SWIG_From_int(static_cast< int >(result));
16309 {
16310 if (temp2)
16311 delete arg2;
16312 }
16313 return resultobj;
16314 fail:
16315 {
16316 if (temp2)
16317 delete arg2;
16318 }
16319 return NULL;
16320 }
16321
16322
16323 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16324 PyObject *resultobj = 0;
16325 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16326 int arg2 ;
16327 wxString result;
16328 void *argp1 = 0 ;
16329 int res1 = 0 ;
16330 int val2 ;
16331 int ecode2 = 0 ;
16332 PyObject * obj0 = 0 ;
16333 PyObject * obj1 = 0 ;
16334 char * kwnames[] = {
16335 (char *) "self",(char *) "n", NULL
16336 };
16337
16338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16340 if (!SWIG_IsOK(res1)) {
16341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16342 }
16343 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16344 ecode2 = SWIG_AsVal_int(obj1, &val2);
16345 if (!SWIG_IsOK(ecode2)) {
16346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16347 }
16348 arg2 = static_cast< int >(val2);
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16352 wxPyEndAllowThreads(__tstate);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 }
16355 {
16356 #if wxUSE_UNICODE
16357 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16358 #else
16359 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16360 #endif
16361 }
16362 return resultobj;
16363 fail:
16364 return NULL;
16365 }
16366
16367
16368 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16369 PyObject *resultobj = 0;
16370 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16371 int arg2 ;
16372 wxString *arg3 = 0 ;
16373 void *argp1 = 0 ;
16374 int res1 = 0 ;
16375 int val2 ;
16376 int ecode2 = 0 ;
16377 bool temp3 = false ;
16378 PyObject * obj0 = 0 ;
16379 PyObject * obj1 = 0 ;
16380 PyObject * obj2 = 0 ;
16381 char * kwnames[] = {
16382 (char *) "self",(char *) "n",(char *) "label", NULL
16383 };
16384
16385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16387 if (!SWIG_IsOK(res1)) {
16388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16389 }
16390 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16391 ecode2 = SWIG_AsVal_int(obj1, &val2);
16392 if (!SWIG_IsOK(ecode2)) {
16393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16394 }
16395 arg2 = static_cast< int >(val2);
16396 {
16397 arg3 = wxString_in_helper(obj2);
16398 if (arg3 == NULL) SWIG_fail;
16399 temp3 = true;
16400 }
16401 {
16402 PyThreadState* __tstate = wxPyBeginAllowThreads();
16403 (arg1)->SetString(arg2,(wxString const &)*arg3);
16404 wxPyEndAllowThreads(__tstate);
16405 if (PyErr_Occurred()) SWIG_fail;
16406 }
16407 resultobj = SWIG_Py_Void();
16408 {
16409 if (temp3)
16410 delete arg3;
16411 }
16412 return resultobj;
16413 fail:
16414 {
16415 if (temp3)
16416 delete arg3;
16417 }
16418 return NULL;
16419 }
16420
16421
16422 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16423 PyObject *resultobj = 0;
16424 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16425 int arg2 ;
16426 bool arg3 = (bool) true ;
16427 void *argp1 = 0 ;
16428 int res1 = 0 ;
16429 int val2 ;
16430 int ecode2 = 0 ;
16431 bool val3 ;
16432 int ecode3 = 0 ;
16433 PyObject * obj0 = 0 ;
16434 PyObject * obj1 = 0 ;
16435 PyObject * obj2 = 0 ;
16436 char * kwnames[] = {
16437 (char *) "self",(char *) "n",(char *) "enable", NULL
16438 };
16439
16440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16442 if (!SWIG_IsOK(res1)) {
16443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16444 }
16445 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16446 ecode2 = SWIG_AsVal_int(obj1, &val2);
16447 if (!SWIG_IsOK(ecode2)) {
16448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "int""'");
16449 }
16450 arg2 = static_cast< int >(val2);
16451 if (obj2) {
16452 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16453 if (!SWIG_IsOK(ecode3)) {
16454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16455 }
16456 arg3 = static_cast< bool >(val3);
16457 }
16458 {
16459 PyThreadState* __tstate = wxPyBeginAllowThreads();
16460 (arg1)->Enable(arg2,arg3);
16461 wxPyEndAllowThreads(__tstate);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
16464 resultobj = SWIG_Py_Void();
16465 return resultobj;
16466 fail:
16467 return NULL;
16468 }
16469
16470
16471 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16472 PyObject *resultobj = 0;
16473 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16474 int arg2 ;
16475 bool arg3 = (bool) true ;
16476 void *argp1 = 0 ;
16477 int res1 = 0 ;
16478 int val2 ;
16479 int ecode2 = 0 ;
16480 bool val3 ;
16481 int ecode3 = 0 ;
16482 PyObject * obj0 = 0 ;
16483 PyObject * obj1 = 0 ;
16484 PyObject * obj2 = 0 ;
16485 char * kwnames[] = {
16486 (char *) "self",(char *) "n",(char *) "show", NULL
16487 };
16488
16489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16491 if (!SWIG_IsOK(res1)) {
16492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16493 }
16494 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16495 ecode2 = SWIG_AsVal_int(obj1, &val2);
16496 if (!SWIG_IsOK(ecode2)) {
16497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "int""'");
16498 }
16499 arg2 = static_cast< int >(val2);
16500 if (obj2) {
16501 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16502 if (!SWIG_IsOK(ecode3)) {
16503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16504 }
16505 arg3 = static_cast< bool >(val3);
16506 }
16507 {
16508 PyThreadState* __tstate = wxPyBeginAllowThreads();
16509 (arg1)->Show(arg2,arg3);
16510 wxPyEndAllowThreads(__tstate);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 }
16513 resultobj = SWIG_Py_Void();
16514 return resultobj;
16515 fail:
16516 return NULL;
16517 }
16518
16519
16520 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16521 PyObject *resultobj = 0;
16522 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16523 int result;
16524 void *argp1 = 0 ;
16525 int res1 = 0 ;
16526 PyObject *swig_obj[1] ;
16527
16528 if (!args) SWIG_fail;
16529 swig_obj[0] = args;
16530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16531 if (!SWIG_IsOK(res1)) {
16532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16533 }
16534 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16535 {
16536 PyThreadState* __tstate = wxPyBeginAllowThreads();
16537 result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1);
16538 wxPyEndAllowThreads(__tstate);
16539 if (PyErr_Occurred()) SWIG_fail;
16540 }
16541 resultobj = SWIG_From_int(static_cast< int >(result));
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16549 PyObject *resultobj = 0;
16550 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16551 int result;
16552 void *argp1 = 0 ;
16553 int res1 = 0 ;
16554 PyObject *swig_obj[1] ;
16555
16556 if (!args) SWIG_fail;
16557 swig_obj[0] = args;
16558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16559 if (!SWIG_IsOK(res1)) {
16560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16561 }
16562 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1);
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 resultobj = SWIG_From_int(static_cast< int >(result));
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16577 PyObject *resultobj = 0;
16578 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16579 int arg2 ;
16580 wxDirection arg3 ;
16581 long arg4 ;
16582 int result;
16583 void *argp1 = 0 ;
16584 int res1 = 0 ;
16585 int val2 ;
16586 int ecode2 = 0 ;
16587 int val3 ;
16588 int ecode3 = 0 ;
16589 long val4 ;
16590 int ecode4 = 0 ;
16591 PyObject * obj0 = 0 ;
16592 PyObject * obj1 = 0 ;
16593 PyObject * obj2 = 0 ;
16594 PyObject * obj3 = 0 ;
16595 char * kwnames[] = {
16596 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16597 };
16598
16599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16601 if (!SWIG_IsOK(res1)) {
16602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16603 }
16604 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16605 ecode2 = SWIG_AsVal_int(obj1, &val2);
16606 if (!SWIG_IsOK(ecode2)) {
16607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16608 }
16609 arg2 = static_cast< int >(val2);
16610 ecode3 = SWIG_AsVal_int(obj2, &val3);
16611 if (!SWIG_IsOK(ecode3)) {
16612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16613 }
16614 arg3 = static_cast< wxDirection >(val3);
16615 ecode4 = SWIG_AsVal_long(obj3, &val4);
16616 if (!SWIG_IsOK(ecode4)) {
16617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16618 }
16619 arg4 = static_cast< long >(val4);
16620 {
16621 PyThreadState* __tstate = wxPyBeginAllowThreads();
16622 result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,arg3,arg4);
16623 wxPyEndAllowThreads(__tstate);
16624 if (PyErr_Occurred()) SWIG_fail;
16625 }
16626 resultobj = SWIG_From_int(static_cast< int >(result));
16627 return resultobj;
16628 fail:
16629 return NULL;
16630 }
16631
16632
16633 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16634 PyObject *resultobj = 0;
16635 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16636 SwigValueWrapper<wxVisualAttributes > result;
16637 int val1 ;
16638 int ecode1 = 0 ;
16639 PyObject * obj0 = 0 ;
16640 char * kwnames[] = {
16641 (char *) "variant", NULL
16642 };
16643
16644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16645 if (obj0) {
16646 ecode1 = SWIG_AsVal_int(obj0, &val1);
16647 if (!SWIG_IsOK(ecode1)) {
16648 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16649 }
16650 arg1 = static_cast< wxWindowVariant >(val1);
16651 }
16652 {
16653 if (!wxPyCheckForApp()) SWIG_fail;
16654 PyThreadState* __tstate = wxPyBeginAllowThreads();
16655 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16656 wxPyEndAllowThreads(__tstate);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 }
16659 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16660 return resultobj;
16661 fail:
16662 return NULL;
16663 }
16664
16665
16666 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16667 PyObject *obj;
16668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16669 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16670 return SWIG_Py_Void();
16671 }
16672
16673 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16674 return SWIG_Python_InitShadowInstance(args);
16675 }
16676
16677 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj = 0;
16679 wxWindow *arg1 = (wxWindow *) 0 ;
16680 int arg2 = (int) -1 ;
16681 wxString const &arg3_defvalue = wxPyEmptyString ;
16682 wxString *arg3 = (wxString *) &arg3_defvalue ;
16683 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16684 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16685 wxSize const &arg5_defvalue = wxDefaultSize ;
16686 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16687 long arg6 = (long) 0 ;
16688 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16689 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16690 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16691 wxString *arg8 = (wxString *) &arg8_defvalue ;
16692 wxRadioButton *result = 0 ;
16693 void *argp1 = 0 ;
16694 int res1 = 0 ;
16695 int val2 ;
16696 int ecode2 = 0 ;
16697 bool temp3 = false ;
16698 wxPoint temp4 ;
16699 wxSize temp5 ;
16700 long val6 ;
16701 int ecode6 = 0 ;
16702 void *argp7 = 0 ;
16703 int res7 = 0 ;
16704 bool temp8 = false ;
16705 PyObject * obj0 = 0 ;
16706 PyObject * obj1 = 0 ;
16707 PyObject * obj2 = 0 ;
16708 PyObject * obj3 = 0 ;
16709 PyObject * obj4 = 0 ;
16710 PyObject * obj5 = 0 ;
16711 PyObject * obj6 = 0 ;
16712 PyObject * obj7 = 0 ;
16713 char * kwnames[] = {
16714 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16715 };
16716
16717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16719 if (!SWIG_IsOK(res1)) {
16720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16721 }
16722 arg1 = reinterpret_cast< wxWindow * >(argp1);
16723 if (obj1) {
16724 ecode2 = SWIG_AsVal_int(obj1, &val2);
16725 if (!SWIG_IsOK(ecode2)) {
16726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16727 }
16728 arg2 = static_cast< int >(val2);
16729 }
16730 if (obj2) {
16731 {
16732 arg3 = wxString_in_helper(obj2);
16733 if (arg3 == NULL) SWIG_fail;
16734 temp3 = true;
16735 }
16736 }
16737 if (obj3) {
16738 {
16739 arg4 = &temp4;
16740 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16741 }
16742 }
16743 if (obj4) {
16744 {
16745 arg5 = &temp5;
16746 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16747 }
16748 }
16749 if (obj5) {
16750 ecode6 = SWIG_AsVal_long(obj5, &val6);
16751 if (!SWIG_IsOK(ecode6)) {
16752 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16753 }
16754 arg6 = static_cast< long >(val6);
16755 }
16756 if (obj6) {
16757 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16758 if (!SWIG_IsOK(res7)) {
16759 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16760 }
16761 if (!argp7) {
16762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16763 }
16764 arg7 = reinterpret_cast< wxValidator * >(argp7);
16765 }
16766 if (obj7) {
16767 {
16768 arg8 = wxString_in_helper(obj7);
16769 if (arg8 == NULL) SWIG_fail;
16770 temp8 = true;
16771 }
16772 }
16773 {
16774 if (!wxPyCheckForApp()) SWIG_fail;
16775 PyThreadState* __tstate = wxPyBeginAllowThreads();
16776 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16781 {
16782 if (temp3)
16783 delete arg3;
16784 }
16785 {
16786 if (temp8)
16787 delete arg8;
16788 }
16789 return resultobj;
16790 fail:
16791 {
16792 if (temp3)
16793 delete arg3;
16794 }
16795 {
16796 if (temp8)
16797 delete arg8;
16798 }
16799 return NULL;
16800 }
16801
16802
16803 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16804 PyObject *resultobj = 0;
16805 wxRadioButton *result = 0 ;
16806
16807 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
16808 {
16809 if (!wxPyCheckForApp()) SWIG_fail;
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 result = (wxRadioButton *)new wxRadioButton();
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
16816 return resultobj;
16817 fail:
16818 return NULL;
16819 }
16820
16821
16822 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16823 PyObject *resultobj = 0;
16824 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
16825 wxWindow *arg2 = (wxWindow *) 0 ;
16826 int arg3 = (int) -1 ;
16827 wxString const &arg4_defvalue = wxPyEmptyString ;
16828 wxString *arg4 = (wxString *) &arg4_defvalue ;
16829 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16830 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16831 wxSize const &arg6_defvalue = wxDefaultSize ;
16832 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16833 long arg7 = (long) 0 ;
16834 wxValidator const &arg8_defvalue = wxDefaultValidator ;
16835 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
16836 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
16837 wxString *arg9 = (wxString *) &arg9_defvalue ;
16838 bool result;
16839 void *argp1 = 0 ;
16840 int res1 = 0 ;
16841 void *argp2 = 0 ;
16842 int res2 = 0 ;
16843 int val3 ;
16844 int ecode3 = 0 ;
16845 bool temp4 = false ;
16846 wxPoint temp5 ;
16847 wxSize temp6 ;
16848 long val7 ;
16849 int ecode7 = 0 ;
16850 void *argp8 = 0 ;
16851 int res8 = 0 ;
16852 bool temp9 = false ;
16853 PyObject * obj0 = 0 ;
16854 PyObject * obj1 = 0 ;
16855 PyObject * obj2 = 0 ;
16856 PyObject * obj3 = 0 ;
16857 PyObject * obj4 = 0 ;
16858 PyObject * obj5 = 0 ;
16859 PyObject * obj6 = 0 ;
16860 PyObject * obj7 = 0 ;
16861 PyObject * obj8 = 0 ;
16862 char * kwnames[] = {
16863 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16864 };
16865
16866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
16867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
16868 if (!SWIG_IsOK(res1)) {
16869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
16870 }
16871 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
16872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16873 if (!SWIG_IsOK(res2)) {
16874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16875 }
16876 arg2 = reinterpret_cast< wxWindow * >(argp2);
16877 if (obj2) {
16878 ecode3 = SWIG_AsVal_int(obj2, &val3);
16879 if (!SWIG_IsOK(ecode3)) {
16880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
16881 }
16882 arg3 = static_cast< int >(val3);
16883 }
16884 if (obj3) {
16885 {
16886 arg4 = wxString_in_helper(obj3);
16887 if (arg4 == NULL) SWIG_fail;
16888 temp4 = true;
16889 }
16890 }
16891 if (obj4) {
16892 {
16893 arg5 = &temp5;
16894 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16895 }
16896 }
16897 if (obj5) {
16898 {
16899 arg6 = &temp6;
16900 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16901 }
16902 }
16903 if (obj6) {
16904 ecode7 = SWIG_AsVal_long(obj6, &val7);
16905 if (!SWIG_IsOK(ecode7)) {
16906 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
16907 }
16908 arg7 = static_cast< long >(val7);
16909 }
16910 if (obj7) {
16911 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
16912 if (!SWIG_IsOK(res8)) {
16913 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
16914 }
16915 if (!argp8) {
16916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
16917 }
16918 arg8 = reinterpret_cast< wxValidator * >(argp8);
16919 }
16920 if (obj8) {
16921 {
16922 arg9 = wxString_in_helper(obj8);
16923 if (arg9 == NULL) SWIG_fail;
16924 temp9 = true;
16925 }
16926 }
16927 {
16928 PyThreadState* __tstate = wxPyBeginAllowThreads();
16929 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
16930 wxPyEndAllowThreads(__tstate);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 {
16934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16935 }
16936 {
16937 if (temp4)
16938 delete arg4;
16939 }
16940 {
16941 if (temp9)
16942 delete arg9;
16943 }
16944 return resultobj;
16945 fail:
16946 {
16947 if (temp4)
16948 delete arg4;
16949 }
16950 {
16951 if (temp9)
16952 delete arg9;
16953 }
16954 return NULL;
16955 }
16956
16957
16958 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16959 PyObject *resultobj = 0;
16960 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
16961 bool result;
16962 void *argp1 = 0 ;
16963 int res1 = 0 ;
16964 PyObject *swig_obj[1] ;
16965
16966 if (!args) SWIG_fail;
16967 swig_obj[0] = args;
16968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
16969 if (!SWIG_IsOK(res1)) {
16970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
16971 }
16972 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
16973 {
16974 PyThreadState* __tstate = wxPyBeginAllowThreads();
16975 result = (bool)(arg1)->GetValue();
16976 wxPyEndAllowThreads(__tstate);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 {
16980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16981 }
16982 return resultobj;
16983 fail:
16984 return NULL;
16985 }
16986
16987
16988 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16989 PyObject *resultobj = 0;
16990 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
16991 bool arg2 ;
16992 void *argp1 = 0 ;
16993 int res1 = 0 ;
16994 bool val2 ;
16995 int ecode2 = 0 ;
16996 PyObject * obj0 = 0 ;
16997 PyObject * obj1 = 0 ;
16998 char * kwnames[] = {
16999 (char *) "self",(char *) "value", NULL
17000 };
17001
17002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17004 if (!SWIG_IsOK(res1)) {
17005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17006 }
17007 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17008 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17009 if (!SWIG_IsOK(ecode2)) {
17010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17011 }
17012 arg2 = static_cast< bool >(val2);
17013 {
17014 PyThreadState* __tstate = wxPyBeginAllowThreads();
17015 (arg1)->SetValue(arg2);
17016 wxPyEndAllowThreads(__tstate);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 resultobj = SWIG_Py_Void();
17020 return resultobj;
17021 fail:
17022 return NULL;
17023 }
17024
17025
17026 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17027 PyObject *resultobj = 0;
17028 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17029 SwigValueWrapper<wxVisualAttributes > result;
17030 int val1 ;
17031 int ecode1 = 0 ;
17032 PyObject * obj0 = 0 ;
17033 char * kwnames[] = {
17034 (char *) "variant", NULL
17035 };
17036
17037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17038 if (obj0) {
17039 ecode1 = SWIG_AsVal_int(obj0, &val1);
17040 if (!SWIG_IsOK(ecode1)) {
17041 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17042 }
17043 arg1 = static_cast< wxWindowVariant >(val1);
17044 }
17045 {
17046 if (!wxPyCheckForApp()) SWIG_fail;
17047 PyThreadState* __tstate = wxPyBeginAllowThreads();
17048 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17049 wxPyEndAllowThreads(__tstate);
17050 if (PyErr_Occurred()) SWIG_fail;
17051 }
17052 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17053 return resultobj;
17054 fail:
17055 return NULL;
17056 }
17057
17058
17059 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17060 PyObject *obj;
17061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17062 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17063 return SWIG_Py_Void();
17064 }
17065
17066 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17067 return SWIG_Python_InitShadowInstance(args);
17068 }
17069
17070 SWIGINTERN int SliderNameStr_set(PyObject *) {
17071 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17072 return 1;
17073 }
17074
17075
17076 SWIGINTERN PyObject *SliderNameStr_get(void) {
17077 PyObject *pyobj = 0;
17078
17079 {
17080 #if wxUSE_UNICODE
17081 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17082 #else
17083 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17084 #endif
17085 }
17086 return pyobj;
17087 }
17088
17089
17090 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17091 PyObject *resultobj = 0;
17092 wxWindow *arg1 = (wxWindow *) 0 ;
17093 int arg2 = (int) -1 ;
17094 int arg3 = (int) 0 ;
17095 int arg4 = (int) 0 ;
17096 int arg5 = (int) 100 ;
17097 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17098 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17099 wxSize const &arg7_defvalue = wxDefaultSize ;
17100 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17101 long arg8 = (long) wxSL_HORIZONTAL ;
17102 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17103 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17104 wxString const &arg10_defvalue = wxPySliderNameStr ;
17105 wxString *arg10 = (wxString *) &arg10_defvalue ;
17106 wxSlider *result = 0 ;
17107 void *argp1 = 0 ;
17108 int res1 = 0 ;
17109 int val2 ;
17110 int ecode2 = 0 ;
17111 int val3 ;
17112 int ecode3 = 0 ;
17113 int val4 ;
17114 int ecode4 = 0 ;
17115 int val5 ;
17116 int ecode5 = 0 ;
17117 wxPoint temp6 ;
17118 wxSize temp7 ;
17119 long val8 ;
17120 int ecode8 = 0 ;
17121 void *argp9 = 0 ;
17122 int res9 = 0 ;
17123 bool temp10 = false ;
17124 PyObject * obj0 = 0 ;
17125 PyObject * obj1 = 0 ;
17126 PyObject * obj2 = 0 ;
17127 PyObject * obj3 = 0 ;
17128 PyObject * obj4 = 0 ;
17129 PyObject * obj5 = 0 ;
17130 PyObject * obj6 = 0 ;
17131 PyObject * obj7 = 0 ;
17132 PyObject * obj8 = 0 ;
17133 PyObject * obj9 = 0 ;
17134 char * kwnames[] = {
17135 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17136 };
17137
17138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17140 if (!SWIG_IsOK(res1)) {
17141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17142 }
17143 arg1 = reinterpret_cast< wxWindow * >(argp1);
17144 if (obj1) {
17145 ecode2 = SWIG_AsVal_int(obj1, &val2);
17146 if (!SWIG_IsOK(ecode2)) {
17147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17148 }
17149 arg2 = static_cast< int >(val2);
17150 }
17151 if (obj2) {
17152 ecode3 = SWIG_AsVal_int(obj2, &val3);
17153 if (!SWIG_IsOK(ecode3)) {
17154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17155 }
17156 arg3 = static_cast< int >(val3);
17157 }
17158 if (obj3) {
17159 ecode4 = SWIG_AsVal_int(obj3, &val4);
17160 if (!SWIG_IsOK(ecode4)) {
17161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17162 }
17163 arg4 = static_cast< int >(val4);
17164 }
17165 if (obj4) {
17166 ecode5 = SWIG_AsVal_int(obj4, &val5);
17167 if (!SWIG_IsOK(ecode5)) {
17168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17169 }
17170 arg5 = static_cast< int >(val5);
17171 }
17172 if (obj5) {
17173 {
17174 arg6 = &temp6;
17175 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17176 }
17177 }
17178 if (obj6) {
17179 {
17180 arg7 = &temp7;
17181 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17182 }
17183 }
17184 if (obj7) {
17185 ecode8 = SWIG_AsVal_long(obj7, &val8);
17186 if (!SWIG_IsOK(ecode8)) {
17187 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17188 }
17189 arg8 = static_cast< long >(val8);
17190 }
17191 if (obj8) {
17192 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17193 if (!SWIG_IsOK(res9)) {
17194 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17195 }
17196 if (!argp9) {
17197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17198 }
17199 arg9 = reinterpret_cast< wxValidator * >(argp9);
17200 }
17201 if (obj9) {
17202 {
17203 arg10 = wxString_in_helper(obj9);
17204 if (arg10 == NULL) SWIG_fail;
17205 temp10 = true;
17206 }
17207 }
17208 {
17209 if (!wxPyCheckForApp()) SWIG_fail;
17210 PyThreadState* __tstate = wxPyBeginAllowThreads();
17211 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17212 wxPyEndAllowThreads(__tstate);
17213 if (PyErr_Occurred()) SWIG_fail;
17214 }
17215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17216 {
17217 if (temp10)
17218 delete arg10;
17219 }
17220 return resultobj;
17221 fail:
17222 {
17223 if (temp10)
17224 delete arg10;
17225 }
17226 return NULL;
17227 }
17228
17229
17230 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17231 PyObject *resultobj = 0;
17232 wxSlider *result = 0 ;
17233
17234 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17235 {
17236 if (!wxPyCheckForApp()) SWIG_fail;
17237 PyThreadState* __tstate = wxPyBeginAllowThreads();
17238 result = (wxSlider *)new wxSlider();
17239 wxPyEndAllowThreads(__tstate);
17240 if (PyErr_Occurred()) SWIG_fail;
17241 }
17242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17243 return resultobj;
17244 fail:
17245 return NULL;
17246 }
17247
17248
17249 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17250 PyObject *resultobj = 0;
17251 wxSlider *arg1 = (wxSlider *) 0 ;
17252 wxWindow *arg2 = (wxWindow *) 0 ;
17253 int arg3 = (int) -1 ;
17254 int arg4 = (int) 0 ;
17255 int arg5 = (int) 0 ;
17256 int arg6 = (int) 100 ;
17257 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17258 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17259 wxSize const &arg8_defvalue = wxDefaultSize ;
17260 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17261 long arg9 = (long) wxSL_HORIZONTAL ;
17262 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17263 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17264 wxString const &arg11_defvalue = wxPySliderNameStr ;
17265 wxString *arg11 = (wxString *) &arg11_defvalue ;
17266 bool result;
17267 void *argp1 = 0 ;
17268 int res1 = 0 ;
17269 void *argp2 = 0 ;
17270 int res2 = 0 ;
17271 int val3 ;
17272 int ecode3 = 0 ;
17273 int val4 ;
17274 int ecode4 = 0 ;
17275 int val5 ;
17276 int ecode5 = 0 ;
17277 int val6 ;
17278 int ecode6 = 0 ;
17279 wxPoint temp7 ;
17280 wxSize temp8 ;
17281 long val9 ;
17282 int ecode9 = 0 ;
17283 void *argp10 = 0 ;
17284 int res10 = 0 ;
17285 bool temp11 = false ;
17286 PyObject * obj0 = 0 ;
17287 PyObject * obj1 = 0 ;
17288 PyObject * obj2 = 0 ;
17289 PyObject * obj3 = 0 ;
17290 PyObject * obj4 = 0 ;
17291 PyObject * obj5 = 0 ;
17292 PyObject * obj6 = 0 ;
17293 PyObject * obj7 = 0 ;
17294 PyObject * obj8 = 0 ;
17295 PyObject * obj9 = 0 ;
17296 PyObject * obj10 = 0 ;
17297 char * kwnames[] = {
17298 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17299 };
17300
17301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17303 if (!SWIG_IsOK(res1)) {
17304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17305 }
17306 arg1 = reinterpret_cast< wxSlider * >(argp1);
17307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17308 if (!SWIG_IsOK(res2)) {
17309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17310 }
17311 arg2 = reinterpret_cast< wxWindow * >(argp2);
17312 if (obj2) {
17313 ecode3 = SWIG_AsVal_int(obj2, &val3);
17314 if (!SWIG_IsOK(ecode3)) {
17315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17316 }
17317 arg3 = static_cast< int >(val3);
17318 }
17319 if (obj3) {
17320 ecode4 = SWIG_AsVal_int(obj3, &val4);
17321 if (!SWIG_IsOK(ecode4)) {
17322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17323 }
17324 arg4 = static_cast< int >(val4);
17325 }
17326 if (obj4) {
17327 ecode5 = SWIG_AsVal_int(obj4, &val5);
17328 if (!SWIG_IsOK(ecode5)) {
17329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17330 }
17331 arg5 = static_cast< int >(val5);
17332 }
17333 if (obj5) {
17334 ecode6 = SWIG_AsVal_int(obj5, &val6);
17335 if (!SWIG_IsOK(ecode6)) {
17336 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17337 }
17338 arg6 = static_cast< int >(val6);
17339 }
17340 if (obj6) {
17341 {
17342 arg7 = &temp7;
17343 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17344 }
17345 }
17346 if (obj7) {
17347 {
17348 arg8 = &temp8;
17349 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17350 }
17351 }
17352 if (obj8) {
17353 ecode9 = SWIG_AsVal_long(obj8, &val9);
17354 if (!SWIG_IsOK(ecode9)) {
17355 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17356 }
17357 arg9 = static_cast< long >(val9);
17358 }
17359 if (obj9) {
17360 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17361 if (!SWIG_IsOK(res10)) {
17362 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17363 }
17364 if (!argp10) {
17365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17366 }
17367 arg10 = reinterpret_cast< wxValidator * >(argp10);
17368 }
17369 if (obj10) {
17370 {
17371 arg11 = wxString_in_helper(obj10);
17372 if (arg11 == NULL) SWIG_fail;
17373 temp11 = true;
17374 }
17375 }
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17379 wxPyEndAllowThreads(__tstate);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 {
17383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17384 }
17385 {
17386 if (temp11)
17387 delete arg11;
17388 }
17389 return resultobj;
17390 fail:
17391 {
17392 if (temp11)
17393 delete arg11;
17394 }
17395 return NULL;
17396 }
17397
17398
17399 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17400 PyObject *resultobj = 0;
17401 wxSlider *arg1 = (wxSlider *) 0 ;
17402 int result;
17403 void *argp1 = 0 ;
17404 int res1 = 0 ;
17405 PyObject *swig_obj[1] ;
17406
17407 if (!args) SWIG_fail;
17408 swig_obj[0] = args;
17409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17410 if (!SWIG_IsOK(res1)) {
17411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17412 }
17413 arg1 = reinterpret_cast< wxSlider * >(argp1);
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 result = (int)((wxSlider const *)arg1)->GetValue();
17417 wxPyEndAllowThreads(__tstate);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 }
17420 resultobj = SWIG_From_int(static_cast< int >(result));
17421 return resultobj;
17422 fail:
17423 return NULL;
17424 }
17425
17426
17427 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17428 PyObject *resultobj = 0;
17429 wxSlider *arg1 = (wxSlider *) 0 ;
17430 int arg2 ;
17431 void *argp1 = 0 ;
17432 int res1 = 0 ;
17433 int val2 ;
17434 int ecode2 = 0 ;
17435 PyObject * obj0 = 0 ;
17436 PyObject * obj1 = 0 ;
17437 char * kwnames[] = {
17438 (char *) "self",(char *) "value", NULL
17439 };
17440
17441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17443 if (!SWIG_IsOK(res1)) {
17444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17445 }
17446 arg1 = reinterpret_cast< wxSlider * >(argp1);
17447 ecode2 = SWIG_AsVal_int(obj1, &val2);
17448 if (!SWIG_IsOK(ecode2)) {
17449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17450 }
17451 arg2 = static_cast< int >(val2);
17452 {
17453 PyThreadState* __tstate = wxPyBeginAllowThreads();
17454 (arg1)->SetValue(arg2);
17455 wxPyEndAllowThreads(__tstate);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 resultobj = SWIG_Py_Void();
17459 return resultobj;
17460 fail:
17461 return NULL;
17462 }
17463
17464
17465 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17466 PyObject *resultobj = 0;
17467 wxSlider *arg1 = (wxSlider *) 0 ;
17468 int arg2 ;
17469 int arg3 ;
17470 void *argp1 = 0 ;
17471 int res1 = 0 ;
17472 int val2 ;
17473 int ecode2 = 0 ;
17474 int val3 ;
17475 int ecode3 = 0 ;
17476 PyObject * obj0 = 0 ;
17477 PyObject * obj1 = 0 ;
17478 PyObject * obj2 = 0 ;
17479 char * kwnames[] = {
17480 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17481 };
17482
17483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17485 if (!SWIG_IsOK(res1)) {
17486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17487 }
17488 arg1 = reinterpret_cast< wxSlider * >(argp1);
17489 ecode2 = SWIG_AsVal_int(obj1, &val2);
17490 if (!SWIG_IsOK(ecode2)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17492 }
17493 arg2 = static_cast< int >(val2);
17494 ecode3 = SWIG_AsVal_int(obj2, &val3);
17495 if (!SWIG_IsOK(ecode3)) {
17496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17497 }
17498 arg3 = static_cast< int >(val3);
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 (arg1)->SetRange(arg2,arg3);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 resultobj = SWIG_Py_Void();
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17513 PyObject *resultobj = 0;
17514 wxSlider *arg1 = (wxSlider *) 0 ;
17515 int result;
17516 void *argp1 = 0 ;
17517 int res1 = 0 ;
17518 PyObject *swig_obj[1] ;
17519
17520 if (!args) SWIG_fail;
17521 swig_obj[0] = args;
17522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17523 if (!SWIG_IsOK(res1)) {
17524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17525 }
17526 arg1 = reinterpret_cast< wxSlider * >(argp1);
17527 {
17528 PyThreadState* __tstate = wxPyBeginAllowThreads();
17529 result = (int)((wxSlider const *)arg1)->GetMin();
17530 wxPyEndAllowThreads(__tstate);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 resultobj = SWIG_From_int(static_cast< int >(result));
17534 return resultobj;
17535 fail:
17536 return NULL;
17537 }
17538
17539
17540 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17541 PyObject *resultobj = 0;
17542 wxSlider *arg1 = (wxSlider *) 0 ;
17543 int result;
17544 void *argp1 = 0 ;
17545 int res1 = 0 ;
17546 PyObject *swig_obj[1] ;
17547
17548 if (!args) SWIG_fail;
17549 swig_obj[0] = args;
17550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17551 if (!SWIG_IsOK(res1)) {
17552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17553 }
17554 arg1 = reinterpret_cast< wxSlider * >(argp1);
17555 {
17556 PyThreadState* __tstate = wxPyBeginAllowThreads();
17557 result = (int)((wxSlider const *)arg1)->GetMax();
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 resultobj = SWIG_From_int(static_cast< int >(result));
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj = 0;
17570 wxSlider *arg1 = (wxSlider *) 0 ;
17571 int arg2 ;
17572 void *argp1 = 0 ;
17573 int res1 = 0 ;
17574 int val2 ;
17575 int ecode2 = 0 ;
17576 PyObject * obj0 = 0 ;
17577 PyObject * obj1 = 0 ;
17578 char * kwnames[] = {
17579 (char *) "self",(char *) "minValue", NULL
17580 };
17581
17582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17584 if (!SWIG_IsOK(res1)) {
17585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17586 }
17587 arg1 = reinterpret_cast< wxSlider * >(argp1);
17588 ecode2 = SWIG_AsVal_int(obj1, &val2);
17589 if (!SWIG_IsOK(ecode2)) {
17590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17591 }
17592 arg2 = static_cast< int >(val2);
17593 {
17594 PyThreadState* __tstate = wxPyBeginAllowThreads();
17595 (arg1)->SetMin(arg2);
17596 wxPyEndAllowThreads(__tstate);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 }
17599 resultobj = SWIG_Py_Void();
17600 return resultobj;
17601 fail:
17602 return NULL;
17603 }
17604
17605
17606 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj = 0;
17608 wxSlider *arg1 = (wxSlider *) 0 ;
17609 int arg2 ;
17610 void *argp1 = 0 ;
17611 int res1 = 0 ;
17612 int val2 ;
17613 int ecode2 = 0 ;
17614 PyObject * obj0 = 0 ;
17615 PyObject * obj1 = 0 ;
17616 char * kwnames[] = {
17617 (char *) "self",(char *) "maxValue", NULL
17618 };
17619
17620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17622 if (!SWIG_IsOK(res1)) {
17623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17624 }
17625 arg1 = reinterpret_cast< wxSlider * >(argp1);
17626 ecode2 = SWIG_AsVal_int(obj1, &val2);
17627 if (!SWIG_IsOK(ecode2)) {
17628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17629 }
17630 arg2 = static_cast< int >(val2);
17631 {
17632 PyThreadState* __tstate = wxPyBeginAllowThreads();
17633 (arg1)->SetMax(arg2);
17634 wxPyEndAllowThreads(__tstate);
17635 if (PyErr_Occurred()) SWIG_fail;
17636 }
17637 resultobj = SWIG_Py_Void();
17638 return resultobj;
17639 fail:
17640 return NULL;
17641 }
17642
17643
17644 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17645 PyObject *resultobj = 0;
17646 wxSlider *arg1 = (wxSlider *) 0 ;
17647 int arg2 ;
17648 void *argp1 = 0 ;
17649 int res1 = 0 ;
17650 int val2 ;
17651 int ecode2 = 0 ;
17652 PyObject * obj0 = 0 ;
17653 PyObject * obj1 = 0 ;
17654 char * kwnames[] = {
17655 (char *) "self",(char *) "lineSize", NULL
17656 };
17657
17658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17660 if (!SWIG_IsOK(res1)) {
17661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17662 }
17663 arg1 = reinterpret_cast< wxSlider * >(argp1);
17664 ecode2 = SWIG_AsVal_int(obj1, &val2);
17665 if (!SWIG_IsOK(ecode2)) {
17666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17667 }
17668 arg2 = static_cast< int >(val2);
17669 {
17670 PyThreadState* __tstate = wxPyBeginAllowThreads();
17671 (arg1)->SetLineSize(arg2);
17672 wxPyEndAllowThreads(__tstate);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 }
17675 resultobj = SWIG_Py_Void();
17676 return resultobj;
17677 fail:
17678 return NULL;
17679 }
17680
17681
17682 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17683 PyObject *resultobj = 0;
17684 wxSlider *arg1 = (wxSlider *) 0 ;
17685 int arg2 ;
17686 void *argp1 = 0 ;
17687 int res1 = 0 ;
17688 int val2 ;
17689 int ecode2 = 0 ;
17690 PyObject * obj0 = 0 ;
17691 PyObject * obj1 = 0 ;
17692 char * kwnames[] = {
17693 (char *) "self",(char *) "pageSize", NULL
17694 };
17695
17696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17698 if (!SWIG_IsOK(res1)) {
17699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17700 }
17701 arg1 = reinterpret_cast< wxSlider * >(argp1);
17702 ecode2 = SWIG_AsVal_int(obj1, &val2);
17703 if (!SWIG_IsOK(ecode2)) {
17704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17705 }
17706 arg2 = static_cast< int >(val2);
17707 {
17708 PyThreadState* __tstate = wxPyBeginAllowThreads();
17709 (arg1)->SetPageSize(arg2);
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 resultobj = SWIG_Py_Void();
17714 return resultobj;
17715 fail:
17716 return NULL;
17717 }
17718
17719
17720 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17721 PyObject *resultobj = 0;
17722 wxSlider *arg1 = (wxSlider *) 0 ;
17723 int result;
17724 void *argp1 = 0 ;
17725 int res1 = 0 ;
17726 PyObject *swig_obj[1] ;
17727
17728 if (!args) SWIG_fail;
17729 swig_obj[0] = args;
17730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17731 if (!SWIG_IsOK(res1)) {
17732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17733 }
17734 arg1 = reinterpret_cast< wxSlider * >(argp1);
17735 {
17736 PyThreadState* __tstate = wxPyBeginAllowThreads();
17737 result = (int)((wxSlider const *)arg1)->GetLineSize();
17738 wxPyEndAllowThreads(__tstate);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 resultobj = SWIG_From_int(static_cast< int >(result));
17742 return resultobj;
17743 fail:
17744 return NULL;
17745 }
17746
17747
17748 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17749 PyObject *resultobj = 0;
17750 wxSlider *arg1 = (wxSlider *) 0 ;
17751 int result;
17752 void *argp1 = 0 ;
17753 int res1 = 0 ;
17754 PyObject *swig_obj[1] ;
17755
17756 if (!args) SWIG_fail;
17757 swig_obj[0] = args;
17758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17759 if (!SWIG_IsOK(res1)) {
17760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17761 }
17762 arg1 = reinterpret_cast< wxSlider * >(argp1);
17763 {
17764 PyThreadState* __tstate = wxPyBeginAllowThreads();
17765 result = (int)((wxSlider const *)arg1)->GetPageSize();
17766 wxPyEndAllowThreads(__tstate);
17767 if (PyErr_Occurred()) SWIG_fail;
17768 }
17769 resultobj = SWIG_From_int(static_cast< int >(result));
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17777 PyObject *resultobj = 0;
17778 wxSlider *arg1 = (wxSlider *) 0 ;
17779 int arg2 ;
17780 void *argp1 = 0 ;
17781 int res1 = 0 ;
17782 int val2 ;
17783 int ecode2 = 0 ;
17784 PyObject * obj0 = 0 ;
17785 PyObject * obj1 = 0 ;
17786 char * kwnames[] = {
17787 (char *) "self",(char *) "lenPixels", NULL
17788 };
17789
17790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
17791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17792 if (!SWIG_IsOK(res1)) {
17793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
17794 }
17795 arg1 = reinterpret_cast< wxSlider * >(argp1);
17796 ecode2 = SWIG_AsVal_int(obj1, &val2);
17797 if (!SWIG_IsOK(ecode2)) {
17798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
17799 }
17800 arg2 = static_cast< int >(val2);
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 (arg1)->SetThumbLength(arg2);
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
17807 resultobj = SWIG_Py_Void();
17808 return resultobj;
17809 fail:
17810 return NULL;
17811 }
17812
17813
17814 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17815 PyObject *resultobj = 0;
17816 wxSlider *arg1 = (wxSlider *) 0 ;
17817 int result;
17818 void *argp1 = 0 ;
17819 int res1 = 0 ;
17820 PyObject *swig_obj[1] ;
17821
17822 if (!args) SWIG_fail;
17823 swig_obj[0] = args;
17824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17825 if (!SWIG_IsOK(res1)) {
17826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
17827 }
17828 arg1 = reinterpret_cast< wxSlider * >(argp1);
17829 {
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 result = (int)((wxSlider const *)arg1)->GetThumbLength();
17832 wxPyEndAllowThreads(__tstate);
17833 if (PyErr_Occurred()) SWIG_fail;
17834 }
17835 resultobj = SWIG_From_int(static_cast< int >(result));
17836 return resultobj;
17837 fail:
17838 return NULL;
17839 }
17840
17841
17842 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17843 PyObject *resultobj = 0;
17844 wxSlider *arg1 = (wxSlider *) 0 ;
17845 int arg2 ;
17846 int arg3 = (int) 1 ;
17847 void *argp1 = 0 ;
17848 int res1 = 0 ;
17849 int val2 ;
17850 int ecode2 = 0 ;
17851 int val3 ;
17852 int ecode3 = 0 ;
17853 PyObject * obj0 = 0 ;
17854 PyObject * obj1 = 0 ;
17855 PyObject * obj2 = 0 ;
17856 char * kwnames[] = {
17857 (char *) "self",(char *) "n",(char *) "pos", NULL
17858 };
17859
17860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17862 if (!SWIG_IsOK(res1)) {
17863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
17864 }
17865 arg1 = reinterpret_cast< wxSlider * >(argp1);
17866 ecode2 = SWIG_AsVal_int(obj1, &val2);
17867 if (!SWIG_IsOK(ecode2)) {
17868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
17869 }
17870 arg2 = static_cast< int >(val2);
17871 if (obj2) {
17872 ecode3 = SWIG_AsVal_int(obj2, &val3);
17873 if (!SWIG_IsOK(ecode3)) {
17874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
17875 }
17876 arg3 = static_cast< int >(val3);
17877 }
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 (arg1)->SetTickFreq(arg2,arg3);
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_Py_Void();
17885 return resultobj;
17886 fail:
17887 return NULL;
17888 }
17889
17890
17891 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17892 PyObject *resultobj = 0;
17893 wxSlider *arg1 = (wxSlider *) 0 ;
17894 int result;
17895 void *argp1 = 0 ;
17896 int res1 = 0 ;
17897 PyObject *swig_obj[1] ;
17898
17899 if (!args) SWIG_fail;
17900 swig_obj[0] = args;
17901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17902 if (!SWIG_IsOK(res1)) {
17903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
17904 }
17905 arg1 = reinterpret_cast< wxSlider * >(argp1);
17906 {
17907 PyThreadState* __tstate = wxPyBeginAllowThreads();
17908 result = (int)((wxSlider const *)arg1)->GetTickFreq();
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 resultobj = SWIG_From_int(static_cast< int >(result));
17913 return resultobj;
17914 fail:
17915 return NULL;
17916 }
17917
17918
17919 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17920 PyObject *resultobj = 0;
17921 wxSlider *arg1 = (wxSlider *) 0 ;
17922 void *argp1 = 0 ;
17923 int res1 = 0 ;
17924 PyObject *swig_obj[1] ;
17925
17926 if (!args) SWIG_fail;
17927 swig_obj[0] = args;
17928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17929 if (!SWIG_IsOK(res1)) {
17930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
17931 }
17932 arg1 = reinterpret_cast< wxSlider * >(argp1);
17933 {
17934 PyThreadState* __tstate = wxPyBeginAllowThreads();
17935 (arg1)->ClearTicks();
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 resultobj = SWIG_Py_Void();
17940 return resultobj;
17941 fail:
17942 return NULL;
17943 }
17944
17945
17946 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17947 PyObject *resultobj = 0;
17948 wxSlider *arg1 = (wxSlider *) 0 ;
17949 int arg2 ;
17950 void *argp1 = 0 ;
17951 int res1 = 0 ;
17952 int val2 ;
17953 int ecode2 = 0 ;
17954 PyObject * obj0 = 0 ;
17955 PyObject * obj1 = 0 ;
17956 char * kwnames[] = {
17957 (char *) "self",(char *) "tickPos", NULL
17958 };
17959
17960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
17961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17962 if (!SWIG_IsOK(res1)) {
17963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
17964 }
17965 arg1 = reinterpret_cast< wxSlider * >(argp1);
17966 ecode2 = SWIG_AsVal_int(obj1, &val2);
17967 if (!SWIG_IsOK(ecode2)) {
17968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
17969 }
17970 arg2 = static_cast< int >(val2);
17971 {
17972 PyThreadState* __tstate = wxPyBeginAllowThreads();
17973 (arg1)->SetTick(arg2);
17974 wxPyEndAllowThreads(__tstate);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 }
17977 resultobj = SWIG_Py_Void();
17978 return resultobj;
17979 fail:
17980 return NULL;
17981 }
17982
17983
17984 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17985 PyObject *resultobj = 0;
17986 wxSlider *arg1 = (wxSlider *) 0 ;
17987 void *argp1 = 0 ;
17988 int res1 = 0 ;
17989 PyObject *swig_obj[1] ;
17990
17991 if (!args) SWIG_fail;
17992 swig_obj[0] = args;
17993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17994 if (!SWIG_IsOK(res1)) {
17995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
17996 }
17997 arg1 = reinterpret_cast< wxSlider * >(argp1);
17998 {
17999 PyThreadState* __tstate = wxPyBeginAllowThreads();
18000 (arg1)->ClearSel();
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 resultobj = SWIG_Py_Void();
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18012 PyObject *resultobj = 0;
18013 wxSlider *arg1 = (wxSlider *) 0 ;
18014 int result;
18015 void *argp1 = 0 ;
18016 int res1 = 0 ;
18017 PyObject *swig_obj[1] ;
18018
18019 if (!args) SWIG_fail;
18020 swig_obj[0] = args;
18021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18022 if (!SWIG_IsOK(res1)) {
18023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18024 }
18025 arg1 = reinterpret_cast< wxSlider * >(argp1);
18026 {
18027 PyThreadState* __tstate = wxPyBeginAllowThreads();
18028 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18029 wxPyEndAllowThreads(__tstate);
18030 if (PyErr_Occurred()) SWIG_fail;
18031 }
18032 resultobj = SWIG_From_int(static_cast< int >(result));
18033 return resultobj;
18034 fail:
18035 return NULL;
18036 }
18037
18038
18039 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18040 PyObject *resultobj = 0;
18041 wxSlider *arg1 = (wxSlider *) 0 ;
18042 int result;
18043 void *argp1 = 0 ;
18044 int res1 = 0 ;
18045 PyObject *swig_obj[1] ;
18046
18047 if (!args) SWIG_fail;
18048 swig_obj[0] = args;
18049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18050 if (!SWIG_IsOK(res1)) {
18051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18052 }
18053 arg1 = reinterpret_cast< wxSlider * >(argp1);
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 result = (int)((wxSlider const *)arg1)->GetSelStart();
18057 wxPyEndAllowThreads(__tstate);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 }
18060 resultobj = SWIG_From_int(static_cast< int >(result));
18061 return resultobj;
18062 fail:
18063 return NULL;
18064 }
18065
18066
18067 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18068 PyObject *resultobj = 0;
18069 wxSlider *arg1 = (wxSlider *) 0 ;
18070 int arg2 ;
18071 int arg3 ;
18072 void *argp1 = 0 ;
18073 int res1 = 0 ;
18074 int val2 ;
18075 int ecode2 = 0 ;
18076 int val3 ;
18077 int ecode3 = 0 ;
18078 PyObject * obj0 = 0 ;
18079 PyObject * obj1 = 0 ;
18080 PyObject * obj2 = 0 ;
18081 char * kwnames[] = {
18082 (char *) "self",(char *) "min",(char *) "max", NULL
18083 };
18084
18085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18087 if (!SWIG_IsOK(res1)) {
18088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18089 }
18090 arg1 = reinterpret_cast< wxSlider * >(argp1);
18091 ecode2 = SWIG_AsVal_int(obj1, &val2);
18092 if (!SWIG_IsOK(ecode2)) {
18093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18094 }
18095 arg2 = static_cast< int >(val2);
18096 ecode3 = SWIG_AsVal_int(obj2, &val3);
18097 if (!SWIG_IsOK(ecode3)) {
18098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18099 }
18100 arg3 = static_cast< int >(val3);
18101 {
18102 PyThreadState* __tstate = wxPyBeginAllowThreads();
18103 (arg1)->SetSelection(arg2,arg3);
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = SWIG_Py_Void();
18108 return resultobj;
18109 fail:
18110 return NULL;
18111 }
18112
18113
18114 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj = 0;
18116 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18117 SwigValueWrapper<wxVisualAttributes > result;
18118 int val1 ;
18119 int ecode1 = 0 ;
18120 PyObject * obj0 = 0 ;
18121 char * kwnames[] = {
18122 (char *) "variant", NULL
18123 };
18124
18125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18126 if (obj0) {
18127 ecode1 = SWIG_AsVal_int(obj0, &val1);
18128 if (!SWIG_IsOK(ecode1)) {
18129 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18130 }
18131 arg1 = static_cast< wxWindowVariant >(val1);
18132 }
18133 {
18134 if (!wxPyCheckForApp()) SWIG_fail;
18135 PyThreadState* __tstate = wxPyBeginAllowThreads();
18136 result = wxSlider::GetClassDefaultAttributes(arg1);
18137 wxPyEndAllowThreads(__tstate);
18138 if (PyErr_Occurred()) SWIG_fail;
18139 }
18140 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18141 return resultobj;
18142 fail:
18143 return NULL;
18144 }
18145
18146
18147 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18148 PyObject *obj;
18149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18150 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18151 return SWIG_Py_Void();
18152 }
18153
18154 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18155 return SWIG_Python_InitShadowInstance(args);
18156 }
18157
18158 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18159 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18160 return 1;
18161 }
18162
18163
18164 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18165 PyObject *pyobj = 0;
18166
18167 {
18168 #if wxUSE_UNICODE
18169 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18170 #else
18171 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18172 #endif
18173 }
18174 return pyobj;
18175 }
18176
18177
18178 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18179 PyObject *resultobj = 0;
18180 wxWindow *arg1 = (wxWindow *) 0 ;
18181 int arg2 = (int) -1 ;
18182 wxString const &arg3_defvalue = wxPyEmptyString ;
18183 wxString *arg3 = (wxString *) &arg3_defvalue ;
18184 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18185 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18186 wxSize const &arg5_defvalue = wxDefaultSize ;
18187 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18188 long arg6 = (long) 0 ;
18189 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18190 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18191 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18192 wxString *arg8 = (wxString *) &arg8_defvalue ;
18193 wxToggleButton *result = 0 ;
18194 void *argp1 = 0 ;
18195 int res1 = 0 ;
18196 int val2 ;
18197 int ecode2 = 0 ;
18198 bool temp3 = false ;
18199 wxPoint temp4 ;
18200 wxSize temp5 ;
18201 long val6 ;
18202 int ecode6 = 0 ;
18203 void *argp7 = 0 ;
18204 int res7 = 0 ;
18205 bool temp8 = false ;
18206 PyObject * obj0 = 0 ;
18207 PyObject * obj1 = 0 ;
18208 PyObject * obj2 = 0 ;
18209 PyObject * obj3 = 0 ;
18210 PyObject * obj4 = 0 ;
18211 PyObject * obj5 = 0 ;
18212 PyObject * obj6 = 0 ;
18213 PyObject * obj7 = 0 ;
18214 char * kwnames[] = {
18215 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18216 };
18217
18218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18220 if (!SWIG_IsOK(res1)) {
18221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18222 }
18223 arg1 = reinterpret_cast< wxWindow * >(argp1);
18224 if (obj1) {
18225 ecode2 = SWIG_AsVal_int(obj1, &val2);
18226 if (!SWIG_IsOK(ecode2)) {
18227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18228 }
18229 arg2 = static_cast< int >(val2);
18230 }
18231 if (obj2) {
18232 {
18233 arg3 = wxString_in_helper(obj2);
18234 if (arg3 == NULL) SWIG_fail;
18235 temp3 = true;
18236 }
18237 }
18238 if (obj3) {
18239 {
18240 arg4 = &temp4;
18241 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18242 }
18243 }
18244 if (obj4) {
18245 {
18246 arg5 = &temp5;
18247 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18248 }
18249 }
18250 if (obj5) {
18251 ecode6 = SWIG_AsVal_long(obj5, &val6);
18252 if (!SWIG_IsOK(ecode6)) {
18253 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18254 }
18255 arg6 = static_cast< long >(val6);
18256 }
18257 if (obj6) {
18258 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18259 if (!SWIG_IsOK(res7)) {
18260 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18261 }
18262 if (!argp7) {
18263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18264 }
18265 arg7 = reinterpret_cast< wxValidator * >(argp7);
18266 }
18267 if (obj7) {
18268 {
18269 arg8 = wxString_in_helper(obj7);
18270 if (arg8 == NULL) SWIG_fail;
18271 temp8 = true;
18272 }
18273 }
18274 {
18275 if (!wxPyCheckForApp()) SWIG_fail;
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18282 {
18283 if (temp3)
18284 delete arg3;
18285 }
18286 {
18287 if (temp8)
18288 delete arg8;
18289 }
18290 return resultobj;
18291 fail:
18292 {
18293 if (temp3)
18294 delete arg3;
18295 }
18296 {
18297 if (temp8)
18298 delete arg8;
18299 }
18300 return NULL;
18301 }
18302
18303
18304 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18305 PyObject *resultobj = 0;
18306 wxToggleButton *result = 0 ;
18307
18308 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18309 {
18310 if (!wxPyCheckForApp()) SWIG_fail;
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
18312 result = (wxToggleButton *)new wxToggleButton();
18313 wxPyEndAllowThreads(__tstate);
18314 if (PyErr_Occurred()) SWIG_fail;
18315 }
18316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18317 return resultobj;
18318 fail:
18319 return NULL;
18320 }
18321
18322
18323 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18324 PyObject *resultobj = 0;
18325 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18326 wxWindow *arg2 = (wxWindow *) 0 ;
18327 int arg3 = (int) -1 ;
18328 wxString const &arg4_defvalue = wxPyEmptyString ;
18329 wxString *arg4 = (wxString *) &arg4_defvalue ;
18330 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18331 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18332 wxSize const &arg6_defvalue = wxDefaultSize ;
18333 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18334 long arg7 = (long) 0 ;
18335 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18336 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18337 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18338 wxString *arg9 = (wxString *) &arg9_defvalue ;
18339 bool result;
18340 void *argp1 = 0 ;
18341 int res1 = 0 ;
18342 void *argp2 = 0 ;
18343 int res2 = 0 ;
18344 int val3 ;
18345 int ecode3 = 0 ;
18346 bool temp4 = false ;
18347 wxPoint temp5 ;
18348 wxSize temp6 ;
18349 long val7 ;
18350 int ecode7 = 0 ;
18351 void *argp8 = 0 ;
18352 int res8 = 0 ;
18353 bool temp9 = false ;
18354 PyObject * obj0 = 0 ;
18355 PyObject * obj1 = 0 ;
18356 PyObject * obj2 = 0 ;
18357 PyObject * obj3 = 0 ;
18358 PyObject * obj4 = 0 ;
18359 PyObject * obj5 = 0 ;
18360 PyObject * obj6 = 0 ;
18361 PyObject * obj7 = 0 ;
18362 PyObject * obj8 = 0 ;
18363 char * kwnames[] = {
18364 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18365 };
18366
18367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18369 if (!SWIG_IsOK(res1)) {
18370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18371 }
18372 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18374 if (!SWIG_IsOK(res2)) {
18375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18376 }
18377 arg2 = reinterpret_cast< wxWindow * >(argp2);
18378 if (obj2) {
18379 ecode3 = SWIG_AsVal_int(obj2, &val3);
18380 if (!SWIG_IsOK(ecode3)) {
18381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18382 }
18383 arg3 = static_cast< int >(val3);
18384 }
18385 if (obj3) {
18386 {
18387 arg4 = wxString_in_helper(obj3);
18388 if (arg4 == NULL) SWIG_fail;
18389 temp4 = true;
18390 }
18391 }
18392 if (obj4) {
18393 {
18394 arg5 = &temp5;
18395 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18396 }
18397 }
18398 if (obj5) {
18399 {
18400 arg6 = &temp6;
18401 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18402 }
18403 }
18404 if (obj6) {
18405 ecode7 = SWIG_AsVal_long(obj6, &val7);
18406 if (!SWIG_IsOK(ecode7)) {
18407 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18408 }
18409 arg7 = static_cast< long >(val7);
18410 }
18411 if (obj7) {
18412 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18413 if (!SWIG_IsOK(res8)) {
18414 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18415 }
18416 if (!argp8) {
18417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18418 }
18419 arg8 = reinterpret_cast< wxValidator * >(argp8);
18420 }
18421 if (obj8) {
18422 {
18423 arg9 = wxString_in_helper(obj8);
18424 if (arg9 == NULL) SWIG_fail;
18425 temp9 = true;
18426 }
18427 }
18428 {
18429 PyThreadState* __tstate = wxPyBeginAllowThreads();
18430 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18431 wxPyEndAllowThreads(__tstate);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 {
18435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18436 }
18437 {
18438 if (temp4)
18439 delete arg4;
18440 }
18441 {
18442 if (temp9)
18443 delete arg9;
18444 }
18445 return resultobj;
18446 fail:
18447 {
18448 if (temp4)
18449 delete arg4;
18450 }
18451 {
18452 if (temp9)
18453 delete arg9;
18454 }
18455 return NULL;
18456 }
18457
18458
18459 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj = 0;
18461 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18462 bool arg2 ;
18463 void *argp1 = 0 ;
18464 int res1 = 0 ;
18465 bool val2 ;
18466 int ecode2 = 0 ;
18467 PyObject * obj0 = 0 ;
18468 PyObject * obj1 = 0 ;
18469 char * kwnames[] = {
18470 (char *) "self",(char *) "value", NULL
18471 };
18472
18473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18475 if (!SWIG_IsOK(res1)) {
18476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18477 }
18478 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18479 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18480 if (!SWIG_IsOK(ecode2)) {
18481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18482 }
18483 arg2 = static_cast< bool >(val2);
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 (arg1)->SetValue(arg2);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_Py_Void();
18491 return resultobj;
18492 fail:
18493 return NULL;
18494 }
18495
18496
18497 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18498 PyObject *resultobj = 0;
18499 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18500 bool result;
18501 void *argp1 = 0 ;
18502 int res1 = 0 ;
18503 PyObject *swig_obj[1] ;
18504
18505 if (!args) SWIG_fail;
18506 swig_obj[0] = args;
18507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18508 if (!SWIG_IsOK(res1)) {
18509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18510 }
18511 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 {
18519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18520 }
18521 return resultobj;
18522 fail:
18523 return NULL;
18524 }
18525
18526
18527 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18528 PyObject *resultobj = 0;
18529 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18530 SwigValueWrapper<wxVisualAttributes > result;
18531 int val1 ;
18532 int ecode1 = 0 ;
18533 PyObject * obj0 = 0 ;
18534 char * kwnames[] = {
18535 (char *) "variant", NULL
18536 };
18537
18538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18539 if (obj0) {
18540 ecode1 = SWIG_AsVal_int(obj0, &val1);
18541 if (!SWIG_IsOK(ecode1)) {
18542 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18543 }
18544 arg1 = static_cast< wxWindowVariant >(val1);
18545 }
18546 {
18547 if (!wxPyCheckForApp()) SWIG_fail;
18548 PyThreadState* __tstate = wxPyBeginAllowThreads();
18549 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18550 wxPyEndAllowThreads(__tstate);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18554 return resultobj;
18555 fail:
18556 return NULL;
18557 }
18558
18559
18560 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18561 PyObject *obj;
18562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18563 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18564 return SWIG_Py_Void();
18565 }
18566
18567 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18568 return SWIG_Python_InitShadowInstance(args);
18569 }
18570
18571 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18572 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18573 return 1;
18574 }
18575
18576
18577 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18578 PyObject *pyobj = 0;
18579
18580 {
18581 #if wxUSE_UNICODE
18582 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18583 #else
18584 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18585 #endif
18586 }
18587 return pyobj;
18588 }
18589
18590
18591 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18592 PyObject *resultobj = 0;
18593 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18594 size_t result;
18595 void *argp1 = 0 ;
18596 int res1 = 0 ;
18597 PyObject *swig_obj[1] ;
18598
18599 if (!args) SWIG_fail;
18600 swig_obj[0] = args;
18601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18602 if (!SWIG_IsOK(res1)) {
18603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18604 }
18605 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18606 {
18607 PyThreadState* __tstate = wxPyBeginAllowThreads();
18608 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18609 wxPyEndAllowThreads(__tstate);
18610 if (PyErr_Occurred()) SWIG_fail;
18611 }
18612 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18613 return resultobj;
18614 fail:
18615 return NULL;
18616 }
18617
18618
18619 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj = 0;
18621 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18622 size_t arg2 ;
18623 wxWindow *result = 0 ;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 size_t val2 ;
18627 int ecode2 = 0 ;
18628 PyObject * obj0 = 0 ;
18629 PyObject * obj1 = 0 ;
18630 char * kwnames[] = {
18631 (char *) "self",(char *) "n", NULL
18632 };
18633
18634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18636 if (!SWIG_IsOK(res1)) {
18637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18638 }
18639 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18640 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18641 if (!SWIG_IsOK(ecode2)) {
18642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18643 }
18644 arg2 = static_cast< size_t >(val2);
18645 {
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 result = (wxWindow *)(arg1)->GetPage(arg2);
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 {
18652 resultobj = wxPyMake_wxObject(result, 0);
18653 }
18654 return resultobj;
18655 fail:
18656 return NULL;
18657 }
18658
18659
18660 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18661 PyObject *resultobj = 0;
18662 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18663 wxWindow *result = 0 ;
18664 void *argp1 = 0 ;
18665 int res1 = 0 ;
18666 PyObject *swig_obj[1] ;
18667
18668 if (!args) SWIG_fail;
18669 swig_obj[0] = args;
18670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18671 if (!SWIG_IsOK(res1)) {
18672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18673 }
18674 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18675 {
18676 PyThreadState* __tstate = wxPyBeginAllowThreads();
18677 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18678 wxPyEndAllowThreads(__tstate);
18679 if (PyErr_Occurred()) SWIG_fail;
18680 }
18681 {
18682 resultobj = wxPyMake_wxObject(result, 0);
18683 }
18684 return resultobj;
18685 fail:
18686 return NULL;
18687 }
18688
18689
18690 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18691 PyObject *resultobj = 0;
18692 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18693 int result;
18694 void *argp1 = 0 ;
18695 int res1 = 0 ;
18696 PyObject *swig_obj[1] ;
18697
18698 if (!args) SWIG_fail;
18699 swig_obj[0] = args;
18700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18701 if (!SWIG_IsOK(res1)) {
18702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18703 }
18704 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18705 {
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_From_int(static_cast< int >(result));
18712 return resultobj;
18713 fail:
18714 return NULL;
18715 }
18716
18717
18718 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18719 PyObject *resultobj = 0;
18720 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18721 size_t arg2 ;
18722 wxString *arg3 = 0 ;
18723 bool result;
18724 void *argp1 = 0 ;
18725 int res1 = 0 ;
18726 size_t val2 ;
18727 int ecode2 = 0 ;
18728 bool temp3 = false ;
18729 PyObject * obj0 = 0 ;
18730 PyObject * obj1 = 0 ;
18731 PyObject * obj2 = 0 ;
18732 char * kwnames[] = {
18733 (char *) "self",(char *) "n",(char *) "strText", NULL
18734 };
18735
18736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18738 if (!SWIG_IsOK(res1)) {
18739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18740 }
18741 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18742 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18743 if (!SWIG_IsOK(ecode2)) {
18744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18745 }
18746 arg2 = static_cast< size_t >(val2);
18747 {
18748 arg3 = wxString_in_helper(obj2);
18749 if (arg3 == NULL) SWIG_fail;
18750 temp3 = true;
18751 }
18752 {
18753 PyThreadState* __tstate = wxPyBeginAllowThreads();
18754 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18755 wxPyEndAllowThreads(__tstate);
18756 if (PyErr_Occurred()) SWIG_fail;
18757 }
18758 {
18759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18760 }
18761 {
18762 if (temp3)
18763 delete arg3;
18764 }
18765 return resultobj;
18766 fail:
18767 {
18768 if (temp3)
18769 delete arg3;
18770 }
18771 return NULL;
18772 }
18773
18774
18775 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18776 PyObject *resultobj = 0;
18777 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18778 size_t arg2 ;
18779 wxString result;
18780 void *argp1 = 0 ;
18781 int res1 = 0 ;
18782 size_t val2 ;
18783 int ecode2 = 0 ;
18784 PyObject * obj0 = 0 ;
18785 PyObject * obj1 = 0 ;
18786 char * kwnames[] = {
18787 (char *) "self",(char *) "n", NULL
18788 };
18789
18790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
18791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18792 if (!SWIG_IsOK(res1)) {
18793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18794 }
18795 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18796 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18797 if (!SWIG_IsOK(ecode2)) {
18798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
18799 }
18800 arg2 = static_cast< size_t >(val2);
18801 {
18802 PyThreadState* __tstate = wxPyBeginAllowThreads();
18803 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
18804 wxPyEndAllowThreads(__tstate);
18805 if (PyErr_Occurred()) SWIG_fail;
18806 }
18807 {
18808 #if wxUSE_UNICODE
18809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18810 #else
18811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18812 #endif
18813 }
18814 return resultobj;
18815 fail:
18816 return NULL;
18817 }
18818
18819
18820 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18821 PyObject *resultobj = 0;
18822 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18823 wxImageList *arg2 = (wxImageList *) 0 ;
18824 void *argp1 = 0 ;
18825 int res1 = 0 ;
18826 void *argp2 = 0 ;
18827 int res2 = 0 ;
18828 PyObject * obj0 = 0 ;
18829 PyObject * obj1 = 0 ;
18830 char * kwnames[] = {
18831 (char *) "self",(char *) "imageList", NULL
18832 };
18833
18834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
18835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18836 if (!SWIG_IsOK(res1)) {
18837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18838 }
18839 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18840 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
18841 if (!SWIG_IsOK(res2)) {
18842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
18843 }
18844 arg2 = reinterpret_cast< wxImageList * >(argp2);
18845 {
18846 PyThreadState* __tstate = wxPyBeginAllowThreads();
18847 (arg1)->SetImageList(arg2);
18848 wxPyEndAllowThreads(__tstate);
18849 if (PyErr_Occurred()) SWIG_fail;
18850 }
18851 resultobj = SWIG_Py_Void();
18852 return resultobj;
18853 fail:
18854 return NULL;
18855 }
18856
18857
18858 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18859 PyObject *resultobj = 0;
18860 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18861 wxImageList *arg2 = (wxImageList *) 0 ;
18862 void *argp1 = 0 ;
18863 int res1 = 0 ;
18864 int res2 = 0 ;
18865 PyObject * obj0 = 0 ;
18866 PyObject * obj1 = 0 ;
18867 char * kwnames[] = {
18868 (char *) "self",(char *) "imageList", NULL
18869 };
18870
18871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
18872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18873 if (!SWIG_IsOK(res1)) {
18874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18875 }
18876 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18877 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
18878 if (!SWIG_IsOK(res2)) {
18879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
18880 }
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 (arg1)->AssignImageList(arg2);
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 resultobj = SWIG_Py_Void();
18888 return resultobj;
18889 fail:
18890 return NULL;
18891 }
18892
18893
18894 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18895 PyObject *resultobj = 0;
18896 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18897 wxImageList *result = 0 ;
18898 void *argp1 = 0 ;
18899 int res1 = 0 ;
18900 PyObject *swig_obj[1] ;
18901
18902 if (!args) SWIG_fail;
18903 swig_obj[0] = args;
18904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18905 if (!SWIG_IsOK(res1)) {
18906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18907 }
18908 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18909 {
18910 PyThreadState* __tstate = wxPyBeginAllowThreads();
18911 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
18912 wxPyEndAllowThreads(__tstate);
18913 if (PyErr_Occurred()) SWIG_fail;
18914 }
18915 {
18916 resultobj = wxPyMake_wxObject(result, (bool)0);
18917 }
18918 return resultobj;
18919 fail:
18920 return NULL;
18921 }
18922
18923
18924 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18925 PyObject *resultobj = 0;
18926 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18927 size_t arg2 ;
18928 int result;
18929 void *argp1 = 0 ;
18930 int res1 = 0 ;
18931 size_t val2 ;
18932 int ecode2 = 0 ;
18933 PyObject * obj0 = 0 ;
18934 PyObject * obj1 = 0 ;
18935 char * kwnames[] = {
18936 (char *) "self",(char *) "n", NULL
18937 };
18938
18939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
18940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18941 if (!SWIG_IsOK(res1)) {
18942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18943 }
18944 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18945 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18946 if (!SWIG_IsOK(ecode2)) {
18947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
18948 }
18949 arg2 = static_cast< size_t >(val2);
18950 {
18951 PyThreadState* __tstate = wxPyBeginAllowThreads();
18952 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
18953 wxPyEndAllowThreads(__tstate);
18954 if (PyErr_Occurred()) SWIG_fail;
18955 }
18956 resultobj = SWIG_From_int(static_cast< int >(result));
18957 return resultobj;
18958 fail:
18959 return NULL;
18960 }
18961
18962
18963 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18964 PyObject *resultobj = 0;
18965 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18966 size_t arg2 ;
18967 int arg3 ;
18968 bool result;
18969 void *argp1 = 0 ;
18970 int res1 = 0 ;
18971 size_t val2 ;
18972 int ecode2 = 0 ;
18973 int val3 ;
18974 int ecode3 = 0 ;
18975 PyObject * obj0 = 0 ;
18976 PyObject * obj1 = 0 ;
18977 PyObject * obj2 = 0 ;
18978 char * kwnames[] = {
18979 (char *) "self",(char *) "n",(char *) "imageId", NULL
18980 };
18981
18982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18984 if (!SWIG_IsOK(res1)) {
18985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18986 }
18987 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18988 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18989 if (!SWIG_IsOK(ecode2)) {
18990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
18991 }
18992 arg2 = static_cast< size_t >(val2);
18993 ecode3 = SWIG_AsVal_int(obj2, &val3);
18994 if (!SWIG_IsOK(ecode3)) {
18995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
18996 }
18997 arg3 = static_cast< int >(val3);
18998 {
18999 PyThreadState* __tstate = wxPyBeginAllowThreads();
19000 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19001 wxPyEndAllowThreads(__tstate);
19002 if (PyErr_Occurred()) SWIG_fail;
19003 }
19004 {
19005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19006 }
19007 return resultobj;
19008 fail:
19009 return NULL;
19010 }
19011
19012
19013 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19014 PyObject *resultobj = 0;
19015 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19016 wxSize *arg2 = 0 ;
19017 void *argp1 = 0 ;
19018 int res1 = 0 ;
19019 wxSize temp2 ;
19020 PyObject * obj0 = 0 ;
19021 PyObject * obj1 = 0 ;
19022 char * kwnames[] = {
19023 (char *) "self",(char *) "size", NULL
19024 };
19025
19026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19028 if (!SWIG_IsOK(res1)) {
19029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19030 }
19031 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19032 {
19033 arg2 = &temp2;
19034 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19035 }
19036 {
19037 PyThreadState* __tstate = wxPyBeginAllowThreads();
19038 (arg1)->SetPageSize((wxSize const &)*arg2);
19039 wxPyEndAllowThreads(__tstate);
19040 if (PyErr_Occurred()) SWIG_fail;
19041 }
19042 resultobj = SWIG_Py_Void();
19043 return resultobj;
19044 fail:
19045 return NULL;
19046 }
19047
19048
19049 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19050 PyObject *resultobj = 0;
19051 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19052 wxSize *arg2 = 0 ;
19053 wxSize result;
19054 void *argp1 = 0 ;
19055 int res1 = 0 ;
19056 wxSize temp2 ;
19057 PyObject * obj0 = 0 ;
19058 PyObject * obj1 = 0 ;
19059 char * kwnames[] = {
19060 (char *) "self",(char *) "sizePage", NULL
19061 };
19062
19063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19065 if (!SWIG_IsOK(res1)) {
19066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19067 }
19068 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19069 {
19070 arg2 = &temp2;
19071 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19072 }
19073 {
19074 PyThreadState* __tstate = wxPyBeginAllowThreads();
19075 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19076 wxPyEndAllowThreads(__tstate);
19077 if (PyErr_Occurred()) SWIG_fail;
19078 }
19079 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19080 return resultobj;
19081 fail:
19082 return NULL;
19083 }
19084
19085
19086 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19087 PyObject *resultobj = 0;
19088 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19089 unsigned int result;
19090 void *argp1 = 0 ;
19091 int res1 = 0 ;
19092 PyObject *swig_obj[1] ;
19093
19094 if (!args) SWIG_fail;
19095 swig_obj[0] = args;
19096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19097 if (!SWIG_IsOK(res1)) {
19098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19099 }
19100 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19101 {
19102 PyThreadState* __tstate = wxPyBeginAllowThreads();
19103 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19104 wxPyEndAllowThreads(__tstate);
19105 if (PyErr_Occurred()) SWIG_fail;
19106 }
19107 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19108 return resultobj;
19109 fail:
19110 return NULL;
19111 }
19112
19113
19114 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19115 PyObject *resultobj = 0;
19116 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19117 unsigned int arg2 ;
19118 void *argp1 = 0 ;
19119 int res1 = 0 ;
19120 unsigned int val2 ;
19121 int ecode2 = 0 ;
19122 PyObject * obj0 = 0 ;
19123 PyObject * obj1 = 0 ;
19124 char * kwnames[] = {
19125 (char *) "self",(char *) "internalBorder", NULL
19126 };
19127
19128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19130 if (!SWIG_IsOK(res1)) {
19131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19132 }
19133 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19134 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19135 if (!SWIG_IsOK(ecode2)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19137 }
19138 arg2 = static_cast< unsigned int >(val2);
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 (arg1)->SetInternalBorder(arg2);
19142 wxPyEndAllowThreads(__tstate);
19143 if (PyErr_Occurred()) SWIG_fail;
19144 }
19145 resultobj = SWIG_Py_Void();
19146 return resultobj;
19147 fail:
19148 return NULL;
19149 }
19150
19151
19152 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19153 PyObject *resultobj = 0;
19154 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19155 bool result;
19156 void *argp1 = 0 ;
19157 int res1 = 0 ;
19158 PyObject *swig_obj[1] ;
19159
19160 if (!args) SWIG_fail;
19161 swig_obj[0] = args;
19162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19163 if (!SWIG_IsOK(res1)) {
19164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19165 }
19166 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19170 wxPyEndAllowThreads(__tstate);
19171 if (PyErr_Occurred()) SWIG_fail;
19172 }
19173 {
19174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19175 }
19176 return resultobj;
19177 fail:
19178 return NULL;
19179 }
19180
19181
19182 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19183 PyObject *resultobj = 0;
19184 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19185 bool arg2 ;
19186 void *argp1 = 0 ;
19187 int res1 = 0 ;
19188 bool val2 ;
19189 int ecode2 = 0 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 char * kwnames[] = {
19193 (char *) "self",(char *) "fit", NULL
19194 };
19195
19196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19198 if (!SWIG_IsOK(res1)) {
19199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19200 }
19201 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19202 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19203 if (!SWIG_IsOK(ecode2)) {
19204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19205 }
19206 arg2 = static_cast< bool >(val2);
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 (arg1)->SetFitToCurrentPage(arg2);
19210 wxPyEndAllowThreads(__tstate);
19211 if (PyErr_Occurred()) SWIG_fail;
19212 }
19213 resultobj = SWIG_Py_Void();
19214 return resultobj;
19215 fail:
19216 return NULL;
19217 }
19218
19219
19220 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19221 PyObject *resultobj = 0;
19222 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19223 bool result;
19224 void *argp1 = 0 ;
19225 int res1 = 0 ;
19226 PyObject *swig_obj[1] ;
19227
19228 if (!args) SWIG_fail;
19229 swig_obj[0] = args;
19230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19231 if (!SWIG_IsOK(res1)) {
19232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19233 }
19234 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19235 {
19236 PyThreadState* __tstate = wxPyBeginAllowThreads();
19237 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19238 wxPyEndAllowThreads(__tstate);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 {
19242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19243 }
19244 return resultobj;
19245 fail:
19246 return NULL;
19247 }
19248
19249
19250 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19251 PyObject *resultobj = 0;
19252 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19253 size_t arg2 ;
19254 bool result;
19255 void *argp1 = 0 ;
19256 int res1 = 0 ;
19257 size_t val2 ;
19258 int ecode2 = 0 ;
19259 PyObject * obj0 = 0 ;
19260 PyObject * obj1 = 0 ;
19261 char * kwnames[] = {
19262 (char *) "self",(char *) "n", NULL
19263 };
19264
19265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19267 if (!SWIG_IsOK(res1)) {
19268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19269 }
19270 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19271 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19272 if (!SWIG_IsOK(ecode2)) {
19273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19274 }
19275 arg2 = static_cast< size_t >(val2);
19276 {
19277 PyThreadState* __tstate = wxPyBeginAllowThreads();
19278 result = (bool)(arg1)->DeletePage(arg2);
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 {
19283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19284 }
19285 return resultobj;
19286 fail:
19287 return NULL;
19288 }
19289
19290
19291 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19292 PyObject *resultobj = 0;
19293 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19294 size_t arg2 ;
19295 bool result;
19296 void *argp1 = 0 ;
19297 int res1 = 0 ;
19298 size_t val2 ;
19299 int ecode2 = 0 ;
19300 PyObject * obj0 = 0 ;
19301 PyObject * obj1 = 0 ;
19302 char * kwnames[] = {
19303 (char *) "self",(char *) "n", NULL
19304 };
19305
19306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19308 if (!SWIG_IsOK(res1)) {
19309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19310 }
19311 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19312 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19313 if (!SWIG_IsOK(ecode2)) {
19314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19315 }
19316 arg2 = static_cast< size_t >(val2);
19317 {
19318 PyThreadState* __tstate = wxPyBeginAllowThreads();
19319 result = (bool)(arg1)->RemovePage(arg2);
19320 wxPyEndAllowThreads(__tstate);
19321 if (PyErr_Occurred()) SWIG_fail;
19322 }
19323 {
19324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19325 }
19326 return resultobj;
19327 fail:
19328 return NULL;
19329 }
19330
19331
19332 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19333 PyObject *resultobj = 0;
19334 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19335 bool result;
19336 void *argp1 = 0 ;
19337 int res1 = 0 ;
19338 PyObject *swig_obj[1] ;
19339
19340 if (!args) SWIG_fail;
19341 swig_obj[0] = args;
19342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19343 if (!SWIG_IsOK(res1)) {
19344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19345 }
19346 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19347 {
19348 PyThreadState* __tstate = wxPyBeginAllowThreads();
19349 result = (bool)(arg1)->DeleteAllPages();
19350 wxPyEndAllowThreads(__tstate);
19351 if (PyErr_Occurred()) SWIG_fail;
19352 }
19353 {
19354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19355 }
19356 return resultobj;
19357 fail:
19358 return NULL;
19359 }
19360
19361
19362 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19363 PyObject *resultobj = 0;
19364 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19365 wxWindow *arg2 = (wxWindow *) 0 ;
19366 wxString *arg3 = 0 ;
19367 bool arg4 = (bool) false ;
19368 int arg5 = (int) -1 ;
19369 bool result;
19370 void *argp1 = 0 ;
19371 int res1 = 0 ;
19372 void *argp2 = 0 ;
19373 int res2 = 0 ;
19374 bool temp3 = false ;
19375 bool val4 ;
19376 int ecode4 = 0 ;
19377 int val5 ;
19378 int ecode5 = 0 ;
19379 PyObject * obj0 = 0 ;
19380 PyObject * obj1 = 0 ;
19381 PyObject * obj2 = 0 ;
19382 PyObject * obj3 = 0 ;
19383 PyObject * obj4 = 0 ;
19384 char * kwnames[] = {
19385 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19386 };
19387
19388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19390 if (!SWIG_IsOK(res1)) {
19391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19392 }
19393 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19394 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19395 if (!SWIG_IsOK(res2)) {
19396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19397 }
19398 arg2 = reinterpret_cast< wxWindow * >(argp2);
19399 {
19400 arg3 = wxString_in_helper(obj2);
19401 if (arg3 == NULL) SWIG_fail;
19402 temp3 = true;
19403 }
19404 if (obj3) {
19405 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19406 if (!SWIG_IsOK(ecode4)) {
19407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19408 }
19409 arg4 = static_cast< bool >(val4);
19410 }
19411 if (obj4) {
19412 ecode5 = SWIG_AsVal_int(obj4, &val5);
19413 if (!SWIG_IsOK(ecode5)) {
19414 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19415 }
19416 arg5 = static_cast< int >(val5);
19417 }
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19421 wxPyEndAllowThreads(__tstate);
19422 if (PyErr_Occurred()) SWIG_fail;
19423 }
19424 {
19425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19426 }
19427 {
19428 if (temp3)
19429 delete arg3;
19430 }
19431 return resultobj;
19432 fail:
19433 {
19434 if (temp3)
19435 delete arg3;
19436 }
19437 return NULL;
19438 }
19439
19440
19441 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19442 PyObject *resultobj = 0;
19443 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19444 size_t arg2 ;
19445 wxWindow *arg3 = (wxWindow *) 0 ;
19446 wxString *arg4 = 0 ;
19447 bool arg5 = (bool) false ;
19448 int arg6 = (int) -1 ;
19449 bool result;
19450 void *argp1 = 0 ;
19451 int res1 = 0 ;
19452 size_t val2 ;
19453 int ecode2 = 0 ;
19454 void *argp3 = 0 ;
19455 int res3 = 0 ;
19456 bool temp4 = false ;
19457 bool val5 ;
19458 int ecode5 = 0 ;
19459 int val6 ;
19460 int ecode6 = 0 ;
19461 PyObject * obj0 = 0 ;
19462 PyObject * obj1 = 0 ;
19463 PyObject * obj2 = 0 ;
19464 PyObject * obj3 = 0 ;
19465 PyObject * obj4 = 0 ;
19466 PyObject * obj5 = 0 ;
19467 char * kwnames[] = {
19468 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19469 };
19470
19471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_InsertPage" "', 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_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19480 }
19481 arg2 = static_cast< size_t >(val2);
19482 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19483 if (!SWIG_IsOK(res3)) {
19484 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19485 }
19486 arg3 = reinterpret_cast< wxWindow * >(argp3);
19487 {
19488 arg4 = wxString_in_helper(obj3);
19489 if (arg4 == NULL) SWIG_fail;
19490 temp4 = true;
19491 }
19492 if (obj4) {
19493 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19494 if (!SWIG_IsOK(ecode5)) {
19495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19496 }
19497 arg5 = static_cast< bool >(val5);
19498 }
19499 if (obj5) {
19500 ecode6 = SWIG_AsVal_int(obj5, &val6);
19501 if (!SWIG_IsOK(ecode6)) {
19502 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19503 }
19504 arg6 = static_cast< int >(val6);
19505 }
19506 {
19507 PyThreadState* __tstate = wxPyBeginAllowThreads();
19508 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19509 wxPyEndAllowThreads(__tstate);
19510 if (PyErr_Occurred()) SWIG_fail;
19511 }
19512 {
19513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19514 }
19515 {
19516 if (temp4)
19517 delete arg4;
19518 }
19519 return resultobj;
19520 fail:
19521 {
19522 if (temp4)
19523 delete arg4;
19524 }
19525 return NULL;
19526 }
19527
19528
19529 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19530 PyObject *resultobj = 0;
19531 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19532 size_t arg2 ;
19533 int result;
19534 void *argp1 = 0 ;
19535 int res1 = 0 ;
19536 size_t val2 ;
19537 int ecode2 = 0 ;
19538 PyObject * obj0 = 0 ;
19539 PyObject * obj1 = 0 ;
19540 char * kwnames[] = {
19541 (char *) "self",(char *) "n", NULL
19542 };
19543
19544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19546 if (!SWIG_IsOK(res1)) {
19547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19548 }
19549 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19550 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19551 if (!SWIG_IsOK(ecode2)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19553 }
19554 arg2 = static_cast< size_t >(val2);
19555 {
19556 PyThreadState* __tstate = wxPyBeginAllowThreads();
19557 result = (int)(arg1)->SetSelection(arg2);
19558 wxPyEndAllowThreads(__tstate);
19559 if (PyErr_Occurred()) SWIG_fail;
19560 }
19561 resultobj = SWIG_From_int(static_cast< int >(result));
19562 return resultobj;
19563 fail:
19564 return NULL;
19565 }
19566
19567
19568 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19569 PyObject *resultobj = 0;
19570 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19571 bool arg2 = (bool) true ;
19572 void *argp1 = 0 ;
19573 int res1 = 0 ;
19574 bool val2 ;
19575 int ecode2 = 0 ;
19576 PyObject * obj0 = 0 ;
19577 PyObject * obj1 = 0 ;
19578 char * kwnames[] = {
19579 (char *) "self",(char *) "forward", NULL
19580 };
19581
19582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19584 if (!SWIG_IsOK(res1)) {
19585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19586 }
19587 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19588 if (obj1) {
19589 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19590 if (!SWIG_IsOK(ecode2)) {
19591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19592 }
19593 arg2 = static_cast< bool >(val2);
19594 }
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 (arg1)->AdvanceSelection(arg2);
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 resultobj = SWIG_Py_Void();
19602 return resultobj;
19603 fail:
19604 return NULL;
19605 }
19606
19607
19608 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19609 PyObject *resultobj = 0;
19610 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19611 SwigValueWrapper<wxVisualAttributes > result;
19612 int val1 ;
19613 int ecode1 = 0 ;
19614 PyObject * obj0 = 0 ;
19615 char * kwnames[] = {
19616 (char *) "variant", NULL
19617 };
19618
19619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19620 if (obj0) {
19621 ecode1 = SWIG_AsVal_int(obj0, &val1);
19622 if (!SWIG_IsOK(ecode1)) {
19623 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19624 }
19625 arg1 = static_cast< wxWindowVariant >(val1);
19626 }
19627 {
19628 if (!wxPyCheckForApp()) SWIG_fail;
19629 PyThreadState* __tstate = wxPyBeginAllowThreads();
19630 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19631 wxPyEndAllowThreads(__tstate);
19632 if (PyErr_Occurred()) SWIG_fail;
19633 }
19634 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19642 PyObject *obj;
19643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19644 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19645 return SWIG_Py_Void();
19646 }
19647
19648 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19649 PyObject *resultobj = 0;
19650 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19651 int arg2 = (int) 0 ;
19652 int arg3 = (int) -1 ;
19653 int arg4 = (int) -1 ;
19654 wxBookCtrlBaseEvent *result = 0 ;
19655 int val1 ;
19656 int ecode1 = 0 ;
19657 int val2 ;
19658 int ecode2 = 0 ;
19659 int val3 ;
19660 int ecode3 = 0 ;
19661 int val4 ;
19662 int ecode4 = 0 ;
19663 PyObject * obj0 = 0 ;
19664 PyObject * obj1 = 0 ;
19665 PyObject * obj2 = 0 ;
19666 PyObject * obj3 = 0 ;
19667 char * kwnames[] = {
19668 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
19669 };
19670
19671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19672 if (obj0) {
19673 ecode1 = SWIG_AsVal_int(obj0, &val1);
19674 if (!SWIG_IsOK(ecode1)) {
19675 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
19676 }
19677 arg1 = static_cast< wxEventType >(val1);
19678 }
19679 if (obj1) {
19680 ecode2 = SWIG_AsVal_int(obj1, &val2);
19681 if (!SWIG_IsOK(ecode2)) {
19682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
19683 }
19684 arg2 = static_cast< int >(val2);
19685 }
19686 if (obj2) {
19687 ecode3 = SWIG_AsVal_int(obj2, &val3);
19688 if (!SWIG_IsOK(ecode3)) {
19689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
19690 }
19691 arg3 = static_cast< int >(val3);
19692 }
19693 if (obj3) {
19694 ecode4 = SWIG_AsVal_int(obj3, &val4);
19695 if (!SWIG_IsOK(ecode4)) {
19696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
19697 }
19698 arg4 = static_cast< int >(val4);
19699 }
19700 {
19701 PyThreadState* __tstate = wxPyBeginAllowThreads();
19702 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
19703 wxPyEndAllowThreads(__tstate);
19704 if (PyErr_Occurred()) SWIG_fail;
19705 }
19706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
19707 return resultobj;
19708 fail:
19709 return NULL;
19710 }
19711
19712
19713 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19714 PyObject *resultobj = 0;
19715 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19716 int result;
19717 void *argp1 = 0 ;
19718 int res1 = 0 ;
19719 PyObject *swig_obj[1] ;
19720
19721 if (!args) SWIG_fail;
19722 swig_obj[0] = args;
19723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19724 if (!SWIG_IsOK(res1)) {
19725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19726 }
19727 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19728 {
19729 PyThreadState* __tstate = wxPyBeginAllowThreads();
19730 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
19731 wxPyEndAllowThreads(__tstate);
19732 if (PyErr_Occurred()) SWIG_fail;
19733 }
19734 resultobj = SWIG_From_int(static_cast< int >(result));
19735 return resultobj;
19736 fail:
19737 return NULL;
19738 }
19739
19740
19741 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19742 PyObject *resultobj = 0;
19743 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19744 int arg2 ;
19745 void *argp1 = 0 ;
19746 int res1 = 0 ;
19747 int val2 ;
19748 int ecode2 = 0 ;
19749 PyObject * obj0 = 0 ;
19750 PyObject * obj1 = 0 ;
19751 char * kwnames[] = {
19752 (char *) "self",(char *) "nSel", NULL
19753 };
19754
19755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19757 if (!SWIG_IsOK(res1)) {
19758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19759 }
19760 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19761 ecode2 = SWIG_AsVal_int(obj1, &val2);
19762 if (!SWIG_IsOK(ecode2)) {
19763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
19764 }
19765 arg2 = static_cast< int >(val2);
19766 {
19767 PyThreadState* __tstate = wxPyBeginAllowThreads();
19768 (arg1)->SetSelection(arg2);
19769 wxPyEndAllowThreads(__tstate);
19770 if (PyErr_Occurred()) SWIG_fail;
19771 }
19772 resultobj = SWIG_Py_Void();
19773 return resultobj;
19774 fail:
19775 return NULL;
19776 }
19777
19778
19779 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19780 PyObject *resultobj = 0;
19781 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19782 int result;
19783 void *argp1 = 0 ;
19784 int res1 = 0 ;
19785 PyObject *swig_obj[1] ;
19786
19787 if (!args) SWIG_fail;
19788 swig_obj[0] = args;
19789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19790 if (!SWIG_IsOK(res1)) {
19791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19792 }
19793 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 resultobj = SWIG_From_int(static_cast< int >(result));
19801 return resultobj;
19802 fail:
19803 return NULL;
19804 }
19805
19806
19807 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19808 PyObject *resultobj = 0;
19809 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19810 int arg2 ;
19811 void *argp1 = 0 ;
19812 int res1 = 0 ;
19813 int val2 ;
19814 int ecode2 = 0 ;
19815 PyObject * obj0 = 0 ;
19816 PyObject * obj1 = 0 ;
19817 char * kwnames[] = {
19818 (char *) "self",(char *) "nOldSel", NULL
19819 };
19820
19821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19823 if (!SWIG_IsOK(res1)) {
19824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19825 }
19826 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19827 ecode2 = SWIG_AsVal_int(obj1, &val2);
19828 if (!SWIG_IsOK(ecode2)) {
19829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
19830 }
19831 arg2 = static_cast< int >(val2);
19832 {
19833 PyThreadState* __tstate = wxPyBeginAllowThreads();
19834 (arg1)->SetOldSelection(arg2);
19835 wxPyEndAllowThreads(__tstate);
19836 if (PyErr_Occurred()) SWIG_fail;
19837 }
19838 resultobj = SWIG_Py_Void();
19839 return resultobj;
19840 fail:
19841 return NULL;
19842 }
19843
19844
19845 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19846 PyObject *obj;
19847 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19848 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
19849 return SWIG_Py_Void();
19850 }
19851
19852 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19853 return SWIG_Python_InitShadowInstance(args);
19854 }
19855
19856 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19857 PyObject *resultobj = 0;
19858 wxWindow *arg1 = (wxWindow *) 0 ;
19859 int arg2 = (int) -1 ;
19860 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19861 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19862 wxSize const &arg4_defvalue = wxDefaultSize ;
19863 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19864 long arg5 = (long) 0 ;
19865 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
19866 wxString *arg6 = (wxString *) &arg6_defvalue ;
19867 wxNotebook *result = 0 ;
19868 void *argp1 = 0 ;
19869 int res1 = 0 ;
19870 int val2 ;
19871 int ecode2 = 0 ;
19872 wxPoint temp3 ;
19873 wxSize temp4 ;
19874 long val5 ;
19875 int ecode5 = 0 ;
19876 bool temp6 = false ;
19877 PyObject * obj0 = 0 ;
19878 PyObject * obj1 = 0 ;
19879 PyObject * obj2 = 0 ;
19880 PyObject * obj3 = 0 ;
19881 PyObject * obj4 = 0 ;
19882 PyObject * obj5 = 0 ;
19883 char * kwnames[] = {
19884 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19885 };
19886
19887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
19889 if (!SWIG_IsOK(res1)) {
19890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
19891 }
19892 arg1 = reinterpret_cast< wxWindow * >(argp1);
19893 if (obj1) {
19894 ecode2 = SWIG_AsVal_int(obj1, &val2);
19895 if (!SWIG_IsOK(ecode2)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
19897 }
19898 arg2 = static_cast< int >(val2);
19899 }
19900 if (obj2) {
19901 {
19902 arg3 = &temp3;
19903 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19904 }
19905 }
19906 if (obj3) {
19907 {
19908 arg4 = &temp4;
19909 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19910 }
19911 }
19912 if (obj4) {
19913 ecode5 = SWIG_AsVal_long(obj4, &val5);
19914 if (!SWIG_IsOK(ecode5)) {
19915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
19916 }
19917 arg5 = static_cast< long >(val5);
19918 }
19919 if (obj5) {
19920 {
19921 arg6 = wxString_in_helper(obj5);
19922 if (arg6 == NULL) SWIG_fail;
19923 temp6 = true;
19924 }
19925 }
19926 {
19927 if (!wxPyCheckForApp()) SWIG_fail;
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
19934 {
19935 if (temp6)
19936 delete arg6;
19937 }
19938 return resultobj;
19939 fail:
19940 {
19941 if (temp6)
19942 delete arg6;
19943 }
19944 return NULL;
19945 }
19946
19947
19948 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19949 PyObject *resultobj = 0;
19950 wxNotebook *result = 0 ;
19951
19952 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
19953 {
19954 if (!wxPyCheckForApp()) SWIG_fail;
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 result = (wxNotebook *)new wxNotebook();
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj = 0;
19969 wxNotebook *arg1 = (wxNotebook *) 0 ;
19970 wxWindow *arg2 = (wxWindow *) 0 ;
19971 int arg3 = (int) -1 ;
19972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19974 wxSize const &arg5_defvalue = wxDefaultSize ;
19975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19976 long arg6 = (long) 0 ;
19977 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
19978 wxString *arg7 = (wxString *) &arg7_defvalue ;
19979 bool result;
19980 void *argp1 = 0 ;
19981 int res1 = 0 ;
19982 void *argp2 = 0 ;
19983 int res2 = 0 ;
19984 int val3 ;
19985 int ecode3 = 0 ;
19986 wxPoint temp4 ;
19987 wxSize temp5 ;
19988 long val6 ;
19989 int ecode6 = 0 ;
19990 bool temp7 = false ;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993 PyObject * obj2 = 0 ;
19994 PyObject * obj3 = 0 ;
19995 PyObject * obj4 = 0 ;
19996 PyObject * obj5 = 0 ;
19997 PyObject * obj6 = 0 ;
19998 char * kwnames[] = {
19999 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20000 };
20001
20002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20004 if (!SWIG_IsOK(res1)) {
20005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20006 }
20007 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20008 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20009 if (!SWIG_IsOK(res2)) {
20010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20011 }
20012 arg2 = reinterpret_cast< wxWindow * >(argp2);
20013 if (obj2) {
20014 ecode3 = SWIG_AsVal_int(obj2, &val3);
20015 if (!SWIG_IsOK(ecode3)) {
20016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20017 }
20018 arg3 = static_cast< int >(val3);
20019 }
20020 if (obj3) {
20021 {
20022 arg4 = &temp4;
20023 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20024 }
20025 }
20026 if (obj4) {
20027 {
20028 arg5 = &temp5;
20029 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20030 }
20031 }
20032 if (obj5) {
20033 ecode6 = SWIG_AsVal_long(obj5, &val6);
20034 if (!SWIG_IsOK(ecode6)) {
20035 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20036 }
20037 arg6 = static_cast< long >(val6);
20038 }
20039 if (obj6) {
20040 {
20041 arg7 = wxString_in_helper(obj6);
20042 if (arg7 == NULL) SWIG_fail;
20043 temp7 = true;
20044 }
20045 }
20046 {
20047 PyThreadState* __tstate = wxPyBeginAllowThreads();
20048 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20049 wxPyEndAllowThreads(__tstate);
20050 if (PyErr_Occurred()) SWIG_fail;
20051 }
20052 {
20053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20054 }
20055 {
20056 if (temp7)
20057 delete arg7;
20058 }
20059 return resultobj;
20060 fail:
20061 {
20062 if (temp7)
20063 delete arg7;
20064 }
20065 return NULL;
20066 }
20067
20068
20069 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20070 PyObject *resultobj = 0;
20071 wxNotebook *arg1 = (wxNotebook *) 0 ;
20072 int result;
20073 void *argp1 = 0 ;
20074 int res1 = 0 ;
20075 PyObject *swig_obj[1] ;
20076
20077 if (!args) SWIG_fail;
20078 swig_obj[0] = args;
20079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20080 if (!SWIG_IsOK(res1)) {
20081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20082 }
20083 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20084 {
20085 PyThreadState* __tstate = wxPyBeginAllowThreads();
20086 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20087 wxPyEndAllowThreads(__tstate);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 }
20090 resultobj = SWIG_From_int(static_cast< int >(result));
20091 return resultobj;
20092 fail:
20093 return NULL;
20094 }
20095
20096
20097 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20098 PyObject *resultobj = 0;
20099 wxNotebook *arg1 = (wxNotebook *) 0 ;
20100 wxSize *arg2 = 0 ;
20101 void *argp1 = 0 ;
20102 int res1 = 0 ;
20103 wxSize temp2 ;
20104 PyObject * obj0 = 0 ;
20105 PyObject * obj1 = 0 ;
20106 char * kwnames[] = {
20107 (char *) "self",(char *) "padding", NULL
20108 };
20109
20110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20112 if (!SWIG_IsOK(res1)) {
20113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20114 }
20115 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20116 {
20117 arg2 = &temp2;
20118 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20119 }
20120 {
20121 PyThreadState* __tstate = wxPyBeginAllowThreads();
20122 (arg1)->SetPadding((wxSize const &)*arg2);
20123 wxPyEndAllowThreads(__tstate);
20124 if (PyErr_Occurred()) SWIG_fail;
20125 }
20126 resultobj = SWIG_Py_Void();
20127 return resultobj;
20128 fail:
20129 return NULL;
20130 }
20131
20132
20133 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20134 PyObject *resultobj = 0;
20135 wxNotebook *arg1 = (wxNotebook *) 0 ;
20136 wxSize *arg2 = 0 ;
20137 void *argp1 = 0 ;
20138 int res1 = 0 ;
20139 wxSize temp2 ;
20140 PyObject * obj0 = 0 ;
20141 PyObject * obj1 = 0 ;
20142 char * kwnames[] = {
20143 (char *) "self",(char *) "sz", NULL
20144 };
20145
20146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20148 if (!SWIG_IsOK(res1)) {
20149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20150 }
20151 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20152 {
20153 arg2 = &temp2;
20154 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20155 }
20156 {
20157 PyThreadState* __tstate = wxPyBeginAllowThreads();
20158 (arg1)->SetTabSize((wxSize const &)*arg2);
20159 wxPyEndAllowThreads(__tstate);
20160 if (PyErr_Occurred()) SWIG_fail;
20161 }
20162 resultobj = SWIG_Py_Void();
20163 return resultobj;
20164 fail:
20165 return NULL;
20166 }
20167
20168
20169 SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20170 PyObject *resultobj = 0;
20171 wxNotebook *arg1 = (wxNotebook *) 0 ;
20172 wxPoint *arg2 = 0 ;
20173 long *arg3 = (long *) 0 ;
20174 int result;
20175 void *argp1 = 0 ;
20176 int res1 = 0 ;
20177 wxPoint temp2 ;
20178 long temp3 ;
20179 int res3 = SWIG_TMPOBJ ;
20180 PyObject * obj0 = 0 ;
20181 PyObject * obj1 = 0 ;
20182 char * kwnames[] = {
20183 (char *) "self",(char *) "pt", NULL
20184 };
20185
20186 arg3 = &temp3;
20187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20189 if (!SWIG_IsOK(res1)) {
20190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20191 }
20192 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20193 {
20194 arg2 = &temp2;
20195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20196 }
20197 {
20198 PyThreadState* __tstate = wxPyBeginAllowThreads();
20199 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20200 wxPyEndAllowThreads(__tstate);
20201 if (PyErr_Occurred()) SWIG_fail;
20202 }
20203 resultobj = SWIG_From_int(static_cast< int >(result));
20204 if (SWIG_IsTmpObj(res3)) {
20205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20206 } else {
20207 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20209 }
20210 return resultobj;
20211 fail:
20212 return NULL;
20213 }
20214
20215
20216 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20217 PyObject *resultobj = 0;
20218 wxNotebook *arg1 = (wxNotebook *) 0 ;
20219 wxColour result;
20220 void *argp1 = 0 ;
20221 int res1 = 0 ;
20222 PyObject *swig_obj[1] ;
20223
20224 if (!args) SWIG_fail;
20225 swig_obj[0] = args;
20226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20227 if (!SWIG_IsOK(res1)) {
20228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20229 }
20230 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20231 {
20232 PyThreadState* __tstate = wxPyBeginAllowThreads();
20233 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20234 wxPyEndAllowThreads(__tstate);
20235 if (PyErr_Occurred()) SWIG_fail;
20236 }
20237 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20238 return resultobj;
20239 fail:
20240 return NULL;
20241 }
20242
20243
20244 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20245 PyObject *resultobj = 0;
20246 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20247 SwigValueWrapper<wxVisualAttributes > result;
20248 int val1 ;
20249 int ecode1 = 0 ;
20250 PyObject * obj0 = 0 ;
20251 char * kwnames[] = {
20252 (char *) "variant", NULL
20253 };
20254
20255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20256 if (obj0) {
20257 ecode1 = SWIG_AsVal_int(obj0, &val1);
20258 if (!SWIG_IsOK(ecode1)) {
20259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20260 }
20261 arg1 = static_cast< wxWindowVariant >(val1);
20262 }
20263 {
20264 if (!wxPyCheckForApp()) SWIG_fail;
20265 PyThreadState* __tstate = wxPyBeginAllowThreads();
20266 result = wxNotebook::GetClassDefaultAttributes(arg1);
20267 wxPyEndAllowThreads(__tstate);
20268 if (PyErr_Occurred()) SWIG_fail;
20269 }
20270 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20271 return resultobj;
20272 fail:
20273 return NULL;
20274 }
20275
20276
20277 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20278 PyObject *obj;
20279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20280 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20281 return SWIG_Py_Void();
20282 }
20283
20284 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20285 return SWIG_Python_InitShadowInstance(args);
20286 }
20287
20288 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20289 PyObject *resultobj = 0;
20290 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20291 int arg2 = (int) 0 ;
20292 int arg3 = (int) -1 ;
20293 int arg4 = (int) -1 ;
20294 wxNotebookEvent *result = 0 ;
20295 int val1 ;
20296 int ecode1 = 0 ;
20297 int val2 ;
20298 int ecode2 = 0 ;
20299 int val3 ;
20300 int ecode3 = 0 ;
20301 int val4 ;
20302 int ecode4 = 0 ;
20303 PyObject * obj0 = 0 ;
20304 PyObject * obj1 = 0 ;
20305 PyObject * obj2 = 0 ;
20306 PyObject * obj3 = 0 ;
20307 char * kwnames[] = {
20308 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20309 };
20310
20311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20312 if (obj0) {
20313 ecode1 = SWIG_AsVal_int(obj0, &val1);
20314 if (!SWIG_IsOK(ecode1)) {
20315 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20316 }
20317 arg1 = static_cast< wxEventType >(val1);
20318 }
20319 if (obj1) {
20320 ecode2 = SWIG_AsVal_int(obj1, &val2);
20321 if (!SWIG_IsOK(ecode2)) {
20322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20323 }
20324 arg2 = static_cast< int >(val2);
20325 }
20326 if (obj2) {
20327 ecode3 = SWIG_AsVal_int(obj2, &val3);
20328 if (!SWIG_IsOK(ecode3)) {
20329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20330 }
20331 arg3 = static_cast< int >(val3);
20332 }
20333 if (obj3) {
20334 ecode4 = SWIG_AsVal_int(obj3, &val4);
20335 if (!SWIG_IsOK(ecode4)) {
20336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20337 }
20338 arg4 = static_cast< int >(val4);
20339 }
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20343 wxPyEndAllowThreads(__tstate);
20344 if (PyErr_Occurred()) SWIG_fail;
20345 }
20346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20347 return resultobj;
20348 fail:
20349 return NULL;
20350 }
20351
20352
20353 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20354 PyObject *obj;
20355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20356 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20357 return SWIG_Py_Void();
20358 }
20359
20360 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20361 return SWIG_Python_InitShadowInstance(args);
20362 }
20363
20364 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20365 PyObject *resultobj = 0;
20366 wxWindow *arg1 = (wxWindow *) 0 ;
20367 int arg2 = (int) -1 ;
20368 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20369 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20370 wxSize const &arg4_defvalue = wxDefaultSize ;
20371 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20372 long arg5 = (long) 0 ;
20373 wxString const &arg6_defvalue = wxPyEmptyString ;
20374 wxString *arg6 = (wxString *) &arg6_defvalue ;
20375 wxListbook *result = 0 ;
20376 void *argp1 = 0 ;
20377 int res1 = 0 ;
20378 int val2 ;
20379 int ecode2 = 0 ;
20380 wxPoint temp3 ;
20381 wxSize temp4 ;
20382 long val5 ;
20383 int ecode5 = 0 ;
20384 bool temp6 = false ;
20385 PyObject * obj0 = 0 ;
20386 PyObject * obj1 = 0 ;
20387 PyObject * obj2 = 0 ;
20388 PyObject * obj3 = 0 ;
20389 PyObject * obj4 = 0 ;
20390 PyObject * obj5 = 0 ;
20391 char * kwnames[] = {
20392 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20393 };
20394
20395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20397 if (!SWIG_IsOK(res1)) {
20398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20399 }
20400 arg1 = reinterpret_cast< wxWindow * >(argp1);
20401 if (obj1) {
20402 ecode2 = SWIG_AsVal_int(obj1, &val2);
20403 if (!SWIG_IsOK(ecode2)) {
20404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20405 }
20406 arg2 = static_cast< int >(val2);
20407 }
20408 if (obj2) {
20409 {
20410 arg3 = &temp3;
20411 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20412 }
20413 }
20414 if (obj3) {
20415 {
20416 arg4 = &temp4;
20417 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20418 }
20419 }
20420 if (obj4) {
20421 ecode5 = SWIG_AsVal_long(obj4, &val5);
20422 if (!SWIG_IsOK(ecode5)) {
20423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20424 }
20425 arg5 = static_cast< long >(val5);
20426 }
20427 if (obj5) {
20428 {
20429 arg6 = wxString_in_helper(obj5);
20430 if (arg6 == NULL) SWIG_fail;
20431 temp6 = true;
20432 }
20433 }
20434 {
20435 if (!wxPyCheckForApp()) SWIG_fail;
20436 PyThreadState* __tstate = wxPyBeginAllowThreads();
20437 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20438 wxPyEndAllowThreads(__tstate);
20439 if (PyErr_Occurred()) SWIG_fail;
20440 }
20441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20442 {
20443 if (temp6)
20444 delete arg6;
20445 }
20446 return resultobj;
20447 fail:
20448 {
20449 if (temp6)
20450 delete arg6;
20451 }
20452 return NULL;
20453 }
20454
20455
20456 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20457 PyObject *resultobj = 0;
20458 wxListbook *result = 0 ;
20459
20460 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20461 {
20462 if (!wxPyCheckForApp()) SWIG_fail;
20463 PyThreadState* __tstate = wxPyBeginAllowThreads();
20464 result = (wxListbook *)new wxListbook();
20465 wxPyEndAllowThreads(__tstate);
20466 if (PyErr_Occurred()) SWIG_fail;
20467 }
20468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20469 return resultobj;
20470 fail:
20471 return NULL;
20472 }
20473
20474
20475 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20476 PyObject *resultobj = 0;
20477 wxListbook *arg1 = (wxListbook *) 0 ;
20478 wxWindow *arg2 = (wxWindow *) 0 ;
20479 int arg3 = (int) -1 ;
20480 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20481 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20482 wxSize const &arg5_defvalue = wxDefaultSize ;
20483 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20484 long arg6 = (long) 0 ;
20485 wxString const &arg7_defvalue = wxPyEmptyString ;
20486 wxString *arg7 = (wxString *) &arg7_defvalue ;
20487 bool result;
20488 void *argp1 = 0 ;
20489 int res1 = 0 ;
20490 void *argp2 = 0 ;
20491 int res2 = 0 ;
20492 int val3 ;
20493 int ecode3 = 0 ;
20494 wxPoint temp4 ;
20495 wxSize temp5 ;
20496 long val6 ;
20497 int ecode6 = 0 ;
20498 bool temp7 = false ;
20499 PyObject * obj0 = 0 ;
20500 PyObject * obj1 = 0 ;
20501 PyObject * obj2 = 0 ;
20502 PyObject * obj3 = 0 ;
20503 PyObject * obj4 = 0 ;
20504 PyObject * obj5 = 0 ;
20505 PyObject * obj6 = 0 ;
20506 char * kwnames[] = {
20507 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20508 };
20509
20510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20512 if (!SWIG_IsOK(res1)) {
20513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20514 }
20515 arg1 = reinterpret_cast< wxListbook * >(argp1);
20516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20517 if (!SWIG_IsOK(res2)) {
20518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20519 }
20520 arg2 = reinterpret_cast< wxWindow * >(argp2);
20521 if (obj2) {
20522 ecode3 = SWIG_AsVal_int(obj2, &val3);
20523 if (!SWIG_IsOK(ecode3)) {
20524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20525 }
20526 arg3 = static_cast< int >(val3);
20527 }
20528 if (obj3) {
20529 {
20530 arg4 = &temp4;
20531 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20532 }
20533 }
20534 if (obj4) {
20535 {
20536 arg5 = &temp5;
20537 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20538 }
20539 }
20540 if (obj5) {
20541 ecode6 = SWIG_AsVal_long(obj5, &val6);
20542 if (!SWIG_IsOK(ecode6)) {
20543 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20544 }
20545 arg6 = static_cast< long >(val6);
20546 }
20547 if (obj6) {
20548 {
20549 arg7 = wxString_in_helper(obj6);
20550 if (arg7 == NULL) SWIG_fail;
20551 temp7 = true;
20552 }
20553 }
20554 {
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20557 wxPyEndAllowThreads(__tstate);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 }
20560 {
20561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20562 }
20563 {
20564 if (temp7)
20565 delete arg7;
20566 }
20567 return resultobj;
20568 fail:
20569 {
20570 if (temp7)
20571 delete arg7;
20572 }
20573 return NULL;
20574 }
20575
20576
20577 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20578 PyObject *resultobj = 0;
20579 wxListbook *arg1 = (wxListbook *) 0 ;
20580 wxListView *result = 0 ;
20581 void *argp1 = 0 ;
20582 int res1 = 0 ;
20583 PyObject *swig_obj[1] ;
20584
20585 if (!args) SWIG_fail;
20586 swig_obj[0] = args;
20587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20588 if (!SWIG_IsOK(res1)) {
20589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20590 }
20591 arg1 = reinterpret_cast< wxListbook * >(argp1);
20592 {
20593 PyThreadState* __tstate = wxPyBeginAllowThreads();
20594 result = (wxListView *)(arg1)->GetListView();
20595 wxPyEndAllowThreads(__tstate);
20596 if (PyErr_Occurred()) SWIG_fail;
20597 }
20598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20599 return resultobj;
20600 fail:
20601 return NULL;
20602 }
20603
20604
20605 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 PyObject *obj;
20607 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20608 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20609 return SWIG_Py_Void();
20610 }
20611
20612 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20613 return SWIG_Python_InitShadowInstance(args);
20614 }
20615
20616 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj = 0;
20618 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20619 int arg2 = (int) 0 ;
20620 int arg3 = (int) -1 ;
20621 int arg4 = (int) -1 ;
20622 wxListbookEvent *result = 0 ;
20623 int val1 ;
20624 int ecode1 = 0 ;
20625 int val2 ;
20626 int ecode2 = 0 ;
20627 int val3 ;
20628 int ecode3 = 0 ;
20629 int val4 ;
20630 int ecode4 = 0 ;
20631 PyObject * obj0 = 0 ;
20632 PyObject * obj1 = 0 ;
20633 PyObject * obj2 = 0 ;
20634 PyObject * obj3 = 0 ;
20635 char * kwnames[] = {
20636 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20637 };
20638
20639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20640 if (obj0) {
20641 ecode1 = SWIG_AsVal_int(obj0, &val1);
20642 if (!SWIG_IsOK(ecode1)) {
20643 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20644 }
20645 arg1 = static_cast< wxEventType >(val1);
20646 }
20647 if (obj1) {
20648 ecode2 = SWIG_AsVal_int(obj1, &val2);
20649 if (!SWIG_IsOK(ecode2)) {
20650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20651 }
20652 arg2 = static_cast< int >(val2);
20653 }
20654 if (obj2) {
20655 ecode3 = SWIG_AsVal_int(obj2, &val3);
20656 if (!SWIG_IsOK(ecode3)) {
20657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20658 }
20659 arg3 = static_cast< int >(val3);
20660 }
20661 if (obj3) {
20662 ecode4 = SWIG_AsVal_int(obj3, &val4);
20663 if (!SWIG_IsOK(ecode4)) {
20664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20665 }
20666 arg4 = static_cast< int >(val4);
20667 }
20668 {
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20675 return resultobj;
20676 fail:
20677 return NULL;
20678 }
20679
20680
20681 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20682 PyObject *obj;
20683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20684 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20685 return SWIG_Py_Void();
20686 }
20687
20688 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20689 return SWIG_Python_InitShadowInstance(args);
20690 }
20691
20692 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20693 PyObject *resultobj = 0;
20694 wxWindow *arg1 = (wxWindow *) 0 ;
20695 int arg2 ;
20696 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20697 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20698 wxSize const &arg4_defvalue = wxDefaultSize ;
20699 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20700 long arg5 = (long) 0 ;
20701 wxString const &arg6_defvalue = wxPyEmptyString ;
20702 wxString *arg6 = (wxString *) &arg6_defvalue ;
20703 wxChoicebook *result = 0 ;
20704 void *argp1 = 0 ;
20705 int res1 = 0 ;
20706 int val2 ;
20707 int ecode2 = 0 ;
20708 wxPoint temp3 ;
20709 wxSize temp4 ;
20710 long val5 ;
20711 int ecode5 = 0 ;
20712 bool temp6 = false ;
20713 PyObject * obj0 = 0 ;
20714 PyObject * obj1 = 0 ;
20715 PyObject * obj2 = 0 ;
20716 PyObject * obj3 = 0 ;
20717 PyObject * obj4 = 0 ;
20718 PyObject * obj5 = 0 ;
20719 char * kwnames[] = {
20720 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20721 };
20722
20723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20725 if (!SWIG_IsOK(res1)) {
20726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20727 }
20728 arg1 = reinterpret_cast< wxWindow * >(argp1);
20729 ecode2 = SWIG_AsVal_int(obj1, &val2);
20730 if (!SWIG_IsOK(ecode2)) {
20731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
20732 }
20733 arg2 = static_cast< int >(val2);
20734 if (obj2) {
20735 {
20736 arg3 = &temp3;
20737 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20738 }
20739 }
20740 if (obj3) {
20741 {
20742 arg4 = &temp4;
20743 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20744 }
20745 }
20746 if (obj4) {
20747 ecode5 = SWIG_AsVal_long(obj4, &val5);
20748 if (!SWIG_IsOK(ecode5)) {
20749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
20750 }
20751 arg5 = static_cast< long >(val5);
20752 }
20753 if (obj5) {
20754 {
20755 arg6 = wxString_in_helper(obj5);
20756 if (arg6 == NULL) SWIG_fail;
20757 temp6 = true;
20758 }
20759 }
20760 {
20761 if (!wxPyCheckForApp()) SWIG_fail;
20762 PyThreadState* __tstate = wxPyBeginAllowThreads();
20763 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20764 wxPyEndAllowThreads(__tstate);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 }
20767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
20768 {
20769 if (temp6)
20770 delete arg6;
20771 }
20772 return resultobj;
20773 fail:
20774 {
20775 if (temp6)
20776 delete arg6;
20777 }
20778 return NULL;
20779 }
20780
20781
20782 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20783 PyObject *resultobj = 0;
20784 wxChoicebook *result = 0 ;
20785
20786 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
20787 {
20788 if (!wxPyCheckForApp()) SWIG_fail;
20789 PyThreadState* __tstate = wxPyBeginAllowThreads();
20790 result = (wxChoicebook *)new wxChoicebook();
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
20795 return resultobj;
20796 fail:
20797 return NULL;
20798 }
20799
20800
20801 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20802 PyObject *resultobj = 0;
20803 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
20804 wxWindow *arg2 = (wxWindow *) 0 ;
20805 int arg3 ;
20806 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20807 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20808 wxSize const &arg5_defvalue = wxDefaultSize ;
20809 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20810 long arg6 = (long) 0 ;
20811 wxString const &arg7_defvalue = wxPyEmptyString ;
20812 wxString *arg7 = (wxString *) &arg7_defvalue ;
20813 bool result;
20814 void *argp1 = 0 ;
20815 int res1 = 0 ;
20816 void *argp2 = 0 ;
20817 int res2 = 0 ;
20818 int val3 ;
20819 int ecode3 = 0 ;
20820 wxPoint temp4 ;
20821 wxSize temp5 ;
20822 long val6 ;
20823 int ecode6 = 0 ;
20824 bool temp7 = false ;
20825 PyObject * obj0 = 0 ;
20826 PyObject * obj1 = 0 ;
20827 PyObject * obj2 = 0 ;
20828 PyObject * obj3 = 0 ;
20829 PyObject * obj4 = 0 ;
20830 PyObject * obj5 = 0 ;
20831 PyObject * obj6 = 0 ;
20832 char * kwnames[] = {
20833 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20834 };
20835
20836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
20838 if (!SWIG_IsOK(res1)) {
20839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
20840 }
20841 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
20842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20843 if (!SWIG_IsOK(res2)) {
20844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20845 }
20846 arg2 = reinterpret_cast< wxWindow * >(argp2);
20847 ecode3 = SWIG_AsVal_int(obj2, &val3);
20848 if (!SWIG_IsOK(ecode3)) {
20849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
20850 }
20851 arg3 = static_cast< int >(val3);
20852 if (obj3) {
20853 {
20854 arg4 = &temp4;
20855 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20856 }
20857 }
20858 if (obj4) {
20859 {
20860 arg5 = &temp5;
20861 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20862 }
20863 }
20864 if (obj5) {
20865 ecode6 = SWIG_AsVal_long(obj5, &val6);
20866 if (!SWIG_IsOK(ecode6)) {
20867 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
20868 }
20869 arg6 = static_cast< long >(val6);
20870 }
20871 if (obj6) {
20872 {
20873 arg7 = wxString_in_helper(obj6);
20874 if (arg7 == NULL) SWIG_fail;
20875 temp7 = true;
20876 }
20877 }
20878 {
20879 PyThreadState* __tstate = wxPyBeginAllowThreads();
20880 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20881 wxPyEndAllowThreads(__tstate);
20882 if (PyErr_Occurred()) SWIG_fail;
20883 }
20884 {
20885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20886 }
20887 {
20888 if (temp7)
20889 delete arg7;
20890 }
20891 return resultobj;
20892 fail:
20893 {
20894 if (temp7)
20895 delete arg7;
20896 }
20897 return NULL;
20898 }
20899
20900
20901 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20902 PyObject *resultobj = 0;
20903 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
20904 wxChoice *result = 0 ;
20905 void *argp1 = 0 ;
20906 int res1 = 0 ;
20907 PyObject *swig_obj[1] ;
20908
20909 if (!args) SWIG_fail;
20910 swig_obj[0] = args;
20911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
20912 if (!SWIG_IsOK(res1)) {
20913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
20914 }
20915 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
20916 {
20917 PyThreadState* __tstate = wxPyBeginAllowThreads();
20918 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
20919 wxPyEndAllowThreads(__tstate);
20920 if (PyErr_Occurred()) SWIG_fail;
20921 }
20922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
20923 return resultobj;
20924 fail:
20925 return NULL;
20926 }
20927
20928
20929 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20930 PyObject *obj;
20931 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20932 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
20933 return SWIG_Py_Void();
20934 }
20935
20936 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20937 return SWIG_Python_InitShadowInstance(args);
20938 }
20939
20940 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20941 PyObject *resultobj = 0;
20942 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20943 int arg2 = (int) 0 ;
20944 int arg3 = (int) -1 ;
20945 int arg4 = (int) -1 ;
20946 wxChoicebookEvent *result = 0 ;
20947 int val1 ;
20948 int ecode1 = 0 ;
20949 int val2 ;
20950 int ecode2 = 0 ;
20951 int val3 ;
20952 int ecode3 = 0 ;
20953 int val4 ;
20954 int ecode4 = 0 ;
20955 PyObject * obj0 = 0 ;
20956 PyObject * obj1 = 0 ;
20957 PyObject * obj2 = 0 ;
20958 PyObject * obj3 = 0 ;
20959 char * kwnames[] = {
20960 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20961 };
20962
20963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20964 if (obj0) {
20965 ecode1 = SWIG_AsVal_int(obj0, &val1);
20966 if (!SWIG_IsOK(ecode1)) {
20967 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20968 }
20969 arg1 = static_cast< wxEventType >(val1);
20970 }
20971 if (obj1) {
20972 ecode2 = SWIG_AsVal_int(obj1, &val2);
20973 if (!SWIG_IsOK(ecode2)) {
20974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
20975 }
20976 arg2 = static_cast< int >(val2);
20977 }
20978 if (obj2) {
20979 ecode3 = SWIG_AsVal_int(obj2, &val3);
20980 if (!SWIG_IsOK(ecode3)) {
20981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
20982 }
20983 arg3 = static_cast< int >(val3);
20984 }
20985 if (obj3) {
20986 ecode4 = SWIG_AsVal_int(obj3, &val4);
20987 if (!SWIG_IsOK(ecode4)) {
20988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
20989 }
20990 arg4 = static_cast< int >(val4);
20991 }
20992 {
20993 PyThreadState* __tstate = wxPyBeginAllowThreads();
20994 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
20995 wxPyEndAllowThreads(__tstate);
20996 if (PyErr_Occurred()) SWIG_fail;
20997 }
20998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
20999 return resultobj;
21000 fail:
21001 return NULL;
21002 }
21003
21004
21005 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21006 PyObject *obj;
21007 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21008 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21009 return SWIG_Py_Void();
21010 }
21011
21012 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21013 return SWIG_Python_InitShadowInstance(args);
21014 }
21015
21016 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21017 PyObject *resultobj = 0;
21018 wxWindow *arg1 = (wxWindow *) 0 ;
21019 int arg2 ;
21020 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21021 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21022 wxSize const &arg4_defvalue = wxDefaultSize ;
21023 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21024 long arg5 = (long) wxBK_DEFAULT ;
21025 wxString const &arg6_defvalue = wxPyEmptyString ;
21026 wxString *arg6 = (wxString *) &arg6_defvalue ;
21027 wxTreebook *result = 0 ;
21028 void *argp1 = 0 ;
21029 int res1 = 0 ;
21030 int val2 ;
21031 int ecode2 = 0 ;
21032 wxPoint temp3 ;
21033 wxSize temp4 ;
21034 long val5 ;
21035 int ecode5 = 0 ;
21036 bool temp6 = false ;
21037 PyObject * obj0 = 0 ;
21038 PyObject * obj1 = 0 ;
21039 PyObject * obj2 = 0 ;
21040 PyObject * obj3 = 0 ;
21041 PyObject * obj4 = 0 ;
21042 PyObject * obj5 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21051 }
21052 arg1 = reinterpret_cast< wxWindow * >(argp1);
21053 ecode2 = SWIG_AsVal_int(obj1, &val2);
21054 if (!SWIG_IsOK(ecode2)) {
21055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21056 }
21057 arg2 = static_cast< int >(val2);
21058 if (obj2) {
21059 {
21060 arg3 = &temp3;
21061 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21062 }
21063 }
21064 if (obj3) {
21065 {
21066 arg4 = &temp4;
21067 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21068 }
21069 }
21070 if (obj4) {
21071 ecode5 = SWIG_AsVal_long(obj4, &val5);
21072 if (!SWIG_IsOK(ecode5)) {
21073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21074 }
21075 arg5 = static_cast< long >(val5);
21076 }
21077 if (obj5) {
21078 {
21079 arg6 = wxString_in_helper(obj5);
21080 if (arg6 == NULL) SWIG_fail;
21081 temp6 = true;
21082 }
21083 }
21084 {
21085 if (!wxPyCheckForApp()) SWIG_fail;
21086 PyThreadState* __tstate = wxPyBeginAllowThreads();
21087 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21088 wxPyEndAllowThreads(__tstate);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21092 {
21093 if (temp6)
21094 delete arg6;
21095 }
21096 return resultobj;
21097 fail:
21098 {
21099 if (temp6)
21100 delete arg6;
21101 }
21102 return NULL;
21103 }
21104
21105
21106 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21107 PyObject *resultobj = 0;
21108 wxTreebook *result = 0 ;
21109
21110 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21111 {
21112 if (!wxPyCheckForApp()) SWIG_fail;
21113 PyThreadState* __tstate = wxPyBeginAllowThreads();
21114 result = (wxTreebook *)new wxTreebook();
21115 wxPyEndAllowThreads(__tstate);
21116 if (PyErr_Occurred()) SWIG_fail;
21117 }
21118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21119 return resultobj;
21120 fail:
21121 return NULL;
21122 }
21123
21124
21125 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21126 PyObject *resultobj = 0;
21127 wxTreebook *arg1 = (wxTreebook *) 0 ;
21128 wxWindow *arg2 = (wxWindow *) 0 ;
21129 int arg3 ;
21130 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21131 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21132 wxSize const &arg5_defvalue = wxDefaultSize ;
21133 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21134 long arg6 = (long) wxBK_DEFAULT ;
21135 wxString const &arg7_defvalue = wxPyEmptyString ;
21136 wxString *arg7 = (wxString *) &arg7_defvalue ;
21137 bool result;
21138 void *argp1 = 0 ;
21139 int res1 = 0 ;
21140 void *argp2 = 0 ;
21141 int res2 = 0 ;
21142 int val3 ;
21143 int ecode3 = 0 ;
21144 wxPoint temp4 ;
21145 wxSize temp5 ;
21146 long val6 ;
21147 int ecode6 = 0 ;
21148 bool temp7 = false ;
21149 PyObject * obj0 = 0 ;
21150 PyObject * obj1 = 0 ;
21151 PyObject * obj2 = 0 ;
21152 PyObject * obj3 = 0 ;
21153 PyObject * obj4 = 0 ;
21154 PyObject * obj5 = 0 ;
21155 PyObject * obj6 = 0 ;
21156 char * kwnames[] = {
21157 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21158 };
21159
21160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21162 if (!SWIG_IsOK(res1)) {
21163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21164 }
21165 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21166 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21167 if (!SWIG_IsOK(res2)) {
21168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21169 }
21170 arg2 = reinterpret_cast< wxWindow * >(argp2);
21171 ecode3 = SWIG_AsVal_int(obj2, &val3);
21172 if (!SWIG_IsOK(ecode3)) {
21173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21174 }
21175 arg3 = static_cast< int >(val3);
21176 if (obj3) {
21177 {
21178 arg4 = &temp4;
21179 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21180 }
21181 }
21182 if (obj4) {
21183 {
21184 arg5 = &temp5;
21185 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21186 }
21187 }
21188 if (obj5) {
21189 ecode6 = SWIG_AsVal_long(obj5, &val6);
21190 if (!SWIG_IsOK(ecode6)) {
21191 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21192 }
21193 arg6 = static_cast< long >(val6);
21194 }
21195 if (obj6) {
21196 {
21197 arg7 = wxString_in_helper(obj6);
21198 if (arg7 == NULL) SWIG_fail;
21199 temp7 = true;
21200 }
21201 }
21202 {
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21205 wxPyEndAllowThreads(__tstate);
21206 if (PyErr_Occurred()) SWIG_fail;
21207 }
21208 {
21209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21210 }
21211 {
21212 if (temp7)
21213 delete arg7;
21214 }
21215 return resultobj;
21216 fail:
21217 {
21218 if (temp7)
21219 delete arg7;
21220 }
21221 return NULL;
21222 }
21223
21224
21225 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21226 PyObject *resultobj = 0;
21227 wxTreebook *arg1 = (wxTreebook *) 0 ;
21228 size_t arg2 ;
21229 wxWindow *arg3 = (wxWindow *) 0 ;
21230 wxString *arg4 = 0 ;
21231 bool arg5 = (bool) false ;
21232 int arg6 = (int) wxNOT_FOUND ;
21233 bool result;
21234 void *argp1 = 0 ;
21235 int res1 = 0 ;
21236 size_t val2 ;
21237 int ecode2 = 0 ;
21238 void *argp3 = 0 ;
21239 int res3 = 0 ;
21240 bool temp4 = false ;
21241 bool val5 ;
21242 int ecode5 = 0 ;
21243 int val6 ;
21244 int ecode6 = 0 ;
21245 PyObject * obj0 = 0 ;
21246 PyObject * obj1 = 0 ;
21247 PyObject * obj2 = 0 ;
21248 PyObject * obj3 = 0 ;
21249 PyObject * obj4 = 0 ;
21250 PyObject * obj5 = 0 ;
21251 char * kwnames[] = {
21252 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21253 };
21254
21255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21257 if (!SWIG_IsOK(res1)) {
21258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21259 }
21260 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21261 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21262 if (!SWIG_IsOK(ecode2)) {
21263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21264 }
21265 arg2 = static_cast< size_t >(val2);
21266 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21267 if (!SWIG_IsOK(res3)) {
21268 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21269 }
21270 arg3 = reinterpret_cast< wxWindow * >(argp3);
21271 {
21272 arg4 = wxString_in_helper(obj3);
21273 if (arg4 == NULL) SWIG_fail;
21274 temp4 = true;
21275 }
21276 if (obj4) {
21277 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21278 if (!SWIG_IsOK(ecode5)) {
21279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21280 }
21281 arg5 = static_cast< bool >(val5);
21282 }
21283 if (obj5) {
21284 ecode6 = SWIG_AsVal_int(obj5, &val6);
21285 if (!SWIG_IsOK(ecode6)) {
21286 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21287 }
21288 arg6 = static_cast< int >(val6);
21289 }
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 {
21297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21298 }
21299 {
21300 if (temp4)
21301 delete arg4;
21302 }
21303 return resultobj;
21304 fail:
21305 {
21306 if (temp4)
21307 delete arg4;
21308 }
21309 return NULL;
21310 }
21311
21312
21313 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21314 PyObject *resultobj = 0;
21315 wxTreebook *arg1 = (wxTreebook *) 0 ;
21316 wxWindow *arg2 = (wxWindow *) 0 ;
21317 wxString *arg3 = 0 ;
21318 bool arg4 = (bool) false ;
21319 int arg5 = (int) wxNOT_FOUND ;
21320 bool result;
21321 void *argp1 = 0 ;
21322 int res1 = 0 ;
21323 void *argp2 = 0 ;
21324 int res2 = 0 ;
21325 bool temp3 = false ;
21326 bool val4 ;
21327 int ecode4 = 0 ;
21328 int val5 ;
21329 int ecode5 = 0 ;
21330 PyObject * obj0 = 0 ;
21331 PyObject * obj1 = 0 ;
21332 PyObject * obj2 = 0 ;
21333 PyObject * obj3 = 0 ;
21334 PyObject * obj4 = 0 ;
21335 char * kwnames[] = {
21336 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21337 };
21338
21339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21341 if (!SWIG_IsOK(res1)) {
21342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21343 }
21344 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21345 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21346 if (!SWIG_IsOK(res2)) {
21347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21348 }
21349 arg2 = reinterpret_cast< wxWindow * >(argp2);
21350 {
21351 arg3 = wxString_in_helper(obj2);
21352 if (arg3 == NULL) SWIG_fail;
21353 temp3 = true;
21354 }
21355 if (obj3) {
21356 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21357 if (!SWIG_IsOK(ecode4)) {
21358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21359 }
21360 arg4 = static_cast< bool >(val4);
21361 }
21362 if (obj4) {
21363 ecode5 = SWIG_AsVal_int(obj4, &val5);
21364 if (!SWIG_IsOK(ecode5)) {
21365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21366 }
21367 arg5 = static_cast< int >(val5);
21368 }
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21372 wxPyEndAllowThreads(__tstate);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 {
21376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21377 }
21378 {
21379 if (temp3)
21380 delete arg3;
21381 }
21382 return resultobj;
21383 fail:
21384 {
21385 if (temp3)
21386 delete arg3;
21387 }
21388 return NULL;
21389 }
21390
21391
21392 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21393 PyObject *resultobj = 0;
21394 wxTreebook *arg1 = (wxTreebook *) 0 ;
21395 size_t arg2 ;
21396 bool result;
21397 void *argp1 = 0 ;
21398 int res1 = 0 ;
21399 size_t val2 ;
21400 int ecode2 = 0 ;
21401 PyObject * obj0 = 0 ;
21402 PyObject * obj1 = 0 ;
21403 char * kwnames[] = {
21404 (char *) "self",(char *) "pos", NULL
21405 };
21406
21407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21409 if (!SWIG_IsOK(res1)) {
21410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21411 }
21412 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21413 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21414 if (!SWIG_IsOK(ecode2)) {
21415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21416 }
21417 arg2 = static_cast< size_t >(val2);
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21421 wxPyEndAllowThreads(__tstate);
21422 if (PyErr_Occurred()) SWIG_fail;
21423 }
21424 {
21425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21426 }
21427 return resultobj;
21428 fail:
21429 return NULL;
21430 }
21431
21432
21433 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21434 PyObject *resultobj = 0;
21435 wxTreebook *arg1 = (wxTreebook *) 0 ;
21436 size_t arg2 ;
21437 bool arg3 = (bool) true ;
21438 bool result;
21439 void *argp1 = 0 ;
21440 int res1 = 0 ;
21441 size_t val2 ;
21442 int ecode2 = 0 ;
21443 bool val3 ;
21444 int ecode3 = 0 ;
21445 PyObject * obj0 = 0 ;
21446 PyObject * obj1 = 0 ;
21447 PyObject * obj2 = 0 ;
21448 char * kwnames[] = {
21449 (char *) "self",(char *) "pos",(char *) "expand", NULL
21450 };
21451
21452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21454 if (!SWIG_IsOK(res1)) {
21455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21456 }
21457 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21458 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21459 if (!SWIG_IsOK(ecode2)) {
21460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21461 }
21462 arg2 = static_cast< size_t >(val2);
21463 if (obj2) {
21464 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21465 if (!SWIG_IsOK(ecode3)) {
21466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21467 }
21468 arg3 = static_cast< bool >(val3);
21469 }
21470 {
21471 PyThreadState* __tstate = wxPyBeginAllowThreads();
21472 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21473 wxPyEndAllowThreads(__tstate);
21474 if (PyErr_Occurred()) SWIG_fail;
21475 }
21476 {
21477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21478 }
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj = 0;
21487 wxTreebook *arg1 = (wxTreebook *) 0 ;
21488 size_t arg2 ;
21489 bool result;
21490 void *argp1 = 0 ;
21491 int res1 = 0 ;
21492 size_t val2 ;
21493 int ecode2 = 0 ;
21494 PyObject * obj0 = 0 ;
21495 PyObject * obj1 = 0 ;
21496 char * kwnames[] = {
21497 (char *) "self",(char *) "pos", NULL
21498 };
21499
21500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21502 if (!SWIG_IsOK(res1)) {
21503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21504 }
21505 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21506 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21507 if (!SWIG_IsOK(ecode2)) {
21508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21509 }
21510 arg2 = static_cast< size_t >(val2);
21511 {
21512 PyThreadState* __tstate = wxPyBeginAllowThreads();
21513 result = (bool)(arg1)->CollapseNode(arg2);
21514 wxPyEndAllowThreads(__tstate);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 {
21518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21519 }
21520 return resultobj;
21521 fail:
21522 return NULL;
21523 }
21524
21525
21526 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj = 0;
21528 wxTreebook *arg1 = (wxTreebook *) 0 ;
21529 size_t arg2 ;
21530 int result;
21531 void *argp1 = 0 ;
21532 int res1 = 0 ;
21533 size_t val2 ;
21534 int ecode2 = 0 ;
21535 PyObject * obj0 = 0 ;
21536 PyObject * obj1 = 0 ;
21537 char * kwnames[] = {
21538 (char *) "self",(char *) "pos", NULL
21539 };
21540
21541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21543 if (!SWIG_IsOK(res1)) {
21544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21545 }
21546 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21547 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21548 if (!SWIG_IsOK(ecode2)) {
21549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21550 }
21551 arg2 = static_cast< size_t >(val2);
21552 {
21553 PyThreadState* __tstate = wxPyBeginAllowThreads();
21554 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21555 wxPyEndAllowThreads(__tstate);
21556 if (PyErr_Occurred()) SWIG_fail;
21557 }
21558 resultobj = SWIG_From_int(static_cast< int >(result));
21559 return resultobj;
21560 fail:
21561 return NULL;
21562 }
21563
21564
21565 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21566 PyObject *resultobj = 0;
21567 wxTreebook *arg1 = (wxTreebook *) 0 ;
21568 wxTreeCtrl *result = 0 ;
21569 void *argp1 = 0 ;
21570 int res1 = 0 ;
21571 PyObject *swig_obj[1] ;
21572
21573 if (!args) SWIG_fail;
21574 swig_obj[0] = args;
21575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21576 if (!SWIG_IsOK(res1)) {
21577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21578 }
21579 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21580 {
21581 PyThreadState* __tstate = wxPyBeginAllowThreads();
21582 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21587 return resultobj;
21588 fail:
21589 return NULL;
21590 }
21591
21592
21593 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21594 PyObject *obj;
21595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21596 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21597 return SWIG_Py_Void();
21598 }
21599
21600 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21601 return SWIG_Python_InitShadowInstance(args);
21602 }
21603
21604 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21605 PyObject *resultobj = 0;
21606 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21607 int arg2 = (int) 0 ;
21608 int arg3 = (int) wxNOT_FOUND ;
21609 int arg4 = (int) wxNOT_FOUND ;
21610 wxTreebookEvent *result = 0 ;
21611 int val1 ;
21612 int ecode1 = 0 ;
21613 int val2 ;
21614 int ecode2 = 0 ;
21615 int val3 ;
21616 int ecode3 = 0 ;
21617 int val4 ;
21618 int ecode4 = 0 ;
21619 PyObject * obj0 = 0 ;
21620 PyObject * obj1 = 0 ;
21621 PyObject * obj2 = 0 ;
21622 PyObject * obj3 = 0 ;
21623 char * kwnames[] = {
21624 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21625 };
21626
21627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21628 if (obj0) {
21629 ecode1 = SWIG_AsVal_int(obj0, &val1);
21630 if (!SWIG_IsOK(ecode1)) {
21631 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21632 }
21633 arg1 = static_cast< wxEventType >(val1);
21634 }
21635 if (obj1) {
21636 ecode2 = SWIG_AsVal_int(obj1, &val2);
21637 if (!SWIG_IsOK(ecode2)) {
21638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21639 }
21640 arg2 = static_cast< int >(val2);
21641 }
21642 if (obj2) {
21643 ecode3 = SWIG_AsVal_int(obj2, &val3);
21644 if (!SWIG_IsOK(ecode3)) {
21645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21646 }
21647 arg3 = static_cast< int >(val3);
21648 }
21649 if (obj3) {
21650 ecode4 = SWIG_AsVal_int(obj3, &val4);
21651 if (!SWIG_IsOK(ecode4)) {
21652 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21653 }
21654 arg4 = static_cast< int >(val4);
21655 }
21656 {
21657 PyThreadState* __tstate = wxPyBeginAllowThreads();
21658 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21659 wxPyEndAllowThreads(__tstate);
21660 if (PyErr_Occurred()) SWIG_fail;
21661 }
21662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21663 return resultobj;
21664 fail:
21665 return NULL;
21666 }
21667
21668
21669 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21670 PyObject *obj;
21671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21672 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21673 return SWIG_Py_Void();
21674 }
21675
21676 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21677 return SWIG_Python_InitShadowInstance(args);
21678 }
21679
21680 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21681 PyObject *resultobj = 0;
21682 wxWindow *arg1 = (wxWindow *) 0 ;
21683 int arg2 ;
21684 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21685 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21686 wxSize const &arg4_defvalue = wxDefaultSize ;
21687 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21688 long arg5 = (long) wxBK_DEFAULT ;
21689 wxString const &arg6_defvalue = wxPyEmptyString ;
21690 wxString *arg6 = (wxString *) &arg6_defvalue ;
21691 wxToolbook *result = 0 ;
21692 void *argp1 = 0 ;
21693 int res1 = 0 ;
21694 int val2 ;
21695 int ecode2 = 0 ;
21696 wxPoint temp3 ;
21697 wxSize temp4 ;
21698 long val5 ;
21699 int ecode5 = 0 ;
21700 bool temp6 = false ;
21701 PyObject * obj0 = 0 ;
21702 PyObject * obj1 = 0 ;
21703 PyObject * obj2 = 0 ;
21704 PyObject * obj3 = 0 ;
21705 PyObject * obj4 = 0 ;
21706 PyObject * obj5 = 0 ;
21707 char * kwnames[] = {
21708 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21709 };
21710
21711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21713 if (!SWIG_IsOK(res1)) {
21714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21715 }
21716 arg1 = reinterpret_cast< wxWindow * >(argp1);
21717 ecode2 = SWIG_AsVal_int(obj1, &val2);
21718 if (!SWIG_IsOK(ecode2)) {
21719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
21720 }
21721 arg2 = static_cast< int >(val2);
21722 if (obj2) {
21723 {
21724 arg3 = &temp3;
21725 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21726 }
21727 }
21728 if (obj3) {
21729 {
21730 arg4 = &temp4;
21731 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21732 }
21733 }
21734 if (obj4) {
21735 ecode5 = SWIG_AsVal_long(obj4, &val5);
21736 if (!SWIG_IsOK(ecode5)) {
21737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
21738 }
21739 arg5 = static_cast< long >(val5);
21740 }
21741 if (obj5) {
21742 {
21743 arg6 = wxString_in_helper(obj5);
21744 if (arg6 == NULL) SWIG_fail;
21745 temp6 = true;
21746 }
21747 }
21748 {
21749 PyThreadState* __tstate = wxPyBeginAllowThreads();
21750 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21751 wxPyEndAllowThreads(__tstate);
21752 if (PyErr_Occurred()) SWIG_fail;
21753 }
21754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
21755 {
21756 if (temp6)
21757 delete arg6;
21758 }
21759 return resultobj;
21760 fail:
21761 {
21762 if (temp6)
21763 delete arg6;
21764 }
21765 return NULL;
21766 }
21767
21768
21769 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21770 PyObject *resultobj = 0;
21771 wxToolbook *result = 0 ;
21772
21773 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
21774 {
21775 PyThreadState* __tstate = wxPyBeginAllowThreads();
21776 result = (wxToolbook *)new wxToolbook();
21777 wxPyEndAllowThreads(__tstate);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 }
21780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
21781 return resultobj;
21782 fail:
21783 return NULL;
21784 }
21785
21786
21787 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21788 PyObject *resultobj = 0;
21789 wxToolbook *arg1 = (wxToolbook *) 0 ;
21790 wxWindow *arg2 = (wxWindow *) 0 ;
21791 int arg3 ;
21792 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21793 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21794 wxSize const &arg5_defvalue = wxDefaultSize ;
21795 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21796 long arg6 = (long) 0 ;
21797 wxString const &arg7_defvalue = wxEmptyString ;
21798 wxString *arg7 = (wxString *) &arg7_defvalue ;
21799 bool result;
21800 void *argp1 = 0 ;
21801 int res1 = 0 ;
21802 void *argp2 = 0 ;
21803 int res2 = 0 ;
21804 int val3 ;
21805 int ecode3 = 0 ;
21806 wxPoint temp4 ;
21807 wxSize temp5 ;
21808 long val6 ;
21809 int ecode6 = 0 ;
21810 bool temp7 = false ;
21811 PyObject * obj0 = 0 ;
21812 PyObject * obj1 = 0 ;
21813 PyObject * obj2 = 0 ;
21814 PyObject * obj3 = 0 ;
21815 PyObject * obj4 = 0 ;
21816 PyObject * obj5 = 0 ;
21817 PyObject * obj6 = 0 ;
21818 char * kwnames[] = {
21819 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21820 };
21821
21822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
21826 }
21827 arg1 = reinterpret_cast< wxToolbook * >(argp1);
21828 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21829 if (!SWIG_IsOK(res2)) {
21830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21831 }
21832 arg2 = reinterpret_cast< wxWindow * >(argp2);
21833 ecode3 = SWIG_AsVal_int(obj2, &val3);
21834 if (!SWIG_IsOK(ecode3)) {
21835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
21836 }
21837 arg3 = static_cast< int >(val3);
21838 if (obj3) {
21839 {
21840 arg4 = &temp4;
21841 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21842 }
21843 }
21844 if (obj4) {
21845 {
21846 arg5 = &temp5;
21847 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21848 }
21849 }
21850 if (obj5) {
21851 ecode6 = SWIG_AsVal_long(obj5, &val6);
21852 if (!SWIG_IsOK(ecode6)) {
21853 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
21854 }
21855 arg6 = static_cast< long >(val6);
21856 }
21857 if (obj6) {
21858 {
21859 arg7 = wxString_in_helper(obj6);
21860 if (arg7 == NULL) SWIG_fail;
21861 temp7 = true;
21862 }
21863 }
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 {
21871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21872 }
21873 {
21874 if (temp7)
21875 delete arg7;
21876 }
21877 return resultobj;
21878 fail:
21879 {
21880 if (temp7)
21881 delete arg7;
21882 }
21883 return NULL;
21884 }
21885
21886
21887 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21888 PyObject *resultobj = 0;
21889 wxToolbook *arg1 = (wxToolbook *) 0 ;
21890 wxToolBarBase *result = 0 ;
21891 void *argp1 = 0 ;
21892 int res1 = 0 ;
21893 PyObject *swig_obj[1] ;
21894
21895 if (!args) SWIG_fail;
21896 swig_obj[0] = args;
21897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21898 if (!SWIG_IsOK(res1)) {
21899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
21900 }
21901 arg1 = reinterpret_cast< wxToolbook * >(argp1);
21902 {
21903 PyThreadState* __tstate = wxPyBeginAllowThreads();
21904 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
21905 wxPyEndAllowThreads(__tstate);
21906 if (PyErr_Occurred()) SWIG_fail;
21907 }
21908 {
21909 resultobj = wxPyMake_wxObject(result, (bool)0);
21910 }
21911 return resultobj;
21912 fail:
21913 return NULL;
21914 }
21915
21916
21917 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21918 PyObject *resultobj = 0;
21919 wxToolbook *arg1 = (wxToolbook *) 0 ;
21920 void *argp1 = 0 ;
21921 int res1 = 0 ;
21922 PyObject *swig_obj[1] ;
21923
21924 if (!args) SWIG_fail;
21925 swig_obj[0] = args;
21926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21927 if (!SWIG_IsOK(res1)) {
21928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
21929 }
21930 arg1 = reinterpret_cast< wxToolbook * >(argp1);
21931 {
21932 PyThreadState* __tstate = wxPyBeginAllowThreads();
21933 (arg1)->Realize();
21934 wxPyEndAllowThreads(__tstate);
21935 if (PyErr_Occurred()) SWIG_fail;
21936 }
21937 resultobj = SWIG_Py_Void();
21938 return resultobj;
21939 fail:
21940 return NULL;
21941 }
21942
21943
21944 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21945 PyObject *obj;
21946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21947 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
21948 return SWIG_Py_Void();
21949 }
21950
21951 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21952 return SWIG_Python_InitShadowInstance(args);
21953 }
21954
21955 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21956 PyObject *resultobj = 0;
21957 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21958 int arg2 = (int) 0 ;
21959 int arg3 = (int) wxNOT_FOUND ;
21960 int arg4 = (int) wxNOT_FOUND ;
21961 wxToolbookEvent *result = 0 ;
21962 int val1 ;
21963 int ecode1 = 0 ;
21964 int val2 ;
21965 int ecode2 = 0 ;
21966 int val3 ;
21967 int ecode3 = 0 ;
21968 int val4 ;
21969 int ecode4 = 0 ;
21970 PyObject * obj0 = 0 ;
21971 PyObject * obj1 = 0 ;
21972 PyObject * obj2 = 0 ;
21973 PyObject * obj3 = 0 ;
21974 char * kwnames[] = {
21975 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21976 };
21977
21978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21979 if (obj0) {
21980 ecode1 = SWIG_AsVal_int(obj0, &val1);
21981 if (!SWIG_IsOK(ecode1)) {
21982 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21983 }
21984 arg1 = static_cast< wxEventType >(val1);
21985 }
21986 if (obj1) {
21987 ecode2 = SWIG_AsVal_int(obj1, &val2);
21988 if (!SWIG_IsOK(ecode2)) {
21989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
21990 }
21991 arg2 = static_cast< int >(val2);
21992 }
21993 if (obj2) {
21994 ecode3 = SWIG_AsVal_int(obj2, &val3);
21995 if (!SWIG_IsOK(ecode3)) {
21996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
21997 }
21998 arg3 = static_cast< int >(val3);
21999 }
22000 if (obj3) {
22001 ecode4 = SWIG_AsVal_int(obj3, &val4);
22002 if (!SWIG_IsOK(ecode4)) {
22003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22004 }
22005 arg4 = static_cast< int >(val4);
22006 }
22007 {
22008 PyThreadState* __tstate = wxPyBeginAllowThreads();
22009 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22010 wxPyEndAllowThreads(__tstate);
22011 if (PyErr_Occurred()) SWIG_fail;
22012 }
22013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22014 return resultobj;
22015 fail:
22016 return NULL;
22017 }
22018
22019
22020 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22021 PyObject *obj;
22022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22023 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22024 return SWIG_Py_Void();
22025 }
22026
22027 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22028 return SWIG_Python_InitShadowInstance(args);
22029 }
22030
22031 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22032 PyObject *resultobj = 0;
22033 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22034 int result;
22035 void *argp1 = 0 ;
22036 int res1 = 0 ;
22037 PyObject *swig_obj[1] ;
22038
22039 if (!args) SWIG_fail;
22040 swig_obj[0] = args;
22041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22042 if (!SWIG_IsOK(res1)) {
22043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22044 }
22045 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 result = (int)(arg1)->GetId();
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 resultobj = SWIG_From_int(static_cast< int >(result));
22053 return resultobj;
22054 fail:
22055 return NULL;
22056 }
22057
22058
22059 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22060 PyObject *resultobj = 0;
22061 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22062 wxControl *result = 0 ;
22063 void *argp1 = 0 ;
22064 int res1 = 0 ;
22065 PyObject *swig_obj[1] ;
22066
22067 if (!args) SWIG_fail;
22068 swig_obj[0] = args;
22069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22070 if (!SWIG_IsOK(res1)) {
22071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22072 }
22073 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (wxControl *)(arg1)->GetControl();
22077 wxPyEndAllowThreads(__tstate);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 }
22080 {
22081 resultobj = wxPyMake_wxObject(result, 0);
22082 }
22083 return resultobj;
22084 fail:
22085 return NULL;
22086 }
22087
22088
22089 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22090 PyObject *resultobj = 0;
22091 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22092 wxToolBarBase *result = 0 ;
22093 void *argp1 = 0 ;
22094 int res1 = 0 ;
22095 PyObject *swig_obj[1] ;
22096
22097 if (!args) SWIG_fail;
22098 swig_obj[0] = args;
22099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22100 if (!SWIG_IsOK(res1)) {
22101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22102 }
22103 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22104 {
22105 PyThreadState* __tstate = wxPyBeginAllowThreads();
22106 result = (wxToolBarBase *)(arg1)->GetToolBar();
22107 wxPyEndAllowThreads(__tstate);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 }
22110 {
22111 resultobj = wxPyMake_wxObject(result, (bool)0);
22112 }
22113 return resultobj;
22114 fail:
22115 return NULL;
22116 }
22117
22118
22119 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22120 PyObject *resultobj = 0;
22121 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22122 int result;
22123 void *argp1 = 0 ;
22124 int res1 = 0 ;
22125 PyObject *swig_obj[1] ;
22126
22127 if (!args) SWIG_fail;
22128 swig_obj[0] = args;
22129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22130 if (!SWIG_IsOK(res1)) {
22131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22132 }
22133 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22134 {
22135 PyThreadState* __tstate = wxPyBeginAllowThreads();
22136 result = (int)(arg1)->IsButton();
22137 wxPyEndAllowThreads(__tstate);
22138 if (PyErr_Occurred()) SWIG_fail;
22139 }
22140 resultobj = SWIG_From_int(static_cast< int >(result));
22141 return resultobj;
22142 fail:
22143 return NULL;
22144 }
22145
22146
22147 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22148 PyObject *resultobj = 0;
22149 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22150 int result;
22151 void *argp1 = 0 ;
22152 int res1 = 0 ;
22153 PyObject *swig_obj[1] ;
22154
22155 if (!args) SWIG_fail;
22156 swig_obj[0] = args;
22157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22158 if (!SWIG_IsOK(res1)) {
22159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22160 }
22161 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22162 {
22163 PyThreadState* __tstate = wxPyBeginAllowThreads();
22164 result = (int)(arg1)->IsControl();
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 resultobj = SWIG_From_int(static_cast< int >(result));
22169 return resultobj;
22170 fail:
22171 return NULL;
22172 }
22173
22174
22175 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22176 PyObject *resultobj = 0;
22177 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22178 int result;
22179 void *argp1 = 0 ;
22180 int res1 = 0 ;
22181 PyObject *swig_obj[1] ;
22182
22183 if (!args) SWIG_fail;
22184 swig_obj[0] = args;
22185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22186 if (!SWIG_IsOK(res1)) {
22187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22188 }
22189 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = (int)(arg1)->IsSeparator();
22193 wxPyEndAllowThreads(__tstate);
22194 if (PyErr_Occurred()) SWIG_fail;
22195 }
22196 resultobj = SWIG_From_int(static_cast< int >(result));
22197 return resultobj;
22198 fail:
22199 return NULL;
22200 }
22201
22202
22203 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22204 PyObject *resultobj = 0;
22205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22206 int result;
22207 void *argp1 = 0 ;
22208 int res1 = 0 ;
22209 PyObject *swig_obj[1] ;
22210
22211 if (!args) SWIG_fail;
22212 swig_obj[0] = args;
22213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22214 if (!SWIG_IsOK(res1)) {
22215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22216 }
22217 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22218 {
22219 PyThreadState* __tstate = wxPyBeginAllowThreads();
22220 result = (int)(arg1)->GetStyle();
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 resultobj = SWIG_From_int(static_cast< int >(result));
22225 return resultobj;
22226 fail:
22227 return NULL;
22228 }
22229
22230
22231 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22232 PyObject *resultobj = 0;
22233 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22234 wxItemKind result;
22235 void *argp1 = 0 ;
22236 int res1 = 0 ;
22237 PyObject *swig_obj[1] ;
22238
22239 if (!args) SWIG_fail;
22240 swig_obj[0] = args;
22241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22242 if (!SWIG_IsOK(res1)) {
22243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22244 }
22245 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22246 {
22247 PyThreadState* __tstate = wxPyBeginAllowThreads();
22248 result = (wxItemKind)(arg1)->GetKind();
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 resultobj = SWIG_From_int(static_cast< int >(result));
22253 return resultobj;
22254 fail:
22255 return NULL;
22256 }
22257
22258
22259 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22260 PyObject *resultobj = 0;
22261 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22262 bool result;
22263 void *argp1 = 0 ;
22264 int res1 = 0 ;
22265 PyObject *swig_obj[1] ;
22266
22267 if (!args) SWIG_fail;
22268 swig_obj[0] = args;
22269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22270 if (!SWIG_IsOK(res1)) {
22271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22272 }
22273 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22274 {
22275 PyThreadState* __tstate = wxPyBeginAllowThreads();
22276 result = (bool)(arg1)->IsEnabled();
22277 wxPyEndAllowThreads(__tstate);
22278 if (PyErr_Occurred()) SWIG_fail;
22279 }
22280 {
22281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22282 }
22283 return resultobj;
22284 fail:
22285 return NULL;
22286 }
22287
22288
22289 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22290 PyObject *resultobj = 0;
22291 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22292 bool result;
22293 void *argp1 = 0 ;
22294 int res1 = 0 ;
22295 PyObject *swig_obj[1] ;
22296
22297 if (!args) SWIG_fail;
22298 swig_obj[0] = args;
22299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22300 if (!SWIG_IsOK(res1)) {
22301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22302 }
22303 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 result = (bool)(arg1)->IsToggled();
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 {
22311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22312 }
22313 return resultobj;
22314 fail:
22315 return NULL;
22316 }
22317
22318
22319 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22320 PyObject *resultobj = 0;
22321 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22322 bool result;
22323 void *argp1 = 0 ;
22324 int res1 = 0 ;
22325 PyObject *swig_obj[1] ;
22326
22327 if (!args) SWIG_fail;
22328 swig_obj[0] = args;
22329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22330 if (!SWIG_IsOK(res1)) {
22331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22332 }
22333 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22334 {
22335 PyThreadState* __tstate = wxPyBeginAllowThreads();
22336 result = (bool)(arg1)->CanBeToggled();
22337 wxPyEndAllowThreads(__tstate);
22338 if (PyErr_Occurred()) SWIG_fail;
22339 }
22340 {
22341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22342 }
22343 return resultobj;
22344 fail:
22345 return NULL;
22346 }
22347
22348
22349 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22350 PyObject *resultobj = 0;
22351 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22352 wxBitmap *result = 0 ;
22353 void *argp1 = 0 ;
22354 int res1 = 0 ;
22355 PyObject *swig_obj[1] ;
22356
22357 if (!args) SWIG_fail;
22358 swig_obj[0] = args;
22359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22360 if (!SWIG_IsOK(res1)) {
22361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22362 }
22363 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22364 {
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 {
22367 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22368 result = (wxBitmap *) &_result_ref;
22369 }
22370 wxPyEndAllowThreads(__tstate);
22371 if (PyErr_Occurred()) SWIG_fail;
22372 }
22373 {
22374 wxBitmap* resultptr = new wxBitmap(*result);
22375 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22376 }
22377 return resultobj;
22378 fail:
22379 return NULL;
22380 }
22381
22382
22383 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22384 PyObject *resultobj = 0;
22385 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22386 wxBitmap *result = 0 ;
22387 void *argp1 = 0 ;
22388 int res1 = 0 ;
22389 PyObject *swig_obj[1] ;
22390
22391 if (!args) SWIG_fail;
22392 swig_obj[0] = args;
22393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22394 if (!SWIG_IsOK(res1)) {
22395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22396 }
22397 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
22400 {
22401 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22402 result = (wxBitmap *) &_result_ref;
22403 }
22404 wxPyEndAllowThreads(__tstate);
22405 if (PyErr_Occurred()) SWIG_fail;
22406 }
22407 {
22408 wxBitmap* resultptr = new wxBitmap(*result);
22409 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22410 }
22411 return resultobj;
22412 fail:
22413 return NULL;
22414 }
22415
22416
22417 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22418 PyObject *resultobj = 0;
22419 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22420 wxBitmap result;
22421 void *argp1 = 0 ;
22422 int res1 = 0 ;
22423 PyObject *swig_obj[1] ;
22424
22425 if (!args) SWIG_fail;
22426 swig_obj[0] = args;
22427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22428 if (!SWIG_IsOK(res1)) {
22429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22430 }
22431 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22432 {
22433 PyThreadState* __tstate = wxPyBeginAllowThreads();
22434 result = (arg1)->GetBitmap();
22435 wxPyEndAllowThreads(__tstate);
22436 if (PyErr_Occurred()) SWIG_fail;
22437 }
22438 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22439 return resultobj;
22440 fail:
22441 return NULL;
22442 }
22443
22444
22445 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22446 PyObject *resultobj = 0;
22447 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22448 wxString result;
22449 void *argp1 = 0 ;
22450 int res1 = 0 ;
22451 PyObject *swig_obj[1] ;
22452
22453 if (!args) SWIG_fail;
22454 swig_obj[0] = args;
22455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22456 if (!SWIG_IsOK(res1)) {
22457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22458 }
22459 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = (arg1)->GetLabel();
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 {
22467 #if wxUSE_UNICODE
22468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22469 #else
22470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22471 #endif
22472 }
22473 return resultobj;
22474 fail:
22475 return NULL;
22476 }
22477
22478
22479 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22480 PyObject *resultobj = 0;
22481 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22482 wxString result;
22483 void *argp1 = 0 ;
22484 int res1 = 0 ;
22485 PyObject *swig_obj[1] ;
22486
22487 if (!args) SWIG_fail;
22488 swig_obj[0] = args;
22489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22490 if (!SWIG_IsOK(res1)) {
22491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22492 }
22493 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22494 {
22495 PyThreadState* __tstate = wxPyBeginAllowThreads();
22496 result = (arg1)->GetShortHelp();
22497 wxPyEndAllowThreads(__tstate);
22498 if (PyErr_Occurred()) SWIG_fail;
22499 }
22500 {
22501 #if wxUSE_UNICODE
22502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22503 #else
22504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22505 #endif
22506 }
22507 return resultobj;
22508 fail:
22509 return NULL;
22510 }
22511
22512
22513 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22514 PyObject *resultobj = 0;
22515 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22516 wxString result;
22517 void *argp1 = 0 ;
22518 int res1 = 0 ;
22519 PyObject *swig_obj[1] ;
22520
22521 if (!args) SWIG_fail;
22522 swig_obj[0] = args;
22523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22524 if (!SWIG_IsOK(res1)) {
22525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22526 }
22527 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22528 {
22529 PyThreadState* __tstate = wxPyBeginAllowThreads();
22530 result = (arg1)->GetLongHelp();
22531 wxPyEndAllowThreads(__tstate);
22532 if (PyErr_Occurred()) SWIG_fail;
22533 }
22534 {
22535 #if wxUSE_UNICODE
22536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22537 #else
22538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22539 #endif
22540 }
22541 return resultobj;
22542 fail:
22543 return NULL;
22544 }
22545
22546
22547 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22548 PyObject *resultobj = 0;
22549 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22550 bool arg2 ;
22551 bool result;
22552 void *argp1 = 0 ;
22553 int res1 = 0 ;
22554 bool val2 ;
22555 int ecode2 = 0 ;
22556 PyObject * obj0 = 0 ;
22557 PyObject * obj1 = 0 ;
22558 char * kwnames[] = {
22559 (char *) "self",(char *) "enable", NULL
22560 };
22561
22562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22564 if (!SWIG_IsOK(res1)) {
22565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22566 }
22567 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22568 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22569 if (!SWIG_IsOK(ecode2)) {
22570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22571 }
22572 arg2 = static_cast< bool >(val2);
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 result = (bool)(arg1)->Enable(arg2);
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 {
22580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22581 }
22582 return resultobj;
22583 fail:
22584 return NULL;
22585 }
22586
22587
22588 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22589 PyObject *resultobj = 0;
22590 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22591 void *argp1 = 0 ;
22592 int res1 = 0 ;
22593 PyObject *swig_obj[1] ;
22594
22595 if (!args) SWIG_fail;
22596 swig_obj[0] = args;
22597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22598 if (!SWIG_IsOK(res1)) {
22599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22600 }
22601 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 (arg1)->Toggle();
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 resultobj = SWIG_Py_Void();
22609 return resultobj;
22610 fail:
22611 return NULL;
22612 }
22613
22614
22615 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22616 PyObject *resultobj = 0;
22617 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22618 bool arg2 ;
22619 bool result;
22620 void *argp1 = 0 ;
22621 int res1 = 0 ;
22622 bool val2 ;
22623 int ecode2 = 0 ;
22624 PyObject * obj0 = 0 ;
22625 PyObject * obj1 = 0 ;
22626 char * kwnames[] = {
22627 (char *) "self",(char *) "toggle", NULL
22628 };
22629
22630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22632 if (!SWIG_IsOK(res1)) {
22633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22634 }
22635 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22636 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22637 if (!SWIG_IsOK(ecode2)) {
22638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22639 }
22640 arg2 = static_cast< bool >(val2);
22641 {
22642 PyThreadState* __tstate = wxPyBeginAllowThreads();
22643 result = (bool)(arg1)->SetToggle(arg2);
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 {
22648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22649 }
22650 return resultobj;
22651 fail:
22652 return NULL;
22653 }
22654
22655
22656 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22657 PyObject *resultobj = 0;
22658 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22659 wxString *arg2 = 0 ;
22660 bool result;
22661 void *argp1 = 0 ;
22662 int res1 = 0 ;
22663 bool temp2 = false ;
22664 PyObject * obj0 = 0 ;
22665 PyObject * obj1 = 0 ;
22666 char * kwnames[] = {
22667 (char *) "self",(char *) "help", NULL
22668 };
22669
22670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22672 if (!SWIG_IsOK(res1)) {
22673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22674 }
22675 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22676 {
22677 arg2 = wxString_in_helper(obj1);
22678 if (arg2 == NULL) SWIG_fail;
22679 temp2 = true;
22680 }
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 {
22688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22689 }
22690 {
22691 if (temp2)
22692 delete arg2;
22693 }
22694 return resultobj;
22695 fail:
22696 {
22697 if (temp2)
22698 delete arg2;
22699 }
22700 return NULL;
22701 }
22702
22703
22704 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22705 PyObject *resultobj = 0;
22706 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22707 wxString *arg2 = 0 ;
22708 bool result;
22709 void *argp1 = 0 ;
22710 int res1 = 0 ;
22711 bool temp2 = false ;
22712 PyObject * obj0 = 0 ;
22713 PyObject * obj1 = 0 ;
22714 char * kwnames[] = {
22715 (char *) "self",(char *) "help", NULL
22716 };
22717
22718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22720 if (!SWIG_IsOK(res1)) {
22721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22722 }
22723 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22724 {
22725 arg2 = wxString_in_helper(obj1);
22726 if (arg2 == NULL) SWIG_fail;
22727 temp2 = true;
22728 }
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
22732 wxPyEndAllowThreads(__tstate);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 }
22735 {
22736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22737 }
22738 {
22739 if (temp2)
22740 delete arg2;
22741 }
22742 return resultobj;
22743 fail:
22744 {
22745 if (temp2)
22746 delete arg2;
22747 }
22748 return NULL;
22749 }
22750
22751
22752 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22753 PyObject *resultobj = 0;
22754 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22755 wxBitmap *arg2 = 0 ;
22756 void *argp1 = 0 ;
22757 int res1 = 0 ;
22758 void *argp2 = 0 ;
22759 int res2 = 0 ;
22760 PyObject * obj0 = 0 ;
22761 PyObject * obj1 = 0 ;
22762 char * kwnames[] = {
22763 (char *) "self",(char *) "bmp", NULL
22764 };
22765
22766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22768 if (!SWIG_IsOK(res1)) {
22769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22770 }
22771 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22773 if (!SWIG_IsOK(res2)) {
22774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22775 }
22776 if (!argp2) {
22777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22778 }
22779 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
22783 wxPyEndAllowThreads(__tstate);
22784 if (PyErr_Occurred()) SWIG_fail;
22785 }
22786 resultobj = SWIG_Py_Void();
22787 return resultobj;
22788 fail:
22789 return NULL;
22790 }
22791
22792
22793 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22794 PyObject *resultobj = 0;
22795 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22796 wxBitmap *arg2 = 0 ;
22797 void *argp1 = 0 ;
22798 int res1 = 0 ;
22799 void *argp2 = 0 ;
22800 int res2 = 0 ;
22801 PyObject * obj0 = 0 ;
22802 PyObject * obj1 = 0 ;
22803 char * kwnames[] = {
22804 (char *) "self",(char *) "bmp", NULL
22805 };
22806
22807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22809 if (!SWIG_IsOK(res1)) {
22810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22811 }
22812 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22813 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22814 if (!SWIG_IsOK(res2)) {
22815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22816 }
22817 if (!argp2) {
22818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22819 }
22820 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22821 {
22822 PyThreadState* __tstate = wxPyBeginAllowThreads();
22823 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
22824 wxPyEndAllowThreads(__tstate);
22825 if (PyErr_Occurred()) SWIG_fail;
22826 }
22827 resultobj = SWIG_Py_Void();
22828 return resultobj;
22829 fail:
22830 return NULL;
22831 }
22832
22833
22834 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22835 PyObject *resultobj = 0;
22836 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22837 wxString *arg2 = 0 ;
22838 void *argp1 = 0 ;
22839 int res1 = 0 ;
22840 bool temp2 = false ;
22841 PyObject * obj0 = 0 ;
22842 PyObject * obj1 = 0 ;
22843 char * kwnames[] = {
22844 (char *) "self",(char *) "label", NULL
22845 };
22846
22847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
22848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22849 if (!SWIG_IsOK(res1)) {
22850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22851 }
22852 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22853 {
22854 arg2 = wxString_in_helper(obj1);
22855 if (arg2 == NULL) SWIG_fail;
22856 temp2 = true;
22857 }
22858 {
22859 PyThreadState* __tstate = wxPyBeginAllowThreads();
22860 (arg1)->SetLabel((wxString const &)*arg2);
22861 wxPyEndAllowThreads(__tstate);
22862 if (PyErr_Occurred()) SWIG_fail;
22863 }
22864 resultobj = SWIG_Py_Void();
22865 {
22866 if (temp2)
22867 delete arg2;
22868 }
22869 return resultobj;
22870 fail:
22871 {
22872 if (temp2)
22873 delete arg2;
22874 }
22875 return NULL;
22876 }
22877
22878
22879 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22880 PyObject *resultobj = 0;
22881 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22882 void *argp1 = 0 ;
22883 int res1 = 0 ;
22884 PyObject *swig_obj[1] ;
22885
22886 if (!args) SWIG_fail;
22887 swig_obj[0] = args;
22888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22889 if (!SWIG_IsOK(res1)) {
22890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22891 }
22892 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22893 {
22894 PyThreadState* __tstate = wxPyBeginAllowThreads();
22895 (arg1)->Detach();
22896 wxPyEndAllowThreads(__tstate);
22897 if (PyErr_Occurred()) SWIG_fail;
22898 }
22899 resultobj = SWIG_Py_Void();
22900 return resultobj;
22901 fail:
22902 return NULL;
22903 }
22904
22905
22906 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22907 PyObject *resultobj = 0;
22908 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22909 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
22910 void *argp1 = 0 ;
22911 int res1 = 0 ;
22912 void *argp2 = 0 ;
22913 int res2 = 0 ;
22914 PyObject * obj0 = 0 ;
22915 PyObject * obj1 = 0 ;
22916 char * kwnames[] = {
22917 (char *) "self",(char *) "tbar", NULL
22918 };
22919
22920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
22921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22922 if (!SWIG_IsOK(res1)) {
22923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22924 }
22925 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22926 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
22927 if (!SWIG_IsOK(res2)) {
22928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
22929 }
22930 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
22931 {
22932 PyThreadState* __tstate = wxPyBeginAllowThreads();
22933 (arg1)->Attach(arg2);
22934 wxPyEndAllowThreads(__tstate);
22935 if (PyErr_Occurred()) SWIG_fail;
22936 }
22937 resultobj = SWIG_Py_Void();
22938 return resultobj;
22939 fail:
22940 return NULL;
22941 }
22942
22943
22944 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22945 PyObject *resultobj = 0;
22946 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22947 PyObject *result = 0 ;
22948 void *argp1 = 0 ;
22949 int res1 = 0 ;
22950 PyObject *swig_obj[1] ;
22951
22952 if (!args) SWIG_fail;
22953 swig_obj[0] = args;
22954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22955 if (!SWIG_IsOK(res1)) {
22956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22957 }
22958 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22959 {
22960 PyThreadState* __tstate = wxPyBeginAllowThreads();
22961 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
22962 wxPyEndAllowThreads(__tstate);
22963 if (PyErr_Occurred()) SWIG_fail;
22964 }
22965 resultobj = result;
22966 return resultobj;
22967 fail:
22968 return NULL;
22969 }
22970
22971
22972 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22973 PyObject *resultobj = 0;
22974 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22975 PyObject *arg2 = (PyObject *) 0 ;
22976 void *argp1 = 0 ;
22977 int res1 = 0 ;
22978 PyObject * obj0 = 0 ;
22979 PyObject * obj1 = 0 ;
22980 char * kwnames[] = {
22981 (char *) "self",(char *) "clientData", NULL
22982 };
22983
22984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
22985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22986 if (!SWIG_IsOK(res1)) {
22987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22988 }
22989 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22990 arg2 = obj1;
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 wxToolBarToolBase_SetClientData(arg1,arg2);
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 resultobj = SWIG_Py_Void();
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23005 PyObject *obj;
23006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23007 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23008 return SWIG_Py_Void();
23009 }
23010
23011 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23012 PyObject *resultobj = 0;
23013 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23014 int arg2 ;
23015 wxString *arg3 = 0 ;
23016 wxBitmap *arg4 = 0 ;
23017 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23018 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23019 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23020 wxString const &arg7_defvalue = wxPyEmptyString ;
23021 wxString *arg7 = (wxString *) &arg7_defvalue ;
23022 wxString const &arg8_defvalue = wxPyEmptyString ;
23023 wxString *arg8 = (wxString *) &arg8_defvalue ;
23024 PyObject *arg9 = (PyObject *) NULL ;
23025 wxToolBarToolBase *result = 0 ;
23026 void *argp1 = 0 ;
23027 int res1 = 0 ;
23028 int val2 ;
23029 int ecode2 = 0 ;
23030 bool temp3 = false ;
23031 void *argp4 = 0 ;
23032 int res4 = 0 ;
23033 void *argp5 = 0 ;
23034 int res5 = 0 ;
23035 int val6 ;
23036 int ecode6 = 0 ;
23037 bool temp7 = false ;
23038 bool temp8 = false ;
23039 PyObject * obj0 = 0 ;
23040 PyObject * obj1 = 0 ;
23041 PyObject * obj2 = 0 ;
23042 PyObject * obj3 = 0 ;
23043 PyObject * obj4 = 0 ;
23044 PyObject * obj5 = 0 ;
23045 PyObject * obj6 = 0 ;
23046 PyObject * obj7 = 0 ;
23047 PyObject * obj8 = 0 ;
23048 char * kwnames[] = {
23049 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23050 };
23051
23052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23054 if (!SWIG_IsOK(res1)) {
23055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23056 }
23057 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23058 ecode2 = SWIG_AsVal_int(obj1, &val2);
23059 if (!SWIG_IsOK(ecode2)) {
23060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23061 }
23062 arg2 = static_cast< int >(val2);
23063 {
23064 arg3 = wxString_in_helper(obj2);
23065 if (arg3 == NULL) SWIG_fail;
23066 temp3 = true;
23067 }
23068 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23069 if (!SWIG_IsOK(res4)) {
23070 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23071 }
23072 if (!argp4) {
23073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23074 }
23075 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23076 if (obj4) {
23077 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23078 if (!SWIG_IsOK(res5)) {
23079 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23080 }
23081 if (!argp5) {
23082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23083 }
23084 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23085 }
23086 if (obj5) {
23087 ecode6 = SWIG_AsVal_int(obj5, &val6);
23088 if (!SWIG_IsOK(ecode6)) {
23089 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23090 }
23091 arg6 = static_cast< wxItemKind >(val6);
23092 }
23093 if (obj6) {
23094 {
23095 arg7 = wxString_in_helper(obj6);
23096 if (arg7 == NULL) SWIG_fail;
23097 temp7 = true;
23098 }
23099 }
23100 if (obj7) {
23101 {
23102 arg8 = wxString_in_helper(obj7);
23103 if (arg8 == NULL) SWIG_fail;
23104 temp8 = true;
23105 }
23106 }
23107 if (obj8) {
23108 arg9 = obj8;
23109 }
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23113 wxPyEndAllowThreads(__tstate);
23114 if (PyErr_Occurred()) SWIG_fail;
23115 }
23116 {
23117 resultobj = wxPyMake_wxObject(result, (bool)0);
23118 }
23119 {
23120 if (temp3)
23121 delete arg3;
23122 }
23123 {
23124 if (temp7)
23125 delete arg7;
23126 }
23127 {
23128 if (temp8)
23129 delete arg8;
23130 }
23131 return resultobj;
23132 fail:
23133 {
23134 if (temp3)
23135 delete arg3;
23136 }
23137 {
23138 if (temp7)
23139 delete arg7;
23140 }
23141 {
23142 if (temp8)
23143 delete arg8;
23144 }
23145 return NULL;
23146 }
23147
23148
23149 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23150 PyObject *resultobj = 0;
23151 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23152 size_t arg2 ;
23153 int arg3 ;
23154 wxString *arg4 = 0 ;
23155 wxBitmap *arg5 = 0 ;
23156 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23157 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23158 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23159 wxString const &arg8_defvalue = wxPyEmptyString ;
23160 wxString *arg8 = (wxString *) &arg8_defvalue ;
23161 wxString const &arg9_defvalue = wxPyEmptyString ;
23162 wxString *arg9 = (wxString *) &arg9_defvalue ;
23163 PyObject *arg10 = (PyObject *) NULL ;
23164 wxToolBarToolBase *result = 0 ;
23165 void *argp1 = 0 ;
23166 int res1 = 0 ;
23167 size_t val2 ;
23168 int ecode2 = 0 ;
23169 int val3 ;
23170 int ecode3 = 0 ;
23171 bool temp4 = false ;
23172 void *argp5 = 0 ;
23173 int res5 = 0 ;
23174 void *argp6 = 0 ;
23175 int res6 = 0 ;
23176 int val7 ;
23177 int ecode7 = 0 ;
23178 bool temp8 = false ;
23179 bool temp9 = false ;
23180 PyObject * obj0 = 0 ;
23181 PyObject * obj1 = 0 ;
23182 PyObject * obj2 = 0 ;
23183 PyObject * obj3 = 0 ;
23184 PyObject * obj4 = 0 ;
23185 PyObject * obj5 = 0 ;
23186 PyObject * obj6 = 0 ;
23187 PyObject * obj7 = 0 ;
23188 PyObject * obj8 = 0 ;
23189 PyObject * obj9 = 0 ;
23190 char * kwnames[] = {
23191 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23192 };
23193
23194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23196 if (!SWIG_IsOK(res1)) {
23197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23198 }
23199 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23200 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23201 if (!SWIG_IsOK(ecode2)) {
23202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23203 }
23204 arg2 = static_cast< size_t >(val2);
23205 ecode3 = SWIG_AsVal_int(obj2, &val3);
23206 if (!SWIG_IsOK(ecode3)) {
23207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23208 }
23209 arg3 = static_cast< int >(val3);
23210 {
23211 arg4 = wxString_in_helper(obj3);
23212 if (arg4 == NULL) SWIG_fail;
23213 temp4 = true;
23214 }
23215 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23216 if (!SWIG_IsOK(res5)) {
23217 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23218 }
23219 if (!argp5) {
23220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23221 }
23222 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23223 if (obj5) {
23224 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23225 if (!SWIG_IsOK(res6)) {
23226 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23227 }
23228 if (!argp6) {
23229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23230 }
23231 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23232 }
23233 if (obj6) {
23234 ecode7 = SWIG_AsVal_int(obj6, &val7);
23235 if (!SWIG_IsOK(ecode7)) {
23236 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23237 }
23238 arg7 = static_cast< wxItemKind >(val7);
23239 }
23240 if (obj7) {
23241 {
23242 arg8 = wxString_in_helper(obj7);
23243 if (arg8 == NULL) SWIG_fail;
23244 temp8 = true;
23245 }
23246 }
23247 if (obj8) {
23248 {
23249 arg9 = wxString_in_helper(obj8);
23250 if (arg9 == NULL) SWIG_fail;
23251 temp9 = true;
23252 }
23253 }
23254 if (obj9) {
23255 arg10 = obj9;
23256 }
23257 {
23258 PyThreadState* __tstate = wxPyBeginAllowThreads();
23259 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23260 wxPyEndAllowThreads(__tstate);
23261 if (PyErr_Occurred()) SWIG_fail;
23262 }
23263 {
23264 resultobj = wxPyMake_wxObject(result, (bool)0);
23265 }
23266 {
23267 if (temp4)
23268 delete arg4;
23269 }
23270 {
23271 if (temp8)
23272 delete arg8;
23273 }
23274 {
23275 if (temp9)
23276 delete arg9;
23277 }
23278 return resultobj;
23279 fail:
23280 {
23281 if (temp4)
23282 delete arg4;
23283 }
23284 {
23285 if (temp8)
23286 delete arg8;
23287 }
23288 {
23289 if (temp9)
23290 delete arg9;
23291 }
23292 return NULL;
23293 }
23294
23295
23296 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23297 PyObject *resultobj = 0;
23298 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23299 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23300 wxToolBarToolBase *result = 0 ;
23301 void *argp1 = 0 ;
23302 int res1 = 0 ;
23303 void *argp2 = 0 ;
23304 int res2 = 0 ;
23305 PyObject * obj0 = 0 ;
23306 PyObject * obj1 = 0 ;
23307 char * kwnames[] = {
23308 (char *) "self",(char *) "tool", NULL
23309 };
23310
23311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23313 if (!SWIG_IsOK(res1)) {
23314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23315 }
23316 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23318 if (!SWIG_IsOK(res2)) {
23319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23320 }
23321 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23322 {
23323 PyThreadState* __tstate = wxPyBeginAllowThreads();
23324 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 {
23329 resultobj = wxPyMake_wxObject(result, (bool)0);
23330 }
23331 return resultobj;
23332 fail:
23333 return NULL;
23334 }
23335
23336
23337 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23338 PyObject *resultobj = 0;
23339 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23340 size_t arg2 ;
23341 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23342 wxToolBarToolBase *result = 0 ;
23343 void *argp1 = 0 ;
23344 int res1 = 0 ;
23345 size_t val2 ;
23346 int ecode2 = 0 ;
23347 void *argp3 = 0 ;
23348 int res3 = 0 ;
23349 PyObject * obj0 = 0 ;
23350 PyObject * obj1 = 0 ;
23351 PyObject * obj2 = 0 ;
23352 char * kwnames[] = {
23353 (char *) "self",(char *) "pos",(char *) "tool", NULL
23354 };
23355
23356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23358 if (!SWIG_IsOK(res1)) {
23359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23360 }
23361 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23362 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23363 if (!SWIG_IsOK(ecode2)) {
23364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23365 }
23366 arg2 = static_cast< size_t >(val2);
23367 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23368 if (!SWIG_IsOK(res3)) {
23369 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23370 }
23371 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 {
23379 resultobj = wxPyMake_wxObject(result, (bool)0);
23380 }
23381 return resultobj;
23382 fail:
23383 return NULL;
23384 }
23385
23386
23387 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23388 PyObject *resultobj = 0;
23389 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23390 wxControl *arg2 = (wxControl *) 0 ;
23391 wxToolBarToolBase *result = 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 void *argp2 = 0 ;
23395 int res2 = 0 ;
23396 PyObject * obj0 = 0 ;
23397 PyObject * obj1 = 0 ;
23398 char * kwnames[] = {
23399 (char *) "self",(char *) "control", NULL
23400 };
23401
23402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23404 if (!SWIG_IsOK(res1)) {
23405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23406 }
23407 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23409 if (!SWIG_IsOK(res2)) {
23410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23411 }
23412 arg2 = reinterpret_cast< wxControl * >(argp2);
23413 {
23414 PyThreadState* __tstate = wxPyBeginAllowThreads();
23415 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23416 wxPyEndAllowThreads(__tstate);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
23419 {
23420 resultobj = wxPyMake_wxObject(result, (bool)0);
23421 }
23422 return resultobj;
23423 fail:
23424 return NULL;
23425 }
23426
23427
23428 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23429 PyObject *resultobj = 0;
23430 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23431 size_t arg2 ;
23432 wxControl *arg3 = (wxControl *) 0 ;
23433 wxToolBarToolBase *result = 0 ;
23434 void *argp1 = 0 ;
23435 int res1 = 0 ;
23436 size_t val2 ;
23437 int ecode2 = 0 ;
23438 void *argp3 = 0 ;
23439 int res3 = 0 ;
23440 PyObject * obj0 = 0 ;
23441 PyObject * obj1 = 0 ;
23442 PyObject * obj2 = 0 ;
23443 char * kwnames[] = {
23444 (char *) "self",(char *) "pos",(char *) "control", NULL
23445 };
23446
23447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23449 if (!SWIG_IsOK(res1)) {
23450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23451 }
23452 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23453 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23454 if (!SWIG_IsOK(ecode2)) {
23455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23456 }
23457 arg2 = static_cast< size_t >(val2);
23458 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23459 if (!SWIG_IsOK(res3)) {
23460 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23461 }
23462 arg3 = reinterpret_cast< wxControl * >(argp3);
23463 {
23464 PyThreadState* __tstate = wxPyBeginAllowThreads();
23465 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23466 wxPyEndAllowThreads(__tstate);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 }
23469 {
23470 resultobj = wxPyMake_wxObject(result, (bool)0);
23471 }
23472 return resultobj;
23473 fail:
23474 return NULL;
23475 }
23476
23477
23478 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23479 PyObject *resultobj = 0;
23480 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23481 int arg2 ;
23482 wxControl *result = 0 ;
23483 void *argp1 = 0 ;
23484 int res1 = 0 ;
23485 int val2 ;
23486 int ecode2 = 0 ;
23487 PyObject * obj0 = 0 ;
23488 PyObject * obj1 = 0 ;
23489 char * kwnames[] = {
23490 (char *) "self",(char *) "id", NULL
23491 };
23492
23493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23495 if (!SWIG_IsOK(res1)) {
23496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23497 }
23498 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23499 ecode2 = SWIG_AsVal_int(obj1, &val2);
23500 if (!SWIG_IsOK(ecode2)) {
23501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23502 }
23503 arg2 = static_cast< int >(val2);
23504 {
23505 PyThreadState* __tstate = wxPyBeginAllowThreads();
23506 result = (wxControl *)(arg1)->FindControl(arg2);
23507 wxPyEndAllowThreads(__tstate);
23508 if (PyErr_Occurred()) SWIG_fail;
23509 }
23510 {
23511 resultobj = wxPyMake_wxObject(result, 0);
23512 }
23513 return resultobj;
23514 fail:
23515 return NULL;
23516 }
23517
23518
23519 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23520 PyObject *resultobj = 0;
23521 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23522 wxToolBarToolBase *result = 0 ;
23523 void *argp1 = 0 ;
23524 int res1 = 0 ;
23525 PyObject *swig_obj[1] ;
23526
23527 if (!args) SWIG_fail;
23528 swig_obj[0] = args;
23529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23530 if (!SWIG_IsOK(res1)) {
23531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23532 }
23533 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23534 {
23535 PyThreadState* __tstate = wxPyBeginAllowThreads();
23536 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23537 wxPyEndAllowThreads(__tstate);
23538 if (PyErr_Occurred()) SWIG_fail;
23539 }
23540 {
23541 resultobj = wxPyMake_wxObject(result, (bool)0);
23542 }
23543 return resultobj;
23544 fail:
23545 return NULL;
23546 }
23547
23548
23549 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23550 PyObject *resultobj = 0;
23551 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23552 size_t arg2 ;
23553 wxToolBarToolBase *result = 0 ;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 size_t val2 ;
23557 int ecode2 = 0 ;
23558 PyObject * obj0 = 0 ;
23559 PyObject * obj1 = 0 ;
23560 char * kwnames[] = {
23561 (char *) "self",(char *) "pos", NULL
23562 };
23563
23564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23566 if (!SWIG_IsOK(res1)) {
23567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23568 }
23569 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23570 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23571 if (!SWIG_IsOK(ecode2)) {
23572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23573 }
23574 arg2 = static_cast< size_t >(val2);
23575 {
23576 PyThreadState* __tstate = wxPyBeginAllowThreads();
23577 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23578 wxPyEndAllowThreads(__tstate);
23579 if (PyErr_Occurred()) SWIG_fail;
23580 }
23581 {
23582 resultobj = wxPyMake_wxObject(result, (bool)0);
23583 }
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23591 PyObject *resultobj = 0;
23592 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23593 int arg2 ;
23594 wxToolBarToolBase *result = 0 ;
23595 void *argp1 = 0 ;
23596 int res1 = 0 ;
23597 int val2 ;
23598 int ecode2 = 0 ;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 char * kwnames[] = {
23602 (char *) "self",(char *) "id", NULL
23603 };
23604
23605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23607 if (!SWIG_IsOK(res1)) {
23608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23609 }
23610 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23611 ecode2 = SWIG_AsVal_int(obj1, &val2);
23612 if (!SWIG_IsOK(ecode2)) {
23613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23614 }
23615 arg2 = static_cast< int >(val2);
23616 {
23617 PyThreadState* __tstate = wxPyBeginAllowThreads();
23618 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23619 wxPyEndAllowThreads(__tstate);
23620 if (PyErr_Occurred()) SWIG_fail;
23621 }
23622 {
23623 resultobj = wxPyMake_wxObject(result, (bool)0);
23624 }
23625 return resultobj;
23626 fail:
23627 return NULL;
23628 }
23629
23630
23631 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23632 PyObject *resultobj = 0;
23633 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23634 size_t arg2 ;
23635 bool result;
23636 void *argp1 = 0 ;
23637 int res1 = 0 ;
23638 size_t val2 ;
23639 int ecode2 = 0 ;
23640 PyObject * obj0 = 0 ;
23641 PyObject * obj1 = 0 ;
23642 char * kwnames[] = {
23643 (char *) "self",(char *) "pos", NULL
23644 };
23645
23646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23648 if (!SWIG_IsOK(res1)) {
23649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23650 }
23651 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23652 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23653 if (!SWIG_IsOK(ecode2)) {
23654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23655 }
23656 arg2 = static_cast< size_t >(val2);
23657 {
23658 PyThreadState* __tstate = wxPyBeginAllowThreads();
23659 result = (bool)(arg1)->DeleteToolByPos(arg2);
23660 wxPyEndAllowThreads(__tstate);
23661 if (PyErr_Occurred()) SWIG_fail;
23662 }
23663 {
23664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23665 }
23666 return resultobj;
23667 fail:
23668 return NULL;
23669 }
23670
23671
23672 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23673 PyObject *resultobj = 0;
23674 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23675 int arg2 ;
23676 bool result;
23677 void *argp1 = 0 ;
23678 int res1 = 0 ;
23679 int val2 ;
23680 int ecode2 = 0 ;
23681 PyObject * obj0 = 0 ;
23682 PyObject * obj1 = 0 ;
23683 char * kwnames[] = {
23684 (char *) "self",(char *) "id", NULL
23685 };
23686
23687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23689 if (!SWIG_IsOK(res1)) {
23690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23691 }
23692 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23693 ecode2 = SWIG_AsVal_int(obj1, &val2);
23694 if (!SWIG_IsOK(ecode2)) {
23695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
23696 }
23697 arg2 = static_cast< int >(val2);
23698 {
23699 PyThreadState* __tstate = wxPyBeginAllowThreads();
23700 result = (bool)(arg1)->DeleteTool(arg2);
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 {
23705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23706 }
23707 return resultobj;
23708 fail:
23709 return NULL;
23710 }
23711
23712
23713 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23714 PyObject *resultobj = 0;
23715 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23716 void *argp1 = 0 ;
23717 int res1 = 0 ;
23718 PyObject *swig_obj[1] ;
23719
23720 if (!args) SWIG_fail;
23721 swig_obj[0] = args;
23722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23723 if (!SWIG_IsOK(res1)) {
23724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23725 }
23726 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23727 {
23728 PyThreadState* __tstate = wxPyBeginAllowThreads();
23729 (arg1)->ClearTools();
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 resultobj = SWIG_Py_Void();
23734 return resultobj;
23735 fail:
23736 return NULL;
23737 }
23738
23739
23740 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23741 PyObject *resultobj = 0;
23742 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23743 bool result;
23744 void *argp1 = 0 ;
23745 int res1 = 0 ;
23746 PyObject *swig_obj[1] ;
23747
23748 if (!args) SWIG_fail;
23749 swig_obj[0] = args;
23750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23751 if (!SWIG_IsOK(res1)) {
23752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23753 }
23754 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23755 {
23756 PyThreadState* __tstate = wxPyBeginAllowThreads();
23757 result = (bool)(arg1)->Realize();
23758 wxPyEndAllowThreads(__tstate);
23759 if (PyErr_Occurred()) SWIG_fail;
23760 }
23761 {
23762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23763 }
23764 return resultobj;
23765 fail:
23766 return NULL;
23767 }
23768
23769
23770 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23771 PyObject *resultobj = 0;
23772 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23773 int arg2 ;
23774 bool arg3 ;
23775 void *argp1 = 0 ;
23776 int res1 = 0 ;
23777 int val2 ;
23778 int ecode2 = 0 ;
23779 bool val3 ;
23780 int ecode3 = 0 ;
23781 PyObject * obj0 = 0 ;
23782 PyObject * obj1 = 0 ;
23783 PyObject * obj2 = 0 ;
23784 char * kwnames[] = {
23785 (char *) "self",(char *) "id",(char *) "enable", NULL
23786 };
23787
23788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23790 if (!SWIG_IsOK(res1)) {
23791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23792 }
23793 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23794 ecode2 = SWIG_AsVal_int(obj1, &val2);
23795 if (!SWIG_IsOK(ecode2)) {
23796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
23797 }
23798 arg2 = static_cast< int >(val2);
23799 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23800 if (!SWIG_IsOK(ecode3)) {
23801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
23802 }
23803 arg3 = static_cast< bool >(val3);
23804 {
23805 PyThreadState* __tstate = wxPyBeginAllowThreads();
23806 (arg1)->EnableTool(arg2,arg3);
23807 wxPyEndAllowThreads(__tstate);
23808 if (PyErr_Occurred()) SWIG_fail;
23809 }
23810 resultobj = SWIG_Py_Void();
23811 return resultobj;
23812 fail:
23813 return NULL;
23814 }
23815
23816
23817 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23818 PyObject *resultobj = 0;
23819 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23820 int arg2 ;
23821 bool arg3 ;
23822 void *argp1 = 0 ;
23823 int res1 = 0 ;
23824 int val2 ;
23825 int ecode2 = 0 ;
23826 bool val3 ;
23827 int ecode3 = 0 ;
23828 PyObject * obj0 = 0 ;
23829 PyObject * obj1 = 0 ;
23830 PyObject * obj2 = 0 ;
23831 char * kwnames[] = {
23832 (char *) "self",(char *) "id",(char *) "toggle", NULL
23833 };
23834
23835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23837 if (!SWIG_IsOK(res1)) {
23838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23839 }
23840 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23841 ecode2 = SWIG_AsVal_int(obj1, &val2);
23842 if (!SWIG_IsOK(ecode2)) {
23843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
23844 }
23845 arg2 = static_cast< int >(val2);
23846 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23847 if (!SWIG_IsOK(ecode3)) {
23848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
23849 }
23850 arg3 = static_cast< bool >(val3);
23851 {
23852 PyThreadState* __tstate = wxPyBeginAllowThreads();
23853 (arg1)->ToggleTool(arg2,arg3);
23854 wxPyEndAllowThreads(__tstate);
23855 if (PyErr_Occurred()) SWIG_fail;
23856 }
23857 resultobj = SWIG_Py_Void();
23858 return resultobj;
23859 fail:
23860 return NULL;
23861 }
23862
23863
23864 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23865 PyObject *resultobj = 0;
23866 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23867 int arg2 ;
23868 bool arg3 ;
23869 void *argp1 = 0 ;
23870 int res1 = 0 ;
23871 int val2 ;
23872 int ecode2 = 0 ;
23873 bool val3 ;
23874 int ecode3 = 0 ;
23875 PyObject * obj0 = 0 ;
23876 PyObject * obj1 = 0 ;
23877 PyObject * obj2 = 0 ;
23878 char * kwnames[] = {
23879 (char *) "self",(char *) "id",(char *) "toggle", NULL
23880 };
23881
23882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23884 if (!SWIG_IsOK(res1)) {
23885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23886 }
23887 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23888 ecode2 = SWIG_AsVal_int(obj1, &val2);
23889 if (!SWIG_IsOK(ecode2)) {
23890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
23891 }
23892 arg2 = static_cast< int >(val2);
23893 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23894 if (!SWIG_IsOK(ecode3)) {
23895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
23896 }
23897 arg3 = static_cast< bool >(val3);
23898 {
23899 PyThreadState* __tstate = wxPyBeginAllowThreads();
23900 (arg1)->SetToggle(arg2,arg3);
23901 wxPyEndAllowThreads(__tstate);
23902 if (PyErr_Occurred()) SWIG_fail;
23903 }
23904 resultobj = SWIG_Py_Void();
23905 return resultobj;
23906 fail:
23907 return NULL;
23908 }
23909
23910
23911 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23912 PyObject *resultobj = 0;
23913 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23914 int arg2 ;
23915 PyObject *result = 0 ;
23916 void *argp1 = 0 ;
23917 int res1 = 0 ;
23918 int val2 ;
23919 int ecode2 = 0 ;
23920 PyObject * obj0 = 0 ;
23921 PyObject * obj1 = 0 ;
23922 char * kwnames[] = {
23923 (char *) "self",(char *) "id", NULL
23924 };
23925
23926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23928 if (!SWIG_IsOK(res1)) {
23929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23930 }
23931 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23932 ecode2 = SWIG_AsVal_int(obj1, &val2);
23933 if (!SWIG_IsOK(ecode2)) {
23934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
23935 }
23936 arg2 = static_cast< int >(val2);
23937 {
23938 PyThreadState* __tstate = wxPyBeginAllowThreads();
23939 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
23940 wxPyEndAllowThreads(__tstate);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 resultobj = result;
23944 return resultobj;
23945 fail:
23946 return NULL;
23947 }
23948
23949
23950 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23951 PyObject *resultobj = 0;
23952 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23953 int arg2 ;
23954 PyObject *arg3 = (PyObject *) 0 ;
23955 void *argp1 = 0 ;
23956 int res1 = 0 ;
23957 int val2 ;
23958 int ecode2 = 0 ;
23959 PyObject * obj0 = 0 ;
23960 PyObject * obj1 = 0 ;
23961 PyObject * obj2 = 0 ;
23962 char * kwnames[] = {
23963 (char *) "self",(char *) "id",(char *) "clientData", NULL
23964 };
23965
23966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23968 if (!SWIG_IsOK(res1)) {
23969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23970 }
23971 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23972 ecode2 = SWIG_AsVal_int(obj1, &val2);
23973 if (!SWIG_IsOK(ecode2)) {
23974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
23975 }
23976 arg2 = static_cast< int >(val2);
23977 arg3 = obj2;
23978 {
23979 PyThreadState* __tstate = wxPyBeginAllowThreads();
23980 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 resultobj = SWIG_Py_Void();
23985 return resultobj;
23986 fail:
23987 return NULL;
23988 }
23989
23990
23991 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23992 PyObject *resultobj = 0;
23993 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23994 int arg2 ;
23995 int result;
23996 void *argp1 = 0 ;
23997 int res1 = 0 ;
23998 int val2 ;
23999 int ecode2 = 0 ;
24000 PyObject * obj0 = 0 ;
24001 PyObject * obj1 = 0 ;
24002 char * kwnames[] = {
24003 (char *) "self",(char *) "id", NULL
24004 };
24005
24006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24008 if (!SWIG_IsOK(res1)) {
24009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24010 }
24011 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24012 ecode2 = SWIG_AsVal_int(obj1, &val2);
24013 if (!SWIG_IsOK(ecode2)) {
24014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24015 }
24016 arg2 = static_cast< int >(val2);
24017 {
24018 PyThreadState* __tstate = wxPyBeginAllowThreads();
24019 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 resultobj = SWIG_From_int(static_cast< int >(result));
24024 return resultobj;
24025 fail:
24026 return NULL;
24027 }
24028
24029
24030 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24031 PyObject *resultobj = 0;
24032 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24033 int arg2 ;
24034 bool result;
24035 void *argp1 = 0 ;
24036 int res1 = 0 ;
24037 int val2 ;
24038 int ecode2 = 0 ;
24039 PyObject * obj0 = 0 ;
24040 PyObject * obj1 = 0 ;
24041 char * kwnames[] = {
24042 (char *) "self",(char *) "id", NULL
24043 };
24044
24045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24047 if (!SWIG_IsOK(res1)) {
24048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24049 }
24050 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24051 ecode2 = SWIG_AsVal_int(obj1, &val2);
24052 if (!SWIG_IsOK(ecode2)) {
24053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24054 }
24055 arg2 = static_cast< int >(val2);
24056 {
24057 PyThreadState* __tstate = wxPyBeginAllowThreads();
24058 result = (bool)(arg1)->GetToolState(arg2);
24059 wxPyEndAllowThreads(__tstate);
24060 if (PyErr_Occurred()) SWIG_fail;
24061 }
24062 {
24063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24064 }
24065 return resultobj;
24066 fail:
24067 return NULL;
24068 }
24069
24070
24071 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24072 PyObject *resultobj = 0;
24073 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24074 int arg2 ;
24075 bool result;
24076 void *argp1 = 0 ;
24077 int res1 = 0 ;
24078 int val2 ;
24079 int ecode2 = 0 ;
24080 PyObject * obj0 = 0 ;
24081 PyObject * obj1 = 0 ;
24082 char * kwnames[] = {
24083 (char *) "self",(char *) "id", NULL
24084 };
24085
24086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24088 if (!SWIG_IsOK(res1)) {
24089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24090 }
24091 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24092 ecode2 = SWIG_AsVal_int(obj1, &val2);
24093 if (!SWIG_IsOK(ecode2)) {
24094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24095 }
24096 arg2 = static_cast< int >(val2);
24097 {
24098 PyThreadState* __tstate = wxPyBeginAllowThreads();
24099 result = (bool)(arg1)->GetToolEnabled(arg2);
24100 wxPyEndAllowThreads(__tstate);
24101 if (PyErr_Occurred()) SWIG_fail;
24102 }
24103 {
24104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24105 }
24106 return resultobj;
24107 fail:
24108 return NULL;
24109 }
24110
24111
24112 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24113 PyObject *resultobj = 0;
24114 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24115 int arg2 ;
24116 wxString *arg3 = 0 ;
24117 void *argp1 = 0 ;
24118 int res1 = 0 ;
24119 int val2 ;
24120 int ecode2 = 0 ;
24121 bool temp3 = false ;
24122 PyObject * obj0 = 0 ;
24123 PyObject * obj1 = 0 ;
24124 PyObject * obj2 = 0 ;
24125 char * kwnames[] = {
24126 (char *) "self",(char *) "id",(char *) "helpString", NULL
24127 };
24128
24129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24131 if (!SWIG_IsOK(res1)) {
24132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24133 }
24134 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24135 ecode2 = SWIG_AsVal_int(obj1, &val2);
24136 if (!SWIG_IsOK(ecode2)) {
24137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24138 }
24139 arg2 = static_cast< int >(val2);
24140 {
24141 arg3 = wxString_in_helper(obj2);
24142 if (arg3 == NULL) SWIG_fail;
24143 temp3 = true;
24144 }
24145 {
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 resultobj = SWIG_Py_Void();
24152 {
24153 if (temp3)
24154 delete arg3;
24155 }
24156 return resultobj;
24157 fail:
24158 {
24159 if (temp3)
24160 delete arg3;
24161 }
24162 return NULL;
24163 }
24164
24165
24166 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24167 PyObject *resultobj = 0;
24168 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24169 int arg2 ;
24170 wxString result;
24171 void *argp1 = 0 ;
24172 int res1 = 0 ;
24173 int val2 ;
24174 int ecode2 = 0 ;
24175 PyObject * obj0 = 0 ;
24176 PyObject * obj1 = 0 ;
24177 char * kwnames[] = {
24178 (char *) "self",(char *) "id", NULL
24179 };
24180
24181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24183 if (!SWIG_IsOK(res1)) {
24184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24185 }
24186 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24187 ecode2 = SWIG_AsVal_int(obj1, &val2);
24188 if (!SWIG_IsOK(ecode2)) {
24189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24190 }
24191 arg2 = static_cast< int >(val2);
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 result = (arg1)->GetToolShortHelp(arg2);
24195 wxPyEndAllowThreads(__tstate);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 }
24198 {
24199 #if wxUSE_UNICODE
24200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24201 #else
24202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24203 #endif
24204 }
24205 return resultobj;
24206 fail:
24207 return NULL;
24208 }
24209
24210
24211 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24212 PyObject *resultobj = 0;
24213 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24214 int arg2 ;
24215 wxString *arg3 = 0 ;
24216 void *argp1 = 0 ;
24217 int res1 = 0 ;
24218 int val2 ;
24219 int ecode2 = 0 ;
24220 bool temp3 = false ;
24221 PyObject * obj0 = 0 ;
24222 PyObject * obj1 = 0 ;
24223 PyObject * obj2 = 0 ;
24224 char * kwnames[] = {
24225 (char *) "self",(char *) "id",(char *) "helpString", NULL
24226 };
24227
24228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24230 if (!SWIG_IsOK(res1)) {
24231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24232 }
24233 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24234 ecode2 = SWIG_AsVal_int(obj1, &val2);
24235 if (!SWIG_IsOK(ecode2)) {
24236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24237 }
24238 arg2 = static_cast< int >(val2);
24239 {
24240 arg3 = wxString_in_helper(obj2);
24241 if (arg3 == NULL) SWIG_fail;
24242 temp3 = true;
24243 }
24244 {
24245 PyThreadState* __tstate = wxPyBeginAllowThreads();
24246 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24247 wxPyEndAllowThreads(__tstate);
24248 if (PyErr_Occurred()) SWIG_fail;
24249 }
24250 resultobj = SWIG_Py_Void();
24251 {
24252 if (temp3)
24253 delete arg3;
24254 }
24255 return resultobj;
24256 fail:
24257 {
24258 if (temp3)
24259 delete arg3;
24260 }
24261 return NULL;
24262 }
24263
24264
24265 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24266 PyObject *resultobj = 0;
24267 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24268 int arg2 ;
24269 wxString result;
24270 void *argp1 = 0 ;
24271 int res1 = 0 ;
24272 int val2 ;
24273 int ecode2 = 0 ;
24274 PyObject * obj0 = 0 ;
24275 PyObject * obj1 = 0 ;
24276 char * kwnames[] = {
24277 (char *) "self",(char *) "id", NULL
24278 };
24279
24280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24282 if (!SWIG_IsOK(res1)) {
24283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24284 }
24285 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24286 ecode2 = SWIG_AsVal_int(obj1, &val2);
24287 if (!SWIG_IsOK(ecode2)) {
24288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24289 }
24290 arg2 = static_cast< int >(val2);
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 result = (arg1)->GetToolLongHelp(arg2);
24294 wxPyEndAllowThreads(__tstate);
24295 if (PyErr_Occurred()) SWIG_fail;
24296 }
24297 {
24298 #if wxUSE_UNICODE
24299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24300 #else
24301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24302 #endif
24303 }
24304 return resultobj;
24305 fail:
24306 return NULL;
24307 }
24308
24309
24310 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24311 PyObject *resultobj = 0;
24312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24313 int arg2 ;
24314 int arg3 ;
24315 void *argp1 = 0 ;
24316 int res1 = 0 ;
24317 int val2 ;
24318 int ecode2 = 0 ;
24319 int val3 ;
24320 int ecode3 = 0 ;
24321 PyObject * obj0 = 0 ;
24322 PyObject * obj1 = 0 ;
24323 PyObject * obj2 = 0 ;
24324 char * kwnames[] = {
24325 (char *) "self",(char *) "x",(char *) "y", NULL
24326 };
24327
24328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24330 if (!SWIG_IsOK(res1)) {
24331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24332 }
24333 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24334 ecode2 = SWIG_AsVal_int(obj1, &val2);
24335 if (!SWIG_IsOK(ecode2)) {
24336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24337 }
24338 arg2 = static_cast< int >(val2);
24339 ecode3 = SWIG_AsVal_int(obj2, &val3);
24340 if (!SWIG_IsOK(ecode3)) {
24341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24342 }
24343 arg3 = static_cast< int >(val3);
24344 {
24345 PyThreadState* __tstate = wxPyBeginAllowThreads();
24346 (arg1)->SetMargins(arg2,arg3);
24347 wxPyEndAllowThreads(__tstate);
24348 if (PyErr_Occurred()) SWIG_fail;
24349 }
24350 resultobj = SWIG_Py_Void();
24351 return resultobj;
24352 fail:
24353 return NULL;
24354 }
24355
24356
24357 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24358 PyObject *resultobj = 0;
24359 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24360 wxSize *arg2 = 0 ;
24361 void *argp1 = 0 ;
24362 int res1 = 0 ;
24363 wxSize temp2 ;
24364 PyObject * obj0 = 0 ;
24365 PyObject * obj1 = 0 ;
24366 char * kwnames[] = {
24367 (char *) "self",(char *) "size", NULL
24368 };
24369
24370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24372 if (!SWIG_IsOK(res1)) {
24373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24374 }
24375 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24376 {
24377 arg2 = &temp2;
24378 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24379 }
24380 {
24381 PyThreadState* __tstate = wxPyBeginAllowThreads();
24382 (arg1)->SetMargins((wxSize const &)*arg2);
24383 wxPyEndAllowThreads(__tstate);
24384 if (PyErr_Occurred()) SWIG_fail;
24385 }
24386 resultobj = SWIG_Py_Void();
24387 return resultobj;
24388 fail:
24389 return NULL;
24390 }
24391
24392
24393 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24394 PyObject *resultobj = 0;
24395 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24396 int arg2 ;
24397 void *argp1 = 0 ;
24398 int res1 = 0 ;
24399 int val2 ;
24400 int ecode2 = 0 ;
24401 PyObject * obj0 = 0 ;
24402 PyObject * obj1 = 0 ;
24403 char * kwnames[] = {
24404 (char *) "self",(char *) "packing", NULL
24405 };
24406
24407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24409 if (!SWIG_IsOK(res1)) {
24410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24411 }
24412 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24413 ecode2 = SWIG_AsVal_int(obj1, &val2);
24414 if (!SWIG_IsOK(ecode2)) {
24415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24416 }
24417 arg2 = static_cast< int >(val2);
24418 {
24419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24420 (arg1)->SetToolPacking(arg2);
24421 wxPyEndAllowThreads(__tstate);
24422 if (PyErr_Occurred()) SWIG_fail;
24423 }
24424 resultobj = SWIG_Py_Void();
24425 return resultobj;
24426 fail:
24427 return NULL;
24428 }
24429
24430
24431 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24432 PyObject *resultobj = 0;
24433 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24434 int arg2 ;
24435 void *argp1 = 0 ;
24436 int res1 = 0 ;
24437 int val2 ;
24438 int ecode2 = 0 ;
24439 PyObject * obj0 = 0 ;
24440 PyObject * obj1 = 0 ;
24441 char * kwnames[] = {
24442 (char *) "self",(char *) "separation", NULL
24443 };
24444
24445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24447 if (!SWIG_IsOK(res1)) {
24448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24449 }
24450 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24451 ecode2 = SWIG_AsVal_int(obj1, &val2);
24452 if (!SWIG_IsOK(ecode2)) {
24453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24454 }
24455 arg2 = static_cast< int >(val2);
24456 {
24457 PyThreadState* __tstate = wxPyBeginAllowThreads();
24458 (arg1)->SetToolSeparation(arg2);
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 resultobj = SWIG_Py_Void();
24463 return resultobj;
24464 fail:
24465 return NULL;
24466 }
24467
24468
24469 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24470 PyObject *resultobj = 0;
24471 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24472 wxSize result;
24473 void *argp1 = 0 ;
24474 int res1 = 0 ;
24475 PyObject *swig_obj[1] ;
24476
24477 if (!args) SWIG_fail;
24478 swig_obj[0] = args;
24479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24480 if (!SWIG_IsOK(res1)) {
24481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24482 }
24483 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24484 {
24485 PyThreadState* __tstate = wxPyBeginAllowThreads();
24486 result = (arg1)->GetToolMargins();
24487 wxPyEndAllowThreads(__tstate);
24488 if (PyErr_Occurred()) SWIG_fail;
24489 }
24490 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24491 return resultobj;
24492 fail:
24493 return NULL;
24494 }
24495
24496
24497 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24498 PyObject *resultobj = 0;
24499 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24500 wxSize result;
24501 void *argp1 = 0 ;
24502 int res1 = 0 ;
24503 PyObject *swig_obj[1] ;
24504
24505 if (!args) SWIG_fail;
24506 swig_obj[0] = args;
24507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24508 if (!SWIG_IsOK(res1)) {
24509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24510 }
24511 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 result = (arg1)->GetMargins();
24515 wxPyEndAllowThreads(__tstate);
24516 if (PyErr_Occurred()) SWIG_fail;
24517 }
24518 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24519 return resultobj;
24520 fail:
24521 return NULL;
24522 }
24523
24524
24525 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24526 PyObject *resultobj = 0;
24527 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24528 int result;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 PyObject *swig_obj[1] ;
24532
24533 if (!args) SWIG_fail;
24534 swig_obj[0] = args;
24535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24538 }
24539 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24540 {
24541 PyThreadState* __tstate = wxPyBeginAllowThreads();
24542 result = (int)(arg1)->GetToolPacking();
24543 wxPyEndAllowThreads(__tstate);
24544 if (PyErr_Occurred()) SWIG_fail;
24545 }
24546 resultobj = SWIG_From_int(static_cast< int >(result));
24547 return resultobj;
24548 fail:
24549 return NULL;
24550 }
24551
24552
24553 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24554 PyObject *resultobj = 0;
24555 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24556 int result;
24557 void *argp1 = 0 ;
24558 int res1 = 0 ;
24559 PyObject *swig_obj[1] ;
24560
24561 if (!args) SWIG_fail;
24562 swig_obj[0] = args;
24563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24564 if (!SWIG_IsOK(res1)) {
24565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24566 }
24567 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24568 {
24569 PyThreadState* __tstate = wxPyBeginAllowThreads();
24570 result = (int)(arg1)->GetToolSeparation();
24571 wxPyEndAllowThreads(__tstate);
24572 if (PyErr_Occurred()) SWIG_fail;
24573 }
24574 resultobj = SWIG_From_int(static_cast< int >(result));
24575 return resultobj;
24576 fail:
24577 return NULL;
24578 }
24579
24580
24581 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24582 PyObject *resultobj = 0;
24583 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24584 int arg2 ;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 int val2 ;
24588 int ecode2 = 0 ;
24589 PyObject * obj0 = 0 ;
24590 PyObject * obj1 = 0 ;
24591 char * kwnames[] = {
24592 (char *) "self",(char *) "nRows", NULL
24593 };
24594
24595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24597 if (!SWIG_IsOK(res1)) {
24598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24599 }
24600 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24601 ecode2 = SWIG_AsVal_int(obj1, &val2);
24602 if (!SWIG_IsOK(ecode2)) {
24603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24604 }
24605 arg2 = static_cast< int >(val2);
24606 {
24607 PyThreadState* __tstate = wxPyBeginAllowThreads();
24608 (arg1)->SetRows(arg2);
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24612 resultobj = SWIG_Py_Void();
24613 return resultobj;
24614 fail:
24615 return NULL;
24616 }
24617
24618
24619 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24620 PyObject *resultobj = 0;
24621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24622 int arg2 ;
24623 int arg3 ;
24624 void *argp1 = 0 ;
24625 int res1 = 0 ;
24626 int val2 ;
24627 int ecode2 = 0 ;
24628 int val3 ;
24629 int ecode3 = 0 ;
24630 PyObject * obj0 = 0 ;
24631 PyObject * obj1 = 0 ;
24632 PyObject * obj2 = 0 ;
24633 char * kwnames[] = {
24634 (char *) "self",(char *) "rows",(char *) "cols", NULL
24635 };
24636
24637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24639 if (!SWIG_IsOK(res1)) {
24640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24641 }
24642 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24643 ecode2 = SWIG_AsVal_int(obj1, &val2);
24644 if (!SWIG_IsOK(ecode2)) {
24645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24646 }
24647 arg2 = static_cast< int >(val2);
24648 ecode3 = SWIG_AsVal_int(obj2, &val3);
24649 if (!SWIG_IsOK(ecode3)) {
24650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24651 }
24652 arg3 = static_cast< int >(val3);
24653 {
24654 PyThreadState* __tstate = wxPyBeginAllowThreads();
24655 (arg1)->SetMaxRowsCols(arg2,arg3);
24656 wxPyEndAllowThreads(__tstate);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 resultobj = SWIG_Py_Void();
24660 return resultobj;
24661 fail:
24662 return NULL;
24663 }
24664
24665
24666 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24667 PyObject *resultobj = 0;
24668 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24669 int result;
24670 void *argp1 = 0 ;
24671 int res1 = 0 ;
24672 PyObject *swig_obj[1] ;
24673
24674 if (!args) SWIG_fail;
24675 swig_obj[0] = args;
24676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24677 if (!SWIG_IsOK(res1)) {
24678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24679 }
24680 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24681 {
24682 PyThreadState* __tstate = wxPyBeginAllowThreads();
24683 result = (int)(arg1)->GetMaxRows();
24684 wxPyEndAllowThreads(__tstate);
24685 if (PyErr_Occurred()) SWIG_fail;
24686 }
24687 resultobj = SWIG_From_int(static_cast< int >(result));
24688 return resultobj;
24689 fail:
24690 return NULL;
24691 }
24692
24693
24694 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24695 PyObject *resultobj = 0;
24696 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24697 int result;
24698 void *argp1 = 0 ;
24699 int res1 = 0 ;
24700 PyObject *swig_obj[1] ;
24701
24702 if (!args) SWIG_fail;
24703 swig_obj[0] = args;
24704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24705 if (!SWIG_IsOK(res1)) {
24706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24707 }
24708 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24709 {
24710 PyThreadState* __tstate = wxPyBeginAllowThreads();
24711 result = (int)(arg1)->GetMaxCols();
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 resultobj = SWIG_From_int(static_cast< int >(result));
24716 return resultobj;
24717 fail:
24718 return NULL;
24719 }
24720
24721
24722 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24723 PyObject *resultobj = 0;
24724 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24725 wxSize *arg2 = 0 ;
24726 void *argp1 = 0 ;
24727 int res1 = 0 ;
24728 wxSize temp2 ;
24729 PyObject * obj0 = 0 ;
24730 PyObject * obj1 = 0 ;
24731 char * kwnames[] = {
24732 (char *) "self",(char *) "size", NULL
24733 };
24734
24735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
24736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24737 if (!SWIG_IsOK(res1)) {
24738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24739 }
24740 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24741 {
24742 arg2 = &temp2;
24743 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24744 }
24745 {
24746 PyThreadState* __tstate = wxPyBeginAllowThreads();
24747 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
24748 wxPyEndAllowThreads(__tstate);
24749 if (PyErr_Occurred()) SWIG_fail;
24750 }
24751 resultobj = SWIG_Py_Void();
24752 return resultobj;
24753 fail:
24754 return NULL;
24755 }
24756
24757
24758 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24759 PyObject *resultobj = 0;
24760 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24761 wxSize result;
24762 void *argp1 = 0 ;
24763 int res1 = 0 ;
24764 PyObject *swig_obj[1] ;
24765
24766 if (!args) SWIG_fail;
24767 swig_obj[0] = args;
24768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24769 if (!SWIG_IsOK(res1)) {
24770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24771 }
24772 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24773 {
24774 PyThreadState* __tstate = wxPyBeginAllowThreads();
24775 result = (arg1)->GetToolBitmapSize();
24776 wxPyEndAllowThreads(__tstate);
24777 if (PyErr_Occurred()) SWIG_fail;
24778 }
24779 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24780 return resultobj;
24781 fail:
24782 return NULL;
24783 }
24784
24785
24786 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24787 PyObject *resultobj = 0;
24788 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24789 wxSize result;
24790 void *argp1 = 0 ;
24791 int res1 = 0 ;
24792 PyObject *swig_obj[1] ;
24793
24794 if (!args) SWIG_fail;
24795 swig_obj[0] = args;
24796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24797 if (!SWIG_IsOK(res1)) {
24798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24799 }
24800 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24801 {
24802 PyThreadState* __tstate = wxPyBeginAllowThreads();
24803 result = (arg1)->GetToolSize();
24804 wxPyEndAllowThreads(__tstate);
24805 if (PyErr_Occurred()) SWIG_fail;
24806 }
24807 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24808 return resultobj;
24809 fail:
24810 return NULL;
24811 }
24812
24813
24814 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24815 PyObject *resultobj = 0;
24816 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24817 int arg2 ;
24818 int arg3 ;
24819 wxToolBarToolBase *result = 0 ;
24820 void *argp1 = 0 ;
24821 int res1 = 0 ;
24822 int val2 ;
24823 int ecode2 = 0 ;
24824 int val3 ;
24825 int ecode3 = 0 ;
24826 PyObject * obj0 = 0 ;
24827 PyObject * obj1 = 0 ;
24828 PyObject * obj2 = 0 ;
24829 char * kwnames[] = {
24830 (char *) "self",(char *) "x",(char *) "y", NULL
24831 };
24832
24833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24835 if (!SWIG_IsOK(res1)) {
24836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24837 }
24838 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24839 ecode2 = SWIG_AsVal_int(obj1, &val2);
24840 if (!SWIG_IsOK(ecode2)) {
24841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
24842 }
24843 arg2 = static_cast< int >(val2);
24844 ecode3 = SWIG_AsVal_int(obj2, &val3);
24845 if (!SWIG_IsOK(ecode3)) {
24846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
24847 }
24848 arg3 = static_cast< int >(val3);
24849 {
24850 PyThreadState* __tstate = wxPyBeginAllowThreads();
24851 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
24852 wxPyEndAllowThreads(__tstate);
24853 if (PyErr_Occurred()) SWIG_fail;
24854 }
24855 {
24856 resultobj = wxPyMake_wxObject(result, (bool)0);
24857 }
24858 return resultobj;
24859 fail:
24860 return NULL;
24861 }
24862
24863
24864 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24865 PyObject *resultobj = 0;
24866 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24867 int arg2 ;
24868 wxToolBarToolBase *result = 0 ;
24869 void *argp1 = 0 ;
24870 int res1 = 0 ;
24871 int val2 ;
24872 int ecode2 = 0 ;
24873 PyObject * obj0 = 0 ;
24874 PyObject * obj1 = 0 ;
24875 char * kwnames[] = {
24876 (char *) "self",(char *) "toolid", NULL
24877 };
24878
24879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
24880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24881 if (!SWIG_IsOK(res1)) {
24882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24883 }
24884 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24885 ecode2 = SWIG_AsVal_int(obj1, &val2);
24886 if (!SWIG_IsOK(ecode2)) {
24887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
24888 }
24889 arg2 = static_cast< int >(val2);
24890 {
24891 PyThreadState* __tstate = wxPyBeginAllowThreads();
24892 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
24893 wxPyEndAllowThreads(__tstate);
24894 if (PyErr_Occurred()) SWIG_fail;
24895 }
24896 {
24897 resultobj = wxPyMake_wxObject(result, (bool)0);
24898 }
24899 return resultobj;
24900 fail:
24901 return NULL;
24902 }
24903
24904
24905 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24906 PyObject *resultobj = 0;
24907 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24908 bool result;
24909 void *argp1 = 0 ;
24910 int res1 = 0 ;
24911 PyObject *swig_obj[1] ;
24912
24913 if (!args) SWIG_fail;
24914 swig_obj[0] = args;
24915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24916 if (!SWIG_IsOK(res1)) {
24917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24918 }
24919 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24920 {
24921 PyThreadState* __tstate = wxPyBeginAllowThreads();
24922 result = (bool)(arg1)->IsVertical();
24923 wxPyEndAllowThreads(__tstate);
24924 if (PyErr_Occurred()) SWIG_fail;
24925 }
24926 {
24927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24928 }
24929 return resultobj;
24930 fail:
24931 return NULL;
24932 }
24933
24934
24935 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24936 PyObject *resultobj = 0;
24937 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24938 size_t result;
24939 void *argp1 = 0 ;
24940 int res1 = 0 ;
24941 PyObject *swig_obj[1] ;
24942
24943 if (!args) SWIG_fail;
24944 swig_obj[0] = args;
24945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24946 if (!SWIG_IsOK(res1)) {
24947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24948 }
24949 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24950 {
24951 PyThreadState* __tstate = wxPyBeginAllowThreads();
24952 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
24957 return resultobj;
24958 fail:
24959 return NULL;
24960 }
24961
24962
24963 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24964 PyObject *obj;
24965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24966 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
24967 return SWIG_Py_Void();
24968 }
24969
24970 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24971 PyObject *resultobj = 0;
24972 wxWindow *arg1 = (wxWindow *) 0 ;
24973 int arg2 = (int) -1 ;
24974 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24975 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24976 wxSize const &arg4_defvalue = wxDefaultSize ;
24977 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24978 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
24979 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
24980 wxString *arg6 = (wxString *) &arg6_defvalue ;
24981 wxToolBar *result = 0 ;
24982 void *argp1 = 0 ;
24983 int res1 = 0 ;
24984 int val2 ;
24985 int ecode2 = 0 ;
24986 wxPoint temp3 ;
24987 wxSize temp4 ;
24988 long val5 ;
24989 int ecode5 = 0 ;
24990 bool temp6 = false ;
24991 PyObject * obj0 = 0 ;
24992 PyObject * obj1 = 0 ;
24993 PyObject * obj2 = 0 ;
24994 PyObject * obj3 = 0 ;
24995 PyObject * obj4 = 0 ;
24996 PyObject * obj5 = 0 ;
24997 char * kwnames[] = {
24998 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
24999 };
25000
25001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25003 if (!SWIG_IsOK(res1)) {
25004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25005 }
25006 arg1 = reinterpret_cast< wxWindow * >(argp1);
25007 if (obj1) {
25008 ecode2 = SWIG_AsVal_int(obj1, &val2);
25009 if (!SWIG_IsOK(ecode2)) {
25010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25011 }
25012 arg2 = static_cast< int >(val2);
25013 }
25014 if (obj2) {
25015 {
25016 arg3 = &temp3;
25017 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25018 }
25019 }
25020 if (obj3) {
25021 {
25022 arg4 = &temp4;
25023 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25024 }
25025 }
25026 if (obj4) {
25027 ecode5 = SWIG_AsVal_long(obj4, &val5);
25028 if (!SWIG_IsOK(ecode5)) {
25029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25030 }
25031 arg5 = static_cast< long >(val5);
25032 }
25033 if (obj5) {
25034 {
25035 arg6 = wxString_in_helper(obj5);
25036 if (arg6 == NULL) SWIG_fail;
25037 temp6 = true;
25038 }
25039 }
25040 {
25041 if (!wxPyCheckForApp()) SWIG_fail;
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25048 {
25049 if (temp6)
25050 delete arg6;
25051 }
25052 return resultobj;
25053 fail:
25054 {
25055 if (temp6)
25056 delete arg6;
25057 }
25058 return NULL;
25059 }
25060
25061
25062 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25063 PyObject *resultobj = 0;
25064 wxToolBar *result = 0 ;
25065
25066 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25067 {
25068 if (!wxPyCheckForApp()) SWIG_fail;
25069 PyThreadState* __tstate = wxPyBeginAllowThreads();
25070 result = (wxToolBar *)new wxToolBar();
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25075 return resultobj;
25076 fail:
25077 return NULL;
25078 }
25079
25080
25081 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj = 0;
25083 wxToolBar *arg1 = (wxToolBar *) 0 ;
25084 wxWindow *arg2 = (wxWindow *) 0 ;
25085 int arg3 = (int) -1 ;
25086 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25087 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25088 wxSize const &arg5_defvalue = wxDefaultSize ;
25089 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25090 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25091 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25092 wxString *arg7 = (wxString *) &arg7_defvalue ;
25093 bool result;
25094 void *argp1 = 0 ;
25095 int res1 = 0 ;
25096 void *argp2 = 0 ;
25097 int res2 = 0 ;
25098 int val3 ;
25099 int ecode3 = 0 ;
25100 wxPoint temp4 ;
25101 wxSize temp5 ;
25102 long val6 ;
25103 int ecode6 = 0 ;
25104 bool temp7 = false ;
25105 PyObject * obj0 = 0 ;
25106 PyObject * obj1 = 0 ;
25107 PyObject * obj2 = 0 ;
25108 PyObject * obj3 = 0 ;
25109 PyObject * obj4 = 0 ;
25110 PyObject * obj5 = 0 ;
25111 PyObject * obj6 = 0 ;
25112 char * kwnames[] = {
25113 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25114 };
25115
25116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25118 if (!SWIG_IsOK(res1)) {
25119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25120 }
25121 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25123 if (!SWIG_IsOK(res2)) {
25124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25125 }
25126 arg2 = reinterpret_cast< wxWindow * >(argp2);
25127 if (obj2) {
25128 ecode3 = SWIG_AsVal_int(obj2, &val3);
25129 if (!SWIG_IsOK(ecode3)) {
25130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25131 }
25132 arg3 = static_cast< int >(val3);
25133 }
25134 if (obj3) {
25135 {
25136 arg4 = &temp4;
25137 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25138 }
25139 }
25140 if (obj4) {
25141 {
25142 arg5 = &temp5;
25143 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25144 }
25145 }
25146 if (obj5) {
25147 ecode6 = SWIG_AsVal_long(obj5, &val6);
25148 if (!SWIG_IsOK(ecode6)) {
25149 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25150 }
25151 arg6 = static_cast< long >(val6);
25152 }
25153 if (obj6) {
25154 {
25155 arg7 = wxString_in_helper(obj6);
25156 if (arg7 == NULL) SWIG_fail;
25157 temp7 = true;
25158 }
25159 }
25160 {
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 {
25167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25168 }
25169 {
25170 if (temp7)
25171 delete arg7;
25172 }
25173 return resultobj;
25174 fail:
25175 {
25176 if (temp7)
25177 delete arg7;
25178 }
25179 return NULL;
25180 }
25181
25182
25183 SWIGINTERN PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25184 PyObject *resultobj = 0;
25185 wxToolBar *arg1 = (wxToolBar *) 0 ;
25186 int arg2 ;
25187 int arg3 ;
25188 wxToolBarToolBase *result = 0 ;
25189 void *argp1 = 0 ;
25190 int res1 = 0 ;
25191 int val2 ;
25192 int ecode2 = 0 ;
25193 int val3 ;
25194 int ecode3 = 0 ;
25195 PyObject * obj0 = 0 ;
25196 PyObject * obj1 = 0 ;
25197 PyObject * obj2 = 0 ;
25198 char * kwnames[] = {
25199 (char *) "self",(char *) "x",(char *) "y", NULL
25200 };
25201
25202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25204 if (!SWIG_IsOK(res1)) {
25205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBar *""'");
25206 }
25207 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25208 ecode2 = SWIG_AsVal_int(obj1, &val2);
25209 if (!SWIG_IsOK(ecode2)) {
25210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25211 }
25212 arg2 = static_cast< int >(val2);
25213 ecode3 = SWIG_AsVal_int(obj2, &val3);
25214 if (!SWIG_IsOK(ecode3)) {
25215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25216 }
25217 arg3 = static_cast< int >(val3);
25218 {
25219 PyThreadState* __tstate = wxPyBeginAllowThreads();
25220 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 {
25225 resultobj = wxPyMake_wxObject(result, (bool)0);
25226 }
25227 return resultobj;
25228 fail:
25229 return NULL;
25230 }
25231
25232
25233 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25234 PyObject *resultobj = 0;
25235 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25236 SwigValueWrapper<wxVisualAttributes > result;
25237 int val1 ;
25238 int ecode1 = 0 ;
25239 PyObject * obj0 = 0 ;
25240 char * kwnames[] = {
25241 (char *) "variant", NULL
25242 };
25243
25244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25245 if (obj0) {
25246 ecode1 = SWIG_AsVal_int(obj0, &val1);
25247 if (!SWIG_IsOK(ecode1)) {
25248 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25249 }
25250 arg1 = static_cast< wxWindowVariant >(val1);
25251 }
25252 {
25253 if (!wxPyCheckForApp()) SWIG_fail;
25254 PyThreadState* __tstate = wxPyBeginAllowThreads();
25255 result = wxToolBar::GetClassDefaultAttributes(arg1);
25256 wxPyEndAllowThreads(__tstate);
25257 if (PyErr_Occurred()) SWIG_fail;
25258 }
25259 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25260 return resultobj;
25261 fail:
25262 return NULL;
25263 }
25264
25265
25266 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25267 PyObject *obj;
25268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25269 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25270 return SWIG_Py_Void();
25271 }
25272
25273 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25274 return SWIG_Python_InitShadowInstance(args);
25275 }
25276
25277 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25278 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25279 return 1;
25280 }
25281
25282
25283 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25284 PyObject *pyobj = 0;
25285
25286 {
25287 #if wxUSE_UNICODE
25288 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25289 #else
25290 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25291 #endif
25292 }
25293 return pyobj;
25294 }
25295
25296
25297 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25298 PyObject *resultobj = 0;
25299 wxColour const &arg1_defvalue = wxNullColour ;
25300 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25301 wxColour const &arg2_defvalue = wxNullColour ;
25302 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25303 wxFont const &arg3_defvalue = wxNullFont ;
25304 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25305 wxListItemAttr *result = 0 ;
25306 wxColour temp1 ;
25307 wxColour temp2 ;
25308 void *argp3 = 0 ;
25309 int res3 = 0 ;
25310 PyObject * obj0 = 0 ;
25311 PyObject * obj1 = 0 ;
25312 PyObject * obj2 = 0 ;
25313 char * kwnames[] = {
25314 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25315 };
25316
25317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25318 if (obj0) {
25319 {
25320 arg1 = &temp1;
25321 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25322 }
25323 }
25324 if (obj1) {
25325 {
25326 arg2 = &temp2;
25327 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25328 }
25329 }
25330 if (obj2) {
25331 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25332 if (!SWIG_IsOK(res3)) {
25333 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25334 }
25335 if (!argp3) {
25336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25337 }
25338 arg3 = reinterpret_cast< wxFont * >(argp3);
25339 }
25340 {
25341 PyThreadState* __tstate = wxPyBeginAllowThreads();
25342 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25343 wxPyEndAllowThreads(__tstate);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25347 return resultobj;
25348 fail:
25349 return NULL;
25350 }
25351
25352
25353 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25354 PyObject *resultobj = 0;
25355 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25356 void *argp1 = 0 ;
25357 int res1 = 0 ;
25358 PyObject *swig_obj[1] ;
25359
25360 if (!args) SWIG_fail;
25361 swig_obj[0] = args;
25362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25363 if (!SWIG_IsOK(res1)) {
25364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25365 }
25366 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25367 {
25368 PyThreadState* __tstate = wxPyBeginAllowThreads();
25369 delete arg1;
25370
25371 wxPyEndAllowThreads(__tstate);
25372 if (PyErr_Occurred()) SWIG_fail;
25373 }
25374 resultobj = SWIG_Py_Void();
25375 return resultobj;
25376 fail:
25377 return NULL;
25378 }
25379
25380
25381 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25382 PyObject *resultobj = 0;
25383 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25384 wxColour *arg2 = 0 ;
25385 void *argp1 = 0 ;
25386 int res1 = 0 ;
25387 wxColour temp2 ;
25388 PyObject * obj0 = 0 ;
25389 PyObject * obj1 = 0 ;
25390 char * kwnames[] = {
25391 (char *) "self",(char *) "colText", NULL
25392 };
25393
25394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25396 if (!SWIG_IsOK(res1)) {
25397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25398 }
25399 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25400 {
25401 arg2 = &temp2;
25402 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25403 }
25404 {
25405 PyThreadState* __tstate = wxPyBeginAllowThreads();
25406 (arg1)->SetTextColour((wxColour const &)*arg2);
25407 wxPyEndAllowThreads(__tstate);
25408 if (PyErr_Occurred()) SWIG_fail;
25409 }
25410 resultobj = SWIG_Py_Void();
25411 return resultobj;
25412 fail:
25413 return NULL;
25414 }
25415
25416
25417 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj = 0;
25419 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25420 wxColour *arg2 = 0 ;
25421 void *argp1 = 0 ;
25422 int res1 = 0 ;
25423 wxColour temp2 ;
25424 PyObject * obj0 = 0 ;
25425 PyObject * obj1 = 0 ;
25426 char * kwnames[] = {
25427 (char *) "self",(char *) "colBack", NULL
25428 };
25429
25430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25432 if (!SWIG_IsOK(res1)) {
25433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25434 }
25435 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25436 {
25437 arg2 = &temp2;
25438 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25439 }
25440 {
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 resultobj = SWIG_Py_Void();
25447 return resultobj;
25448 fail:
25449 return NULL;
25450 }
25451
25452
25453 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25454 PyObject *resultobj = 0;
25455 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25456 wxFont *arg2 = 0 ;
25457 void *argp1 = 0 ;
25458 int res1 = 0 ;
25459 void *argp2 = 0 ;
25460 int res2 = 0 ;
25461 PyObject * obj0 = 0 ;
25462 PyObject * obj1 = 0 ;
25463 char * kwnames[] = {
25464 (char *) "self",(char *) "font", NULL
25465 };
25466
25467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25469 if (!SWIG_IsOK(res1)) {
25470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25471 }
25472 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25474 if (!SWIG_IsOK(res2)) {
25475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25476 }
25477 if (!argp2) {
25478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25479 }
25480 arg2 = reinterpret_cast< wxFont * >(argp2);
25481 {
25482 PyThreadState* __tstate = wxPyBeginAllowThreads();
25483 (arg1)->SetFont((wxFont const &)*arg2);
25484 wxPyEndAllowThreads(__tstate);
25485 if (PyErr_Occurred()) SWIG_fail;
25486 }
25487 resultobj = SWIG_Py_Void();
25488 return resultobj;
25489 fail:
25490 return NULL;
25491 }
25492
25493
25494 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25495 PyObject *resultobj = 0;
25496 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25497 bool result;
25498 void *argp1 = 0 ;
25499 int res1 = 0 ;
25500 PyObject *swig_obj[1] ;
25501
25502 if (!args) SWIG_fail;
25503 swig_obj[0] = args;
25504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25505 if (!SWIG_IsOK(res1)) {
25506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25507 }
25508 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25509 {
25510 PyThreadState* __tstate = wxPyBeginAllowThreads();
25511 result = (bool)(arg1)->HasTextColour();
25512 wxPyEndAllowThreads(__tstate);
25513 if (PyErr_Occurred()) SWIG_fail;
25514 }
25515 {
25516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25517 }
25518 return resultobj;
25519 fail:
25520 return NULL;
25521 }
25522
25523
25524 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 PyObject *resultobj = 0;
25526 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25527 bool result;
25528 void *argp1 = 0 ;
25529 int res1 = 0 ;
25530 PyObject *swig_obj[1] ;
25531
25532 if (!args) SWIG_fail;
25533 swig_obj[0] = args;
25534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25537 }
25538 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25539 {
25540 PyThreadState* __tstate = wxPyBeginAllowThreads();
25541 result = (bool)(arg1)->HasBackgroundColour();
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 {
25546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25547 }
25548 return resultobj;
25549 fail:
25550 return NULL;
25551 }
25552
25553
25554 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25555 PyObject *resultobj = 0;
25556 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25557 bool result;
25558 void *argp1 = 0 ;
25559 int res1 = 0 ;
25560 PyObject *swig_obj[1] ;
25561
25562 if (!args) SWIG_fail;
25563 swig_obj[0] = args;
25564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25567 }
25568 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25569 {
25570 PyThreadState* __tstate = wxPyBeginAllowThreads();
25571 result = (bool)(arg1)->HasFont();
25572 wxPyEndAllowThreads(__tstate);
25573 if (PyErr_Occurred()) SWIG_fail;
25574 }
25575 {
25576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25577 }
25578 return resultobj;
25579 fail:
25580 return NULL;
25581 }
25582
25583
25584 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25585 PyObject *resultobj = 0;
25586 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25587 wxColour result;
25588 void *argp1 = 0 ;
25589 int res1 = 0 ;
25590 PyObject *swig_obj[1] ;
25591
25592 if (!args) SWIG_fail;
25593 swig_obj[0] = args;
25594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25595 if (!SWIG_IsOK(res1)) {
25596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25597 }
25598 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25599 {
25600 PyThreadState* __tstate = wxPyBeginAllowThreads();
25601 result = (arg1)->GetTextColour();
25602 wxPyEndAllowThreads(__tstate);
25603 if (PyErr_Occurred()) SWIG_fail;
25604 }
25605 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25606 return resultobj;
25607 fail:
25608 return NULL;
25609 }
25610
25611
25612 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25613 PyObject *resultobj = 0;
25614 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25615 wxColour result;
25616 void *argp1 = 0 ;
25617 int res1 = 0 ;
25618 PyObject *swig_obj[1] ;
25619
25620 if (!args) SWIG_fail;
25621 swig_obj[0] = args;
25622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25623 if (!SWIG_IsOK(res1)) {
25624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25625 }
25626 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25627 {
25628 PyThreadState* __tstate = wxPyBeginAllowThreads();
25629 result = (arg1)->GetBackgroundColour();
25630 wxPyEndAllowThreads(__tstate);
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25634 return resultobj;
25635 fail:
25636 return NULL;
25637 }
25638
25639
25640 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25641 PyObject *resultobj = 0;
25642 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25643 wxFont result;
25644 void *argp1 = 0 ;
25645 int res1 = 0 ;
25646 PyObject *swig_obj[1] ;
25647
25648 if (!args) SWIG_fail;
25649 swig_obj[0] = args;
25650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25651 if (!SWIG_IsOK(res1)) {
25652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25653 }
25654 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25655 {
25656 PyThreadState* __tstate = wxPyBeginAllowThreads();
25657 result = (arg1)->GetFont();
25658 wxPyEndAllowThreads(__tstate);
25659 if (PyErr_Occurred()) SWIG_fail;
25660 }
25661 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25662 return resultobj;
25663 fail:
25664 return NULL;
25665 }
25666
25667
25668 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25669 PyObject *resultobj = 0;
25670 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25671 wxListItemAttr *arg2 = 0 ;
25672 void *argp1 = 0 ;
25673 int res1 = 0 ;
25674 void *argp2 = 0 ;
25675 int res2 = 0 ;
25676 PyObject * obj0 = 0 ;
25677 PyObject * obj1 = 0 ;
25678 char * kwnames[] = {
25679 (char *) "self",(char *) "source", NULL
25680 };
25681
25682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25686 }
25687 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25689 if (!SWIG_IsOK(res2)) {
25690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25691 }
25692 if (!argp2) {
25693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25694 }
25695 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25696 {
25697 PyThreadState* __tstate = wxPyBeginAllowThreads();
25698 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25699 wxPyEndAllowThreads(__tstate);
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
25702 resultobj = SWIG_Py_Void();
25703 return resultobj;
25704 fail:
25705 return NULL;
25706 }
25707
25708
25709 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25710 PyObject *resultobj = 0;
25711 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25712 void *argp1 = 0 ;
25713 int res1 = 0 ;
25714 PyObject *swig_obj[1] ;
25715
25716 if (!args) SWIG_fail;
25717 swig_obj[0] = args;
25718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25719 if (!SWIG_IsOK(res1)) {
25720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25721 }
25722 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25723 {
25724 PyThreadState* __tstate = wxPyBeginAllowThreads();
25725 wxListItemAttr_Destroy(arg1);
25726 wxPyEndAllowThreads(__tstate);
25727 if (PyErr_Occurred()) SWIG_fail;
25728 }
25729 resultobj = SWIG_Py_Void();
25730 return resultobj;
25731 fail:
25732 return NULL;
25733 }
25734
25735
25736 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25737 PyObject *obj;
25738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25739 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25740 return SWIG_Py_Void();
25741 }
25742
25743 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25744 return SWIG_Python_InitShadowInstance(args);
25745 }
25746
25747 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25748 PyObject *resultobj = 0;
25749 wxListItem *result = 0 ;
25750
25751 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
25752 {
25753 PyThreadState* __tstate = wxPyBeginAllowThreads();
25754 result = (wxListItem *)new wxListItem();
25755 wxPyEndAllowThreads(__tstate);
25756 if (PyErr_Occurred()) SWIG_fail;
25757 }
25758 {
25759 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
25760 }
25761 return resultobj;
25762 fail:
25763 return NULL;
25764 }
25765
25766
25767 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25768 PyObject *resultobj = 0;
25769 wxListItem *arg1 = (wxListItem *) 0 ;
25770 void *argp1 = 0 ;
25771 int res1 = 0 ;
25772 PyObject *swig_obj[1] ;
25773
25774 if (!args) SWIG_fail;
25775 swig_obj[0] = args;
25776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
25777 if (!SWIG_IsOK(res1)) {
25778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
25779 }
25780 arg1 = reinterpret_cast< wxListItem * >(argp1);
25781 {
25782 PyThreadState* __tstate = wxPyBeginAllowThreads();
25783 delete arg1;
25784
25785 wxPyEndAllowThreads(__tstate);
25786 if (PyErr_Occurred()) SWIG_fail;
25787 }
25788 resultobj = SWIG_Py_Void();
25789 return resultobj;
25790 fail:
25791 return NULL;
25792 }
25793
25794
25795 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25796 PyObject *resultobj = 0;
25797 wxListItem *arg1 = (wxListItem *) 0 ;
25798 void *argp1 = 0 ;
25799 int res1 = 0 ;
25800 PyObject *swig_obj[1] ;
25801
25802 if (!args) SWIG_fail;
25803 swig_obj[0] = args;
25804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25805 if (!SWIG_IsOK(res1)) {
25806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
25807 }
25808 arg1 = reinterpret_cast< wxListItem * >(argp1);
25809 {
25810 PyThreadState* __tstate = wxPyBeginAllowThreads();
25811 (arg1)->Clear();
25812 wxPyEndAllowThreads(__tstate);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 resultobj = SWIG_Py_Void();
25816 return resultobj;
25817 fail:
25818 return NULL;
25819 }
25820
25821
25822 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25823 PyObject *resultobj = 0;
25824 wxListItem *arg1 = (wxListItem *) 0 ;
25825 void *argp1 = 0 ;
25826 int res1 = 0 ;
25827 PyObject *swig_obj[1] ;
25828
25829 if (!args) SWIG_fail;
25830 swig_obj[0] = args;
25831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25832 if (!SWIG_IsOK(res1)) {
25833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
25834 }
25835 arg1 = reinterpret_cast< wxListItem * >(argp1);
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 (arg1)->ClearAttributes();
25839 wxPyEndAllowThreads(__tstate);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 resultobj = SWIG_Py_Void();
25843 return resultobj;
25844 fail:
25845 return NULL;
25846 }
25847
25848
25849 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25850 PyObject *resultobj = 0;
25851 wxListItem *arg1 = (wxListItem *) 0 ;
25852 long arg2 ;
25853 void *argp1 = 0 ;
25854 int res1 = 0 ;
25855 long val2 ;
25856 int ecode2 = 0 ;
25857 PyObject * obj0 = 0 ;
25858 PyObject * obj1 = 0 ;
25859 char * kwnames[] = {
25860 (char *) "self",(char *) "mask", NULL
25861 };
25862
25863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
25864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25865 if (!SWIG_IsOK(res1)) {
25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
25867 }
25868 arg1 = reinterpret_cast< wxListItem * >(argp1);
25869 ecode2 = SWIG_AsVal_long(obj1, &val2);
25870 if (!SWIG_IsOK(ecode2)) {
25871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
25872 }
25873 arg2 = static_cast< long >(val2);
25874 {
25875 PyThreadState* __tstate = wxPyBeginAllowThreads();
25876 (arg1)->SetMask(arg2);
25877 wxPyEndAllowThreads(__tstate);
25878 if (PyErr_Occurred()) SWIG_fail;
25879 }
25880 resultobj = SWIG_Py_Void();
25881 return resultobj;
25882 fail:
25883 return NULL;
25884 }
25885
25886
25887 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25888 PyObject *resultobj = 0;
25889 wxListItem *arg1 = (wxListItem *) 0 ;
25890 long arg2 ;
25891 void *argp1 = 0 ;
25892 int res1 = 0 ;
25893 long val2 ;
25894 int ecode2 = 0 ;
25895 PyObject * obj0 = 0 ;
25896 PyObject * obj1 = 0 ;
25897 char * kwnames[] = {
25898 (char *) "self",(char *) "id", NULL
25899 };
25900
25901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
25902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25903 if (!SWIG_IsOK(res1)) {
25904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
25905 }
25906 arg1 = reinterpret_cast< wxListItem * >(argp1);
25907 ecode2 = SWIG_AsVal_long(obj1, &val2);
25908 if (!SWIG_IsOK(ecode2)) {
25909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
25910 }
25911 arg2 = static_cast< long >(val2);
25912 {
25913 PyThreadState* __tstate = wxPyBeginAllowThreads();
25914 (arg1)->SetId(arg2);
25915 wxPyEndAllowThreads(__tstate);
25916 if (PyErr_Occurred()) SWIG_fail;
25917 }
25918 resultobj = SWIG_Py_Void();
25919 return resultobj;
25920 fail:
25921 return NULL;
25922 }
25923
25924
25925 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25926 PyObject *resultobj = 0;
25927 wxListItem *arg1 = (wxListItem *) 0 ;
25928 int arg2 ;
25929 void *argp1 = 0 ;
25930 int res1 = 0 ;
25931 int val2 ;
25932 int ecode2 = 0 ;
25933 PyObject * obj0 = 0 ;
25934 PyObject * obj1 = 0 ;
25935 char * kwnames[] = {
25936 (char *) "self",(char *) "col", NULL
25937 };
25938
25939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
25940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25941 if (!SWIG_IsOK(res1)) {
25942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
25943 }
25944 arg1 = reinterpret_cast< wxListItem * >(argp1);
25945 ecode2 = SWIG_AsVal_int(obj1, &val2);
25946 if (!SWIG_IsOK(ecode2)) {
25947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
25948 }
25949 arg2 = static_cast< int >(val2);
25950 {
25951 PyThreadState* __tstate = wxPyBeginAllowThreads();
25952 (arg1)->SetColumn(arg2);
25953 wxPyEndAllowThreads(__tstate);
25954 if (PyErr_Occurred()) SWIG_fail;
25955 }
25956 resultobj = SWIG_Py_Void();
25957 return resultobj;
25958 fail:
25959 return NULL;
25960 }
25961
25962
25963 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25964 PyObject *resultobj = 0;
25965 wxListItem *arg1 = (wxListItem *) 0 ;
25966 long arg2 ;
25967 void *argp1 = 0 ;
25968 int res1 = 0 ;
25969 long val2 ;
25970 int ecode2 = 0 ;
25971 PyObject * obj0 = 0 ;
25972 PyObject * obj1 = 0 ;
25973 char * kwnames[] = {
25974 (char *) "self",(char *) "state", NULL
25975 };
25976
25977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
25978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25979 if (!SWIG_IsOK(res1)) {
25980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
25981 }
25982 arg1 = reinterpret_cast< wxListItem * >(argp1);
25983 ecode2 = SWIG_AsVal_long(obj1, &val2);
25984 if (!SWIG_IsOK(ecode2)) {
25985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
25986 }
25987 arg2 = static_cast< long >(val2);
25988 {
25989 PyThreadState* __tstate = wxPyBeginAllowThreads();
25990 (arg1)->SetState(arg2);
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_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26002 PyObject *resultobj = 0;
26003 wxListItem *arg1 = (wxListItem *) 0 ;
26004 long arg2 ;
26005 void *argp1 = 0 ;
26006 int res1 = 0 ;
26007 long val2 ;
26008 int ecode2 = 0 ;
26009 PyObject * obj0 = 0 ;
26010 PyObject * obj1 = 0 ;
26011 char * kwnames[] = {
26012 (char *) "self",(char *) "stateMask", NULL
26013 };
26014
26015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26017 if (!SWIG_IsOK(res1)) {
26018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26019 }
26020 arg1 = reinterpret_cast< wxListItem * >(argp1);
26021 ecode2 = SWIG_AsVal_long(obj1, &val2);
26022 if (!SWIG_IsOK(ecode2)) {
26023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26024 }
26025 arg2 = static_cast< long >(val2);
26026 {
26027 PyThreadState* __tstate = wxPyBeginAllowThreads();
26028 (arg1)->SetStateMask(arg2);
26029 wxPyEndAllowThreads(__tstate);
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 resultobj = SWIG_Py_Void();
26033 return resultobj;
26034 fail:
26035 return NULL;
26036 }
26037
26038
26039 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26040 PyObject *resultobj = 0;
26041 wxListItem *arg1 = (wxListItem *) 0 ;
26042 wxString *arg2 = 0 ;
26043 void *argp1 = 0 ;
26044 int res1 = 0 ;
26045 bool temp2 = false ;
26046 PyObject * obj0 = 0 ;
26047 PyObject * obj1 = 0 ;
26048 char * kwnames[] = {
26049 (char *) "self",(char *) "text", NULL
26050 };
26051
26052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26054 if (!SWIG_IsOK(res1)) {
26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26056 }
26057 arg1 = reinterpret_cast< wxListItem * >(argp1);
26058 {
26059 arg2 = wxString_in_helper(obj1);
26060 if (arg2 == NULL) SWIG_fail;
26061 temp2 = true;
26062 }
26063 {
26064 PyThreadState* __tstate = wxPyBeginAllowThreads();
26065 (arg1)->SetText((wxString const &)*arg2);
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_Py_Void();
26070 {
26071 if (temp2)
26072 delete arg2;
26073 }
26074 return resultobj;
26075 fail:
26076 {
26077 if (temp2)
26078 delete arg2;
26079 }
26080 return NULL;
26081 }
26082
26083
26084 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26085 PyObject *resultobj = 0;
26086 wxListItem *arg1 = (wxListItem *) 0 ;
26087 int arg2 ;
26088 void *argp1 = 0 ;
26089 int res1 = 0 ;
26090 int val2 ;
26091 int ecode2 = 0 ;
26092 PyObject * obj0 = 0 ;
26093 PyObject * obj1 = 0 ;
26094 char * kwnames[] = {
26095 (char *) "self",(char *) "image", NULL
26096 };
26097
26098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26100 if (!SWIG_IsOK(res1)) {
26101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26102 }
26103 arg1 = reinterpret_cast< wxListItem * >(argp1);
26104 ecode2 = SWIG_AsVal_int(obj1, &val2);
26105 if (!SWIG_IsOK(ecode2)) {
26106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26107 }
26108 arg2 = static_cast< int >(val2);
26109 {
26110 PyThreadState* __tstate = wxPyBeginAllowThreads();
26111 (arg1)->SetImage(arg2);
26112 wxPyEndAllowThreads(__tstate);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_Py_Void();
26116 return resultobj;
26117 fail:
26118 return NULL;
26119 }
26120
26121
26122 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26123 PyObject *resultobj = 0;
26124 wxListItem *arg1 = (wxListItem *) 0 ;
26125 long arg2 ;
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 long val2 ;
26129 int ecode2 = 0 ;
26130 PyObject * obj0 = 0 ;
26131 PyObject * obj1 = 0 ;
26132 char * kwnames[] = {
26133 (char *) "self",(char *) "data", NULL
26134 };
26135
26136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26138 if (!SWIG_IsOK(res1)) {
26139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26140 }
26141 arg1 = reinterpret_cast< wxListItem * >(argp1);
26142 ecode2 = SWIG_AsVal_long(obj1, &val2);
26143 if (!SWIG_IsOK(ecode2)) {
26144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26145 }
26146 arg2 = static_cast< long >(val2);
26147 {
26148 PyThreadState* __tstate = wxPyBeginAllowThreads();
26149 (arg1)->SetData(arg2);
26150 wxPyEndAllowThreads(__tstate);
26151 if (PyErr_Occurred()) SWIG_fail;
26152 }
26153 resultobj = SWIG_Py_Void();
26154 return resultobj;
26155 fail:
26156 return NULL;
26157 }
26158
26159
26160 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26161 PyObject *resultobj = 0;
26162 wxListItem *arg1 = (wxListItem *) 0 ;
26163 int arg2 ;
26164 void *argp1 = 0 ;
26165 int res1 = 0 ;
26166 int val2 ;
26167 int ecode2 = 0 ;
26168 PyObject * obj0 = 0 ;
26169 PyObject * obj1 = 0 ;
26170 char * kwnames[] = {
26171 (char *) "self",(char *) "width", NULL
26172 };
26173
26174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26176 if (!SWIG_IsOK(res1)) {
26177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26178 }
26179 arg1 = reinterpret_cast< wxListItem * >(argp1);
26180 ecode2 = SWIG_AsVal_int(obj1, &val2);
26181 if (!SWIG_IsOK(ecode2)) {
26182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26183 }
26184 arg2 = static_cast< int >(val2);
26185 {
26186 PyThreadState* __tstate = wxPyBeginAllowThreads();
26187 (arg1)->SetWidth(arg2);
26188 wxPyEndAllowThreads(__tstate);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 return resultobj;
26193 fail:
26194 return NULL;
26195 }
26196
26197
26198 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26199 PyObject *resultobj = 0;
26200 wxListItem *arg1 = (wxListItem *) 0 ;
26201 wxListColumnFormat arg2 ;
26202 void *argp1 = 0 ;
26203 int res1 = 0 ;
26204 int val2 ;
26205 int ecode2 = 0 ;
26206 PyObject * obj0 = 0 ;
26207 PyObject * obj1 = 0 ;
26208 char * kwnames[] = {
26209 (char *) "self",(char *) "align", NULL
26210 };
26211
26212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26214 if (!SWIG_IsOK(res1)) {
26215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26216 }
26217 arg1 = reinterpret_cast< wxListItem * >(argp1);
26218 ecode2 = SWIG_AsVal_int(obj1, &val2);
26219 if (!SWIG_IsOK(ecode2)) {
26220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26221 }
26222 arg2 = static_cast< wxListColumnFormat >(val2);
26223 {
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 (arg1)->SetAlign(arg2);
26226 wxPyEndAllowThreads(__tstate);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_Py_Void();
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26237 PyObject *resultobj = 0;
26238 wxListItem *arg1 = (wxListItem *) 0 ;
26239 wxColour *arg2 = 0 ;
26240 void *argp1 = 0 ;
26241 int res1 = 0 ;
26242 wxColour temp2 ;
26243 PyObject * obj0 = 0 ;
26244 PyObject * obj1 = 0 ;
26245 char * kwnames[] = {
26246 (char *) "self",(char *) "colText", NULL
26247 };
26248
26249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26251 if (!SWIG_IsOK(res1)) {
26252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26253 }
26254 arg1 = reinterpret_cast< wxListItem * >(argp1);
26255 {
26256 arg2 = &temp2;
26257 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26258 }
26259 {
26260 PyThreadState* __tstate = wxPyBeginAllowThreads();
26261 (arg1)->SetTextColour((wxColour const &)*arg2);
26262 wxPyEndAllowThreads(__tstate);
26263 if (PyErr_Occurred()) SWIG_fail;
26264 }
26265 resultobj = SWIG_Py_Void();
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26273 PyObject *resultobj = 0;
26274 wxListItem *arg1 = (wxListItem *) 0 ;
26275 wxColour *arg2 = 0 ;
26276 void *argp1 = 0 ;
26277 int res1 = 0 ;
26278 wxColour temp2 ;
26279 PyObject * obj0 = 0 ;
26280 PyObject * obj1 = 0 ;
26281 char * kwnames[] = {
26282 (char *) "self",(char *) "colBack", NULL
26283 };
26284
26285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26287 if (!SWIG_IsOK(res1)) {
26288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26289 }
26290 arg1 = reinterpret_cast< wxListItem * >(argp1);
26291 {
26292 arg2 = &temp2;
26293 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26294 }
26295 {
26296 PyThreadState* __tstate = wxPyBeginAllowThreads();
26297 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26298 wxPyEndAllowThreads(__tstate);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_Py_Void();
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26309 PyObject *resultobj = 0;
26310 wxListItem *arg1 = (wxListItem *) 0 ;
26311 wxFont *arg2 = 0 ;
26312 void *argp1 = 0 ;
26313 int res1 = 0 ;
26314 void *argp2 = 0 ;
26315 int res2 = 0 ;
26316 PyObject * obj0 = 0 ;
26317 PyObject * obj1 = 0 ;
26318 char * kwnames[] = {
26319 (char *) "self",(char *) "font", NULL
26320 };
26321
26322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26324 if (!SWIG_IsOK(res1)) {
26325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26326 }
26327 arg1 = reinterpret_cast< wxListItem * >(argp1);
26328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26329 if (!SWIG_IsOK(res2)) {
26330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26331 }
26332 if (!argp2) {
26333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26334 }
26335 arg2 = reinterpret_cast< wxFont * >(argp2);
26336 {
26337 PyThreadState* __tstate = wxPyBeginAllowThreads();
26338 (arg1)->SetFont((wxFont const &)*arg2);
26339 wxPyEndAllowThreads(__tstate);
26340 if (PyErr_Occurred()) SWIG_fail;
26341 }
26342 resultobj = SWIG_Py_Void();
26343 return resultobj;
26344 fail:
26345 return NULL;
26346 }
26347
26348
26349 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26350 PyObject *resultobj = 0;
26351 wxListItem *arg1 = (wxListItem *) 0 ;
26352 long result;
26353 void *argp1 = 0 ;
26354 int res1 = 0 ;
26355 PyObject *swig_obj[1] ;
26356
26357 if (!args) SWIG_fail;
26358 swig_obj[0] = args;
26359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26360 if (!SWIG_IsOK(res1)) {
26361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26362 }
26363 arg1 = reinterpret_cast< wxListItem * >(argp1);
26364 {
26365 PyThreadState* __tstate = wxPyBeginAllowThreads();
26366 result = (long)(arg1)->GetMask();
26367 wxPyEndAllowThreads(__tstate);
26368 if (PyErr_Occurred()) SWIG_fail;
26369 }
26370 resultobj = SWIG_From_long(static_cast< long >(result));
26371 return resultobj;
26372 fail:
26373 return NULL;
26374 }
26375
26376
26377 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26378 PyObject *resultobj = 0;
26379 wxListItem *arg1 = (wxListItem *) 0 ;
26380 long result;
26381 void *argp1 = 0 ;
26382 int res1 = 0 ;
26383 PyObject *swig_obj[1] ;
26384
26385 if (!args) SWIG_fail;
26386 swig_obj[0] = args;
26387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26388 if (!SWIG_IsOK(res1)) {
26389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26390 }
26391 arg1 = reinterpret_cast< wxListItem * >(argp1);
26392 {
26393 PyThreadState* __tstate = wxPyBeginAllowThreads();
26394 result = (long)(arg1)->GetId();
26395 wxPyEndAllowThreads(__tstate);
26396 if (PyErr_Occurred()) SWIG_fail;
26397 }
26398 resultobj = SWIG_From_long(static_cast< long >(result));
26399 return resultobj;
26400 fail:
26401 return NULL;
26402 }
26403
26404
26405 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26406 PyObject *resultobj = 0;
26407 wxListItem *arg1 = (wxListItem *) 0 ;
26408 int result;
26409 void *argp1 = 0 ;
26410 int res1 = 0 ;
26411 PyObject *swig_obj[1] ;
26412
26413 if (!args) SWIG_fail;
26414 swig_obj[0] = args;
26415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26416 if (!SWIG_IsOK(res1)) {
26417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26418 }
26419 arg1 = reinterpret_cast< wxListItem * >(argp1);
26420 {
26421 PyThreadState* __tstate = wxPyBeginAllowThreads();
26422 result = (int)(arg1)->GetColumn();
26423 wxPyEndAllowThreads(__tstate);
26424 if (PyErr_Occurred()) SWIG_fail;
26425 }
26426 resultobj = SWIG_From_int(static_cast< int >(result));
26427 return resultobj;
26428 fail:
26429 return NULL;
26430 }
26431
26432
26433 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26434 PyObject *resultobj = 0;
26435 wxListItem *arg1 = (wxListItem *) 0 ;
26436 long result;
26437 void *argp1 = 0 ;
26438 int res1 = 0 ;
26439 PyObject *swig_obj[1] ;
26440
26441 if (!args) SWIG_fail;
26442 swig_obj[0] = args;
26443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26444 if (!SWIG_IsOK(res1)) {
26445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26446 }
26447 arg1 = reinterpret_cast< wxListItem * >(argp1);
26448 {
26449 PyThreadState* __tstate = wxPyBeginAllowThreads();
26450 result = (long)(arg1)->GetState();
26451 wxPyEndAllowThreads(__tstate);
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 resultobj = SWIG_From_long(static_cast< long >(result));
26455 return resultobj;
26456 fail:
26457 return NULL;
26458 }
26459
26460
26461 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26462 PyObject *resultobj = 0;
26463 wxListItem *arg1 = (wxListItem *) 0 ;
26464 wxString *result = 0 ;
26465 void *argp1 = 0 ;
26466 int res1 = 0 ;
26467 PyObject *swig_obj[1] ;
26468
26469 if (!args) SWIG_fail;
26470 swig_obj[0] = args;
26471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26472 if (!SWIG_IsOK(res1)) {
26473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26474 }
26475 arg1 = reinterpret_cast< wxListItem * >(argp1);
26476 {
26477 PyThreadState* __tstate = wxPyBeginAllowThreads();
26478 {
26479 wxString const &_result_ref = (arg1)->GetText();
26480 result = (wxString *) &_result_ref;
26481 }
26482 wxPyEndAllowThreads(__tstate);
26483 if (PyErr_Occurred()) SWIG_fail;
26484 }
26485 {
26486 #if wxUSE_UNICODE
26487 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26488 #else
26489 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26490 #endif
26491 }
26492 return resultobj;
26493 fail:
26494 return NULL;
26495 }
26496
26497
26498 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26499 PyObject *resultobj = 0;
26500 wxListItem *arg1 = (wxListItem *) 0 ;
26501 int result;
26502 void *argp1 = 0 ;
26503 int res1 = 0 ;
26504 PyObject *swig_obj[1] ;
26505
26506 if (!args) SWIG_fail;
26507 swig_obj[0] = args;
26508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26509 if (!SWIG_IsOK(res1)) {
26510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26511 }
26512 arg1 = reinterpret_cast< wxListItem * >(argp1);
26513 {
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 result = (int)(arg1)->GetImage();
26516 wxPyEndAllowThreads(__tstate);
26517 if (PyErr_Occurred()) SWIG_fail;
26518 }
26519 resultobj = SWIG_From_int(static_cast< int >(result));
26520 return resultobj;
26521 fail:
26522 return NULL;
26523 }
26524
26525
26526 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26527 PyObject *resultobj = 0;
26528 wxListItem *arg1 = (wxListItem *) 0 ;
26529 long result;
26530 void *argp1 = 0 ;
26531 int res1 = 0 ;
26532 PyObject *swig_obj[1] ;
26533
26534 if (!args) SWIG_fail;
26535 swig_obj[0] = args;
26536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26537 if (!SWIG_IsOK(res1)) {
26538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26539 }
26540 arg1 = reinterpret_cast< wxListItem * >(argp1);
26541 {
26542 PyThreadState* __tstate = wxPyBeginAllowThreads();
26543 result = (long)(arg1)->GetData();
26544 wxPyEndAllowThreads(__tstate);
26545 if (PyErr_Occurred()) SWIG_fail;
26546 }
26547 resultobj = SWIG_From_long(static_cast< long >(result));
26548 return resultobj;
26549 fail:
26550 return NULL;
26551 }
26552
26553
26554 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26555 PyObject *resultobj = 0;
26556 wxListItem *arg1 = (wxListItem *) 0 ;
26557 int result;
26558 void *argp1 = 0 ;
26559 int res1 = 0 ;
26560 PyObject *swig_obj[1] ;
26561
26562 if (!args) SWIG_fail;
26563 swig_obj[0] = args;
26564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26565 if (!SWIG_IsOK(res1)) {
26566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26567 }
26568 arg1 = reinterpret_cast< wxListItem * >(argp1);
26569 {
26570 PyThreadState* __tstate = wxPyBeginAllowThreads();
26571 result = (int)(arg1)->GetWidth();
26572 wxPyEndAllowThreads(__tstate);
26573 if (PyErr_Occurred()) SWIG_fail;
26574 }
26575 resultobj = SWIG_From_int(static_cast< int >(result));
26576 return resultobj;
26577 fail:
26578 return NULL;
26579 }
26580
26581
26582 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26583 PyObject *resultobj = 0;
26584 wxListItem *arg1 = (wxListItem *) 0 ;
26585 wxListColumnFormat result;
26586 void *argp1 = 0 ;
26587 int res1 = 0 ;
26588 PyObject *swig_obj[1] ;
26589
26590 if (!args) SWIG_fail;
26591 swig_obj[0] = args;
26592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26593 if (!SWIG_IsOK(res1)) {
26594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26595 }
26596 arg1 = reinterpret_cast< wxListItem * >(argp1);
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 result = (wxListColumnFormat)(arg1)->GetAlign();
26600 wxPyEndAllowThreads(__tstate);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 resultobj = SWIG_From_int(static_cast< int >(result));
26604 return resultobj;
26605 fail:
26606 return NULL;
26607 }
26608
26609
26610 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26611 PyObject *resultobj = 0;
26612 wxListItem *arg1 = (wxListItem *) 0 ;
26613 wxListItemAttr *result = 0 ;
26614 void *argp1 = 0 ;
26615 int res1 = 0 ;
26616 PyObject *swig_obj[1] ;
26617
26618 if (!args) SWIG_fail;
26619 swig_obj[0] = args;
26620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26621 if (!SWIG_IsOK(res1)) {
26622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26623 }
26624 arg1 = reinterpret_cast< wxListItem * >(argp1);
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 result = (wxListItemAttr *)(arg1)->GetAttributes();
26628 wxPyEndAllowThreads(__tstate);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26632 return resultobj;
26633 fail:
26634 return NULL;
26635 }
26636
26637
26638 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26639 PyObject *resultobj = 0;
26640 wxListItem *arg1 = (wxListItem *) 0 ;
26641 bool result;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 PyObject *swig_obj[1] ;
26645
26646 if (!args) SWIG_fail;
26647 swig_obj[0] = args;
26648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26649 if (!SWIG_IsOK(res1)) {
26650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26651 }
26652 arg1 = reinterpret_cast< wxListItem * >(argp1);
26653 {
26654 PyThreadState* __tstate = wxPyBeginAllowThreads();
26655 result = (bool)(arg1)->HasAttributes();
26656 wxPyEndAllowThreads(__tstate);
26657 if (PyErr_Occurred()) SWIG_fail;
26658 }
26659 {
26660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26661 }
26662 return resultobj;
26663 fail:
26664 return NULL;
26665 }
26666
26667
26668 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26669 PyObject *resultobj = 0;
26670 wxListItem *arg1 = (wxListItem *) 0 ;
26671 wxColour result;
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
26674 PyObject *swig_obj[1] ;
26675
26676 if (!args) SWIG_fail;
26677 swig_obj[0] = args;
26678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26679 if (!SWIG_IsOK(res1)) {
26680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26681 }
26682 arg1 = reinterpret_cast< wxListItem * >(argp1);
26683 {
26684 PyThreadState* __tstate = wxPyBeginAllowThreads();
26685 result = ((wxListItem const *)arg1)->GetTextColour();
26686 wxPyEndAllowThreads(__tstate);
26687 if (PyErr_Occurred()) SWIG_fail;
26688 }
26689 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26690 return resultobj;
26691 fail:
26692 return NULL;
26693 }
26694
26695
26696 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26697 PyObject *resultobj = 0;
26698 wxListItem *arg1 = (wxListItem *) 0 ;
26699 wxColour result;
26700 void *argp1 = 0 ;
26701 int res1 = 0 ;
26702 PyObject *swig_obj[1] ;
26703
26704 if (!args) SWIG_fail;
26705 swig_obj[0] = args;
26706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26707 if (!SWIG_IsOK(res1)) {
26708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26709 }
26710 arg1 = reinterpret_cast< wxListItem * >(argp1);
26711 {
26712 PyThreadState* __tstate = wxPyBeginAllowThreads();
26713 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26714 wxPyEndAllowThreads(__tstate);
26715 if (PyErr_Occurred()) SWIG_fail;
26716 }
26717 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26718 return resultobj;
26719 fail:
26720 return NULL;
26721 }
26722
26723
26724 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26725 PyObject *resultobj = 0;
26726 wxListItem *arg1 = (wxListItem *) 0 ;
26727 wxFont result;
26728 void *argp1 = 0 ;
26729 int res1 = 0 ;
26730 PyObject *swig_obj[1] ;
26731
26732 if (!args) SWIG_fail;
26733 swig_obj[0] = args;
26734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26735 if (!SWIG_IsOK(res1)) {
26736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26737 }
26738 arg1 = reinterpret_cast< wxListItem * >(argp1);
26739 {
26740 PyThreadState* __tstate = wxPyBeginAllowThreads();
26741 result = ((wxListItem const *)arg1)->GetFont();
26742 wxPyEndAllowThreads(__tstate);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26746 return resultobj;
26747 fail:
26748 return NULL;
26749 }
26750
26751
26752 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26753 PyObject *resultobj = 0;
26754 wxListItem *arg1 = (wxListItem *) 0 ;
26755 long arg2 ;
26756 void *argp1 = 0 ;
26757 int res1 = 0 ;
26758 long val2 ;
26759 int ecode2 = 0 ;
26760 PyObject *swig_obj[2] ;
26761
26762 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
26763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26764 if (!SWIG_IsOK(res1)) {
26765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26766 }
26767 arg1 = reinterpret_cast< wxListItem * >(argp1);
26768 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26769 if (!SWIG_IsOK(ecode2)) {
26770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
26771 }
26772 arg2 = static_cast< long >(val2);
26773 if (arg1) (arg1)->m_mask = arg2;
26774
26775 resultobj = SWIG_Py_Void();
26776 return resultobj;
26777 fail:
26778 return NULL;
26779 }
26780
26781
26782 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26783 PyObject *resultobj = 0;
26784 wxListItem *arg1 = (wxListItem *) 0 ;
26785 long result;
26786 void *argp1 = 0 ;
26787 int res1 = 0 ;
26788 PyObject *swig_obj[1] ;
26789
26790 if (!args) SWIG_fail;
26791 swig_obj[0] = args;
26792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26793 if (!SWIG_IsOK(res1)) {
26794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26795 }
26796 arg1 = reinterpret_cast< wxListItem * >(argp1);
26797 result = (long) ((arg1)->m_mask);
26798 resultobj = SWIG_From_long(static_cast< long >(result));
26799 return resultobj;
26800 fail:
26801 return NULL;
26802 }
26803
26804
26805 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26806 PyObject *resultobj = 0;
26807 wxListItem *arg1 = (wxListItem *) 0 ;
26808 long arg2 ;
26809 void *argp1 = 0 ;
26810 int res1 = 0 ;
26811 long val2 ;
26812 int ecode2 = 0 ;
26813 PyObject *swig_obj[2] ;
26814
26815 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
26816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26817 if (!SWIG_IsOK(res1)) {
26818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26819 }
26820 arg1 = reinterpret_cast< wxListItem * >(argp1);
26821 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26822 if (!SWIG_IsOK(ecode2)) {
26823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
26824 }
26825 arg2 = static_cast< long >(val2);
26826 if (arg1) (arg1)->m_itemId = arg2;
26827
26828 resultobj = SWIG_Py_Void();
26829 return resultobj;
26830 fail:
26831 return NULL;
26832 }
26833
26834
26835 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26836 PyObject *resultobj = 0;
26837 wxListItem *arg1 = (wxListItem *) 0 ;
26838 long result;
26839 void *argp1 = 0 ;
26840 int res1 = 0 ;
26841 PyObject *swig_obj[1] ;
26842
26843 if (!args) SWIG_fail;
26844 swig_obj[0] = args;
26845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26846 if (!SWIG_IsOK(res1)) {
26847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26848 }
26849 arg1 = reinterpret_cast< wxListItem * >(argp1);
26850 result = (long) ((arg1)->m_itemId);
26851 resultobj = SWIG_From_long(static_cast< long >(result));
26852 return resultobj;
26853 fail:
26854 return NULL;
26855 }
26856
26857
26858 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26859 PyObject *resultobj = 0;
26860 wxListItem *arg1 = (wxListItem *) 0 ;
26861 int arg2 ;
26862 void *argp1 = 0 ;
26863 int res1 = 0 ;
26864 int val2 ;
26865 int ecode2 = 0 ;
26866 PyObject *swig_obj[2] ;
26867
26868 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
26869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26870 if (!SWIG_IsOK(res1)) {
26871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26872 }
26873 arg1 = reinterpret_cast< wxListItem * >(argp1);
26874 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
26875 if (!SWIG_IsOK(ecode2)) {
26876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
26877 }
26878 arg2 = static_cast< int >(val2);
26879 if (arg1) (arg1)->m_col = arg2;
26880
26881 resultobj = SWIG_Py_Void();
26882 return resultobj;
26883 fail:
26884 return NULL;
26885 }
26886
26887
26888 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26889 PyObject *resultobj = 0;
26890 wxListItem *arg1 = (wxListItem *) 0 ;
26891 int result;
26892 void *argp1 = 0 ;
26893 int res1 = 0 ;
26894 PyObject *swig_obj[1] ;
26895
26896 if (!args) SWIG_fail;
26897 swig_obj[0] = args;
26898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26899 if (!SWIG_IsOK(res1)) {
26900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26901 }
26902 arg1 = reinterpret_cast< wxListItem * >(argp1);
26903 result = (int) ((arg1)->m_col);
26904 resultobj = SWIG_From_int(static_cast< int >(result));
26905 return resultobj;
26906 fail:
26907 return NULL;
26908 }
26909
26910
26911 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26912 PyObject *resultobj = 0;
26913 wxListItem *arg1 = (wxListItem *) 0 ;
26914 long arg2 ;
26915 void *argp1 = 0 ;
26916 int res1 = 0 ;
26917 long val2 ;
26918 int ecode2 = 0 ;
26919 PyObject *swig_obj[2] ;
26920
26921 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
26922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26923 if (!SWIG_IsOK(res1)) {
26924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26925 }
26926 arg1 = reinterpret_cast< wxListItem * >(argp1);
26927 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26928 if (!SWIG_IsOK(ecode2)) {
26929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
26930 }
26931 arg2 = static_cast< long >(val2);
26932 if (arg1) (arg1)->m_state = arg2;
26933
26934 resultobj = SWIG_Py_Void();
26935 return resultobj;
26936 fail:
26937 return NULL;
26938 }
26939
26940
26941 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26942 PyObject *resultobj = 0;
26943 wxListItem *arg1 = (wxListItem *) 0 ;
26944 long result;
26945 void *argp1 = 0 ;
26946 int res1 = 0 ;
26947 PyObject *swig_obj[1] ;
26948
26949 if (!args) SWIG_fail;
26950 swig_obj[0] = args;
26951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26952 if (!SWIG_IsOK(res1)) {
26953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26954 }
26955 arg1 = reinterpret_cast< wxListItem * >(argp1);
26956 result = (long) ((arg1)->m_state);
26957 resultobj = SWIG_From_long(static_cast< long >(result));
26958 return resultobj;
26959 fail:
26960 return NULL;
26961 }
26962
26963
26964 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26965 PyObject *resultobj = 0;
26966 wxListItem *arg1 = (wxListItem *) 0 ;
26967 long arg2 ;
26968 void *argp1 = 0 ;
26969 int res1 = 0 ;
26970 long val2 ;
26971 int ecode2 = 0 ;
26972 PyObject *swig_obj[2] ;
26973
26974 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
26975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26976 if (!SWIG_IsOK(res1)) {
26977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26978 }
26979 arg1 = reinterpret_cast< wxListItem * >(argp1);
26980 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26981 if (!SWIG_IsOK(ecode2)) {
26982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
26983 }
26984 arg2 = static_cast< long >(val2);
26985 if (arg1) (arg1)->m_stateMask = arg2;
26986
26987 resultobj = SWIG_Py_Void();
26988 return resultobj;
26989 fail:
26990 return NULL;
26991 }
26992
26993
26994 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26995 PyObject *resultobj = 0;
26996 wxListItem *arg1 = (wxListItem *) 0 ;
26997 long result;
26998 void *argp1 = 0 ;
26999 int res1 = 0 ;
27000 PyObject *swig_obj[1] ;
27001
27002 if (!args) SWIG_fail;
27003 swig_obj[0] = args;
27004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27005 if (!SWIG_IsOK(res1)) {
27006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27007 }
27008 arg1 = reinterpret_cast< wxListItem * >(argp1);
27009 result = (long) ((arg1)->m_stateMask);
27010 resultobj = SWIG_From_long(static_cast< long >(result));
27011 return resultobj;
27012 fail:
27013 return NULL;
27014 }
27015
27016
27017 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27018 PyObject *resultobj = 0;
27019 wxListItem *arg1 = (wxListItem *) 0 ;
27020 wxString *arg2 = (wxString *) 0 ;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 bool temp2 = false ;
27024 PyObject *swig_obj[2] ;
27025
27026 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27028 if (!SWIG_IsOK(res1)) {
27029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27030 }
27031 arg1 = reinterpret_cast< wxListItem * >(argp1);
27032 {
27033 arg2 = wxString_in_helper(swig_obj[1]);
27034 if (arg2 == NULL) SWIG_fail;
27035 temp2 = true;
27036 }
27037 if (arg1) (arg1)->m_text = *arg2;
27038
27039 resultobj = SWIG_Py_Void();
27040 {
27041 if (temp2)
27042 delete arg2;
27043 }
27044 return resultobj;
27045 fail:
27046 {
27047 if (temp2)
27048 delete arg2;
27049 }
27050 return NULL;
27051 }
27052
27053
27054 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 wxString *result = 0 ;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 PyObject *swig_obj[1] ;
27061
27062 if (!args) SWIG_fail;
27063 swig_obj[0] = args;
27064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27065 if (!SWIG_IsOK(res1)) {
27066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27067 }
27068 arg1 = reinterpret_cast< wxListItem * >(argp1);
27069 result = (wxString *)& ((arg1)->m_text);
27070 {
27071 #if wxUSE_UNICODE
27072 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27073 #else
27074 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27075 #endif
27076 }
27077 return resultobj;
27078 fail:
27079 return NULL;
27080 }
27081
27082
27083 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27084 PyObject *resultobj = 0;
27085 wxListItem *arg1 = (wxListItem *) 0 ;
27086 int arg2 ;
27087 void *argp1 = 0 ;
27088 int res1 = 0 ;
27089 int val2 ;
27090 int ecode2 = 0 ;
27091 PyObject *swig_obj[2] ;
27092
27093 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27095 if (!SWIG_IsOK(res1)) {
27096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27097 }
27098 arg1 = reinterpret_cast< wxListItem * >(argp1);
27099 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27100 if (!SWIG_IsOK(ecode2)) {
27101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27102 }
27103 arg2 = static_cast< int >(val2);
27104 if (arg1) (arg1)->m_image = arg2;
27105
27106 resultobj = SWIG_Py_Void();
27107 return resultobj;
27108 fail:
27109 return NULL;
27110 }
27111
27112
27113 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27114 PyObject *resultobj = 0;
27115 wxListItem *arg1 = (wxListItem *) 0 ;
27116 int result;
27117 void *argp1 = 0 ;
27118 int res1 = 0 ;
27119 PyObject *swig_obj[1] ;
27120
27121 if (!args) SWIG_fail;
27122 swig_obj[0] = args;
27123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27124 if (!SWIG_IsOK(res1)) {
27125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27126 }
27127 arg1 = reinterpret_cast< wxListItem * >(argp1);
27128 result = (int) ((arg1)->m_image);
27129 resultobj = SWIG_From_int(static_cast< int >(result));
27130 return resultobj;
27131 fail:
27132 return NULL;
27133 }
27134
27135
27136 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27137 PyObject *resultobj = 0;
27138 wxListItem *arg1 = (wxListItem *) 0 ;
27139 long arg2 ;
27140 void *argp1 = 0 ;
27141 int res1 = 0 ;
27142 long val2 ;
27143 int ecode2 = 0 ;
27144 PyObject *swig_obj[2] ;
27145
27146 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27148 if (!SWIG_IsOK(res1)) {
27149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27150 }
27151 arg1 = reinterpret_cast< wxListItem * >(argp1);
27152 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27153 if (!SWIG_IsOK(ecode2)) {
27154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27155 }
27156 arg2 = static_cast< long >(val2);
27157 if (arg1) (arg1)->m_data = arg2;
27158
27159 resultobj = SWIG_Py_Void();
27160 return resultobj;
27161 fail:
27162 return NULL;
27163 }
27164
27165
27166 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27167 PyObject *resultobj = 0;
27168 wxListItem *arg1 = (wxListItem *) 0 ;
27169 long result;
27170 void *argp1 = 0 ;
27171 int res1 = 0 ;
27172 PyObject *swig_obj[1] ;
27173
27174 if (!args) SWIG_fail;
27175 swig_obj[0] = args;
27176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27177 if (!SWIG_IsOK(res1)) {
27178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27179 }
27180 arg1 = reinterpret_cast< wxListItem * >(argp1);
27181 result = (long) ((arg1)->m_data);
27182 resultobj = SWIG_From_long(static_cast< long >(result));
27183 return resultobj;
27184 fail:
27185 return NULL;
27186 }
27187
27188
27189 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27190 PyObject *resultobj = 0;
27191 wxListItem *arg1 = (wxListItem *) 0 ;
27192 int arg2 ;
27193 void *argp1 = 0 ;
27194 int res1 = 0 ;
27195 int val2 ;
27196 int ecode2 = 0 ;
27197 PyObject *swig_obj[2] ;
27198
27199 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27201 if (!SWIG_IsOK(res1)) {
27202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27203 }
27204 arg1 = reinterpret_cast< wxListItem * >(argp1);
27205 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27206 if (!SWIG_IsOK(ecode2)) {
27207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27208 }
27209 arg2 = static_cast< int >(val2);
27210 if (arg1) (arg1)->m_format = arg2;
27211
27212 resultobj = SWIG_Py_Void();
27213 return resultobj;
27214 fail:
27215 return NULL;
27216 }
27217
27218
27219 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27220 PyObject *resultobj = 0;
27221 wxListItem *arg1 = (wxListItem *) 0 ;
27222 int result;
27223 void *argp1 = 0 ;
27224 int res1 = 0 ;
27225 PyObject *swig_obj[1] ;
27226
27227 if (!args) SWIG_fail;
27228 swig_obj[0] = args;
27229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27230 if (!SWIG_IsOK(res1)) {
27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27232 }
27233 arg1 = reinterpret_cast< wxListItem * >(argp1);
27234 result = (int) ((arg1)->m_format);
27235 resultobj = SWIG_From_int(static_cast< int >(result));
27236 return resultobj;
27237 fail:
27238 return NULL;
27239 }
27240
27241
27242 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27243 PyObject *resultobj = 0;
27244 wxListItem *arg1 = (wxListItem *) 0 ;
27245 int arg2 ;
27246 void *argp1 = 0 ;
27247 int res1 = 0 ;
27248 int val2 ;
27249 int ecode2 = 0 ;
27250 PyObject *swig_obj[2] ;
27251
27252 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27254 if (!SWIG_IsOK(res1)) {
27255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27256 }
27257 arg1 = reinterpret_cast< wxListItem * >(argp1);
27258 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27259 if (!SWIG_IsOK(ecode2)) {
27260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27261 }
27262 arg2 = static_cast< int >(val2);
27263 if (arg1) (arg1)->m_width = arg2;
27264
27265 resultobj = SWIG_Py_Void();
27266 return resultobj;
27267 fail:
27268 return NULL;
27269 }
27270
27271
27272 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 int result;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 PyObject *swig_obj[1] ;
27279
27280 if (!args) SWIG_fail;
27281 swig_obj[0] = args;
27282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 result = (int) ((arg1)->m_width);
27288 resultobj = SWIG_From_int(static_cast< int >(result));
27289 return resultobj;
27290 fail:
27291 return NULL;
27292 }
27293
27294
27295 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27296 PyObject *obj;
27297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27298 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27299 return SWIG_Py_Void();
27300 }
27301
27302 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27303 return SWIG_Python_InitShadowInstance(args);
27304 }
27305
27306 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27307 PyObject *resultobj = 0;
27308 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27309 int arg2 = (int) 0 ;
27310 wxListEvent *result = 0 ;
27311 int val1 ;
27312 int ecode1 = 0 ;
27313 int val2 ;
27314 int ecode2 = 0 ;
27315 PyObject * obj0 = 0 ;
27316 PyObject * obj1 = 0 ;
27317 char * kwnames[] = {
27318 (char *) "commandType",(char *) "id", NULL
27319 };
27320
27321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27322 if (obj0) {
27323 ecode1 = SWIG_AsVal_int(obj0, &val1);
27324 if (!SWIG_IsOK(ecode1)) {
27325 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27326 }
27327 arg1 = static_cast< wxEventType >(val1);
27328 }
27329 if (obj1) {
27330 ecode2 = SWIG_AsVal_int(obj1, &val2);
27331 if (!SWIG_IsOK(ecode2)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27333 }
27334 arg2 = static_cast< int >(val2);
27335 }
27336 {
27337 PyThreadState* __tstate = wxPyBeginAllowThreads();
27338 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27339 wxPyEndAllowThreads(__tstate);
27340 if (PyErr_Occurred()) SWIG_fail;
27341 }
27342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27343 return resultobj;
27344 fail:
27345 return NULL;
27346 }
27347
27348
27349 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27350 PyObject *resultobj = 0;
27351 wxListEvent *arg1 = (wxListEvent *) 0 ;
27352 int arg2 ;
27353 void *argp1 = 0 ;
27354 int res1 = 0 ;
27355 int val2 ;
27356 int ecode2 = 0 ;
27357 PyObject *swig_obj[2] ;
27358
27359 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27361 if (!SWIG_IsOK(res1)) {
27362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27363 }
27364 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27365 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27366 if (!SWIG_IsOK(ecode2)) {
27367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27368 }
27369 arg2 = static_cast< int >(val2);
27370 if (arg1) (arg1)->m_code = arg2;
27371
27372 resultobj = SWIG_Py_Void();
27373 return resultobj;
27374 fail:
27375 return NULL;
27376 }
27377
27378
27379 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27380 PyObject *resultobj = 0;
27381 wxListEvent *arg1 = (wxListEvent *) 0 ;
27382 int result;
27383 void *argp1 = 0 ;
27384 int res1 = 0 ;
27385 PyObject *swig_obj[1] ;
27386
27387 if (!args) SWIG_fail;
27388 swig_obj[0] = args;
27389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27390 if (!SWIG_IsOK(res1)) {
27391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27392 }
27393 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27394 result = (int) ((arg1)->m_code);
27395 resultobj = SWIG_From_int(static_cast< int >(result));
27396 return resultobj;
27397 fail:
27398 return NULL;
27399 }
27400
27401
27402 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27403 PyObject *resultobj = 0;
27404 wxListEvent *arg1 = (wxListEvent *) 0 ;
27405 long arg2 ;
27406 void *argp1 = 0 ;
27407 int res1 = 0 ;
27408 long val2 ;
27409 int ecode2 = 0 ;
27410 PyObject *swig_obj[2] ;
27411
27412 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27414 if (!SWIG_IsOK(res1)) {
27415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27416 }
27417 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27418 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27419 if (!SWIG_IsOK(ecode2)) {
27420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27421 }
27422 arg2 = static_cast< long >(val2);
27423 if (arg1) (arg1)->m_oldItemIndex = arg2;
27424
27425 resultobj = SWIG_Py_Void();
27426 return resultobj;
27427 fail:
27428 return NULL;
27429 }
27430
27431
27432 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27433 PyObject *resultobj = 0;
27434 wxListEvent *arg1 = (wxListEvent *) 0 ;
27435 long result;
27436 void *argp1 = 0 ;
27437 int res1 = 0 ;
27438 PyObject *swig_obj[1] ;
27439
27440 if (!args) SWIG_fail;
27441 swig_obj[0] = args;
27442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27443 if (!SWIG_IsOK(res1)) {
27444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27445 }
27446 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27447 result = (long) ((arg1)->m_oldItemIndex);
27448 resultobj = SWIG_From_long(static_cast< long >(result));
27449 return resultobj;
27450 fail:
27451 return NULL;
27452 }
27453
27454
27455 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27456 PyObject *resultobj = 0;
27457 wxListEvent *arg1 = (wxListEvent *) 0 ;
27458 long arg2 ;
27459 void *argp1 = 0 ;
27460 int res1 = 0 ;
27461 long val2 ;
27462 int ecode2 = 0 ;
27463 PyObject *swig_obj[2] ;
27464
27465 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27467 if (!SWIG_IsOK(res1)) {
27468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27469 }
27470 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27471 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27472 if (!SWIG_IsOK(ecode2)) {
27473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27474 }
27475 arg2 = static_cast< long >(val2);
27476 if (arg1) (arg1)->m_itemIndex = arg2;
27477
27478 resultobj = SWIG_Py_Void();
27479 return resultobj;
27480 fail:
27481 return NULL;
27482 }
27483
27484
27485 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27486 PyObject *resultobj = 0;
27487 wxListEvent *arg1 = (wxListEvent *) 0 ;
27488 long result;
27489 void *argp1 = 0 ;
27490 int res1 = 0 ;
27491 PyObject *swig_obj[1] ;
27492
27493 if (!args) SWIG_fail;
27494 swig_obj[0] = args;
27495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27496 if (!SWIG_IsOK(res1)) {
27497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27498 }
27499 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27500 result = (long) ((arg1)->m_itemIndex);
27501 resultobj = SWIG_From_long(static_cast< long >(result));
27502 return resultobj;
27503 fail:
27504 return NULL;
27505 }
27506
27507
27508 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27509 PyObject *resultobj = 0;
27510 wxListEvent *arg1 = (wxListEvent *) 0 ;
27511 int arg2 ;
27512 void *argp1 = 0 ;
27513 int res1 = 0 ;
27514 int val2 ;
27515 int ecode2 = 0 ;
27516 PyObject *swig_obj[2] ;
27517
27518 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27520 if (!SWIG_IsOK(res1)) {
27521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27522 }
27523 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27524 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27525 if (!SWIG_IsOK(ecode2)) {
27526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27527 }
27528 arg2 = static_cast< int >(val2);
27529 if (arg1) (arg1)->m_col = arg2;
27530
27531 resultobj = SWIG_Py_Void();
27532 return resultobj;
27533 fail:
27534 return NULL;
27535 }
27536
27537
27538 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27539 PyObject *resultobj = 0;
27540 wxListEvent *arg1 = (wxListEvent *) 0 ;
27541 int result;
27542 void *argp1 = 0 ;
27543 int res1 = 0 ;
27544 PyObject *swig_obj[1] ;
27545
27546 if (!args) SWIG_fail;
27547 swig_obj[0] = args;
27548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27549 if (!SWIG_IsOK(res1)) {
27550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27551 }
27552 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27553 result = (int) ((arg1)->m_col);
27554 resultobj = SWIG_From_int(static_cast< int >(result));
27555 return resultobj;
27556 fail:
27557 return NULL;
27558 }
27559
27560
27561 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27562 PyObject *resultobj = 0;
27563 wxListEvent *arg1 = (wxListEvent *) 0 ;
27564 wxPoint *arg2 = (wxPoint *) 0 ;
27565 void *argp1 = 0 ;
27566 int res1 = 0 ;
27567 void *argp2 = 0 ;
27568 int res2 = 0 ;
27569 PyObject *swig_obj[2] ;
27570
27571 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27573 if (!SWIG_IsOK(res1)) {
27574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27575 }
27576 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27577 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27578 if (!SWIG_IsOK(res2)) {
27579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27580 }
27581 arg2 = reinterpret_cast< wxPoint * >(argp2);
27582 if (arg1) (arg1)->m_pointDrag = *arg2;
27583
27584 resultobj = SWIG_Py_Void();
27585 return resultobj;
27586 fail:
27587 return NULL;
27588 }
27589
27590
27591 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27592 PyObject *resultobj = 0;
27593 wxListEvent *arg1 = (wxListEvent *) 0 ;
27594 wxPoint *result = 0 ;
27595 void *argp1 = 0 ;
27596 int res1 = 0 ;
27597 PyObject *swig_obj[1] ;
27598
27599 if (!args) SWIG_fail;
27600 swig_obj[0] = args;
27601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27602 if (!SWIG_IsOK(res1)) {
27603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27604 }
27605 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27606 result = (wxPoint *)& ((arg1)->m_pointDrag);
27607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27608 return resultobj;
27609 fail:
27610 return NULL;
27611 }
27612
27613
27614 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27615 PyObject *resultobj = 0;
27616 wxListEvent *arg1 = (wxListEvent *) 0 ;
27617 wxListItem *result = 0 ;
27618 void *argp1 = 0 ;
27619 int res1 = 0 ;
27620 PyObject *swig_obj[1] ;
27621
27622 if (!args) SWIG_fail;
27623 swig_obj[0] = args;
27624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27625 if (!SWIG_IsOK(res1)) {
27626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27627 }
27628 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27629 result = (wxListItem *)& ((arg1)->m_item);
27630 {
27631 resultobj = wxPyMake_wxObject(result, (bool)0);
27632 }
27633 return resultobj;
27634 fail:
27635 return NULL;
27636 }
27637
27638
27639 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27640 PyObject *resultobj = 0;
27641 wxListEvent *arg1 = (wxListEvent *) 0 ;
27642 int result;
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 PyObject *swig_obj[1] ;
27646
27647 if (!args) SWIG_fail;
27648 swig_obj[0] = args;
27649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27650 if (!SWIG_IsOK(res1)) {
27651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27652 }
27653 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27654 {
27655 PyThreadState* __tstate = wxPyBeginAllowThreads();
27656 result = (int)(arg1)->GetKeyCode();
27657 wxPyEndAllowThreads(__tstate);
27658 if (PyErr_Occurred()) SWIG_fail;
27659 }
27660 resultobj = SWIG_From_int(static_cast< int >(result));
27661 return resultobj;
27662 fail:
27663 return NULL;
27664 }
27665
27666
27667 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27668 PyObject *resultobj = 0;
27669 wxListEvent *arg1 = (wxListEvent *) 0 ;
27670 long result;
27671 void *argp1 = 0 ;
27672 int res1 = 0 ;
27673 PyObject *swig_obj[1] ;
27674
27675 if (!args) SWIG_fail;
27676 swig_obj[0] = args;
27677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27678 if (!SWIG_IsOK(res1)) {
27679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27680 }
27681 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27682 {
27683 PyThreadState* __tstate = wxPyBeginAllowThreads();
27684 result = (long)(arg1)->GetIndex();
27685 wxPyEndAllowThreads(__tstate);
27686 if (PyErr_Occurred()) SWIG_fail;
27687 }
27688 resultobj = SWIG_From_long(static_cast< long >(result));
27689 return resultobj;
27690 fail:
27691 return NULL;
27692 }
27693
27694
27695 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27696 PyObject *resultobj = 0;
27697 wxListEvent *arg1 = (wxListEvent *) 0 ;
27698 int result;
27699 void *argp1 = 0 ;
27700 int res1 = 0 ;
27701 PyObject *swig_obj[1] ;
27702
27703 if (!args) SWIG_fail;
27704 swig_obj[0] = args;
27705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27706 if (!SWIG_IsOK(res1)) {
27707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27708 }
27709 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27710 {
27711 PyThreadState* __tstate = wxPyBeginAllowThreads();
27712 result = (int)(arg1)->GetColumn();
27713 wxPyEndAllowThreads(__tstate);
27714 if (PyErr_Occurred()) SWIG_fail;
27715 }
27716 resultobj = SWIG_From_int(static_cast< int >(result));
27717 return resultobj;
27718 fail:
27719 return NULL;
27720 }
27721
27722
27723 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27724 PyObject *resultobj = 0;
27725 wxListEvent *arg1 = (wxListEvent *) 0 ;
27726 wxPoint result;
27727 void *argp1 = 0 ;
27728 int res1 = 0 ;
27729 PyObject *swig_obj[1] ;
27730
27731 if (!args) SWIG_fail;
27732 swig_obj[0] = args;
27733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27734 if (!SWIG_IsOK(res1)) {
27735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27736 }
27737 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27738 {
27739 PyThreadState* __tstate = wxPyBeginAllowThreads();
27740 result = (arg1)->GetPoint();
27741 wxPyEndAllowThreads(__tstate);
27742 if (PyErr_Occurred()) SWIG_fail;
27743 }
27744 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27745 return resultobj;
27746 fail:
27747 return NULL;
27748 }
27749
27750
27751 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27752 PyObject *resultobj = 0;
27753 wxListEvent *arg1 = (wxListEvent *) 0 ;
27754 wxString *result = 0 ;
27755 void *argp1 = 0 ;
27756 int res1 = 0 ;
27757 PyObject *swig_obj[1] ;
27758
27759 if (!args) SWIG_fail;
27760 swig_obj[0] = args;
27761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27762 if (!SWIG_IsOK(res1)) {
27763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
27764 }
27765 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27766 {
27767 PyThreadState* __tstate = wxPyBeginAllowThreads();
27768 {
27769 wxString const &_result_ref = (arg1)->GetLabel();
27770 result = (wxString *) &_result_ref;
27771 }
27772 wxPyEndAllowThreads(__tstate);
27773 if (PyErr_Occurred()) SWIG_fail;
27774 }
27775 {
27776 #if wxUSE_UNICODE
27777 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27778 #else
27779 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27780 #endif
27781 }
27782 return resultobj;
27783 fail:
27784 return NULL;
27785 }
27786
27787
27788 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27789 PyObject *resultobj = 0;
27790 wxListEvent *arg1 = (wxListEvent *) 0 ;
27791 wxString *result = 0 ;
27792 void *argp1 = 0 ;
27793 int res1 = 0 ;
27794 PyObject *swig_obj[1] ;
27795
27796 if (!args) SWIG_fail;
27797 swig_obj[0] = args;
27798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27799 if (!SWIG_IsOK(res1)) {
27800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
27801 }
27802 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27803 {
27804 PyThreadState* __tstate = wxPyBeginAllowThreads();
27805 {
27806 wxString const &_result_ref = (arg1)->GetText();
27807 result = (wxString *) &_result_ref;
27808 }
27809 wxPyEndAllowThreads(__tstate);
27810 if (PyErr_Occurred()) SWIG_fail;
27811 }
27812 {
27813 #if wxUSE_UNICODE
27814 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27815 #else
27816 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27817 #endif
27818 }
27819 return resultobj;
27820 fail:
27821 return NULL;
27822 }
27823
27824
27825 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27826 PyObject *resultobj = 0;
27827 wxListEvent *arg1 = (wxListEvent *) 0 ;
27828 int result;
27829 void *argp1 = 0 ;
27830 int res1 = 0 ;
27831 PyObject *swig_obj[1] ;
27832
27833 if (!args) SWIG_fail;
27834 swig_obj[0] = args;
27835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27836 if (!SWIG_IsOK(res1)) {
27837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
27838 }
27839 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27840 {
27841 PyThreadState* __tstate = wxPyBeginAllowThreads();
27842 result = (int)(arg1)->GetImage();
27843 wxPyEndAllowThreads(__tstate);
27844 if (PyErr_Occurred()) SWIG_fail;
27845 }
27846 resultobj = SWIG_From_int(static_cast< int >(result));
27847 return resultobj;
27848 fail:
27849 return NULL;
27850 }
27851
27852
27853 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27854 PyObject *resultobj = 0;
27855 wxListEvent *arg1 = (wxListEvent *) 0 ;
27856 long result;
27857 void *argp1 = 0 ;
27858 int res1 = 0 ;
27859 PyObject *swig_obj[1] ;
27860
27861 if (!args) SWIG_fail;
27862 swig_obj[0] = args;
27863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27864 if (!SWIG_IsOK(res1)) {
27865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
27866 }
27867 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27868 {
27869 PyThreadState* __tstate = wxPyBeginAllowThreads();
27870 result = (long)(arg1)->GetData();
27871 wxPyEndAllowThreads(__tstate);
27872 if (PyErr_Occurred()) SWIG_fail;
27873 }
27874 resultobj = SWIG_From_long(static_cast< long >(result));
27875 return resultobj;
27876 fail:
27877 return NULL;
27878 }
27879
27880
27881 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27882 PyObject *resultobj = 0;
27883 wxListEvent *arg1 = (wxListEvent *) 0 ;
27884 long result;
27885 void *argp1 = 0 ;
27886 int res1 = 0 ;
27887 PyObject *swig_obj[1] ;
27888
27889 if (!args) SWIG_fail;
27890 swig_obj[0] = args;
27891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27892 if (!SWIG_IsOK(res1)) {
27893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
27894 }
27895 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27896 {
27897 PyThreadState* __tstate = wxPyBeginAllowThreads();
27898 result = (long)(arg1)->GetMask();
27899 wxPyEndAllowThreads(__tstate);
27900 if (PyErr_Occurred()) SWIG_fail;
27901 }
27902 resultobj = SWIG_From_long(static_cast< long >(result));
27903 return resultobj;
27904 fail:
27905 return NULL;
27906 }
27907
27908
27909 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27910 PyObject *resultobj = 0;
27911 wxListEvent *arg1 = (wxListEvent *) 0 ;
27912 wxListItem *result = 0 ;
27913 void *argp1 = 0 ;
27914 int res1 = 0 ;
27915 PyObject *swig_obj[1] ;
27916
27917 if (!args) SWIG_fail;
27918 swig_obj[0] = args;
27919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27920 if (!SWIG_IsOK(res1)) {
27921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
27922 }
27923 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27924 {
27925 PyThreadState* __tstate = wxPyBeginAllowThreads();
27926 {
27927 wxListItem const &_result_ref = (arg1)->GetItem();
27928 result = (wxListItem *) &_result_ref;
27929 }
27930 wxPyEndAllowThreads(__tstate);
27931 if (PyErr_Occurred()) SWIG_fail;
27932 }
27933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
27934 return resultobj;
27935 fail:
27936 return NULL;
27937 }
27938
27939
27940 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27941 PyObject *resultobj = 0;
27942 wxListEvent *arg1 = (wxListEvent *) 0 ;
27943 long result;
27944 void *argp1 = 0 ;
27945 int res1 = 0 ;
27946 PyObject *swig_obj[1] ;
27947
27948 if (!args) SWIG_fail;
27949 swig_obj[0] = args;
27950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27951 if (!SWIG_IsOK(res1)) {
27952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
27953 }
27954 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27955 {
27956 PyThreadState* __tstate = wxPyBeginAllowThreads();
27957 result = (long)(arg1)->GetCacheFrom();
27958 wxPyEndAllowThreads(__tstate);
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 resultobj = SWIG_From_long(static_cast< long >(result));
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 PyObject *resultobj = 0;
27970 wxListEvent *arg1 = (wxListEvent *) 0 ;
27971 long result;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 PyObject *swig_obj[1] ;
27975
27976 if (!args) SWIG_fail;
27977 swig_obj[0] = args;
27978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27979 if (!SWIG_IsOK(res1)) {
27980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
27981 }
27982 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27983 {
27984 PyThreadState* __tstate = wxPyBeginAllowThreads();
27985 result = (long)(arg1)->GetCacheTo();
27986 wxPyEndAllowThreads(__tstate);
27987 if (PyErr_Occurred()) SWIG_fail;
27988 }
27989 resultobj = SWIG_From_long(static_cast< long >(result));
27990 return resultobj;
27991 fail:
27992 return NULL;
27993 }
27994
27995
27996 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27997 PyObject *resultobj = 0;
27998 wxListEvent *arg1 = (wxListEvent *) 0 ;
27999 bool result;
28000 void *argp1 = 0 ;
28001 int res1 = 0 ;
28002 PyObject *swig_obj[1] ;
28003
28004 if (!args) SWIG_fail;
28005 swig_obj[0] = args;
28006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28007 if (!SWIG_IsOK(res1)) {
28008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28009 }
28010 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28011 {
28012 PyThreadState* __tstate = wxPyBeginAllowThreads();
28013 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28014 wxPyEndAllowThreads(__tstate);
28015 if (PyErr_Occurred()) SWIG_fail;
28016 }
28017 {
28018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28019 }
28020 return resultobj;
28021 fail:
28022 return NULL;
28023 }
28024
28025
28026 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28027 PyObject *resultobj = 0;
28028 wxListEvent *arg1 = (wxListEvent *) 0 ;
28029 bool arg2 ;
28030 void *argp1 = 0 ;
28031 int res1 = 0 ;
28032 bool val2 ;
28033 int ecode2 = 0 ;
28034 PyObject * obj0 = 0 ;
28035 PyObject * obj1 = 0 ;
28036 char * kwnames[] = {
28037 (char *) "self",(char *) "editCancelled", NULL
28038 };
28039
28040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28042 if (!SWIG_IsOK(res1)) {
28043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28044 }
28045 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28046 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28047 if (!SWIG_IsOK(ecode2)) {
28048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28049 }
28050 arg2 = static_cast< bool >(val2);
28051 {
28052 PyThreadState* __tstate = wxPyBeginAllowThreads();
28053 (arg1)->SetEditCanceled(arg2);
28054 wxPyEndAllowThreads(__tstate);
28055 if (PyErr_Occurred()) SWIG_fail;
28056 }
28057 resultobj = SWIG_Py_Void();
28058 return resultobj;
28059 fail:
28060 return NULL;
28061 }
28062
28063
28064 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28065 PyObject *obj;
28066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28067 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28068 return SWIG_Py_Void();
28069 }
28070
28071 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28072 return SWIG_Python_InitShadowInstance(args);
28073 }
28074
28075 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28076 PyObject *resultobj = 0;
28077 wxWindow *arg1 = (wxWindow *) 0 ;
28078 int arg2 = (int) -1 ;
28079 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28080 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28081 wxSize const &arg4_defvalue = wxDefaultSize ;
28082 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28083 long arg5 = (long) wxLC_ICON ;
28084 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28085 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28086 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28087 wxString *arg7 = (wxString *) &arg7_defvalue ;
28088 wxPyListCtrl *result = 0 ;
28089 void *argp1 = 0 ;
28090 int res1 = 0 ;
28091 int val2 ;
28092 int ecode2 = 0 ;
28093 wxPoint temp3 ;
28094 wxSize temp4 ;
28095 long val5 ;
28096 int ecode5 = 0 ;
28097 void *argp6 = 0 ;
28098 int res6 = 0 ;
28099 bool temp7 = false ;
28100 PyObject * obj0 = 0 ;
28101 PyObject * obj1 = 0 ;
28102 PyObject * obj2 = 0 ;
28103 PyObject * obj3 = 0 ;
28104 PyObject * obj4 = 0 ;
28105 PyObject * obj5 = 0 ;
28106 PyObject * obj6 = 0 ;
28107 char * kwnames[] = {
28108 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28109 };
28110
28111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28113 if (!SWIG_IsOK(res1)) {
28114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28115 }
28116 arg1 = reinterpret_cast< wxWindow * >(argp1);
28117 if (obj1) {
28118 ecode2 = SWIG_AsVal_int(obj1, &val2);
28119 if (!SWIG_IsOK(ecode2)) {
28120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28121 }
28122 arg2 = static_cast< int >(val2);
28123 }
28124 if (obj2) {
28125 {
28126 arg3 = &temp3;
28127 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28128 }
28129 }
28130 if (obj3) {
28131 {
28132 arg4 = &temp4;
28133 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28134 }
28135 }
28136 if (obj4) {
28137 ecode5 = SWIG_AsVal_long(obj4, &val5);
28138 if (!SWIG_IsOK(ecode5)) {
28139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28140 }
28141 arg5 = static_cast< long >(val5);
28142 }
28143 if (obj5) {
28144 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28145 if (!SWIG_IsOK(res6)) {
28146 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28147 }
28148 if (!argp6) {
28149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28150 }
28151 arg6 = reinterpret_cast< wxValidator * >(argp6);
28152 }
28153 if (obj6) {
28154 {
28155 arg7 = wxString_in_helper(obj6);
28156 if (arg7 == NULL) SWIG_fail;
28157 temp7 = true;
28158 }
28159 }
28160 {
28161 if (!wxPyCheckForApp()) SWIG_fail;
28162 PyThreadState* __tstate = wxPyBeginAllowThreads();
28163 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28168 {
28169 if (temp7)
28170 delete arg7;
28171 }
28172 return resultobj;
28173 fail:
28174 {
28175 if (temp7)
28176 delete arg7;
28177 }
28178 return NULL;
28179 }
28180
28181
28182 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28183 PyObject *resultobj = 0;
28184 wxPyListCtrl *result = 0 ;
28185
28186 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28187 {
28188 if (!wxPyCheckForApp()) SWIG_fail;
28189 PyThreadState* __tstate = wxPyBeginAllowThreads();
28190 result = (wxPyListCtrl *)new wxPyListCtrl();
28191 wxPyEndAllowThreads(__tstate);
28192 if (PyErr_Occurred()) SWIG_fail;
28193 }
28194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28195 return resultobj;
28196 fail:
28197 return NULL;
28198 }
28199
28200
28201 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28202 PyObject *resultobj = 0;
28203 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28204 wxWindow *arg2 = (wxWindow *) 0 ;
28205 int arg3 = (int) -1 ;
28206 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28207 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28208 wxSize const &arg5_defvalue = wxDefaultSize ;
28209 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28210 long arg6 = (long) wxLC_ICON ;
28211 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28212 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28213 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28214 wxString *arg8 = (wxString *) &arg8_defvalue ;
28215 bool result;
28216 void *argp1 = 0 ;
28217 int res1 = 0 ;
28218 void *argp2 = 0 ;
28219 int res2 = 0 ;
28220 int val3 ;
28221 int ecode3 = 0 ;
28222 wxPoint temp4 ;
28223 wxSize temp5 ;
28224 long val6 ;
28225 int ecode6 = 0 ;
28226 void *argp7 = 0 ;
28227 int res7 = 0 ;
28228 bool temp8 = false ;
28229 PyObject * obj0 = 0 ;
28230 PyObject * obj1 = 0 ;
28231 PyObject * obj2 = 0 ;
28232 PyObject * obj3 = 0 ;
28233 PyObject * obj4 = 0 ;
28234 PyObject * obj5 = 0 ;
28235 PyObject * obj6 = 0 ;
28236 PyObject * obj7 = 0 ;
28237 char * kwnames[] = {
28238 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28239 };
28240
28241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28243 if (!SWIG_IsOK(res1)) {
28244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28245 }
28246 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28247 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28248 if (!SWIG_IsOK(res2)) {
28249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28250 }
28251 arg2 = reinterpret_cast< wxWindow * >(argp2);
28252 if (obj2) {
28253 ecode3 = SWIG_AsVal_int(obj2, &val3);
28254 if (!SWIG_IsOK(ecode3)) {
28255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28256 }
28257 arg3 = static_cast< int >(val3);
28258 }
28259 if (obj3) {
28260 {
28261 arg4 = &temp4;
28262 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28263 }
28264 }
28265 if (obj4) {
28266 {
28267 arg5 = &temp5;
28268 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28269 }
28270 }
28271 if (obj5) {
28272 ecode6 = SWIG_AsVal_long(obj5, &val6);
28273 if (!SWIG_IsOK(ecode6)) {
28274 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28275 }
28276 arg6 = static_cast< long >(val6);
28277 }
28278 if (obj6) {
28279 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28280 if (!SWIG_IsOK(res7)) {
28281 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28282 }
28283 if (!argp7) {
28284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28285 }
28286 arg7 = reinterpret_cast< wxValidator * >(argp7);
28287 }
28288 if (obj7) {
28289 {
28290 arg8 = wxString_in_helper(obj7);
28291 if (arg8 == NULL) SWIG_fail;
28292 temp8 = true;
28293 }
28294 }
28295 {
28296 PyThreadState* __tstate = wxPyBeginAllowThreads();
28297 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28298 wxPyEndAllowThreads(__tstate);
28299 if (PyErr_Occurred()) SWIG_fail;
28300 }
28301 {
28302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28303 }
28304 {
28305 if (temp8)
28306 delete arg8;
28307 }
28308 return resultobj;
28309 fail:
28310 {
28311 if (temp8)
28312 delete arg8;
28313 }
28314 return NULL;
28315 }
28316
28317
28318 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28319 PyObject *resultobj = 0;
28320 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28321 PyObject *arg2 = (PyObject *) 0 ;
28322 PyObject *arg3 = (PyObject *) 0 ;
28323 void *argp1 = 0 ;
28324 int res1 = 0 ;
28325 PyObject * obj0 = 0 ;
28326 PyObject * obj1 = 0 ;
28327 PyObject * obj2 = 0 ;
28328 char * kwnames[] = {
28329 (char *) "self",(char *) "self",(char *) "_class", NULL
28330 };
28331
28332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28334 if (!SWIG_IsOK(res1)) {
28335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28336 }
28337 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28338 arg2 = obj1;
28339 arg3 = obj2;
28340 {
28341 PyThreadState* __tstate = wxPyBeginAllowThreads();
28342 (arg1)->_setCallbackInfo(arg2,arg3);
28343 wxPyEndAllowThreads(__tstate);
28344 if (PyErr_Occurred()) SWIG_fail;
28345 }
28346 resultobj = SWIG_Py_Void();
28347 return resultobj;
28348 fail:
28349 return NULL;
28350 }
28351
28352
28353 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28354 PyObject *resultobj = 0;
28355 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28356 int arg2 ;
28357 wxListItem *result = 0 ;
28358 void *argp1 = 0 ;
28359 int res1 = 0 ;
28360 int val2 ;
28361 int ecode2 = 0 ;
28362 PyObject * obj0 = 0 ;
28363 PyObject * obj1 = 0 ;
28364 char * kwnames[] = {
28365 (char *) "self",(char *) "col", NULL
28366 };
28367
28368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28370 if (!SWIG_IsOK(res1)) {
28371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28372 }
28373 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28374 ecode2 = SWIG_AsVal_int(obj1, &val2);
28375 if (!SWIG_IsOK(ecode2)) {
28376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28377 }
28378 arg2 = static_cast< int >(val2);
28379 {
28380 PyThreadState* __tstate = wxPyBeginAllowThreads();
28381 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28382 wxPyEndAllowThreads(__tstate);
28383 if (PyErr_Occurred()) SWIG_fail;
28384 }
28385 {
28386 resultobj = wxPyMake_wxObject(result, (bool)0);
28387 }
28388 return resultobj;
28389 fail:
28390 return NULL;
28391 }
28392
28393
28394 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28395 PyObject *resultobj = 0;
28396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28397 int arg2 ;
28398 wxListItem *arg3 = 0 ;
28399 bool result;
28400 void *argp1 = 0 ;
28401 int res1 = 0 ;
28402 int val2 ;
28403 int ecode2 = 0 ;
28404 void *argp3 = 0 ;
28405 int res3 = 0 ;
28406 PyObject * obj0 = 0 ;
28407 PyObject * obj1 = 0 ;
28408 PyObject * obj2 = 0 ;
28409 char * kwnames[] = {
28410 (char *) "self",(char *) "col",(char *) "item", NULL
28411 };
28412
28413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28415 if (!SWIG_IsOK(res1)) {
28416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28417 }
28418 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28419 ecode2 = SWIG_AsVal_int(obj1, &val2);
28420 if (!SWIG_IsOK(ecode2)) {
28421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28422 }
28423 arg2 = static_cast< int >(val2);
28424 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28425 if (!SWIG_IsOK(res3)) {
28426 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28427 }
28428 if (!argp3) {
28429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28430 }
28431 arg3 = reinterpret_cast< wxListItem * >(argp3);
28432 {
28433 PyThreadState* __tstate = wxPyBeginAllowThreads();
28434 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28435 wxPyEndAllowThreads(__tstate);
28436 if (PyErr_Occurred()) SWIG_fail;
28437 }
28438 {
28439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28440 }
28441 return resultobj;
28442 fail:
28443 return NULL;
28444 }
28445
28446
28447 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28448 PyObject *resultobj = 0;
28449 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28450 int arg2 ;
28451 int result;
28452 void *argp1 = 0 ;
28453 int res1 = 0 ;
28454 int val2 ;
28455 int ecode2 = 0 ;
28456 PyObject * obj0 = 0 ;
28457 PyObject * obj1 = 0 ;
28458 char * kwnames[] = {
28459 (char *) "self",(char *) "col", NULL
28460 };
28461
28462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28464 if (!SWIG_IsOK(res1)) {
28465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28466 }
28467 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28468 ecode2 = SWIG_AsVal_int(obj1, &val2);
28469 if (!SWIG_IsOK(ecode2)) {
28470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28471 }
28472 arg2 = static_cast< int >(val2);
28473 {
28474 PyThreadState* __tstate = wxPyBeginAllowThreads();
28475 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28476 wxPyEndAllowThreads(__tstate);
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 resultobj = SWIG_From_int(static_cast< int >(result));
28480 return resultobj;
28481 fail:
28482 return NULL;
28483 }
28484
28485
28486 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28487 PyObject *resultobj = 0;
28488 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28489 int arg2 ;
28490 int arg3 ;
28491 bool result;
28492 void *argp1 = 0 ;
28493 int res1 = 0 ;
28494 int val2 ;
28495 int ecode2 = 0 ;
28496 int val3 ;
28497 int ecode3 = 0 ;
28498 PyObject * obj0 = 0 ;
28499 PyObject * obj1 = 0 ;
28500 PyObject * obj2 = 0 ;
28501 char * kwnames[] = {
28502 (char *) "self",(char *) "col",(char *) "width", NULL
28503 };
28504
28505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28507 if (!SWIG_IsOK(res1)) {
28508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28509 }
28510 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28511 ecode2 = SWIG_AsVal_int(obj1, &val2);
28512 if (!SWIG_IsOK(ecode2)) {
28513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28514 }
28515 arg2 = static_cast< int >(val2);
28516 ecode3 = SWIG_AsVal_int(obj2, &val3);
28517 if (!SWIG_IsOK(ecode3)) {
28518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28519 }
28520 arg3 = static_cast< int >(val3);
28521 {
28522 PyThreadState* __tstate = wxPyBeginAllowThreads();
28523 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28524 wxPyEndAllowThreads(__tstate);
28525 if (PyErr_Occurred()) SWIG_fail;
28526 }
28527 {
28528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28529 }
28530 return resultobj;
28531 fail:
28532 return NULL;
28533 }
28534
28535
28536 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28537 PyObject *resultobj = 0;
28538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28539 int result;
28540 void *argp1 = 0 ;
28541 int res1 = 0 ;
28542 PyObject *swig_obj[1] ;
28543
28544 if (!args) SWIG_fail;
28545 swig_obj[0] = args;
28546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28547 if (!SWIG_IsOK(res1)) {
28548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28549 }
28550 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28551 {
28552 PyThreadState* __tstate = wxPyBeginAllowThreads();
28553 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28554 wxPyEndAllowThreads(__tstate);
28555 if (PyErr_Occurred()) SWIG_fail;
28556 }
28557 resultobj = SWIG_From_int(static_cast< int >(result));
28558 return resultobj;
28559 fail:
28560 return NULL;
28561 }
28562
28563
28564 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28565 PyObject *resultobj = 0;
28566 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28567 wxRect result;
28568 void *argp1 = 0 ;
28569 int res1 = 0 ;
28570 PyObject *swig_obj[1] ;
28571
28572 if (!args) SWIG_fail;
28573 swig_obj[0] = args;
28574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28575 if (!SWIG_IsOK(res1)) {
28576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28577 }
28578 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28579 {
28580 PyThreadState* __tstate = wxPyBeginAllowThreads();
28581 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28582 wxPyEndAllowThreads(__tstate);
28583 if (PyErr_Occurred()) SWIG_fail;
28584 }
28585 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28586 return resultobj;
28587 fail:
28588 return NULL;
28589 }
28590
28591
28592 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28593 PyObject *resultobj = 0;
28594 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28595 wxTextCtrl *result = 0 ;
28596 void *argp1 = 0 ;
28597 int res1 = 0 ;
28598 PyObject *swig_obj[1] ;
28599
28600 if (!args) SWIG_fail;
28601 swig_obj[0] = args;
28602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28603 if (!SWIG_IsOK(res1)) {
28604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28605 }
28606 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28607 {
28608 PyThreadState* __tstate = wxPyBeginAllowThreads();
28609 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28610 wxPyEndAllowThreads(__tstate);
28611 if (PyErr_Occurred()) SWIG_fail;
28612 }
28613 {
28614 resultobj = wxPyMake_wxObject(result, 0);
28615 }
28616 return resultobj;
28617 fail:
28618 return NULL;
28619 }
28620
28621
28622 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28623 PyObject *resultobj = 0;
28624 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28625 long arg2 ;
28626 int arg3 = (int) 0 ;
28627 wxListItem *result = 0 ;
28628 void *argp1 = 0 ;
28629 int res1 = 0 ;
28630 long val2 ;
28631 int ecode2 = 0 ;
28632 int val3 ;
28633 int ecode3 = 0 ;
28634 PyObject * obj0 = 0 ;
28635 PyObject * obj1 = 0 ;
28636 PyObject * obj2 = 0 ;
28637 char * kwnames[] = {
28638 (char *) "self",(char *) "itemId",(char *) "col", NULL
28639 };
28640
28641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28643 if (!SWIG_IsOK(res1)) {
28644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28645 }
28646 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28647 ecode2 = SWIG_AsVal_long(obj1, &val2);
28648 if (!SWIG_IsOK(ecode2)) {
28649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28650 }
28651 arg2 = static_cast< long >(val2);
28652 if (obj2) {
28653 ecode3 = SWIG_AsVal_int(obj2, &val3);
28654 if (!SWIG_IsOK(ecode3)) {
28655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28656 }
28657 arg3 = static_cast< int >(val3);
28658 }
28659 {
28660 PyThreadState* __tstate = wxPyBeginAllowThreads();
28661 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28662 wxPyEndAllowThreads(__tstate);
28663 if (PyErr_Occurred()) SWIG_fail;
28664 }
28665 {
28666 resultobj = wxPyMake_wxObject(result, (bool)0);
28667 }
28668 return resultobj;
28669 fail:
28670 return NULL;
28671 }
28672
28673
28674 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28675 PyObject *resultobj = 0;
28676 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28677 wxListItem *arg2 = 0 ;
28678 bool result;
28679 void *argp1 = 0 ;
28680 int res1 = 0 ;
28681 void *argp2 = 0 ;
28682 int res2 = 0 ;
28683 PyObject * obj0 = 0 ;
28684 PyObject * obj1 = 0 ;
28685 char * kwnames[] = {
28686 (char *) "self",(char *) "info", NULL
28687 };
28688
28689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28691 if (!SWIG_IsOK(res1)) {
28692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28693 }
28694 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28695 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28696 if (!SWIG_IsOK(res2)) {
28697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28698 }
28699 if (!argp2) {
28700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28701 }
28702 arg2 = reinterpret_cast< wxListItem * >(argp2);
28703 {
28704 PyThreadState* __tstate = wxPyBeginAllowThreads();
28705 result = (bool)(arg1)->SetItem(*arg2);
28706 wxPyEndAllowThreads(__tstate);
28707 if (PyErr_Occurred()) SWIG_fail;
28708 }
28709 {
28710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28711 }
28712 return resultobj;
28713 fail:
28714 return NULL;
28715 }
28716
28717
28718 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28719 PyObject *resultobj = 0;
28720 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28721 long arg2 ;
28722 int arg3 ;
28723 wxString *arg4 = 0 ;
28724 int arg5 = (int) -1 ;
28725 long result;
28726 void *argp1 = 0 ;
28727 int res1 = 0 ;
28728 long val2 ;
28729 int ecode2 = 0 ;
28730 int val3 ;
28731 int ecode3 = 0 ;
28732 bool temp4 = false ;
28733 int val5 ;
28734 int ecode5 = 0 ;
28735 PyObject * obj0 = 0 ;
28736 PyObject * obj1 = 0 ;
28737 PyObject * obj2 = 0 ;
28738 PyObject * obj3 = 0 ;
28739 PyObject * obj4 = 0 ;
28740 char * kwnames[] = {
28741 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28742 };
28743
28744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28746 if (!SWIG_IsOK(res1)) {
28747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28748 }
28749 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28750 ecode2 = SWIG_AsVal_long(obj1, &val2);
28751 if (!SWIG_IsOK(ecode2)) {
28752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
28753 }
28754 arg2 = static_cast< long >(val2);
28755 ecode3 = SWIG_AsVal_int(obj2, &val3);
28756 if (!SWIG_IsOK(ecode3)) {
28757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
28758 }
28759 arg3 = static_cast< int >(val3);
28760 {
28761 arg4 = wxString_in_helper(obj3);
28762 if (arg4 == NULL) SWIG_fail;
28763 temp4 = true;
28764 }
28765 if (obj4) {
28766 ecode5 = SWIG_AsVal_int(obj4, &val5);
28767 if (!SWIG_IsOK(ecode5)) {
28768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
28769 }
28770 arg5 = static_cast< int >(val5);
28771 }
28772 {
28773 PyThreadState* __tstate = wxPyBeginAllowThreads();
28774 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
28775 wxPyEndAllowThreads(__tstate);
28776 if (PyErr_Occurred()) SWIG_fail;
28777 }
28778 resultobj = SWIG_From_long(static_cast< long >(result));
28779 {
28780 if (temp4)
28781 delete arg4;
28782 }
28783 return resultobj;
28784 fail:
28785 {
28786 if (temp4)
28787 delete arg4;
28788 }
28789 return NULL;
28790 }
28791
28792
28793 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28794 PyObject *resultobj = 0;
28795 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28796 long arg2 ;
28797 long arg3 ;
28798 int result;
28799 void *argp1 = 0 ;
28800 int res1 = 0 ;
28801 long val2 ;
28802 int ecode2 = 0 ;
28803 long val3 ;
28804 int ecode3 = 0 ;
28805 PyObject * obj0 = 0 ;
28806 PyObject * obj1 = 0 ;
28807 PyObject * obj2 = 0 ;
28808 char * kwnames[] = {
28809 (char *) "self",(char *) "item",(char *) "stateMask", NULL
28810 };
28811
28812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28814 if (!SWIG_IsOK(res1)) {
28815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28816 }
28817 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28818 ecode2 = SWIG_AsVal_long(obj1, &val2);
28819 if (!SWIG_IsOK(ecode2)) {
28820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
28821 }
28822 arg2 = static_cast< long >(val2);
28823 ecode3 = SWIG_AsVal_long(obj2, &val3);
28824 if (!SWIG_IsOK(ecode3)) {
28825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
28826 }
28827 arg3 = static_cast< long >(val3);
28828 {
28829 PyThreadState* __tstate = wxPyBeginAllowThreads();
28830 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
28831 wxPyEndAllowThreads(__tstate);
28832 if (PyErr_Occurred()) SWIG_fail;
28833 }
28834 resultobj = SWIG_From_int(static_cast< int >(result));
28835 return resultobj;
28836 fail:
28837 return NULL;
28838 }
28839
28840
28841 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28842 PyObject *resultobj = 0;
28843 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28844 long arg2 ;
28845 long arg3 ;
28846 long arg4 ;
28847 bool result;
28848 void *argp1 = 0 ;
28849 int res1 = 0 ;
28850 long val2 ;
28851 int ecode2 = 0 ;
28852 long val3 ;
28853 int ecode3 = 0 ;
28854 long val4 ;
28855 int ecode4 = 0 ;
28856 PyObject * obj0 = 0 ;
28857 PyObject * obj1 = 0 ;
28858 PyObject * obj2 = 0 ;
28859 PyObject * obj3 = 0 ;
28860 char * kwnames[] = {
28861 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
28862 };
28863
28864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28866 if (!SWIG_IsOK(res1)) {
28867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28868 }
28869 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28870 ecode2 = SWIG_AsVal_long(obj1, &val2);
28871 if (!SWIG_IsOK(ecode2)) {
28872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
28873 }
28874 arg2 = static_cast< long >(val2);
28875 ecode3 = SWIG_AsVal_long(obj2, &val3);
28876 if (!SWIG_IsOK(ecode3)) {
28877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
28878 }
28879 arg3 = static_cast< long >(val3);
28880 ecode4 = SWIG_AsVal_long(obj3, &val4);
28881 if (!SWIG_IsOK(ecode4)) {
28882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
28883 }
28884 arg4 = static_cast< long >(val4);
28885 {
28886 PyThreadState* __tstate = wxPyBeginAllowThreads();
28887 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
28888 wxPyEndAllowThreads(__tstate);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 {
28892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28893 }
28894 return resultobj;
28895 fail:
28896 return NULL;
28897 }
28898
28899
28900 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28901 PyObject *resultobj = 0;
28902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28903 long arg2 ;
28904 int arg3 ;
28905 int arg4 = (int) -1 ;
28906 bool result;
28907 void *argp1 = 0 ;
28908 int res1 = 0 ;
28909 long val2 ;
28910 int ecode2 = 0 ;
28911 int val3 ;
28912 int ecode3 = 0 ;
28913 int val4 ;
28914 int ecode4 = 0 ;
28915 PyObject * obj0 = 0 ;
28916 PyObject * obj1 = 0 ;
28917 PyObject * obj2 = 0 ;
28918 PyObject * obj3 = 0 ;
28919 char * kwnames[] = {
28920 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
28921 };
28922
28923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28925 if (!SWIG_IsOK(res1)) {
28926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28927 }
28928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28929 ecode2 = SWIG_AsVal_long(obj1, &val2);
28930 if (!SWIG_IsOK(ecode2)) {
28931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
28932 }
28933 arg2 = static_cast< long >(val2);
28934 ecode3 = SWIG_AsVal_int(obj2, &val3);
28935 if (!SWIG_IsOK(ecode3)) {
28936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
28937 }
28938 arg3 = static_cast< int >(val3);
28939 if (obj3) {
28940 ecode4 = SWIG_AsVal_int(obj3, &val4);
28941 if (!SWIG_IsOK(ecode4)) {
28942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
28943 }
28944 arg4 = static_cast< int >(val4);
28945 }
28946 {
28947 PyThreadState* __tstate = wxPyBeginAllowThreads();
28948 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
28949 wxPyEndAllowThreads(__tstate);
28950 if (PyErr_Occurred()) SWIG_fail;
28951 }
28952 {
28953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28954 }
28955 return resultobj;
28956 fail:
28957 return NULL;
28958 }
28959
28960
28961 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28962 PyObject *resultobj = 0;
28963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28964 long arg2 ;
28965 long arg3 ;
28966 int arg4 ;
28967 bool result;
28968 void *argp1 = 0 ;
28969 int res1 = 0 ;
28970 long val2 ;
28971 int ecode2 = 0 ;
28972 long val3 ;
28973 int ecode3 = 0 ;
28974 int val4 ;
28975 int ecode4 = 0 ;
28976 PyObject * obj0 = 0 ;
28977 PyObject * obj1 = 0 ;
28978 PyObject * obj2 = 0 ;
28979 PyObject * obj3 = 0 ;
28980 char * kwnames[] = {
28981 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
28982 };
28983
28984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28986 if (!SWIG_IsOK(res1)) {
28987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28988 }
28989 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28990 ecode2 = SWIG_AsVal_long(obj1, &val2);
28991 if (!SWIG_IsOK(ecode2)) {
28992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
28993 }
28994 arg2 = static_cast< long >(val2);
28995 ecode3 = SWIG_AsVal_long(obj2, &val3);
28996 if (!SWIG_IsOK(ecode3)) {
28997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
28998 }
28999 arg3 = static_cast< long >(val3);
29000 ecode4 = SWIG_AsVal_int(obj3, &val4);
29001 if (!SWIG_IsOK(ecode4)) {
29002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29003 }
29004 arg4 = static_cast< int >(val4);
29005 {
29006 PyThreadState* __tstate = wxPyBeginAllowThreads();
29007 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29008 wxPyEndAllowThreads(__tstate);
29009 if (PyErr_Occurred()) SWIG_fail;
29010 }
29011 {
29012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29013 }
29014 return resultobj;
29015 fail:
29016 return NULL;
29017 }
29018
29019
29020 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29021 PyObject *resultobj = 0;
29022 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29023 long arg2 ;
29024 wxString result;
29025 void *argp1 = 0 ;
29026 int res1 = 0 ;
29027 long val2 ;
29028 int ecode2 = 0 ;
29029 PyObject * obj0 = 0 ;
29030 PyObject * obj1 = 0 ;
29031 char * kwnames[] = {
29032 (char *) "self",(char *) "item", NULL
29033 };
29034
29035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29037 if (!SWIG_IsOK(res1)) {
29038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29039 }
29040 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29041 ecode2 = SWIG_AsVal_long(obj1, &val2);
29042 if (!SWIG_IsOK(ecode2)) {
29043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29044 }
29045 arg2 = static_cast< long >(val2);
29046 {
29047 PyThreadState* __tstate = wxPyBeginAllowThreads();
29048 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29049 wxPyEndAllowThreads(__tstate);
29050 if (PyErr_Occurred()) SWIG_fail;
29051 }
29052 {
29053 #if wxUSE_UNICODE
29054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29055 #else
29056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29057 #endif
29058 }
29059 return resultobj;
29060 fail:
29061 return NULL;
29062 }
29063
29064
29065 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29066 PyObject *resultobj = 0;
29067 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29068 long arg2 ;
29069 wxString *arg3 = 0 ;
29070 void *argp1 = 0 ;
29071 int res1 = 0 ;
29072 long val2 ;
29073 int ecode2 = 0 ;
29074 bool temp3 = false ;
29075 PyObject * obj0 = 0 ;
29076 PyObject * obj1 = 0 ;
29077 PyObject * obj2 = 0 ;
29078 char * kwnames[] = {
29079 (char *) "self",(char *) "item",(char *) "str", NULL
29080 };
29081
29082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29084 if (!SWIG_IsOK(res1)) {
29085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29086 }
29087 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29088 ecode2 = SWIG_AsVal_long(obj1, &val2);
29089 if (!SWIG_IsOK(ecode2)) {
29090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29091 }
29092 arg2 = static_cast< long >(val2);
29093 {
29094 arg3 = wxString_in_helper(obj2);
29095 if (arg3 == NULL) SWIG_fail;
29096 temp3 = true;
29097 }
29098 {
29099 PyThreadState* __tstate = wxPyBeginAllowThreads();
29100 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29101 wxPyEndAllowThreads(__tstate);
29102 if (PyErr_Occurred()) SWIG_fail;
29103 }
29104 resultobj = SWIG_Py_Void();
29105 {
29106 if (temp3)
29107 delete arg3;
29108 }
29109 return resultobj;
29110 fail:
29111 {
29112 if (temp3)
29113 delete arg3;
29114 }
29115 return NULL;
29116 }
29117
29118
29119 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29120 PyObject *resultobj = 0;
29121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29122 long arg2 ;
29123 long result;
29124 void *argp1 = 0 ;
29125 int res1 = 0 ;
29126 long val2 ;
29127 int ecode2 = 0 ;
29128 PyObject * obj0 = 0 ;
29129 PyObject * obj1 = 0 ;
29130 char * kwnames[] = {
29131 (char *) "self",(char *) "item", NULL
29132 };
29133
29134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29136 if (!SWIG_IsOK(res1)) {
29137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29138 }
29139 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29140 ecode2 = SWIG_AsVal_long(obj1, &val2);
29141 if (!SWIG_IsOK(ecode2)) {
29142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29143 }
29144 arg2 = static_cast< long >(val2);
29145 {
29146 PyThreadState* __tstate = wxPyBeginAllowThreads();
29147 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29148 wxPyEndAllowThreads(__tstate);
29149 if (PyErr_Occurred()) SWIG_fail;
29150 }
29151 resultobj = SWIG_From_long(static_cast< long >(result));
29152 return resultobj;
29153 fail:
29154 return NULL;
29155 }
29156
29157
29158 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29159 PyObject *resultobj = 0;
29160 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29161 long arg2 ;
29162 long arg3 ;
29163 bool result;
29164 void *argp1 = 0 ;
29165 int res1 = 0 ;
29166 long val2 ;
29167 int ecode2 = 0 ;
29168 long val3 ;
29169 int ecode3 = 0 ;
29170 PyObject * obj0 = 0 ;
29171 PyObject * obj1 = 0 ;
29172 PyObject * obj2 = 0 ;
29173 char * kwnames[] = {
29174 (char *) "self",(char *) "item",(char *) "data", NULL
29175 };
29176
29177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29179 if (!SWIG_IsOK(res1)) {
29180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29181 }
29182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29183 ecode2 = SWIG_AsVal_long(obj1, &val2);
29184 if (!SWIG_IsOK(ecode2)) {
29185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29186 }
29187 arg2 = static_cast< long >(val2);
29188 ecode3 = SWIG_AsVal_long(obj2, &val3);
29189 if (!SWIG_IsOK(ecode3)) {
29190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29191 }
29192 arg3 = static_cast< long >(val3);
29193 {
29194 PyThreadState* __tstate = wxPyBeginAllowThreads();
29195 result = (bool)(arg1)->SetItemData(arg2,arg3);
29196 wxPyEndAllowThreads(__tstate);
29197 if (PyErr_Occurred()) SWIG_fail;
29198 }
29199 {
29200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29201 }
29202 return resultobj;
29203 fail:
29204 return NULL;
29205 }
29206
29207
29208 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29209 PyObject *resultobj = 0;
29210 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29211 long arg2 ;
29212 wxPoint result;
29213 void *argp1 = 0 ;
29214 int res1 = 0 ;
29215 long val2 ;
29216 int ecode2 = 0 ;
29217 PyObject * obj0 = 0 ;
29218 PyObject * obj1 = 0 ;
29219 char * kwnames[] = {
29220 (char *) "self",(char *) "item", NULL
29221 };
29222
29223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29225 if (!SWIG_IsOK(res1)) {
29226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29227 }
29228 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29229 ecode2 = SWIG_AsVal_long(obj1, &val2);
29230 if (!SWIG_IsOK(ecode2)) {
29231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29232 }
29233 arg2 = static_cast< long >(val2);
29234 {
29235 PyThreadState* __tstate = wxPyBeginAllowThreads();
29236 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29237 wxPyEndAllowThreads(__tstate);
29238 if (PyErr_Occurred()) SWIG_fail;
29239 }
29240 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29241 return resultobj;
29242 fail:
29243 return NULL;
29244 }
29245
29246
29247 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29248 PyObject *resultobj = 0;
29249 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29250 long arg2 ;
29251 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29252 wxRect result;
29253 void *argp1 = 0 ;
29254 int res1 = 0 ;
29255 long val2 ;
29256 int ecode2 = 0 ;
29257 int val3 ;
29258 int ecode3 = 0 ;
29259 PyObject * obj0 = 0 ;
29260 PyObject * obj1 = 0 ;
29261 PyObject * obj2 = 0 ;
29262 char * kwnames[] = {
29263 (char *) "self",(char *) "item",(char *) "code", NULL
29264 };
29265
29266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29268 if (!SWIG_IsOK(res1)) {
29269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29270 }
29271 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29272 ecode2 = SWIG_AsVal_long(obj1, &val2);
29273 if (!SWIG_IsOK(ecode2)) {
29274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29275 }
29276 arg2 = static_cast< long >(val2);
29277 if (obj2) {
29278 ecode3 = SWIG_AsVal_int(obj2, &val3);
29279 if (!SWIG_IsOK(ecode3)) {
29280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29281 }
29282 arg3 = static_cast< int >(val3);
29283 }
29284 {
29285 PyThreadState* __tstate = wxPyBeginAllowThreads();
29286 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29287 wxPyEndAllowThreads(__tstate);
29288 if (PyErr_Occurred()) SWIG_fail;
29289 }
29290 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29291 return resultobj;
29292 fail:
29293 return NULL;
29294 }
29295
29296
29297 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29298 PyObject *resultobj = 0;
29299 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29300 long arg2 ;
29301 wxPoint *arg3 = 0 ;
29302 bool result;
29303 void *argp1 = 0 ;
29304 int res1 = 0 ;
29305 long val2 ;
29306 int ecode2 = 0 ;
29307 wxPoint temp3 ;
29308 PyObject * obj0 = 0 ;
29309 PyObject * obj1 = 0 ;
29310 PyObject * obj2 = 0 ;
29311 char * kwnames[] = {
29312 (char *) "self",(char *) "item",(char *) "pos", NULL
29313 };
29314
29315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29317 if (!SWIG_IsOK(res1)) {
29318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29319 }
29320 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29321 ecode2 = SWIG_AsVal_long(obj1, &val2);
29322 if (!SWIG_IsOK(ecode2)) {
29323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29324 }
29325 arg2 = static_cast< long >(val2);
29326 {
29327 arg3 = &temp3;
29328 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29329 }
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29333 wxPyEndAllowThreads(__tstate);
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
29336 {
29337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29338 }
29339 return resultobj;
29340 fail:
29341 return NULL;
29342 }
29343
29344
29345 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29346 PyObject *resultobj = 0;
29347 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29348 int result;
29349 void *argp1 = 0 ;
29350 int res1 = 0 ;
29351 PyObject *swig_obj[1] ;
29352
29353 if (!args) SWIG_fail;
29354 swig_obj[0] = args;
29355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29356 if (!SWIG_IsOK(res1)) {
29357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29358 }
29359 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29360 {
29361 PyThreadState* __tstate = wxPyBeginAllowThreads();
29362 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29363 wxPyEndAllowThreads(__tstate);
29364 if (PyErr_Occurred()) SWIG_fail;
29365 }
29366 resultobj = SWIG_From_int(static_cast< int >(result));
29367 return resultobj;
29368 fail:
29369 return NULL;
29370 }
29371
29372
29373 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29374 PyObject *resultobj = 0;
29375 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29376 int result;
29377 void *argp1 = 0 ;
29378 int res1 = 0 ;
29379 PyObject *swig_obj[1] ;
29380
29381 if (!args) SWIG_fail;
29382 swig_obj[0] = args;
29383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29384 if (!SWIG_IsOK(res1)) {
29385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29386 }
29387 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29388 {
29389 PyThreadState* __tstate = wxPyBeginAllowThreads();
29390 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29391 wxPyEndAllowThreads(__tstate);
29392 if (PyErr_Occurred()) SWIG_fail;
29393 }
29394 resultobj = SWIG_From_int(static_cast< int >(result));
29395 return resultobj;
29396 fail:
29397 return NULL;
29398 }
29399
29400
29401 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29402 PyObject *resultobj = 0;
29403 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29404 wxSize result;
29405 void *argp1 = 0 ;
29406 int res1 = 0 ;
29407 PyObject *swig_obj[1] ;
29408
29409 if (!args) SWIG_fail;
29410 swig_obj[0] = args;
29411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29412 if (!SWIG_IsOK(res1)) {
29413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29414 }
29415 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29416 {
29417 PyThreadState* __tstate = wxPyBeginAllowThreads();
29418 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29419 wxPyEndAllowThreads(__tstate);
29420 if (PyErr_Occurred()) SWIG_fail;
29421 }
29422 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29423 return resultobj;
29424 fail:
29425 return NULL;
29426 }
29427
29428
29429 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29430 PyObject *resultobj = 0;
29431 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29432 int arg2 ;
29433 bool arg3 = (bool) false ;
29434 void *argp1 = 0 ;
29435 int res1 = 0 ;
29436 int val2 ;
29437 int ecode2 = 0 ;
29438 bool val3 ;
29439 int ecode3 = 0 ;
29440 PyObject * obj0 = 0 ;
29441 PyObject * obj1 = 0 ;
29442 PyObject * obj2 = 0 ;
29443 char * kwnames[] = {
29444 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29445 };
29446
29447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29449 if (!SWIG_IsOK(res1)) {
29450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29451 }
29452 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29453 ecode2 = SWIG_AsVal_int(obj1, &val2);
29454 if (!SWIG_IsOK(ecode2)) {
29455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29456 }
29457 arg2 = static_cast< int >(val2);
29458 if (obj2) {
29459 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29460 if (!SWIG_IsOK(ecode3)) {
29461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29462 }
29463 arg3 = static_cast< bool >(val3);
29464 }
29465 {
29466 PyThreadState* __tstate = wxPyBeginAllowThreads();
29467 (arg1)->SetItemSpacing(arg2,arg3);
29468 wxPyEndAllowThreads(__tstate);
29469 if (PyErr_Occurred()) SWIG_fail;
29470 }
29471 resultobj = SWIG_Py_Void();
29472 return resultobj;
29473 fail:
29474 return NULL;
29475 }
29476
29477
29478 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29479 PyObject *resultobj = 0;
29480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29481 int result;
29482 void *argp1 = 0 ;
29483 int res1 = 0 ;
29484 PyObject *swig_obj[1] ;
29485
29486 if (!args) SWIG_fail;
29487 swig_obj[0] = args;
29488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29489 if (!SWIG_IsOK(res1)) {
29490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29491 }
29492 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29493 {
29494 PyThreadState* __tstate = wxPyBeginAllowThreads();
29495 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29496 wxPyEndAllowThreads(__tstate);
29497 if (PyErr_Occurred()) SWIG_fail;
29498 }
29499 resultobj = SWIG_From_int(static_cast< int >(result));
29500 return resultobj;
29501 fail:
29502 return NULL;
29503 }
29504
29505
29506 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29507 PyObject *resultobj = 0;
29508 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29509 wxColour result;
29510 void *argp1 = 0 ;
29511 int res1 = 0 ;
29512 PyObject *swig_obj[1] ;
29513
29514 if (!args) SWIG_fail;
29515 swig_obj[0] = args;
29516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29517 if (!SWIG_IsOK(res1)) {
29518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29519 }
29520 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29521 {
29522 PyThreadState* __tstate = wxPyBeginAllowThreads();
29523 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29524 wxPyEndAllowThreads(__tstate);
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29528 return resultobj;
29529 fail:
29530 return NULL;
29531 }
29532
29533
29534 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29535 PyObject *resultobj = 0;
29536 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29537 wxColour *arg2 = 0 ;
29538 void *argp1 = 0 ;
29539 int res1 = 0 ;
29540 wxColour temp2 ;
29541 PyObject * obj0 = 0 ;
29542 PyObject * obj1 = 0 ;
29543 char * kwnames[] = {
29544 (char *) "self",(char *) "col", NULL
29545 };
29546
29547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29549 if (!SWIG_IsOK(res1)) {
29550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29551 }
29552 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29553 {
29554 arg2 = &temp2;
29555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29556 }
29557 {
29558 PyThreadState* __tstate = wxPyBeginAllowThreads();
29559 (arg1)->SetTextColour((wxColour const &)*arg2);
29560 wxPyEndAllowThreads(__tstate);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 resultobj = SWIG_Py_Void();
29564 return resultobj;
29565 fail:
29566 return NULL;
29567 }
29568
29569
29570 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29571 PyObject *resultobj = 0;
29572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29573 long result;
29574 void *argp1 = 0 ;
29575 int res1 = 0 ;
29576 PyObject *swig_obj[1] ;
29577
29578 if (!args) SWIG_fail;
29579 swig_obj[0] = args;
29580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29581 if (!SWIG_IsOK(res1)) {
29582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29583 }
29584 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29585 {
29586 PyThreadState* __tstate = wxPyBeginAllowThreads();
29587 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29588 wxPyEndAllowThreads(__tstate);
29589 if (PyErr_Occurred()) SWIG_fail;
29590 }
29591 resultobj = SWIG_From_long(static_cast< long >(result));
29592 return resultobj;
29593 fail:
29594 return NULL;
29595 }
29596
29597
29598 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29599 PyObject *resultobj = 0;
29600 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29601 long arg2 ;
29602 bool arg3 = (bool) true ;
29603 void *argp1 = 0 ;
29604 int res1 = 0 ;
29605 long val2 ;
29606 int ecode2 = 0 ;
29607 bool val3 ;
29608 int ecode3 = 0 ;
29609 PyObject * obj0 = 0 ;
29610 PyObject * obj1 = 0 ;
29611 PyObject * obj2 = 0 ;
29612 char * kwnames[] = {
29613 (char *) "self",(char *) "style",(char *) "add", NULL
29614 };
29615
29616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29618 if (!SWIG_IsOK(res1)) {
29619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29620 }
29621 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29622 ecode2 = SWIG_AsVal_long(obj1, &val2);
29623 if (!SWIG_IsOK(ecode2)) {
29624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29625 }
29626 arg2 = static_cast< long >(val2);
29627 if (obj2) {
29628 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29629 if (!SWIG_IsOK(ecode3)) {
29630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29631 }
29632 arg3 = static_cast< bool >(val3);
29633 }
29634 {
29635 PyThreadState* __tstate = wxPyBeginAllowThreads();
29636 (arg1)->SetSingleStyle(arg2,arg3);
29637 wxPyEndAllowThreads(__tstate);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 }
29640 resultobj = SWIG_Py_Void();
29641 return resultobj;
29642 fail:
29643 return NULL;
29644 }
29645
29646
29647 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29648 PyObject *resultobj = 0;
29649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29650 long arg2 ;
29651 int arg3 = (int) wxLIST_NEXT_ALL ;
29652 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29653 long result;
29654 void *argp1 = 0 ;
29655 int res1 = 0 ;
29656 long val2 ;
29657 int ecode2 = 0 ;
29658 int val3 ;
29659 int ecode3 = 0 ;
29660 int val4 ;
29661 int ecode4 = 0 ;
29662 PyObject * obj0 = 0 ;
29663 PyObject * obj1 = 0 ;
29664 PyObject * obj2 = 0 ;
29665 PyObject * obj3 = 0 ;
29666 char * kwnames[] = {
29667 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29668 };
29669
29670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29672 if (!SWIG_IsOK(res1)) {
29673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29674 }
29675 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29676 ecode2 = SWIG_AsVal_long(obj1, &val2);
29677 if (!SWIG_IsOK(ecode2)) {
29678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29679 }
29680 arg2 = static_cast< long >(val2);
29681 if (obj2) {
29682 ecode3 = SWIG_AsVal_int(obj2, &val3);
29683 if (!SWIG_IsOK(ecode3)) {
29684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29685 }
29686 arg3 = static_cast< int >(val3);
29687 }
29688 if (obj3) {
29689 ecode4 = SWIG_AsVal_int(obj3, &val4);
29690 if (!SWIG_IsOK(ecode4)) {
29691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29692 }
29693 arg4 = static_cast< int >(val4);
29694 }
29695 {
29696 PyThreadState* __tstate = wxPyBeginAllowThreads();
29697 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29698 wxPyEndAllowThreads(__tstate);
29699 if (PyErr_Occurred()) SWIG_fail;
29700 }
29701 resultobj = SWIG_From_long(static_cast< long >(result));
29702 return resultobj;
29703 fail:
29704 return NULL;
29705 }
29706
29707
29708 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29709 PyObject *resultobj = 0;
29710 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29711 int arg2 ;
29712 wxImageList *result = 0 ;
29713 void *argp1 = 0 ;
29714 int res1 = 0 ;
29715 int val2 ;
29716 int ecode2 = 0 ;
29717 PyObject * obj0 = 0 ;
29718 PyObject * obj1 = 0 ;
29719 char * kwnames[] = {
29720 (char *) "self",(char *) "which", NULL
29721 };
29722
29723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29725 if (!SWIG_IsOK(res1)) {
29726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29727 }
29728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29729 ecode2 = SWIG_AsVal_int(obj1, &val2);
29730 if (!SWIG_IsOK(ecode2)) {
29731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29732 }
29733 arg2 = static_cast< int >(val2);
29734 {
29735 PyThreadState* __tstate = wxPyBeginAllowThreads();
29736 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29737 wxPyEndAllowThreads(__tstate);
29738 if (PyErr_Occurred()) SWIG_fail;
29739 }
29740 {
29741 resultobj = wxPyMake_wxObject(result, (bool)0);
29742 }
29743 return resultobj;
29744 fail:
29745 return NULL;
29746 }
29747
29748
29749 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29750 PyObject *resultobj = 0;
29751 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29752 wxImageList *arg2 = (wxImageList *) 0 ;
29753 int arg3 ;
29754 void *argp1 = 0 ;
29755 int res1 = 0 ;
29756 void *argp2 = 0 ;
29757 int res2 = 0 ;
29758 int val3 ;
29759 int ecode3 = 0 ;
29760 PyObject * obj0 = 0 ;
29761 PyObject * obj1 = 0 ;
29762 PyObject * obj2 = 0 ;
29763 char * kwnames[] = {
29764 (char *) "self",(char *) "imageList",(char *) "which", NULL
29765 };
29766
29767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29769 if (!SWIG_IsOK(res1)) {
29770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29771 }
29772 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29773 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
29774 if (!SWIG_IsOK(res2)) {
29775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29776 }
29777 arg2 = reinterpret_cast< wxImageList * >(argp2);
29778 ecode3 = SWIG_AsVal_int(obj2, &val3);
29779 if (!SWIG_IsOK(ecode3)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
29781 }
29782 arg3 = static_cast< int >(val3);
29783 {
29784 PyThreadState* __tstate = wxPyBeginAllowThreads();
29785 (arg1)->SetImageList(arg2,arg3);
29786 wxPyEndAllowThreads(__tstate);
29787 if (PyErr_Occurred()) SWIG_fail;
29788 }
29789 resultobj = SWIG_Py_Void();
29790 return resultobj;
29791 fail:
29792 return NULL;
29793 }
29794
29795
29796 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29797 PyObject *resultobj = 0;
29798 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29799 wxImageList *arg2 = (wxImageList *) 0 ;
29800 int arg3 ;
29801 void *argp1 = 0 ;
29802 int res1 = 0 ;
29803 int res2 = 0 ;
29804 int val3 ;
29805 int ecode3 = 0 ;
29806 PyObject * obj0 = 0 ;
29807 PyObject * obj1 = 0 ;
29808 PyObject * obj2 = 0 ;
29809 char * kwnames[] = {
29810 (char *) "self",(char *) "imageList",(char *) "which", NULL
29811 };
29812
29813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29815 if (!SWIG_IsOK(res1)) {
29816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29817 }
29818 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29819 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
29820 if (!SWIG_IsOK(res2)) {
29821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29822 }
29823 ecode3 = SWIG_AsVal_int(obj2, &val3);
29824 if (!SWIG_IsOK(ecode3)) {
29825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
29826 }
29827 arg3 = static_cast< int >(val3);
29828 {
29829 PyThreadState* __tstate = wxPyBeginAllowThreads();
29830 (arg1)->AssignImageList(arg2,arg3);
29831 wxPyEndAllowThreads(__tstate);
29832 if (PyErr_Occurred()) SWIG_fail;
29833 }
29834 resultobj = SWIG_Py_Void();
29835 return resultobj;
29836 fail:
29837 return NULL;
29838 }
29839
29840
29841 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29842 PyObject *resultobj = 0;
29843 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29844 bool result;
29845 void *argp1 = 0 ;
29846 int res1 = 0 ;
29847 PyObject *swig_obj[1] ;
29848
29849 if (!args) SWIG_fail;
29850 swig_obj[0] = args;
29851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29852 if (!SWIG_IsOK(res1)) {
29853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29854 }
29855 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29856 {
29857 PyThreadState* __tstate = wxPyBeginAllowThreads();
29858 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
29859 wxPyEndAllowThreads(__tstate);
29860 if (PyErr_Occurred()) SWIG_fail;
29861 }
29862 {
29863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29864 }
29865 return resultobj;
29866 fail:
29867 return NULL;
29868 }
29869
29870
29871 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29872 PyObject *resultobj = 0;
29873 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29874 bool result;
29875 void *argp1 = 0 ;
29876 int res1 = 0 ;
29877 PyObject *swig_obj[1] ;
29878
29879 if (!args) SWIG_fail;
29880 swig_obj[0] = args;
29881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29882 if (!SWIG_IsOK(res1)) {
29883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29884 }
29885 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29886 {
29887 PyThreadState* __tstate = wxPyBeginAllowThreads();
29888 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
29889 wxPyEndAllowThreads(__tstate);
29890 if (PyErr_Occurred()) SWIG_fail;
29891 }
29892 {
29893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29894 }
29895 return resultobj;
29896 fail:
29897 return NULL;
29898 }
29899
29900
29901 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29902 PyObject *resultobj = 0;
29903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29904 long arg2 ;
29905 void *argp1 = 0 ;
29906 int res1 = 0 ;
29907 long val2 ;
29908 int ecode2 = 0 ;
29909 PyObject * obj0 = 0 ;
29910 PyObject * obj1 = 0 ;
29911 char * kwnames[] = {
29912 (char *) "self",(char *) "item", NULL
29913 };
29914
29915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
29916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29917 if (!SWIG_IsOK(res1)) {
29918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29919 }
29920 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29921 ecode2 = SWIG_AsVal_long(obj1, &val2);
29922 if (!SWIG_IsOK(ecode2)) {
29923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
29924 }
29925 arg2 = static_cast< long >(val2);
29926 {
29927 PyThreadState* __tstate = wxPyBeginAllowThreads();
29928 (arg1)->RefreshItem(arg2);
29929 wxPyEndAllowThreads(__tstate);
29930 if (PyErr_Occurred()) SWIG_fail;
29931 }
29932 resultobj = SWIG_Py_Void();
29933 return resultobj;
29934 fail:
29935 return NULL;
29936 }
29937
29938
29939 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29940 PyObject *resultobj = 0;
29941 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29942 long arg2 ;
29943 long arg3 ;
29944 void *argp1 = 0 ;
29945 int res1 = 0 ;
29946 long val2 ;
29947 int ecode2 = 0 ;
29948 long val3 ;
29949 int ecode3 = 0 ;
29950 PyObject * obj0 = 0 ;
29951 PyObject * obj1 = 0 ;
29952 PyObject * obj2 = 0 ;
29953 char * kwnames[] = {
29954 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
29955 };
29956
29957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29959 if (!SWIG_IsOK(res1)) {
29960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29961 }
29962 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29963 ecode2 = SWIG_AsVal_long(obj1, &val2);
29964 if (!SWIG_IsOK(ecode2)) {
29965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
29966 }
29967 arg2 = static_cast< long >(val2);
29968 ecode3 = SWIG_AsVal_long(obj2, &val3);
29969 if (!SWIG_IsOK(ecode3)) {
29970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
29971 }
29972 arg3 = static_cast< long >(val3);
29973 {
29974 PyThreadState* __tstate = wxPyBeginAllowThreads();
29975 (arg1)->RefreshItems(arg2,arg3);
29976 wxPyEndAllowThreads(__tstate);
29977 if (PyErr_Occurred()) SWIG_fail;
29978 }
29979 resultobj = SWIG_Py_Void();
29980 return resultobj;
29981 fail:
29982 return NULL;
29983 }
29984
29985
29986 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29987 PyObject *resultobj = 0;
29988 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29989 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
29990 bool result;
29991 void *argp1 = 0 ;
29992 int res1 = 0 ;
29993 int val2 ;
29994 int ecode2 = 0 ;
29995 PyObject * obj0 = 0 ;
29996 PyObject * obj1 = 0 ;
29997 char * kwnames[] = {
29998 (char *) "self",(char *) "flag", NULL
29999 };
30000
30001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30003 if (!SWIG_IsOK(res1)) {
30004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30005 }
30006 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30007 if (obj1) {
30008 ecode2 = SWIG_AsVal_int(obj1, &val2);
30009 if (!SWIG_IsOK(ecode2)) {
30010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30011 }
30012 arg2 = static_cast< int >(val2);
30013 }
30014 {
30015 PyThreadState* __tstate = wxPyBeginAllowThreads();
30016 result = (bool)(arg1)->Arrange(arg2);
30017 wxPyEndAllowThreads(__tstate);
30018 if (PyErr_Occurred()) SWIG_fail;
30019 }
30020 {
30021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30022 }
30023 return resultobj;
30024 fail:
30025 return NULL;
30026 }
30027
30028
30029 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30030 PyObject *resultobj = 0;
30031 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30032 long arg2 ;
30033 bool result;
30034 void *argp1 = 0 ;
30035 int res1 = 0 ;
30036 long val2 ;
30037 int ecode2 = 0 ;
30038 PyObject * obj0 = 0 ;
30039 PyObject * obj1 = 0 ;
30040 char * kwnames[] = {
30041 (char *) "self",(char *) "item", NULL
30042 };
30043
30044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30046 if (!SWIG_IsOK(res1)) {
30047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30048 }
30049 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30050 ecode2 = SWIG_AsVal_long(obj1, &val2);
30051 if (!SWIG_IsOK(ecode2)) {
30052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30053 }
30054 arg2 = static_cast< long >(val2);
30055 {
30056 PyThreadState* __tstate = wxPyBeginAllowThreads();
30057 result = (bool)(arg1)->DeleteItem(arg2);
30058 wxPyEndAllowThreads(__tstate);
30059 if (PyErr_Occurred()) SWIG_fail;
30060 }
30061 {
30062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30063 }
30064 return resultobj;
30065 fail:
30066 return NULL;
30067 }
30068
30069
30070 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30071 PyObject *resultobj = 0;
30072 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30073 bool result;
30074 void *argp1 = 0 ;
30075 int res1 = 0 ;
30076 PyObject *swig_obj[1] ;
30077
30078 if (!args) SWIG_fail;
30079 swig_obj[0] = args;
30080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30081 if (!SWIG_IsOK(res1)) {
30082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30083 }
30084 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30085 {
30086 PyThreadState* __tstate = wxPyBeginAllowThreads();
30087 result = (bool)(arg1)->DeleteAllItems();
30088 wxPyEndAllowThreads(__tstate);
30089 if (PyErr_Occurred()) SWIG_fail;
30090 }
30091 {
30092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30093 }
30094 return resultobj;
30095 fail:
30096 return NULL;
30097 }
30098
30099
30100 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30101 PyObject *resultobj = 0;
30102 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30103 int arg2 ;
30104 bool result;
30105 void *argp1 = 0 ;
30106 int res1 = 0 ;
30107 int val2 ;
30108 int ecode2 = 0 ;
30109 PyObject * obj0 = 0 ;
30110 PyObject * obj1 = 0 ;
30111 char * kwnames[] = {
30112 (char *) "self",(char *) "col", NULL
30113 };
30114
30115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30117 if (!SWIG_IsOK(res1)) {
30118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30119 }
30120 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30121 ecode2 = SWIG_AsVal_int(obj1, &val2);
30122 if (!SWIG_IsOK(ecode2)) {
30123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30124 }
30125 arg2 = static_cast< int >(val2);
30126 {
30127 PyThreadState* __tstate = wxPyBeginAllowThreads();
30128 result = (bool)(arg1)->DeleteColumn(arg2);
30129 wxPyEndAllowThreads(__tstate);
30130 if (PyErr_Occurred()) SWIG_fail;
30131 }
30132 {
30133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30134 }
30135 return resultobj;
30136 fail:
30137 return NULL;
30138 }
30139
30140
30141 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30142 PyObject *resultobj = 0;
30143 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30144 bool result;
30145 void *argp1 = 0 ;
30146 int res1 = 0 ;
30147 PyObject *swig_obj[1] ;
30148
30149 if (!args) SWIG_fail;
30150 swig_obj[0] = args;
30151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30152 if (!SWIG_IsOK(res1)) {
30153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30154 }
30155 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30156 {
30157 PyThreadState* __tstate = wxPyBeginAllowThreads();
30158 result = (bool)(arg1)->DeleteAllColumns();
30159 wxPyEndAllowThreads(__tstate);
30160 if (PyErr_Occurred()) SWIG_fail;
30161 }
30162 {
30163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30164 }
30165 return resultobj;
30166 fail:
30167 return NULL;
30168 }
30169
30170
30171 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30172 PyObject *resultobj = 0;
30173 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30174 void *argp1 = 0 ;
30175 int res1 = 0 ;
30176 PyObject *swig_obj[1] ;
30177
30178 if (!args) SWIG_fail;
30179 swig_obj[0] = args;
30180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30181 if (!SWIG_IsOK(res1)) {
30182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30183 }
30184 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30185 {
30186 PyThreadState* __tstate = wxPyBeginAllowThreads();
30187 (arg1)->ClearAll();
30188 wxPyEndAllowThreads(__tstate);
30189 if (PyErr_Occurred()) SWIG_fail;
30190 }
30191 resultobj = SWIG_Py_Void();
30192 return resultobj;
30193 fail:
30194 return NULL;
30195 }
30196
30197
30198 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30199 PyObject *resultobj = 0;
30200 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30201 long arg2 ;
30202 void *argp1 = 0 ;
30203 int res1 = 0 ;
30204 long val2 ;
30205 int ecode2 = 0 ;
30206 PyObject * obj0 = 0 ;
30207 PyObject * obj1 = 0 ;
30208 char * kwnames[] = {
30209 (char *) "self",(char *) "item", NULL
30210 };
30211
30212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30214 if (!SWIG_IsOK(res1)) {
30215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30216 }
30217 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30218 ecode2 = SWIG_AsVal_long(obj1, &val2);
30219 if (!SWIG_IsOK(ecode2)) {
30220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30221 }
30222 arg2 = static_cast< long >(val2);
30223 {
30224 PyThreadState* __tstate = wxPyBeginAllowThreads();
30225 (arg1)->EditLabel(arg2);
30226 wxPyEndAllowThreads(__tstate);
30227 if (PyErr_Occurred()) SWIG_fail;
30228 }
30229 resultobj = SWIG_Py_Void();
30230 return resultobj;
30231 fail:
30232 return NULL;
30233 }
30234
30235
30236 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30237 PyObject *resultobj = 0;
30238 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30239 long arg2 ;
30240 bool result;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 long val2 ;
30244 int ecode2 = 0 ;
30245 PyObject * obj0 = 0 ;
30246 PyObject * obj1 = 0 ;
30247 char * kwnames[] = {
30248 (char *) "self",(char *) "item", NULL
30249 };
30250
30251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30253 if (!SWIG_IsOK(res1)) {
30254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30255 }
30256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30257 ecode2 = SWIG_AsVal_long(obj1, &val2);
30258 if (!SWIG_IsOK(ecode2)) {
30259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30260 }
30261 arg2 = static_cast< long >(val2);
30262 {
30263 PyThreadState* __tstate = wxPyBeginAllowThreads();
30264 result = (bool)(arg1)->EnsureVisible(arg2);
30265 wxPyEndAllowThreads(__tstate);
30266 if (PyErr_Occurred()) SWIG_fail;
30267 }
30268 {
30269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30270 }
30271 return resultobj;
30272 fail:
30273 return NULL;
30274 }
30275
30276
30277 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30278 PyObject *resultobj = 0;
30279 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30280 long arg2 ;
30281 wxString *arg3 = 0 ;
30282 bool arg4 = (bool) false ;
30283 long result;
30284 void *argp1 = 0 ;
30285 int res1 = 0 ;
30286 long val2 ;
30287 int ecode2 = 0 ;
30288 bool temp3 = false ;
30289 bool val4 ;
30290 int ecode4 = 0 ;
30291 PyObject * obj0 = 0 ;
30292 PyObject * obj1 = 0 ;
30293 PyObject * obj2 = 0 ;
30294 PyObject * obj3 = 0 ;
30295 char * kwnames[] = {
30296 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30297 };
30298
30299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30301 if (!SWIG_IsOK(res1)) {
30302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30303 }
30304 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30305 ecode2 = SWIG_AsVal_long(obj1, &val2);
30306 if (!SWIG_IsOK(ecode2)) {
30307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30308 }
30309 arg2 = static_cast< long >(val2);
30310 {
30311 arg3 = wxString_in_helper(obj2);
30312 if (arg3 == NULL) SWIG_fail;
30313 temp3 = true;
30314 }
30315 if (obj3) {
30316 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30317 if (!SWIG_IsOK(ecode4)) {
30318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30319 }
30320 arg4 = static_cast< bool >(val4);
30321 }
30322 {
30323 PyThreadState* __tstate = wxPyBeginAllowThreads();
30324 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30325 wxPyEndAllowThreads(__tstate);
30326 if (PyErr_Occurred()) SWIG_fail;
30327 }
30328 resultobj = SWIG_From_long(static_cast< long >(result));
30329 {
30330 if (temp3)
30331 delete arg3;
30332 }
30333 return resultobj;
30334 fail:
30335 {
30336 if (temp3)
30337 delete arg3;
30338 }
30339 return NULL;
30340 }
30341
30342
30343 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30344 PyObject *resultobj = 0;
30345 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30346 long arg2 ;
30347 long arg3 ;
30348 long result;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 long val2 ;
30352 int ecode2 = 0 ;
30353 long val3 ;
30354 int ecode3 = 0 ;
30355 PyObject * obj0 = 0 ;
30356 PyObject * obj1 = 0 ;
30357 PyObject * obj2 = 0 ;
30358 char * kwnames[] = {
30359 (char *) "self",(char *) "start",(char *) "data", NULL
30360 };
30361
30362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30364 if (!SWIG_IsOK(res1)) {
30365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30366 }
30367 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30368 ecode2 = SWIG_AsVal_long(obj1, &val2);
30369 if (!SWIG_IsOK(ecode2)) {
30370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30371 }
30372 arg2 = static_cast< long >(val2);
30373 ecode3 = SWIG_AsVal_long(obj2, &val3);
30374 if (!SWIG_IsOK(ecode3)) {
30375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30376 }
30377 arg3 = static_cast< long >(val3);
30378 {
30379 PyThreadState* __tstate = wxPyBeginAllowThreads();
30380 result = (long)(arg1)->FindItem(arg2,arg3);
30381 wxPyEndAllowThreads(__tstate);
30382 if (PyErr_Occurred()) SWIG_fail;
30383 }
30384 resultobj = SWIG_From_long(static_cast< long >(result));
30385 return resultobj;
30386 fail:
30387 return NULL;
30388 }
30389
30390
30391 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30392 PyObject *resultobj = 0;
30393 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30394 long arg2 ;
30395 wxPoint *arg3 = 0 ;
30396 int arg4 ;
30397 long result;
30398 void *argp1 = 0 ;
30399 int res1 = 0 ;
30400 long val2 ;
30401 int ecode2 = 0 ;
30402 wxPoint temp3 ;
30403 int val4 ;
30404 int ecode4 = 0 ;
30405 PyObject * obj0 = 0 ;
30406 PyObject * obj1 = 0 ;
30407 PyObject * obj2 = 0 ;
30408 PyObject * obj3 = 0 ;
30409 char * kwnames[] = {
30410 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30411 };
30412
30413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30415 if (!SWIG_IsOK(res1)) {
30416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30417 }
30418 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30419 ecode2 = SWIG_AsVal_long(obj1, &val2);
30420 if (!SWIG_IsOK(ecode2)) {
30421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30422 }
30423 arg2 = static_cast< long >(val2);
30424 {
30425 arg3 = &temp3;
30426 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30427 }
30428 ecode4 = SWIG_AsVal_int(obj3, &val4);
30429 if (!SWIG_IsOK(ecode4)) {
30430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30431 }
30432 arg4 = static_cast< int >(val4);
30433 {
30434 PyThreadState* __tstate = wxPyBeginAllowThreads();
30435 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30436 wxPyEndAllowThreads(__tstate);
30437 if (PyErr_Occurred()) SWIG_fail;
30438 }
30439 resultobj = SWIG_From_long(static_cast< long >(result));
30440 return resultobj;
30441 fail:
30442 return NULL;
30443 }
30444
30445
30446 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30447 PyObject *resultobj = 0;
30448 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30449 wxPoint *arg2 = 0 ;
30450 int *arg3 = 0 ;
30451 long result;
30452 void *argp1 = 0 ;
30453 int res1 = 0 ;
30454 wxPoint temp2 ;
30455 int temp3 ;
30456 int res3 = SWIG_TMPOBJ ;
30457 PyObject * obj0 = 0 ;
30458 PyObject * obj1 = 0 ;
30459 char * kwnames[] = {
30460 (char *) "self",(char *) "point", NULL
30461 };
30462
30463 arg3 = &temp3;
30464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30466 if (!SWIG_IsOK(res1)) {
30467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30468 }
30469 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30470 {
30471 arg2 = &temp2;
30472 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30473 }
30474 {
30475 PyThreadState* __tstate = wxPyBeginAllowThreads();
30476 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30477 wxPyEndAllowThreads(__tstate);
30478 if (PyErr_Occurred()) SWIG_fail;
30479 }
30480 resultobj = SWIG_From_long(static_cast< long >(result));
30481 if (SWIG_IsTmpObj(res3)) {
30482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30483 } else {
30484 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30486 }
30487 return resultobj;
30488 fail:
30489 return NULL;
30490 }
30491
30492
30493 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30494 PyObject *resultobj = 0;
30495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30496 wxListItem *arg2 = 0 ;
30497 long result;
30498 void *argp1 = 0 ;
30499 int res1 = 0 ;
30500 void *argp2 = 0 ;
30501 int res2 = 0 ;
30502 PyObject * obj0 = 0 ;
30503 PyObject * obj1 = 0 ;
30504 char * kwnames[] = {
30505 (char *) "self",(char *) "info", NULL
30506 };
30507
30508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30510 if (!SWIG_IsOK(res1)) {
30511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30512 }
30513 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30515 if (!SWIG_IsOK(res2)) {
30516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30517 }
30518 if (!argp2) {
30519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30520 }
30521 arg2 = reinterpret_cast< wxListItem * >(argp2);
30522 {
30523 PyThreadState* __tstate = wxPyBeginAllowThreads();
30524 result = (long)(arg1)->InsertItem(*arg2);
30525 wxPyEndAllowThreads(__tstate);
30526 if (PyErr_Occurred()) SWIG_fail;
30527 }
30528 resultobj = SWIG_From_long(static_cast< long >(result));
30529 return resultobj;
30530 fail:
30531 return NULL;
30532 }
30533
30534
30535 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30536 PyObject *resultobj = 0;
30537 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30538 long arg2 ;
30539 wxString *arg3 = 0 ;
30540 int arg4 = (int) -1 ;
30541 long result;
30542 void *argp1 = 0 ;
30543 int res1 = 0 ;
30544 long val2 ;
30545 int ecode2 = 0 ;
30546 bool temp3 = false ;
30547 int val4 ;
30548 int ecode4 = 0 ;
30549 PyObject * obj0 = 0 ;
30550 PyObject * obj1 = 0 ;
30551 PyObject * obj2 = 0 ;
30552 PyObject * obj3 = 0 ;
30553 char * kwnames[] = {
30554 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30555 };
30556
30557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30559 if (!SWIG_IsOK(res1)) {
30560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30561 }
30562 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30563 ecode2 = SWIG_AsVal_long(obj1, &val2);
30564 if (!SWIG_IsOK(ecode2)) {
30565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30566 }
30567 arg2 = static_cast< long >(val2);
30568 {
30569 arg3 = wxString_in_helper(obj2);
30570 if (arg3 == NULL) SWIG_fail;
30571 temp3 = true;
30572 }
30573 if (obj3) {
30574 ecode4 = SWIG_AsVal_int(obj3, &val4);
30575 if (!SWIG_IsOK(ecode4)) {
30576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30577 }
30578 arg4 = static_cast< int >(val4);
30579 }
30580 {
30581 PyThreadState* __tstate = wxPyBeginAllowThreads();
30582 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30583 wxPyEndAllowThreads(__tstate);
30584 if (PyErr_Occurred()) SWIG_fail;
30585 }
30586 resultobj = SWIG_From_long(static_cast< long >(result));
30587 {
30588 if (temp3)
30589 delete arg3;
30590 }
30591 return resultobj;
30592 fail:
30593 {
30594 if (temp3)
30595 delete arg3;
30596 }
30597 return NULL;
30598 }
30599
30600
30601 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30602 PyObject *resultobj = 0;
30603 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30604 long arg2 ;
30605 int arg3 ;
30606 long result;
30607 void *argp1 = 0 ;
30608 int res1 = 0 ;
30609 long val2 ;
30610 int ecode2 = 0 ;
30611 int val3 ;
30612 int ecode3 = 0 ;
30613 PyObject * obj0 = 0 ;
30614 PyObject * obj1 = 0 ;
30615 PyObject * obj2 = 0 ;
30616 char * kwnames[] = {
30617 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30618 };
30619
30620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30622 if (!SWIG_IsOK(res1)) {
30623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30624 }
30625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30626 ecode2 = SWIG_AsVal_long(obj1, &val2);
30627 if (!SWIG_IsOK(ecode2)) {
30628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30629 }
30630 arg2 = static_cast< long >(val2);
30631 ecode3 = SWIG_AsVal_int(obj2, &val3);
30632 if (!SWIG_IsOK(ecode3)) {
30633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30634 }
30635 arg3 = static_cast< int >(val3);
30636 {
30637 PyThreadState* __tstate = wxPyBeginAllowThreads();
30638 result = (long)(arg1)->InsertItem(arg2,arg3);
30639 wxPyEndAllowThreads(__tstate);
30640 if (PyErr_Occurred()) SWIG_fail;
30641 }
30642 resultobj = SWIG_From_long(static_cast< long >(result));
30643 return resultobj;
30644 fail:
30645 return NULL;
30646 }
30647
30648
30649 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30650 PyObject *resultobj = 0;
30651 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30652 long arg2 ;
30653 wxString *arg3 = 0 ;
30654 int arg4 ;
30655 long result;
30656 void *argp1 = 0 ;
30657 int res1 = 0 ;
30658 long val2 ;
30659 int ecode2 = 0 ;
30660 bool temp3 = false ;
30661 int val4 ;
30662 int ecode4 = 0 ;
30663 PyObject * obj0 = 0 ;
30664 PyObject * obj1 = 0 ;
30665 PyObject * obj2 = 0 ;
30666 PyObject * obj3 = 0 ;
30667 char * kwnames[] = {
30668 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30669 };
30670
30671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30673 if (!SWIG_IsOK(res1)) {
30674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30675 }
30676 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30677 ecode2 = SWIG_AsVal_long(obj1, &val2);
30678 if (!SWIG_IsOK(ecode2)) {
30679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30680 }
30681 arg2 = static_cast< long >(val2);
30682 {
30683 arg3 = wxString_in_helper(obj2);
30684 if (arg3 == NULL) SWIG_fail;
30685 temp3 = true;
30686 }
30687 ecode4 = SWIG_AsVal_int(obj3, &val4);
30688 if (!SWIG_IsOK(ecode4)) {
30689 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30690 }
30691 arg4 = static_cast< int >(val4);
30692 {
30693 PyThreadState* __tstate = wxPyBeginAllowThreads();
30694 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30695 wxPyEndAllowThreads(__tstate);
30696 if (PyErr_Occurred()) SWIG_fail;
30697 }
30698 resultobj = SWIG_From_long(static_cast< long >(result));
30699 {
30700 if (temp3)
30701 delete arg3;
30702 }
30703 return resultobj;
30704 fail:
30705 {
30706 if (temp3)
30707 delete arg3;
30708 }
30709 return NULL;
30710 }
30711
30712
30713 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30714 PyObject *resultobj = 0;
30715 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30716 long arg2 ;
30717 wxListItem *arg3 = 0 ;
30718 long result;
30719 void *argp1 = 0 ;
30720 int res1 = 0 ;
30721 long val2 ;
30722 int ecode2 = 0 ;
30723 void *argp3 = 0 ;
30724 int res3 = 0 ;
30725 PyObject * obj0 = 0 ;
30726 PyObject * obj1 = 0 ;
30727 PyObject * obj2 = 0 ;
30728 char * kwnames[] = {
30729 (char *) "self",(char *) "col",(char *) "info", NULL
30730 };
30731
30732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30734 if (!SWIG_IsOK(res1)) {
30735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30736 }
30737 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30738 ecode2 = SWIG_AsVal_long(obj1, &val2);
30739 if (!SWIG_IsOK(ecode2)) {
30740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
30741 }
30742 arg2 = static_cast< long >(val2);
30743 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
30744 if (!SWIG_IsOK(res3)) {
30745 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30746 }
30747 if (!argp3) {
30748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30749 }
30750 arg3 = reinterpret_cast< wxListItem * >(argp3);
30751 {
30752 PyThreadState* __tstate = wxPyBeginAllowThreads();
30753 result = (long)(arg1)->InsertColumn(arg2,*arg3);
30754 wxPyEndAllowThreads(__tstate);
30755 if (PyErr_Occurred()) SWIG_fail;
30756 }
30757 resultobj = SWIG_From_long(static_cast< long >(result));
30758 return resultobj;
30759 fail:
30760 return NULL;
30761 }
30762
30763
30764 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30765 PyObject *resultobj = 0;
30766 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30767 long arg2 ;
30768 wxString *arg3 = 0 ;
30769 int arg4 = (int) wxLIST_FORMAT_LEFT ;
30770 int arg5 = (int) -1 ;
30771 long result;
30772 void *argp1 = 0 ;
30773 int res1 = 0 ;
30774 long val2 ;
30775 int ecode2 = 0 ;
30776 bool temp3 = false ;
30777 int val4 ;
30778 int ecode4 = 0 ;
30779 int val5 ;
30780 int ecode5 = 0 ;
30781 PyObject * obj0 = 0 ;
30782 PyObject * obj1 = 0 ;
30783 PyObject * obj2 = 0 ;
30784 PyObject * obj3 = 0 ;
30785 PyObject * obj4 = 0 ;
30786 char * kwnames[] = {
30787 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
30788 };
30789
30790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30792 if (!SWIG_IsOK(res1)) {
30793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30794 }
30795 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30796 ecode2 = SWIG_AsVal_long(obj1, &val2);
30797 if (!SWIG_IsOK(ecode2)) {
30798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
30799 }
30800 arg2 = static_cast< long >(val2);
30801 {
30802 arg3 = wxString_in_helper(obj2);
30803 if (arg3 == NULL) SWIG_fail;
30804 temp3 = true;
30805 }
30806 if (obj3) {
30807 ecode4 = SWIG_AsVal_int(obj3, &val4);
30808 if (!SWIG_IsOK(ecode4)) {
30809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
30810 }
30811 arg4 = static_cast< int >(val4);
30812 }
30813 if (obj4) {
30814 ecode5 = SWIG_AsVal_int(obj4, &val5);
30815 if (!SWIG_IsOK(ecode5)) {
30816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
30817 }
30818 arg5 = static_cast< int >(val5);
30819 }
30820 {
30821 PyThreadState* __tstate = wxPyBeginAllowThreads();
30822 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
30823 wxPyEndAllowThreads(__tstate);
30824 if (PyErr_Occurred()) SWIG_fail;
30825 }
30826 resultobj = SWIG_From_long(static_cast< long >(result));
30827 {
30828 if (temp3)
30829 delete arg3;
30830 }
30831 return resultobj;
30832 fail:
30833 {
30834 if (temp3)
30835 delete arg3;
30836 }
30837 return NULL;
30838 }
30839
30840
30841 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30842 PyObject *resultobj = 0;
30843 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30844 long arg2 ;
30845 void *argp1 = 0 ;
30846 int res1 = 0 ;
30847 long val2 ;
30848 int ecode2 = 0 ;
30849 PyObject * obj0 = 0 ;
30850 PyObject * obj1 = 0 ;
30851 char * kwnames[] = {
30852 (char *) "self",(char *) "count", NULL
30853 };
30854
30855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
30856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30859 }
30860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30861 ecode2 = SWIG_AsVal_long(obj1, &val2);
30862 if (!SWIG_IsOK(ecode2)) {
30863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
30864 }
30865 arg2 = static_cast< long >(val2);
30866 {
30867 PyThreadState* __tstate = wxPyBeginAllowThreads();
30868 (arg1)->SetItemCount(arg2);
30869 wxPyEndAllowThreads(__tstate);
30870 if (PyErr_Occurred()) SWIG_fail;
30871 }
30872 resultobj = SWIG_Py_Void();
30873 return resultobj;
30874 fail:
30875 return NULL;
30876 }
30877
30878
30879 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30880 PyObject *resultobj = 0;
30881 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30882 int arg2 ;
30883 int arg3 ;
30884 bool result;
30885 void *argp1 = 0 ;
30886 int res1 = 0 ;
30887 int val2 ;
30888 int ecode2 = 0 ;
30889 int val3 ;
30890 int ecode3 = 0 ;
30891 PyObject * obj0 = 0 ;
30892 PyObject * obj1 = 0 ;
30893 PyObject * obj2 = 0 ;
30894 char * kwnames[] = {
30895 (char *) "self",(char *) "dx",(char *) "dy", NULL
30896 };
30897
30898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30902 }
30903 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30904 ecode2 = SWIG_AsVal_int(obj1, &val2);
30905 if (!SWIG_IsOK(ecode2)) {
30906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
30907 }
30908 arg2 = static_cast< int >(val2);
30909 ecode3 = SWIG_AsVal_int(obj2, &val3);
30910 if (!SWIG_IsOK(ecode3)) {
30911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
30912 }
30913 arg3 = static_cast< int >(val3);
30914 {
30915 PyThreadState* __tstate = wxPyBeginAllowThreads();
30916 result = (bool)(arg1)->ScrollList(arg2,arg3);
30917 wxPyEndAllowThreads(__tstate);
30918 if (PyErr_Occurred()) SWIG_fail;
30919 }
30920 {
30921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30922 }
30923 return resultobj;
30924 fail:
30925 return NULL;
30926 }
30927
30928
30929 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30930 PyObject *resultobj = 0;
30931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30932 long arg2 ;
30933 wxColour *arg3 = 0 ;
30934 void *argp1 = 0 ;
30935 int res1 = 0 ;
30936 long val2 ;
30937 int ecode2 = 0 ;
30938 wxColour temp3 ;
30939 PyObject * obj0 = 0 ;
30940 PyObject * obj1 = 0 ;
30941 PyObject * obj2 = 0 ;
30942 char * kwnames[] = {
30943 (char *) "self",(char *) "item",(char *) "col", NULL
30944 };
30945
30946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30948 if (!SWIG_IsOK(res1)) {
30949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30950 }
30951 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30952 ecode2 = SWIG_AsVal_long(obj1, &val2);
30953 if (!SWIG_IsOK(ecode2)) {
30954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
30955 }
30956 arg2 = static_cast< long >(val2);
30957 {
30958 arg3 = &temp3;
30959 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30960 }
30961 {
30962 PyThreadState* __tstate = wxPyBeginAllowThreads();
30963 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
30964 wxPyEndAllowThreads(__tstate);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 resultobj = SWIG_Py_Void();
30968 return resultobj;
30969 fail:
30970 return NULL;
30971 }
30972
30973
30974 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30975 PyObject *resultobj = 0;
30976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30977 long arg2 ;
30978 wxColour result;
30979 void *argp1 = 0 ;
30980 int res1 = 0 ;
30981 long val2 ;
30982 int ecode2 = 0 ;
30983 PyObject * obj0 = 0 ;
30984 PyObject * obj1 = 0 ;
30985 char * kwnames[] = {
30986 (char *) "self",(char *) "item", NULL
30987 };
30988
30989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30991 if (!SWIG_IsOK(res1)) {
30992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30993 }
30994 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30995 ecode2 = SWIG_AsVal_long(obj1, &val2);
30996 if (!SWIG_IsOK(ecode2)) {
30997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
30998 }
30999 arg2 = static_cast< long >(val2);
31000 {
31001 PyThreadState* __tstate = wxPyBeginAllowThreads();
31002 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31003 wxPyEndAllowThreads(__tstate);
31004 if (PyErr_Occurred()) SWIG_fail;
31005 }
31006 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31007 return resultobj;
31008 fail:
31009 return NULL;
31010 }
31011
31012
31013 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31014 PyObject *resultobj = 0;
31015 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31016 long arg2 ;
31017 wxColour *arg3 = 0 ;
31018 void *argp1 = 0 ;
31019 int res1 = 0 ;
31020 long val2 ;
31021 int ecode2 = 0 ;
31022 wxColour temp3 ;
31023 PyObject * obj0 = 0 ;
31024 PyObject * obj1 = 0 ;
31025 PyObject * obj2 = 0 ;
31026 char * kwnames[] = {
31027 (char *) "self",(char *) "item",(char *) "col", NULL
31028 };
31029
31030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31032 if (!SWIG_IsOK(res1)) {
31033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31034 }
31035 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31036 ecode2 = SWIG_AsVal_long(obj1, &val2);
31037 if (!SWIG_IsOK(ecode2)) {
31038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31039 }
31040 arg2 = static_cast< long >(val2);
31041 {
31042 arg3 = &temp3;
31043 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31044 }
31045 {
31046 PyThreadState* __tstate = wxPyBeginAllowThreads();
31047 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31048 wxPyEndAllowThreads(__tstate);
31049 if (PyErr_Occurred()) SWIG_fail;
31050 }
31051 resultobj = SWIG_Py_Void();
31052 return resultobj;
31053 fail:
31054 return NULL;
31055 }
31056
31057
31058 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31059 PyObject *resultobj = 0;
31060 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31061 long arg2 ;
31062 wxColour result;
31063 void *argp1 = 0 ;
31064 int res1 = 0 ;
31065 long val2 ;
31066 int ecode2 = 0 ;
31067 PyObject * obj0 = 0 ;
31068 PyObject * obj1 = 0 ;
31069 char * kwnames[] = {
31070 (char *) "self",(char *) "item", NULL
31071 };
31072
31073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31075 if (!SWIG_IsOK(res1)) {
31076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31077 }
31078 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31079 ecode2 = SWIG_AsVal_long(obj1, &val2);
31080 if (!SWIG_IsOK(ecode2)) {
31081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31082 }
31083 arg2 = static_cast< long >(val2);
31084 {
31085 PyThreadState* __tstate = wxPyBeginAllowThreads();
31086 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31087 wxPyEndAllowThreads(__tstate);
31088 if (PyErr_Occurred()) SWIG_fail;
31089 }
31090 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31091 return resultobj;
31092 fail:
31093 return NULL;
31094 }
31095
31096
31097 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31098 PyObject *resultobj = 0;
31099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31100 long arg2 ;
31101 wxFont *arg3 = 0 ;
31102 void *argp1 = 0 ;
31103 int res1 = 0 ;
31104 long val2 ;
31105 int ecode2 = 0 ;
31106 void *argp3 = 0 ;
31107 int res3 = 0 ;
31108 PyObject * obj0 = 0 ;
31109 PyObject * obj1 = 0 ;
31110 PyObject * obj2 = 0 ;
31111 char * kwnames[] = {
31112 (char *) "self",(char *) "item",(char *) "f", NULL
31113 };
31114
31115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31117 if (!SWIG_IsOK(res1)) {
31118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31119 }
31120 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31121 ecode2 = SWIG_AsVal_long(obj1, &val2);
31122 if (!SWIG_IsOK(ecode2)) {
31123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31124 }
31125 arg2 = static_cast< long >(val2);
31126 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31127 if (!SWIG_IsOK(res3)) {
31128 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31129 }
31130 if (!argp3) {
31131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31132 }
31133 arg3 = reinterpret_cast< wxFont * >(argp3);
31134 {
31135 PyThreadState* __tstate = wxPyBeginAllowThreads();
31136 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31137 wxPyEndAllowThreads(__tstate);
31138 if (PyErr_Occurred()) SWIG_fail;
31139 }
31140 resultobj = SWIG_Py_Void();
31141 return resultobj;
31142 fail:
31143 return NULL;
31144 }
31145
31146
31147 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31148 PyObject *resultobj = 0;
31149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31150 long arg2 ;
31151 wxFont result;
31152 void *argp1 = 0 ;
31153 int res1 = 0 ;
31154 long val2 ;
31155 int ecode2 = 0 ;
31156 PyObject * obj0 = 0 ;
31157 PyObject * obj1 = 0 ;
31158 char * kwnames[] = {
31159 (char *) "self",(char *) "item", NULL
31160 };
31161
31162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31164 if (!SWIG_IsOK(res1)) {
31165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31166 }
31167 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31168 ecode2 = SWIG_AsVal_long(obj1, &val2);
31169 if (!SWIG_IsOK(ecode2)) {
31170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31171 }
31172 arg2 = static_cast< long >(val2);
31173 {
31174 PyThreadState* __tstate = wxPyBeginAllowThreads();
31175 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31176 wxPyEndAllowThreads(__tstate);
31177 if (PyErr_Occurred()) SWIG_fail;
31178 }
31179 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31180 return resultobj;
31181 fail:
31182 return NULL;
31183 }
31184
31185
31186 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31187 PyObject *resultobj = 0;
31188 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31189 PyObject *arg2 = (PyObject *) 0 ;
31190 bool result;
31191 void *argp1 = 0 ;
31192 int res1 = 0 ;
31193 PyObject * obj0 = 0 ;
31194 PyObject * obj1 = 0 ;
31195 char * kwnames[] = {
31196 (char *) "self",(char *) "func", NULL
31197 };
31198
31199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31201 if (!SWIG_IsOK(res1)) {
31202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31203 }
31204 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31205 arg2 = obj1;
31206 {
31207 PyThreadState* __tstate = wxPyBeginAllowThreads();
31208 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31209 wxPyEndAllowThreads(__tstate);
31210 if (PyErr_Occurred()) SWIG_fail;
31211 }
31212 {
31213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31214 }
31215 return resultobj;
31216 fail:
31217 return NULL;
31218 }
31219
31220
31221 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31222 PyObject *resultobj = 0;
31223 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31224 wxWindow *result = 0 ;
31225 void *argp1 = 0 ;
31226 int res1 = 0 ;
31227 PyObject *swig_obj[1] ;
31228
31229 if (!args) SWIG_fail;
31230 swig_obj[0] = args;
31231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31232 if (!SWIG_IsOK(res1)) {
31233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31234 }
31235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31236 {
31237 PyThreadState* __tstate = wxPyBeginAllowThreads();
31238 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31239 wxPyEndAllowThreads(__tstate);
31240 if (PyErr_Occurred()) SWIG_fail;
31241 }
31242 {
31243 resultobj = wxPyMake_wxObject(result, 0);
31244 }
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31252 PyObject *resultobj = 0;
31253 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31254 SwigValueWrapper<wxVisualAttributes > result;
31255 int val1 ;
31256 int ecode1 = 0 ;
31257 PyObject * obj0 = 0 ;
31258 char * kwnames[] = {
31259 (char *) "variant", NULL
31260 };
31261
31262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31263 if (obj0) {
31264 ecode1 = SWIG_AsVal_int(obj0, &val1);
31265 if (!SWIG_IsOK(ecode1)) {
31266 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31267 }
31268 arg1 = static_cast< wxWindowVariant >(val1);
31269 }
31270 {
31271 if (!wxPyCheckForApp()) SWIG_fail;
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31278 return resultobj;
31279 fail:
31280 return NULL;
31281 }
31282
31283
31284 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31285 PyObject *obj;
31286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31287 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31288 return SWIG_Py_Void();
31289 }
31290
31291 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31292 return SWIG_Python_InitShadowInstance(args);
31293 }
31294
31295 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31296 PyObject *resultobj = 0;
31297 wxWindow *arg1 = (wxWindow *) 0 ;
31298 int arg2 = (int) -1 ;
31299 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31300 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31301 wxSize const &arg4_defvalue = wxDefaultSize ;
31302 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31303 long arg5 = (long) wxLC_REPORT ;
31304 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31305 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31306 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31307 wxString *arg7 = (wxString *) &arg7_defvalue ;
31308 wxListView *result = 0 ;
31309 void *argp1 = 0 ;
31310 int res1 = 0 ;
31311 int val2 ;
31312 int ecode2 = 0 ;
31313 wxPoint temp3 ;
31314 wxSize temp4 ;
31315 long val5 ;
31316 int ecode5 = 0 ;
31317 void *argp6 = 0 ;
31318 int res6 = 0 ;
31319 bool temp7 = false ;
31320 PyObject * obj0 = 0 ;
31321 PyObject * obj1 = 0 ;
31322 PyObject * obj2 = 0 ;
31323 PyObject * obj3 = 0 ;
31324 PyObject * obj4 = 0 ;
31325 PyObject * obj5 = 0 ;
31326 PyObject * obj6 = 0 ;
31327 char * kwnames[] = {
31328 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31329 };
31330
31331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31333 if (!SWIG_IsOK(res1)) {
31334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31335 }
31336 arg1 = reinterpret_cast< wxWindow * >(argp1);
31337 if (obj1) {
31338 ecode2 = SWIG_AsVal_int(obj1, &val2);
31339 if (!SWIG_IsOK(ecode2)) {
31340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31341 }
31342 arg2 = static_cast< int >(val2);
31343 }
31344 if (obj2) {
31345 {
31346 arg3 = &temp3;
31347 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31348 }
31349 }
31350 if (obj3) {
31351 {
31352 arg4 = &temp4;
31353 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31354 }
31355 }
31356 if (obj4) {
31357 ecode5 = SWIG_AsVal_long(obj4, &val5);
31358 if (!SWIG_IsOK(ecode5)) {
31359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31360 }
31361 arg5 = static_cast< long >(val5);
31362 }
31363 if (obj5) {
31364 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31365 if (!SWIG_IsOK(res6)) {
31366 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31367 }
31368 if (!argp6) {
31369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31370 }
31371 arg6 = reinterpret_cast< wxValidator * >(argp6);
31372 }
31373 if (obj6) {
31374 {
31375 arg7 = wxString_in_helper(obj6);
31376 if (arg7 == NULL) SWIG_fail;
31377 temp7 = true;
31378 }
31379 }
31380 {
31381 if (!wxPyCheckForApp()) SWIG_fail;
31382 PyThreadState* __tstate = wxPyBeginAllowThreads();
31383 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31384 wxPyEndAllowThreads(__tstate);
31385 if (PyErr_Occurred()) SWIG_fail;
31386 }
31387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31388 {
31389 if (temp7)
31390 delete arg7;
31391 }
31392 return resultobj;
31393 fail:
31394 {
31395 if (temp7)
31396 delete arg7;
31397 }
31398 return NULL;
31399 }
31400
31401
31402 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31403 PyObject *resultobj = 0;
31404 wxListView *result = 0 ;
31405
31406 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31407 {
31408 if (!wxPyCheckForApp()) SWIG_fail;
31409 PyThreadState* __tstate = wxPyBeginAllowThreads();
31410 result = (wxListView *)new wxListView();
31411 wxPyEndAllowThreads(__tstate);
31412 if (PyErr_Occurred()) SWIG_fail;
31413 }
31414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31415 return resultobj;
31416 fail:
31417 return NULL;
31418 }
31419
31420
31421 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31422 PyObject *resultobj = 0;
31423 wxListView *arg1 = (wxListView *) 0 ;
31424 wxWindow *arg2 = (wxWindow *) 0 ;
31425 int arg3 = (int) -1 ;
31426 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31427 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31428 wxSize const &arg5_defvalue = wxDefaultSize ;
31429 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31430 long arg6 = (long) wxLC_REPORT ;
31431 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31432 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31433 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31434 wxString *arg8 = (wxString *) &arg8_defvalue ;
31435 bool result;
31436 void *argp1 = 0 ;
31437 int res1 = 0 ;
31438 void *argp2 = 0 ;
31439 int res2 = 0 ;
31440 int val3 ;
31441 int ecode3 = 0 ;
31442 wxPoint temp4 ;
31443 wxSize temp5 ;
31444 long val6 ;
31445 int ecode6 = 0 ;
31446 void *argp7 = 0 ;
31447 int res7 = 0 ;
31448 bool temp8 = false ;
31449 PyObject * obj0 = 0 ;
31450 PyObject * obj1 = 0 ;
31451 PyObject * obj2 = 0 ;
31452 PyObject * obj3 = 0 ;
31453 PyObject * obj4 = 0 ;
31454 PyObject * obj5 = 0 ;
31455 PyObject * obj6 = 0 ;
31456 PyObject * obj7 = 0 ;
31457 char * kwnames[] = {
31458 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31459 };
31460
31461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31463 if (!SWIG_IsOK(res1)) {
31464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31465 }
31466 arg1 = reinterpret_cast< wxListView * >(argp1);
31467 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31468 if (!SWIG_IsOK(res2)) {
31469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31470 }
31471 arg2 = reinterpret_cast< wxWindow * >(argp2);
31472 if (obj2) {
31473 ecode3 = SWIG_AsVal_int(obj2, &val3);
31474 if (!SWIG_IsOK(ecode3)) {
31475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31476 }
31477 arg3 = static_cast< int >(val3);
31478 }
31479 if (obj3) {
31480 {
31481 arg4 = &temp4;
31482 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31483 }
31484 }
31485 if (obj4) {
31486 {
31487 arg5 = &temp5;
31488 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31489 }
31490 }
31491 if (obj5) {
31492 ecode6 = SWIG_AsVal_long(obj5, &val6);
31493 if (!SWIG_IsOK(ecode6)) {
31494 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31495 }
31496 arg6 = static_cast< long >(val6);
31497 }
31498 if (obj6) {
31499 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31500 if (!SWIG_IsOK(res7)) {
31501 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31502 }
31503 if (!argp7) {
31504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31505 }
31506 arg7 = reinterpret_cast< wxValidator * >(argp7);
31507 }
31508 if (obj7) {
31509 {
31510 arg8 = wxString_in_helper(obj7);
31511 if (arg8 == NULL) SWIG_fail;
31512 temp8 = true;
31513 }
31514 }
31515 {
31516 PyThreadState* __tstate = wxPyBeginAllowThreads();
31517 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31518 wxPyEndAllowThreads(__tstate);
31519 if (PyErr_Occurred()) SWIG_fail;
31520 }
31521 {
31522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31523 }
31524 {
31525 if (temp8)
31526 delete arg8;
31527 }
31528 return resultobj;
31529 fail:
31530 {
31531 if (temp8)
31532 delete arg8;
31533 }
31534 return NULL;
31535 }
31536
31537
31538 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31539 PyObject *resultobj = 0;
31540 wxListView *arg1 = (wxListView *) 0 ;
31541 long arg2 ;
31542 bool arg3 = (bool) true ;
31543 void *argp1 = 0 ;
31544 int res1 = 0 ;
31545 long val2 ;
31546 int ecode2 = 0 ;
31547 bool val3 ;
31548 int ecode3 = 0 ;
31549 PyObject * obj0 = 0 ;
31550 PyObject * obj1 = 0 ;
31551 PyObject * obj2 = 0 ;
31552 char * kwnames[] = {
31553 (char *) "self",(char *) "n",(char *) "on", NULL
31554 };
31555
31556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31558 if (!SWIG_IsOK(res1)) {
31559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31560 }
31561 arg1 = reinterpret_cast< wxListView * >(argp1);
31562 ecode2 = SWIG_AsVal_long(obj1, &val2);
31563 if (!SWIG_IsOK(ecode2)) {
31564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31565 }
31566 arg2 = static_cast< long >(val2);
31567 if (obj2) {
31568 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31569 if (!SWIG_IsOK(ecode3)) {
31570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31571 }
31572 arg3 = static_cast< bool >(val3);
31573 }
31574 {
31575 PyThreadState* __tstate = wxPyBeginAllowThreads();
31576 (arg1)->Select(arg2,arg3);
31577 wxPyEndAllowThreads(__tstate);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 resultobj = SWIG_Py_Void();
31581 return resultobj;
31582 fail:
31583 return NULL;
31584 }
31585
31586
31587 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31588 PyObject *resultobj = 0;
31589 wxListView *arg1 = (wxListView *) 0 ;
31590 long arg2 ;
31591 void *argp1 = 0 ;
31592 int res1 = 0 ;
31593 long val2 ;
31594 int ecode2 = 0 ;
31595 PyObject * obj0 = 0 ;
31596 PyObject * obj1 = 0 ;
31597 char * kwnames[] = {
31598 (char *) "self",(char *) "index", NULL
31599 };
31600
31601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31603 if (!SWIG_IsOK(res1)) {
31604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31605 }
31606 arg1 = reinterpret_cast< wxListView * >(argp1);
31607 ecode2 = SWIG_AsVal_long(obj1, &val2);
31608 if (!SWIG_IsOK(ecode2)) {
31609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31610 }
31611 arg2 = static_cast< long >(val2);
31612 {
31613 PyThreadState* __tstate = wxPyBeginAllowThreads();
31614 (arg1)->Focus(arg2);
31615 wxPyEndAllowThreads(__tstate);
31616 if (PyErr_Occurred()) SWIG_fail;
31617 }
31618 resultobj = SWIG_Py_Void();
31619 return resultobj;
31620 fail:
31621 return NULL;
31622 }
31623
31624
31625 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31626 PyObject *resultobj = 0;
31627 wxListView *arg1 = (wxListView *) 0 ;
31628 long result;
31629 void *argp1 = 0 ;
31630 int res1 = 0 ;
31631 PyObject *swig_obj[1] ;
31632
31633 if (!args) SWIG_fail;
31634 swig_obj[0] = args;
31635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31636 if (!SWIG_IsOK(res1)) {
31637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31638 }
31639 arg1 = reinterpret_cast< wxListView * >(argp1);
31640 {
31641 PyThreadState* __tstate = wxPyBeginAllowThreads();
31642 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31643 wxPyEndAllowThreads(__tstate);
31644 if (PyErr_Occurred()) SWIG_fail;
31645 }
31646 resultobj = SWIG_From_long(static_cast< long >(result));
31647 return resultobj;
31648 fail:
31649 return NULL;
31650 }
31651
31652
31653 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31654 PyObject *resultobj = 0;
31655 wxListView *arg1 = (wxListView *) 0 ;
31656 long arg2 ;
31657 long result;
31658 void *argp1 = 0 ;
31659 int res1 = 0 ;
31660 long val2 ;
31661 int ecode2 = 0 ;
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 char * kwnames[] = {
31665 (char *) "self",(char *) "item", NULL
31666 };
31667
31668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31670 if (!SWIG_IsOK(res1)) {
31671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31672 }
31673 arg1 = reinterpret_cast< wxListView * >(argp1);
31674 ecode2 = SWIG_AsVal_long(obj1, &val2);
31675 if (!SWIG_IsOK(ecode2)) {
31676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31677 }
31678 arg2 = static_cast< long >(val2);
31679 {
31680 PyThreadState* __tstate = wxPyBeginAllowThreads();
31681 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31682 wxPyEndAllowThreads(__tstate);
31683 if (PyErr_Occurred()) SWIG_fail;
31684 }
31685 resultobj = SWIG_From_long(static_cast< long >(result));
31686 return resultobj;
31687 fail:
31688 return NULL;
31689 }
31690
31691
31692 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31693 PyObject *resultobj = 0;
31694 wxListView *arg1 = (wxListView *) 0 ;
31695 long result;
31696 void *argp1 = 0 ;
31697 int res1 = 0 ;
31698 PyObject *swig_obj[1] ;
31699
31700 if (!args) SWIG_fail;
31701 swig_obj[0] = args;
31702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31703 if (!SWIG_IsOK(res1)) {
31704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31705 }
31706 arg1 = reinterpret_cast< wxListView * >(argp1);
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 result = (long)((wxListView const *)arg1)->GetFirstSelected();
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 resultobj = SWIG_From_long(static_cast< long >(result));
31714 return resultobj;
31715 fail:
31716 return NULL;
31717 }
31718
31719
31720 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31721 PyObject *resultobj = 0;
31722 wxListView *arg1 = (wxListView *) 0 ;
31723 long arg2 ;
31724 bool result;
31725 void *argp1 = 0 ;
31726 int res1 = 0 ;
31727 long val2 ;
31728 int ecode2 = 0 ;
31729 PyObject * obj0 = 0 ;
31730 PyObject * obj1 = 0 ;
31731 char * kwnames[] = {
31732 (char *) "self",(char *) "index", NULL
31733 };
31734
31735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31737 if (!SWIG_IsOK(res1)) {
31738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
31739 }
31740 arg1 = reinterpret_cast< wxListView * >(argp1);
31741 ecode2 = SWIG_AsVal_long(obj1, &val2);
31742 if (!SWIG_IsOK(ecode2)) {
31743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
31744 }
31745 arg2 = static_cast< long >(val2);
31746 {
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 result = (bool)(arg1)->IsSelected(arg2);
31749 wxPyEndAllowThreads(__tstate);
31750 if (PyErr_Occurred()) SWIG_fail;
31751 }
31752 {
31753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31754 }
31755 return resultobj;
31756 fail:
31757 return NULL;
31758 }
31759
31760
31761 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31762 PyObject *resultobj = 0;
31763 wxListView *arg1 = (wxListView *) 0 ;
31764 int arg2 ;
31765 int arg3 ;
31766 void *argp1 = 0 ;
31767 int res1 = 0 ;
31768 int val2 ;
31769 int ecode2 = 0 ;
31770 int val3 ;
31771 int ecode3 = 0 ;
31772 PyObject * obj0 = 0 ;
31773 PyObject * obj1 = 0 ;
31774 PyObject * obj2 = 0 ;
31775 char * kwnames[] = {
31776 (char *) "self",(char *) "col",(char *) "image", NULL
31777 };
31778
31779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31781 if (!SWIG_IsOK(res1)) {
31782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31783 }
31784 arg1 = reinterpret_cast< wxListView * >(argp1);
31785 ecode2 = SWIG_AsVal_int(obj1, &val2);
31786 if (!SWIG_IsOK(ecode2)) {
31787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
31788 }
31789 arg2 = static_cast< int >(val2);
31790 ecode3 = SWIG_AsVal_int(obj2, &val3);
31791 if (!SWIG_IsOK(ecode3)) {
31792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
31793 }
31794 arg3 = static_cast< int >(val3);
31795 {
31796 PyThreadState* __tstate = wxPyBeginAllowThreads();
31797 (arg1)->SetColumnImage(arg2,arg3);
31798 wxPyEndAllowThreads(__tstate);
31799 if (PyErr_Occurred()) SWIG_fail;
31800 }
31801 resultobj = SWIG_Py_Void();
31802 return resultobj;
31803 fail:
31804 return NULL;
31805 }
31806
31807
31808 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31809 PyObject *resultobj = 0;
31810 wxListView *arg1 = (wxListView *) 0 ;
31811 int arg2 ;
31812 void *argp1 = 0 ;
31813 int res1 = 0 ;
31814 int val2 ;
31815 int ecode2 = 0 ;
31816 PyObject * obj0 = 0 ;
31817 PyObject * obj1 = 0 ;
31818 char * kwnames[] = {
31819 (char *) "self",(char *) "col", NULL
31820 };
31821
31822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
31823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31824 if (!SWIG_IsOK(res1)) {
31825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31826 }
31827 arg1 = reinterpret_cast< wxListView * >(argp1);
31828 ecode2 = SWIG_AsVal_int(obj1, &val2);
31829 if (!SWIG_IsOK(ecode2)) {
31830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
31831 }
31832 arg2 = static_cast< int >(val2);
31833 {
31834 PyThreadState* __tstate = wxPyBeginAllowThreads();
31835 (arg1)->ClearColumnImage(arg2);
31836 wxPyEndAllowThreads(__tstate);
31837 if (PyErr_Occurred()) SWIG_fail;
31838 }
31839 resultobj = SWIG_Py_Void();
31840 return resultobj;
31841 fail:
31842 return NULL;
31843 }
31844
31845
31846 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31847 PyObject *obj;
31848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31849 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
31850 return SWIG_Py_Void();
31851 }
31852
31853 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31854 return SWIG_Python_InitShadowInstance(args);
31855 }
31856
31857 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
31858 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
31859 return 1;
31860 }
31861
31862
31863 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
31864 PyObject *pyobj = 0;
31865
31866 {
31867 #if wxUSE_UNICODE
31868 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
31869 #else
31870 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
31871 #endif
31872 }
31873 return pyobj;
31874 }
31875
31876
31877 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31878 PyObject *resultobj = 0;
31879 wxTreeItemId *result = 0 ;
31880
31881 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
31882 {
31883 PyThreadState* __tstate = wxPyBeginAllowThreads();
31884 result = (wxTreeItemId *)new wxTreeItemId();
31885 wxPyEndAllowThreads(__tstate);
31886 if (PyErr_Occurred()) SWIG_fail;
31887 }
31888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
31889 return resultobj;
31890 fail:
31891 return NULL;
31892 }
31893
31894
31895 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31896 PyObject *resultobj = 0;
31897 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
31898 void *argp1 = 0 ;
31899 int res1 = 0 ;
31900 PyObject *swig_obj[1] ;
31901
31902 if (!args) SWIG_fail;
31903 swig_obj[0] = args;
31904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
31905 if (!SWIG_IsOK(res1)) {
31906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
31907 }
31908 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
31909 {
31910 PyThreadState* __tstate = wxPyBeginAllowThreads();
31911 delete arg1;
31912
31913 wxPyEndAllowThreads(__tstate);
31914 if (PyErr_Occurred()) SWIG_fail;
31915 }
31916 resultobj = SWIG_Py_Void();
31917 return resultobj;
31918 fail:
31919 return NULL;
31920 }
31921
31922
31923 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31924 PyObject *resultobj = 0;
31925 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
31926 bool result;
31927 void *argp1 = 0 ;
31928 int res1 = 0 ;
31929 PyObject *swig_obj[1] ;
31930
31931 if (!args) SWIG_fail;
31932 swig_obj[0] = args;
31933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
31934 if (!SWIG_IsOK(res1)) {
31935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
31936 }
31937 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
31938 {
31939 PyThreadState* __tstate = wxPyBeginAllowThreads();
31940 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
31941 wxPyEndAllowThreads(__tstate);
31942 if (PyErr_Occurred()) SWIG_fail;
31943 }
31944 {
31945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31946 }
31947 return resultobj;
31948 fail:
31949 return NULL;
31950 }
31951
31952
31953 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31954 PyObject *resultobj = 0;
31955 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
31956 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
31957 bool result;
31958 void *argp1 = 0 ;
31959 int res1 = 0 ;
31960 void *argp2 = 0 ;
31961 int res2 = 0 ;
31962 PyObject * obj0 = 0 ;
31963 PyObject * obj1 = 0 ;
31964 char * kwnames[] = {
31965 (char *) "self",(char *) "other", NULL
31966 };
31967
31968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
31969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
31970 if (!SWIG_IsOK(res1)) {
31971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
31972 }
31973 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
31974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
31975 if (!SWIG_IsOK(res2)) {
31976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
31977 }
31978 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
31979 {
31980 PyThreadState* __tstate = wxPyBeginAllowThreads();
31981 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
31982 wxPyEndAllowThreads(__tstate);
31983 if (PyErr_Occurred()) SWIG_fail;
31984 }
31985 {
31986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31987 }
31988 return resultobj;
31989 fail:
31990 return NULL;
31991 }
31992
31993
31994 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31995 PyObject *resultobj = 0;
31996 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
31997 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
31998 bool result;
31999 void *argp1 = 0 ;
32000 int res1 = 0 ;
32001 void *argp2 = 0 ;
32002 int res2 = 0 ;
32003 PyObject * obj0 = 0 ;
32004 PyObject * obj1 = 0 ;
32005 char * kwnames[] = {
32006 (char *) "self",(char *) "other", NULL
32007 };
32008
32009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32011 if (!SWIG_IsOK(res1)) {
32012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32013 }
32014 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32016 if (!SWIG_IsOK(res2)) {
32017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32018 }
32019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32020 {
32021 PyThreadState* __tstate = wxPyBeginAllowThreads();
32022 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32023 wxPyEndAllowThreads(__tstate);
32024 if (PyErr_Occurred()) SWIG_fail;
32025 }
32026 {
32027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32028 }
32029 return resultobj;
32030 fail:
32031 return NULL;
32032 }
32033
32034
32035 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32036 PyObject *resultobj = 0;
32037 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32038 void *arg2 = (void *) 0 ;
32039 void *argp1 = 0 ;
32040 int res1 = 0 ;
32041 int res2 ;
32042 PyObject *swig_obj[2] ;
32043
32044 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32046 if (!SWIG_IsOK(res1)) {
32047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32048 }
32049 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32050 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32051 if (!SWIG_IsOK(res2)) {
32052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32053 }
32054 if (arg1) (arg1)->m_pItem = arg2;
32055
32056 resultobj = SWIG_Py_Void();
32057 return resultobj;
32058 fail:
32059 return NULL;
32060 }
32061
32062
32063 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32064 PyObject *resultobj = 0;
32065 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32066 void *result = 0 ;
32067 void *argp1 = 0 ;
32068 int res1 = 0 ;
32069 PyObject *swig_obj[1] ;
32070
32071 if (!args) SWIG_fail;
32072 swig_obj[0] = args;
32073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32074 if (!SWIG_IsOK(res1)) {
32075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32076 }
32077 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32078 result = (void *) ((arg1)->m_pItem);
32079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32080 return resultobj;
32081 fail:
32082 return NULL;
32083 }
32084
32085
32086 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32087 PyObject *obj;
32088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32089 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32090 return SWIG_Py_Void();
32091 }
32092
32093 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32094 return SWIG_Python_InitShadowInstance(args);
32095 }
32096
32097 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32098 PyObject *resultobj = 0;
32099 PyObject *arg1 = (PyObject *) NULL ;
32100 wxPyTreeItemData *result = 0 ;
32101 PyObject * obj0 = 0 ;
32102 char * kwnames[] = {
32103 (char *) "obj", NULL
32104 };
32105
32106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32107 if (obj0) {
32108 arg1 = obj0;
32109 }
32110 {
32111 PyThreadState* __tstate = wxPyBeginAllowThreads();
32112 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32113 wxPyEndAllowThreads(__tstate);
32114 if (PyErr_Occurred()) SWIG_fail;
32115 }
32116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32117 return resultobj;
32118 fail:
32119 return NULL;
32120 }
32121
32122
32123 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32124 PyObject *resultobj = 0;
32125 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32126 void *argp1 = 0 ;
32127 int res1 = 0 ;
32128 PyObject *swig_obj[1] ;
32129
32130 if (!args) SWIG_fail;
32131 swig_obj[0] = args;
32132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32133 if (!SWIG_IsOK(res1)) {
32134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32135 }
32136 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32137 {
32138 PyThreadState* __tstate = wxPyBeginAllowThreads();
32139 delete arg1;
32140
32141 wxPyEndAllowThreads(__tstate);
32142 if (PyErr_Occurred()) SWIG_fail;
32143 }
32144 resultobj = SWIG_Py_Void();
32145 return resultobj;
32146 fail:
32147 return NULL;
32148 }
32149
32150
32151 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32152 PyObject *resultobj = 0;
32153 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32154 PyObject *result = 0 ;
32155 void *argp1 = 0 ;
32156 int res1 = 0 ;
32157 PyObject *swig_obj[1] ;
32158
32159 if (!args) SWIG_fail;
32160 swig_obj[0] = args;
32161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32162 if (!SWIG_IsOK(res1)) {
32163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32164 }
32165 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32166 {
32167 PyThreadState* __tstate = wxPyBeginAllowThreads();
32168 result = (PyObject *)(arg1)->GetData();
32169 wxPyEndAllowThreads(__tstate);
32170 if (PyErr_Occurred()) SWIG_fail;
32171 }
32172 resultobj = result;
32173 return resultobj;
32174 fail:
32175 return NULL;
32176 }
32177
32178
32179 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32180 PyObject *resultobj = 0;
32181 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32182 PyObject *arg2 = (PyObject *) 0 ;
32183 void *argp1 = 0 ;
32184 int res1 = 0 ;
32185 PyObject * obj0 = 0 ;
32186 PyObject * obj1 = 0 ;
32187 char * kwnames[] = {
32188 (char *) "self",(char *) "obj", NULL
32189 };
32190
32191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32193 if (!SWIG_IsOK(res1)) {
32194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32195 }
32196 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32197 arg2 = obj1;
32198 {
32199 PyThreadState* __tstate = wxPyBeginAllowThreads();
32200 (arg1)->SetData(arg2);
32201 wxPyEndAllowThreads(__tstate);
32202 if (PyErr_Occurred()) SWIG_fail;
32203 }
32204 resultobj = SWIG_Py_Void();
32205 return resultobj;
32206 fail:
32207 return NULL;
32208 }
32209
32210
32211 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32212 PyObject *resultobj = 0;
32213 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32214 wxTreeItemId *result = 0 ;
32215 void *argp1 = 0 ;
32216 int res1 = 0 ;
32217 PyObject *swig_obj[1] ;
32218
32219 if (!args) SWIG_fail;
32220 swig_obj[0] = args;
32221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32222 if (!SWIG_IsOK(res1)) {
32223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32224 }
32225 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32226 {
32227 PyThreadState* __tstate = wxPyBeginAllowThreads();
32228 {
32229 wxTreeItemId const &_result_ref = (arg1)->GetId();
32230 result = (wxTreeItemId *) &_result_ref;
32231 }
32232 wxPyEndAllowThreads(__tstate);
32233 if (PyErr_Occurred()) SWIG_fail;
32234 }
32235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32236 return resultobj;
32237 fail:
32238 return NULL;
32239 }
32240
32241
32242 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32243 PyObject *resultobj = 0;
32244 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32245 wxTreeItemId *arg2 = 0 ;
32246 void *argp1 = 0 ;
32247 int res1 = 0 ;
32248 void *argp2 = 0 ;
32249 int res2 = 0 ;
32250 PyObject * obj0 = 0 ;
32251 PyObject * obj1 = 0 ;
32252 char * kwnames[] = {
32253 (char *) "self",(char *) "id", NULL
32254 };
32255
32256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32258 if (!SWIG_IsOK(res1)) {
32259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32260 }
32261 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32263 if (!SWIG_IsOK(res2)) {
32264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32265 }
32266 if (!argp2) {
32267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32268 }
32269 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32270 {
32271 PyThreadState* __tstate = wxPyBeginAllowThreads();
32272 (arg1)->SetId((wxTreeItemId const &)*arg2);
32273 wxPyEndAllowThreads(__tstate);
32274 if (PyErr_Occurred()) SWIG_fail;
32275 }
32276 resultobj = SWIG_Py_Void();
32277 return resultobj;
32278 fail:
32279 return NULL;
32280 }
32281
32282
32283 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32284 PyObject *resultobj = 0;
32285 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32286 void *argp1 = 0 ;
32287 int res1 = 0 ;
32288 PyObject *swig_obj[1] ;
32289
32290 if (!args) SWIG_fail;
32291 swig_obj[0] = args;
32292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32293 if (!SWIG_IsOK(res1)) {
32294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32295 }
32296 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32297 {
32298 PyThreadState* __tstate = wxPyBeginAllowThreads();
32299 wxPyTreeItemData_Destroy(arg1);
32300 wxPyEndAllowThreads(__tstate);
32301 if (PyErr_Occurred()) SWIG_fail;
32302 }
32303 resultobj = SWIG_Py_Void();
32304 return resultobj;
32305 fail:
32306 return NULL;
32307 }
32308
32309
32310 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32311 PyObject *obj;
32312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32313 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32314 return SWIG_Py_Void();
32315 }
32316
32317 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32318 return SWIG_Python_InitShadowInstance(args);
32319 }
32320
32321 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32322 PyObject *resultobj = 0;
32323 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32324 int arg2 = (int) 0 ;
32325 wxTreeEvent *result = 0 ;
32326 int val1 ;
32327 int ecode1 = 0 ;
32328 int val2 ;
32329 int ecode2 = 0 ;
32330 PyObject * obj0 = 0 ;
32331 PyObject * obj1 = 0 ;
32332 char * kwnames[] = {
32333 (char *) "commandType",(char *) "id", NULL
32334 };
32335
32336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32337 if (obj0) {
32338 ecode1 = SWIG_AsVal_int(obj0, &val1);
32339 if (!SWIG_IsOK(ecode1)) {
32340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32341 }
32342 arg1 = static_cast< wxEventType >(val1);
32343 }
32344 if (obj1) {
32345 ecode2 = SWIG_AsVal_int(obj1, &val2);
32346 if (!SWIG_IsOK(ecode2)) {
32347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32348 }
32349 arg2 = static_cast< int >(val2);
32350 }
32351 {
32352 PyThreadState* __tstate = wxPyBeginAllowThreads();
32353 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32354 wxPyEndAllowThreads(__tstate);
32355 if (PyErr_Occurred()) SWIG_fail;
32356 }
32357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32358 return resultobj;
32359 fail:
32360 return NULL;
32361 }
32362
32363
32364 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32365 PyObject *resultobj = 0;
32366 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32367 wxTreeItemId result;
32368 void *argp1 = 0 ;
32369 int res1 = 0 ;
32370 PyObject *swig_obj[1] ;
32371
32372 if (!args) SWIG_fail;
32373 swig_obj[0] = args;
32374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32375 if (!SWIG_IsOK(res1)) {
32376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32377 }
32378 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32379 {
32380 PyThreadState* __tstate = wxPyBeginAllowThreads();
32381 result = ((wxTreeEvent const *)arg1)->GetItem();
32382 wxPyEndAllowThreads(__tstate);
32383 if (PyErr_Occurred()) SWIG_fail;
32384 }
32385 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32386 return resultobj;
32387 fail:
32388 return NULL;
32389 }
32390
32391
32392 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32393 PyObject *resultobj = 0;
32394 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32395 wxTreeItemId *arg2 = 0 ;
32396 void *argp1 = 0 ;
32397 int res1 = 0 ;
32398 void *argp2 = 0 ;
32399 int res2 = 0 ;
32400 PyObject * obj0 = 0 ;
32401 PyObject * obj1 = 0 ;
32402 char * kwnames[] = {
32403 (char *) "self",(char *) "item", NULL
32404 };
32405
32406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32408 if (!SWIG_IsOK(res1)) {
32409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32410 }
32411 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32413 if (!SWIG_IsOK(res2)) {
32414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32415 }
32416 if (!argp2) {
32417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32418 }
32419 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32420 {
32421 PyThreadState* __tstate = wxPyBeginAllowThreads();
32422 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32423 wxPyEndAllowThreads(__tstate);
32424 if (PyErr_Occurred()) SWIG_fail;
32425 }
32426 resultobj = SWIG_Py_Void();
32427 return resultobj;
32428 fail:
32429 return NULL;
32430 }
32431
32432
32433 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32434 PyObject *resultobj = 0;
32435 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32436 wxTreeItemId result;
32437 void *argp1 = 0 ;
32438 int res1 = 0 ;
32439 PyObject *swig_obj[1] ;
32440
32441 if (!args) SWIG_fail;
32442 swig_obj[0] = args;
32443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32444 if (!SWIG_IsOK(res1)) {
32445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32446 }
32447 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32448 {
32449 PyThreadState* __tstate = wxPyBeginAllowThreads();
32450 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32451 wxPyEndAllowThreads(__tstate);
32452 if (PyErr_Occurred()) SWIG_fail;
32453 }
32454 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32455 return resultobj;
32456 fail:
32457 return NULL;
32458 }
32459
32460
32461 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32462 PyObject *resultobj = 0;
32463 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32464 wxTreeItemId *arg2 = 0 ;
32465 void *argp1 = 0 ;
32466 int res1 = 0 ;
32467 void *argp2 = 0 ;
32468 int res2 = 0 ;
32469 PyObject * obj0 = 0 ;
32470 PyObject * obj1 = 0 ;
32471 char * kwnames[] = {
32472 (char *) "self",(char *) "item", NULL
32473 };
32474
32475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32477 if (!SWIG_IsOK(res1)) {
32478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32479 }
32480 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32482 if (!SWIG_IsOK(res2)) {
32483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32484 }
32485 if (!argp2) {
32486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32487 }
32488 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 resultobj = SWIG_Py_Void();
32496 return resultobj;
32497 fail:
32498 return NULL;
32499 }
32500
32501
32502 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32503 PyObject *resultobj = 0;
32504 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32505 wxPoint result;
32506 void *argp1 = 0 ;
32507 int res1 = 0 ;
32508 PyObject *swig_obj[1] ;
32509
32510 if (!args) SWIG_fail;
32511 swig_obj[0] = args;
32512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32513 if (!SWIG_IsOK(res1)) {
32514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32515 }
32516 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32517 {
32518 PyThreadState* __tstate = wxPyBeginAllowThreads();
32519 result = ((wxTreeEvent const *)arg1)->GetPoint();
32520 wxPyEndAllowThreads(__tstate);
32521 if (PyErr_Occurred()) SWIG_fail;
32522 }
32523 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32524 return resultobj;
32525 fail:
32526 return NULL;
32527 }
32528
32529
32530 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32531 PyObject *resultobj = 0;
32532 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32533 wxPoint *arg2 = 0 ;
32534 void *argp1 = 0 ;
32535 int res1 = 0 ;
32536 wxPoint temp2 ;
32537 PyObject * obj0 = 0 ;
32538 PyObject * obj1 = 0 ;
32539 char * kwnames[] = {
32540 (char *) "self",(char *) "pt", NULL
32541 };
32542
32543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32545 if (!SWIG_IsOK(res1)) {
32546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32547 }
32548 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32549 {
32550 arg2 = &temp2;
32551 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32552 }
32553 {
32554 PyThreadState* __tstate = wxPyBeginAllowThreads();
32555 (arg1)->SetPoint((wxPoint const &)*arg2);
32556 wxPyEndAllowThreads(__tstate);
32557 if (PyErr_Occurred()) SWIG_fail;
32558 }
32559 resultobj = SWIG_Py_Void();
32560 return resultobj;
32561 fail:
32562 return NULL;
32563 }
32564
32565
32566 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32567 PyObject *resultobj = 0;
32568 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32569 wxKeyEvent *result = 0 ;
32570 void *argp1 = 0 ;
32571 int res1 = 0 ;
32572 PyObject *swig_obj[1] ;
32573
32574 if (!args) SWIG_fail;
32575 swig_obj[0] = args;
32576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32577 if (!SWIG_IsOK(res1)) {
32578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32579 }
32580 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32581 {
32582 PyThreadState* __tstate = wxPyBeginAllowThreads();
32583 {
32584 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32585 result = (wxKeyEvent *) &_result_ref;
32586 }
32587 wxPyEndAllowThreads(__tstate);
32588 if (PyErr_Occurred()) SWIG_fail;
32589 }
32590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32591 return resultobj;
32592 fail:
32593 return NULL;
32594 }
32595
32596
32597 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32598 PyObject *resultobj = 0;
32599 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32600 int result;
32601 void *argp1 = 0 ;
32602 int res1 = 0 ;
32603 PyObject *swig_obj[1] ;
32604
32605 if (!args) SWIG_fail;
32606 swig_obj[0] = args;
32607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32608 if (!SWIG_IsOK(res1)) {
32609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32610 }
32611 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32612 {
32613 PyThreadState* __tstate = wxPyBeginAllowThreads();
32614 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32615 wxPyEndAllowThreads(__tstate);
32616 if (PyErr_Occurred()) SWIG_fail;
32617 }
32618 resultobj = SWIG_From_int(static_cast< int >(result));
32619 return resultobj;
32620 fail:
32621 return NULL;
32622 }
32623
32624
32625 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32626 PyObject *resultobj = 0;
32627 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32628 wxKeyEvent *arg2 = 0 ;
32629 void *argp1 = 0 ;
32630 int res1 = 0 ;
32631 void *argp2 = 0 ;
32632 int res2 = 0 ;
32633 PyObject * obj0 = 0 ;
32634 PyObject * obj1 = 0 ;
32635 char * kwnames[] = {
32636 (char *) "self",(char *) "evt", NULL
32637 };
32638
32639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32641 if (!SWIG_IsOK(res1)) {
32642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32643 }
32644 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32646 if (!SWIG_IsOK(res2)) {
32647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32648 }
32649 if (!argp2) {
32650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32651 }
32652 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32653 {
32654 PyThreadState* __tstate = wxPyBeginAllowThreads();
32655 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32656 wxPyEndAllowThreads(__tstate);
32657 if (PyErr_Occurred()) SWIG_fail;
32658 }
32659 resultobj = SWIG_Py_Void();
32660 return resultobj;
32661 fail:
32662 return NULL;
32663 }
32664
32665
32666 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32667 PyObject *resultobj = 0;
32668 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32669 wxString *result = 0 ;
32670 void *argp1 = 0 ;
32671 int res1 = 0 ;
32672 PyObject *swig_obj[1] ;
32673
32674 if (!args) SWIG_fail;
32675 swig_obj[0] = args;
32676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32679 }
32680 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 {
32684 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32685 result = (wxString *) &_result_ref;
32686 }
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 {
32691 #if wxUSE_UNICODE
32692 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32693 #else
32694 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32695 #endif
32696 }
32697 return resultobj;
32698 fail:
32699 return NULL;
32700 }
32701
32702
32703 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32704 PyObject *resultobj = 0;
32705 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32706 wxString *arg2 = 0 ;
32707 void *argp1 = 0 ;
32708 int res1 = 0 ;
32709 bool temp2 = false ;
32710 PyObject * obj0 = 0 ;
32711 PyObject * obj1 = 0 ;
32712 char * kwnames[] = {
32713 (char *) "self",(char *) "label", NULL
32714 };
32715
32716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
32717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32718 if (!SWIG_IsOK(res1)) {
32719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32720 }
32721 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32722 {
32723 arg2 = wxString_in_helper(obj1);
32724 if (arg2 == NULL) SWIG_fail;
32725 temp2 = true;
32726 }
32727 {
32728 PyThreadState* __tstate = wxPyBeginAllowThreads();
32729 (arg1)->SetLabel((wxString const &)*arg2);
32730 wxPyEndAllowThreads(__tstate);
32731 if (PyErr_Occurred()) SWIG_fail;
32732 }
32733 resultobj = SWIG_Py_Void();
32734 {
32735 if (temp2)
32736 delete arg2;
32737 }
32738 return resultobj;
32739 fail:
32740 {
32741 if (temp2)
32742 delete arg2;
32743 }
32744 return NULL;
32745 }
32746
32747
32748 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32749 PyObject *resultobj = 0;
32750 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32751 bool result;
32752 void *argp1 = 0 ;
32753 int res1 = 0 ;
32754 PyObject *swig_obj[1] ;
32755
32756 if (!args) SWIG_fail;
32757 swig_obj[0] = args;
32758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32759 if (!SWIG_IsOK(res1)) {
32760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32761 }
32762 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32763 {
32764 PyThreadState* __tstate = wxPyBeginAllowThreads();
32765 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
32766 wxPyEndAllowThreads(__tstate);
32767 if (PyErr_Occurred()) SWIG_fail;
32768 }
32769 {
32770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32771 }
32772 return resultobj;
32773 fail:
32774 return NULL;
32775 }
32776
32777
32778 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32779 PyObject *resultobj = 0;
32780 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32781 bool arg2 ;
32782 void *argp1 = 0 ;
32783 int res1 = 0 ;
32784 bool val2 ;
32785 int ecode2 = 0 ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 char * kwnames[] = {
32789 (char *) "self",(char *) "editCancelled", NULL
32790 };
32791
32792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
32793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32794 if (!SWIG_IsOK(res1)) {
32795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32796 }
32797 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32798 ecode2 = SWIG_AsVal_bool(obj1, &val2);
32799 if (!SWIG_IsOK(ecode2)) {
32800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
32801 }
32802 arg2 = static_cast< bool >(val2);
32803 {
32804 PyThreadState* __tstate = wxPyBeginAllowThreads();
32805 (arg1)->SetEditCanceled(arg2);
32806 wxPyEndAllowThreads(__tstate);
32807 if (PyErr_Occurred()) SWIG_fail;
32808 }
32809 resultobj = SWIG_Py_Void();
32810 return resultobj;
32811 fail:
32812 return NULL;
32813 }
32814
32815
32816 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32817 PyObject *resultobj = 0;
32818 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32819 wxString *arg2 = 0 ;
32820 void *argp1 = 0 ;
32821 int res1 = 0 ;
32822 bool temp2 = false ;
32823 PyObject * obj0 = 0 ;
32824 PyObject * obj1 = 0 ;
32825 char * kwnames[] = {
32826 (char *) "self",(char *) "toolTip", NULL
32827 };
32828
32829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
32830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32831 if (!SWIG_IsOK(res1)) {
32832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32833 }
32834 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32835 {
32836 arg2 = wxString_in_helper(obj1);
32837 if (arg2 == NULL) SWIG_fail;
32838 temp2 = true;
32839 }
32840 {
32841 PyThreadState* __tstate = wxPyBeginAllowThreads();
32842 (arg1)->SetToolTip((wxString const &)*arg2);
32843 wxPyEndAllowThreads(__tstate);
32844 if (PyErr_Occurred()) SWIG_fail;
32845 }
32846 resultobj = SWIG_Py_Void();
32847 {
32848 if (temp2)
32849 delete arg2;
32850 }
32851 return resultobj;
32852 fail:
32853 {
32854 if (temp2)
32855 delete arg2;
32856 }
32857 return NULL;
32858 }
32859
32860
32861 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32862 PyObject *resultobj = 0;
32863 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32864 wxString result;
32865 void *argp1 = 0 ;
32866 int res1 = 0 ;
32867 PyObject *swig_obj[1] ;
32868
32869 if (!args) SWIG_fail;
32870 swig_obj[0] = args;
32871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32872 if (!SWIG_IsOK(res1)) {
32873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32874 }
32875 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32876 {
32877 PyThreadState* __tstate = wxPyBeginAllowThreads();
32878 result = (arg1)->GetToolTip();
32879 wxPyEndAllowThreads(__tstate);
32880 if (PyErr_Occurred()) SWIG_fail;
32881 }
32882 {
32883 #if wxUSE_UNICODE
32884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32885 #else
32886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32887 #endif
32888 }
32889 return resultobj;
32890 fail:
32891 return NULL;
32892 }
32893
32894
32895 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32896 PyObject *obj;
32897 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32898 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
32899 return SWIG_Py_Void();
32900 }
32901
32902 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32903 return SWIG_Python_InitShadowInstance(args);
32904 }
32905
32906 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32907 PyObject *resultobj = 0;
32908 wxWindow *arg1 = (wxWindow *) 0 ;
32909 int arg2 = (int) -1 ;
32910 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32911 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32912 wxSize const &arg4_defvalue = wxDefaultSize ;
32913 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32914 long arg5 = (long) wxTR_DEFAULT_STYLE ;
32915 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32916 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32917 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
32918 wxString *arg7 = (wxString *) &arg7_defvalue ;
32919 wxPyTreeCtrl *result = 0 ;
32920 void *argp1 = 0 ;
32921 int res1 = 0 ;
32922 int val2 ;
32923 int ecode2 = 0 ;
32924 wxPoint temp3 ;
32925 wxSize temp4 ;
32926 long val5 ;
32927 int ecode5 = 0 ;
32928 void *argp6 = 0 ;
32929 int res6 = 0 ;
32930 bool temp7 = false ;
32931 PyObject * obj0 = 0 ;
32932 PyObject * obj1 = 0 ;
32933 PyObject * obj2 = 0 ;
32934 PyObject * obj3 = 0 ;
32935 PyObject * obj4 = 0 ;
32936 PyObject * obj5 = 0 ;
32937 PyObject * obj6 = 0 ;
32938 char * kwnames[] = {
32939 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32940 };
32941
32942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32944 if (!SWIG_IsOK(res1)) {
32945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
32946 }
32947 arg1 = reinterpret_cast< wxWindow * >(argp1);
32948 if (obj1) {
32949 ecode2 = SWIG_AsVal_int(obj1, &val2);
32950 if (!SWIG_IsOK(ecode2)) {
32951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
32952 }
32953 arg2 = static_cast< int >(val2);
32954 }
32955 if (obj2) {
32956 {
32957 arg3 = &temp3;
32958 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32959 }
32960 }
32961 if (obj3) {
32962 {
32963 arg4 = &temp4;
32964 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32965 }
32966 }
32967 if (obj4) {
32968 ecode5 = SWIG_AsVal_long(obj4, &val5);
32969 if (!SWIG_IsOK(ecode5)) {
32970 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
32971 }
32972 arg5 = static_cast< long >(val5);
32973 }
32974 if (obj5) {
32975 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32976 if (!SWIG_IsOK(res6)) {
32977 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
32978 }
32979 if (!argp6) {
32980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
32981 }
32982 arg6 = reinterpret_cast< wxValidator * >(argp6);
32983 }
32984 if (obj6) {
32985 {
32986 arg7 = wxString_in_helper(obj6);
32987 if (arg7 == NULL) SWIG_fail;
32988 temp7 = true;
32989 }
32990 }
32991 {
32992 if (!wxPyCheckForApp()) SWIG_fail;
32993 PyThreadState* __tstate = wxPyBeginAllowThreads();
32994 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32995 wxPyEndAllowThreads(__tstate);
32996 if (PyErr_Occurred()) SWIG_fail;
32997 }
32998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
32999 {
33000 if (temp7)
33001 delete arg7;
33002 }
33003 return resultobj;
33004 fail:
33005 {
33006 if (temp7)
33007 delete arg7;
33008 }
33009 return NULL;
33010 }
33011
33012
33013 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33014 PyObject *resultobj = 0;
33015 wxPyTreeCtrl *result = 0 ;
33016
33017 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33018 {
33019 if (!wxPyCheckForApp()) SWIG_fail;
33020 PyThreadState* __tstate = wxPyBeginAllowThreads();
33021 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33022 wxPyEndAllowThreads(__tstate);
33023 if (PyErr_Occurred()) SWIG_fail;
33024 }
33025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33026 return resultobj;
33027 fail:
33028 return NULL;
33029 }
33030
33031
33032 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33033 PyObject *resultobj = 0;
33034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33035 wxWindow *arg2 = (wxWindow *) 0 ;
33036 int arg3 = (int) -1 ;
33037 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33038 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33039 wxSize const &arg5_defvalue = wxDefaultSize ;
33040 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33041 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33042 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33043 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33044 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33045 wxString *arg8 = (wxString *) &arg8_defvalue ;
33046 bool result;
33047 void *argp1 = 0 ;
33048 int res1 = 0 ;
33049 void *argp2 = 0 ;
33050 int res2 = 0 ;
33051 int val3 ;
33052 int ecode3 = 0 ;
33053 wxPoint temp4 ;
33054 wxSize temp5 ;
33055 long val6 ;
33056 int ecode6 = 0 ;
33057 void *argp7 = 0 ;
33058 int res7 = 0 ;
33059 bool temp8 = false ;
33060 PyObject * obj0 = 0 ;
33061 PyObject * obj1 = 0 ;
33062 PyObject * obj2 = 0 ;
33063 PyObject * obj3 = 0 ;
33064 PyObject * obj4 = 0 ;
33065 PyObject * obj5 = 0 ;
33066 PyObject * obj6 = 0 ;
33067 PyObject * obj7 = 0 ;
33068 char * kwnames[] = {
33069 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33070 };
33071
33072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33074 if (!SWIG_IsOK(res1)) {
33075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33076 }
33077 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33079 if (!SWIG_IsOK(res2)) {
33080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33081 }
33082 arg2 = reinterpret_cast< wxWindow * >(argp2);
33083 if (obj2) {
33084 ecode3 = SWIG_AsVal_int(obj2, &val3);
33085 if (!SWIG_IsOK(ecode3)) {
33086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33087 }
33088 arg3 = static_cast< int >(val3);
33089 }
33090 if (obj3) {
33091 {
33092 arg4 = &temp4;
33093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33094 }
33095 }
33096 if (obj4) {
33097 {
33098 arg5 = &temp5;
33099 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33100 }
33101 }
33102 if (obj5) {
33103 ecode6 = SWIG_AsVal_long(obj5, &val6);
33104 if (!SWIG_IsOK(ecode6)) {
33105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33106 }
33107 arg6 = static_cast< long >(val6);
33108 }
33109 if (obj6) {
33110 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33111 if (!SWIG_IsOK(res7)) {
33112 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33113 }
33114 if (!argp7) {
33115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33116 }
33117 arg7 = reinterpret_cast< wxValidator * >(argp7);
33118 }
33119 if (obj7) {
33120 {
33121 arg8 = wxString_in_helper(obj7);
33122 if (arg8 == NULL) SWIG_fail;
33123 temp8 = true;
33124 }
33125 }
33126 {
33127 PyThreadState* __tstate = wxPyBeginAllowThreads();
33128 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33129 wxPyEndAllowThreads(__tstate);
33130 if (PyErr_Occurred()) SWIG_fail;
33131 }
33132 {
33133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33134 }
33135 {
33136 if (temp8)
33137 delete arg8;
33138 }
33139 return resultobj;
33140 fail:
33141 {
33142 if (temp8)
33143 delete arg8;
33144 }
33145 return NULL;
33146 }
33147
33148
33149 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33150 PyObject *resultobj = 0;
33151 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33152 PyObject *arg2 = (PyObject *) 0 ;
33153 PyObject *arg3 = (PyObject *) 0 ;
33154 void *argp1 = 0 ;
33155 int res1 = 0 ;
33156 PyObject * obj0 = 0 ;
33157 PyObject * obj1 = 0 ;
33158 PyObject * obj2 = 0 ;
33159 char * kwnames[] = {
33160 (char *) "self",(char *) "self",(char *) "_class", NULL
33161 };
33162
33163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33165 if (!SWIG_IsOK(res1)) {
33166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33167 }
33168 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33169 arg2 = obj1;
33170 arg3 = obj2;
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 (arg1)->_setCallbackInfo(arg2,arg3);
33174 wxPyEndAllowThreads(__tstate);
33175 if (PyErr_Occurred()) SWIG_fail;
33176 }
33177 resultobj = SWIG_Py_Void();
33178 return resultobj;
33179 fail:
33180 return NULL;
33181 }
33182
33183
33184 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33185 PyObject *resultobj = 0;
33186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33187 size_t result;
33188 void *argp1 = 0 ;
33189 int res1 = 0 ;
33190 PyObject *swig_obj[1] ;
33191
33192 if (!args) SWIG_fail;
33193 swig_obj[0] = args;
33194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33195 if (!SWIG_IsOK(res1)) {
33196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33197 }
33198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33199 {
33200 PyThreadState* __tstate = wxPyBeginAllowThreads();
33201 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
33202 wxPyEndAllowThreads(__tstate);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33206 return resultobj;
33207 fail:
33208 return NULL;
33209 }
33210
33211
33212 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33213 PyObject *resultobj = 0;
33214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33215 unsigned int result;
33216 void *argp1 = 0 ;
33217 int res1 = 0 ;
33218 PyObject *swig_obj[1] ;
33219
33220 if (!args) SWIG_fail;
33221 swig_obj[0] = args;
33222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33223 if (!SWIG_IsOK(res1)) {
33224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33225 }
33226 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33227 {
33228 PyThreadState* __tstate = wxPyBeginAllowThreads();
33229 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33230 wxPyEndAllowThreads(__tstate);
33231 if (PyErr_Occurred()) SWIG_fail;
33232 }
33233 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33234 return resultobj;
33235 fail:
33236 return NULL;
33237 }
33238
33239
33240 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33241 PyObject *resultobj = 0;
33242 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33243 unsigned int arg2 ;
33244 void *argp1 = 0 ;
33245 int res1 = 0 ;
33246 unsigned int val2 ;
33247 int ecode2 = 0 ;
33248 PyObject * obj0 = 0 ;
33249 PyObject * obj1 = 0 ;
33250 char * kwnames[] = {
33251 (char *) "self",(char *) "indent", NULL
33252 };
33253
33254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33256 if (!SWIG_IsOK(res1)) {
33257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33258 }
33259 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33260 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33261 if (!SWIG_IsOK(ecode2)) {
33262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33263 }
33264 arg2 = static_cast< unsigned int >(val2);
33265 {
33266 PyThreadState* __tstate = wxPyBeginAllowThreads();
33267 (arg1)->SetIndent(arg2);
33268 wxPyEndAllowThreads(__tstate);
33269 if (PyErr_Occurred()) SWIG_fail;
33270 }
33271 resultobj = SWIG_Py_Void();
33272 return resultobj;
33273 fail:
33274 return NULL;
33275 }
33276
33277
33278 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33279 PyObject *resultobj = 0;
33280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33281 unsigned int result;
33282 void *argp1 = 0 ;
33283 int res1 = 0 ;
33284 PyObject *swig_obj[1] ;
33285
33286 if (!args) SWIG_fail;
33287 swig_obj[0] = args;
33288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33291 }
33292 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33293 {
33294 PyThreadState* __tstate = wxPyBeginAllowThreads();
33295 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33296 wxPyEndAllowThreads(__tstate);
33297 if (PyErr_Occurred()) SWIG_fail;
33298 }
33299 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33300 return resultobj;
33301 fail:
33302 return NULL;
33303 }
33304
33305
33306 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33307 PyObject *resultobj = 0;
33308 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33309 unsigned int arg2 ;
33310 void *argp1 = 0 ;
33311 int res1 = 0 ;
33312 unsigned int val2 ;
33313 int ecode2 = 0 ;
33314 PyObject * obj0 = 0 ;
33315 PyObject * obj1 = 0 ;
33316 char * kwnames[] = {
33317 (char *) "self",(char *) "spacing", NULL
33318 };
33319
33320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33322 if (!SWIG_IsOK(res1)) {
33323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33324 }
33325 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33326 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33327 if (!SWIG_IsOK(ecode2)) {
33328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33329 }
33330 arg2 = static_cast< unsigned int >(val2);
33331 {
33332 PyThreadState* __tstate = wxPyBeginAllowThreads();
33333 (arg1)->SetSpacing(arg2);
33334 wxPyEndAllowThreads(__tstate);
33335 if (PyErr_Occurred()) SWIG_fail;
33336 }
33337 resultobj = SWIG_Py_Void();
33338 return resultobj;
33339 fail:
33340 return NULL;
33341 }
33342
33343
33344 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33345 PyObject *resultobj = 0;
33346 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33347 wxImageList *result = 0 ;
33348 void *argp1 = 0 ;
33349 int res1 = 0 ;
33350 PyObject *swig_obj[1] ;
33351
33352 if (!args) SWIG_fail;
33353 swig_obj[0] = args;
33354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33355 if (!SWIG_IsOK(res1)) {
33356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33357 }
33358 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33359 {
33360 PyThreadState* __tstate = wxPyBeginAllowThreads();
33361 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33362 wxPyEndAllowThreads(__tstate);
33363 if (PyErr_Occurred()) SWIG_fail;
33364 }
33365 {
33366 resultobj = wxPyMake_wxObject(result, (bool)0);
33367 }
33368 return resultobj;
33369 fail:
33370 return NULL;
33371 }
33372
33373
33374 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33375 PyObject *resultobj = 0;
33376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33377 wxImageList *result = 0 ;
33378 void *argp1 = 0 ;
33379 int res1 = 0 ;
33380 PyObject *swig_obj[1] ;
33381
33382 if (!args) SWIG_fail;
33383 swig_obj[0] = args;
33384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33385 if (!SWIG_IsOK(res1)) {
33386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33387 }
33388 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33389 {
33390 PyThreadState* __tstate = wxPyBeginAllowThreads();
33391 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33392 wxPyEndAllowThreads(__tstate);
33393 if (PyErr_Occurred()) SWIG_fail;
33394 }
33395 {
33396 resultobj = wxPyMake_wxObject(result, (bool)0);
33397 }
33398 return resultobj;
33399 fail:
33400 return NULL;
33401 }
33402
33403
33404 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33405 PyObject *resultobj = 0;
33406 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33407 wxImageList *arg2 = (wxImageList *) 0 ;
33408 void *argp1 = 0 ;
33409 int res1 = 0 ;
33410 void *argp2 = 0 ;
33411 int res2 = 0 ;
33412 PyObject * obj0 = 0 ;
33413 PyObject * obj1 = 0 ;
33414 char * kwnames[] = {
33415 (char *) "self",(char *) "imageList", NULL
33416 };
33417
33418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33420 if (!SWIG_IsOK(res1)) {
33421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33422 }
33423 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33424 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33425 if (!SWIG_IsOK(res2)) {
33426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33427 }
33428 arg2 = reinterpret_cast< wxImageList * >(argp2);
33429 {
33430 PyThreadState* __tstate = wxPyBeginAllowThreads();
33431 (arg1)->SetImageList(arg2);
33432 wxPyEndAllowThreads(__tstate);
33433 if (PyErr_Occurred()) SWIG_fail;
33434 }
33435 resultobj = SWIG_Py_Void();
33436 return resultobj;
33437 fail:
33438 return NULL;
33439 }
33440
33441
33442 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33443 PyObject *resultobj = 0;
33444 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33445 wxImageList *arg2 = (wxImageList *) 0 ;
33446 void *argp1 = 0 ;
33447 int res1 = 0 ;
33448 void *argp2 = 0 ;
33449 int res2 = 0 ;
33450 PyObject * obj0 = 0 ;
33451 PyObject * obj1 = 0 ;
33452 char * kwnames[] = {
33453 (char *) "self",(char *) "imageList", NULL
33454 };
33455
33456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33458 if (!SWIG_IsOK(res1)) {
33459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33460 }
33461 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33463 if (!SWIG_IsOK(res2)) {
33464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33465 }
33466 arg2 = reinterpret_cast< wxImageList * >(argp2);
33467 {
33468 PyThreadState* __tstate = wxPyBeginAllowThreads();
33469 (arg1)->SetStateImageList(arg2);
33470 wxPyEndAllowThreads(__tstate);
33471 if (PyErr_Occurred()) SWIG_fail;
33472 }
33473 resultobj = SWIG_Py_Void();
33474 return resultobj;
33475 fail:
33476 return NULL;
33477 }
33478
33479
33480 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33481 PyObject *resultobj = 0;
33482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33483 wxImageList *arg2 = (wxImageList *) 0 ;
33484 void *argp1 = 0 ;
33485 int res1 = 0 ;
33486 int res2 = 0 ;
33487 PyObject * obj0 = 0 ;
33488 PyObject * obj1 = 0 ;
33489 char * kwnames[] = {
33490 (char *) "self",(char *) "imageList", NULL
33491 };
33492
33493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33495 if (!SWIG_IsOK(res1)) {
33496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33497 }
33498 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33499 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33500 if (!SWIG_IsOK(res2)) {
33501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33502 }
33503 {
33504 PyThreadState* __tstate = wxPyBeginAllowThreads();
33505 (arg1)->AssignImageList(arg2);
33506 wxPyEndAllowThreads(__tstate);
33507 if (PyErr_Occurred()) SWIG_fail;
33508 }
33509 resultobj = SWIG_Py_Void();
33510 return resultobj;
33511 fail:
33512 return NULL;
33513 }
33514
33515
33516 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33517 PyObject *resultobj = 0;
33518 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33519 wxImageList *arg2 = (wxImageList *) 0 ;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 int res2 = 0 ;
33523 PyObject * obj0 = 0 ;
33524 PyObject * obj1 = 0 ;
33525 char * kwnames[] = {
33526 (char *) "self",(char *) "imageList", NULL
33527 };
33528
33529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33531 if (!SWIG_IsOK(res1)) {
33532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33533 }
33534 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33535 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33536 if (!SWIG_IsOK(res2)) {
33537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33538 }
33539 {
33540 PyThreadState* __tstate = wxPyBeginAllowThreads();
33541 (arg1)->AssignStateImageList(arg2);
33542 wxPyEndAllowThreads(__tstate);
33543 if (PyErr_Occurred()) SWIG_fail;
33544 }
33545 resultobj = SWIG_Py_Void();
33546 return resultobj;
33547 fail:
33548 return NULL;
33549 }
33550
33551
33552 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33553 PyObject *resultobj = 0;
33554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33555 wxTreeItemId *arg2 = 0 ;
33556 wxString result;
33557 void *argp1 = 0 ;
33558 int res1 = 0 ;
33559 void *argp2 = 0 ;
33560 int res2 = 0 ;
33561 PyObject * obj0 = 0 ;
33562 PyObject * obj1 = 0 ;
33563 char * kwnames[] = {
33564 (char *) "self",(char *) "item", NULL
33565 };
33566
33567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33569 if (!SWIG_IsOK(res1)) {
33570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33571 }
33572 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33573 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33574 if (!SWIG_IsOK(res2)) {
33575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33576 }
33577 if (!argp2) {
33578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33579 }
33580 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33581 {
33582 PyThreadState* __tstate = wxPyBeginAllowThreads();
33583 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33584 wxPyEndAllowThreads(__tstate);
33585 if (PyErr_Occurred()) SWIG_fail;
33586 }
33587 {
33588 #if wxUSE_UNICODE
33589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33590 #else
33591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33592 #endif
33593 }
33594 return resultobj;
33595 fail:
33596 return NULL;
33597 }
33598
33599
33600 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33601 PyObject *resultobj = 0;
33602 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33603 wxTreeItemId *arg2 = 0 ;
33604 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33605 int result;
33606 void *argp1 = 0 ;
33607 int res1 = 0 ;
33608 void *argp2 = 0 ;
33609 int res2 = 0 ;
33610 int val3 ;
33611 int ecode3 = 0 ;
33612 PyObject * obj0 = 0 ;
33613 PyObject * obj1 = 0 ;
33614 PyObject * obj2 = 0 ;
33615 char * kwnames[] = {
33616 (char *) "self",(char *) "item",(char *) "which", NULL
33617 };
33618
33619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) 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_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33623 }
33624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33626 if (!SWIG_IsOK(res2)) {
33627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33628 }
33629 if (!argp2) {
33630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33631 }
33632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33633 if (obj2) {
33634 ecode3 = SWIG_AsVal_int(obj2, &val3);
33635 if (!SWIG_IsOK(ecode3)) {
33636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33637 }
33638 arg3 = static_cast< wxTreeItemIcon >(val3);
33639 }
33640 {
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33643 wxPyEndAllowThreads(__tstate);
33644 if (PyErr_Occurred()) SWIG_fail;
33645 }
33646 resultobj = SWIG_From_int(static_cast< int >(result));
33647 return resultobj;
33648 fail:
33649 return NULL;
33650 }
33651
33652
33653 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33654 PyObject *resultobj = 0;
33655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33656 wxTreeItemId *arg2 = 0 ;
33657 wxPyTreeItemData *result = 0 ;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 void *argp2 = 0 ;
33661 int res2 = 0 ;
33662 PyObject * obj0 = 0 ;
33663 PyObject * obj1 = 0 ;
33664 char * kwnames[] = {
33665 (char *) "self",(char *) "item", NULL
33666 };
33667
33668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33670 if (!SWIG_IsOK(res1)) {
33671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33672 }
33673 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33675 if (!SWIG_IsOK(res2)) {
33676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33677 }
33678 if (!argp2) {
33679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33680 }
33681 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33682 {
33683 PyThreadState* __tstate = wxPyBeginAllowThreads();
33684 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33685 wxPyEndAllowThreads(__tstate);
33686 if (PyErr_Occurred()) SWIG_fail;
33687 }
33688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33689 return resultobj;
33690 fail:
33691 return NULL;
33692 }
33693
33694
33695 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33696 PyObject *resultobj = 0;
33697 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33698 wxTreeItemId *arg2 = 0 ;
33699 PyObject *result = 0 ;
33700 void *argp1 = 0 ;
33701 int res1 = 0 ;
33702 void *argp2 = 0 ;
33703 int res2 = 0 ;
33704 PyObject * obj0 = 0 ;
33705 PyObject * obj1 = 0 ;
33706 char * kwnames[] = {
33707 (char *) "self",(char *) "item", NULL
33708 };
33709
33710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
33711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33712 if (!SWIG_IsOK(res1)) {
33713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33714 }
33715 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33717 if (!SWIG_IsOK(res2)) {
33718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33719 }
33720 if (!argp2) {
33721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33722 }
33723 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33724 {
33725 PyThreadState* __tstate = wxPyBeginAllowThreads();
33726 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
33727 wxPyEndAllowThreads(__tstate);
33728 if (PyErr_Occurred()) SWIG_fail;
33729 }
33730 resultobj = result;
33731 return resultobj;
33732 fail:
33733 return NULL;
33734 }
33735
33736
33737 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33738 PyObject *resultobj = 0;
33739 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33740 wxTreeItemId *arg2 = 0 ;
33741 wxColour result;
33742 void *argp1 = 0 ;
33743 int res1 = 0 ;
33744 void *argp2 = 0 ;
33745 int res2 = 0 ;
33746 PyObject * obj0 = 0 ;
33747 PyObject * obj1 = 0 ;
33748 char * kwnames[] = {
33749 (char *) "self",(char *) "item", NULL
33750 };
33751
33752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
33753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33754 if (!SWIG_IsOK(res1)) {
33755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33756 }
33757 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33759 if (!SWIG_IsOK(res2)) {
33760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33761 }
33762 if (!argp2) {
33763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33764 }
33765 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33766 {
33767 PyThreadState* __tstate = wxPyBeginAllowThreads();
33768 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
33769 wxPyEndAllowThreads(__tstate);
33770 if (PyErr_Occurred()) SWIG_fail;
33771 }
33772 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33773 return resultobj;
33774 fail:
33775 return NULL;
33776 }
33777
33778
33779 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33780 PyObject *resultobj = 0;
33781 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33782 wxTreeItemId *arg2 = 0 ;
33783 wxColour result;
33784 void *argp1 = 0 ;
33785 int res1 = 0 ;
33786 void *argp2 = 0 ;
33787 int res2 = 0 ;
33788 PyObject * obj0 = 0 ;
33789 PyObject * obj1 = 0 ;
33790 char * kwnames[] = {
33791 (char *) "self",(char *) "item", NULL
33792 };
33793
33794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
33795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33796 if (!SWIG_IsOK(res1)) {
33797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33798 }
33799 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33801 if (!SWIG_IsOK(res2)) {
33802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33803 }
33804 if (!argp2) {
33805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33806 }
33807 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33808 {
33809 PyThreadState* __tstate = wxPyBeginAllowThreads();
33810 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
33811 wxPyEndAllowThreads(__tstate);
33812 if (PyErr_Occurred()) SWIG_fail;
33813 }
33814 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33815 return resultobj;
33816 fail:
33817 return NULL;
33818 }
33819
33820
33821 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33822 PyObject *resultobj = 0;
33823 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33824 wxTreeItemId *arg2 = 0 ;
33825 wxFont result;
33826 void *argp1 = 0 ;
33827 int res1 = 0 ;
33828 void *argp2 = 0 ;
33829 int res2 = 0 ;
33830 PyObject * obj0 = 0 ;
33831 PyObject * obj1 = 0 ;
33832 char * kwnames[] = {
33833 (char *) "self",(char *) "item", NULL
33834 };
33835
33836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
33837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33838 if (!SWIG_IsOK(res1)) {
33839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33840 }
33841 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33843 if (!SWIG_IsOK(res2)) {
33844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33845 }
33846 if (!argp2) {
33847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33848 }
33849 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33850 {
33851 PyThreadState* __tstate = wxPyBeginAllowThreads();
33852 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
33853 wxPyEndAllowThreads(__tstate);
33854 if (PyErr_Occurred()) SWIG_fail;
33855 }
33856 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
33857 return resultobj;
33858 fail:
33859 return NULL;
33860 }
33861
33862
33863 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33864 PyObject *resultobj = 0;
33865 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33866 wxTreeItemId *arg2 = 0 ;
33867 wxString *arg3 = 0 ;
33868 void *argp1 = 0 ;
33869 int res1 = 0 ;
33870 void *argp2 = 0 ;
33871 int res2 = 0 ;
33872 bool temp3 = false ;
33873 PyObject * obj0 = 0 ;
33874 PyObject * obj1 = 0 ;
33875 PyObject * obj2 = 0 ;
33876 char * kwnames[] = {
33877 (char *) "self",(char *) "item",(char *) "text", NULL
33878 };
33879
33880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33882 if (!SWIG_IsOK(res1)) {
33883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33884 }
33885 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33887 if (!SWIG_IsOK(res2)) {
33888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33889 }
33890 if (!argp2) {
33891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33892 }
33893 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33894 {
33895 arg3 = wxString_in_helper(obj2);
33896 if (arg3 == NULL) SWIG_fail;
33897 temp3 = true;
33898 }
33899 {
33900 PyThreadState* __tstate = wxPyBeginAllowThreads();
33901 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
33902 wxPyEndAllowThreads(__tstate);
33903 if (PyErr_Occurred()) SWIG_fail;
33904 }
33905 resultobj = SWIG_Py_Void();
33906 {
33907 if (temp3)
33908 delete arg3;
33909 }
33910 return resultobj;
33911 fail:
33912 {
33913 if (temp3)
33914 delete arg3;
33915 }
33916 return NULL;
33917 }
33918
33919
33920 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33921 PyObject *resultobj = 0;
33922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33923 wxTreeItemId *arg2 = 0 ;
33924 int arg3 ;
33925 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33926 void *argp1 = 0 ;
33927 int res1 = 0 ;
33928 void *argp2 = 0 ;
33929 int res2 = 0 ;
33930 int val3 ;
33931 int ecode3 = 0 ;
33932 int val4 ;
33933 int ecode4 = 0 ;
33934 PyObject * obj0 = 0 ;
33935 PyObject * obj1 = 0 ;
33936 PyObject * obj2 = 0 ;
33937 PyObject * obj3 = 0 ;
33938 char * kwnames[] = {
33939 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
33940 };
33941
33942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33944 if (!SWIG_IsOK(res1)) {
33945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33946 }
33947 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33949 if (!SWIG_IsOK(res2)) {
33950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33951 }
33952 if (!argp2) {
33953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33954 }
33955 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33956 ecode3 = SWIG_AsVal_int(obj2, &val3);
33957 if (!SWIG_IsOK(ecode3)) {
33958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
33959 }
33960 arg3 = static_cast< int >(val3);
33961 if (obj3) {
33962 ecode4 = SWIG_AsVal_int(obj3, &val4);
33963 if (!SWIG_IsOK(ecode4)) {
33964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
33965 }
33966 arg4 = static_cast< wxTreeItemIcon >(val4);
33967 }
33968 {
33969 PyThreadState* __tstate = wxPyBeginAllowThreads();
33970 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
33971 wxPyEndAllowThreads(__tstate);
33972 if (PyErr_Occurred()) SWIG_fail;
33973 }
33974 resultobj = SWIG_Py_Void();
33975 return resultobj;
33976 fail:
33977 return NULL;
33978 }
33979
33980
33981 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33982 PyObject *resultobj = 0;
33983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33984 wxTreeItemId *arg2 = 0 ;
33985 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
33986 void *argp1 = 0 ;
33987 int res1 = 0 ;
33988 void *argp2 = 0 ;
33989 int res2 = 0 ;
33990 int res3 = 0 ;
33991 PyObject * obj0 = 0 ;
33992 PyObject * obj1 = 0 ;
33993 PyObject * obj2 = 0 ;
33994 char * kwnames[] = {
33995 (char *) "self",(char *) "item",(char *) "data", NULL
33996 };
33997
33998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34002 }
34003 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34005 if (!SWIG_IsOK(res2)) {
34006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34007 }
34008 if (!argp2) {
34009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34010 }
34011 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34012 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34013 if (!SWIG_IsOK(res3)) {
34014 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34015 }
34016 {
34017 PyThreadState* __tstate = wxPyBeginAllowThreads();
34018 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34019 wxPyEndAllowThreads(__tstate);
34020 if (PyErr_Occurred()) SWIG_fail;
34021 }
34022 resultobj = SWIG_Py_Void();
34023 return resultobj;
34024 fail:
34025 return NULL;
34026 }
34027
34028
34029 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34030 PyObject *resultobj = 0;
34031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34032 wxTreeItemId *arg2 = 0 ;
34033 PyObject *arg3 = (PyObject *) 0 ;
34034 void *argp1 = 0 ;
34035 int res1 = 0 ;
34036 void *argp2 = 0 ;
34037 int res2 = 0 ;
34038 PyObject * obj0 = 0 ;
34039 PyObject * obj1 = 0 ;
34040 PyObject * obj2 = 0 ;
34041 char * kwnames[] = {
34042 (char *) "self",(char *) "item",(char *) "obj", NULL
34043 };
34044
34045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34047 if (!SWIG_IsOK(res1)) {
34048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34049 }
34050 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34052 if (!SWIG_IsOK(res2)) {
34053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34054 }
34055 if (!argp2) {
34056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34057 }
34058 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34059 arg3 = obj2;
34060 {
34061 PyThreadState* __tstate = wxPyBeginAllowThreads();
34062 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34063 wxPyEndAllowThreads(__tstate);
34064 if (PyErr_Occurred()) SWIG_fail;
34065 }
34066 resultobj = SWIG_Py_Void();
34067 return resultobj;
34068 fail:
34069 return NULL;
34070 }
34071
34072
34073 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34074 PyObject *resultobj = 0;
34075 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34076 wxTreeItemId *arg2 = 0 ;
34077 bool arg3 = (bool) true ;
34078 void *argp1 = 0 ;
34079 int res1 = 0 ;
34080 void *argp2 = 0 ;
34081 int res2 = 0 ;
34082 bool val3 ;
34083 int ecode3 = 0 ;
34084 PyObject * obj0 = 0 ;
34085 PyObject * obj1 = 0 ;
34086 PyObject * obj2 = 0 ;
34087 char * kwnames[] = {
34088 (char *) "self",(char *) "item",(char *) "has", NULL
34089 };
34090
34091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34093 if (!SWIG_IsOK(res1)) {
34094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34095 }
34096 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34098 if (!SWIG_IsOK(res2)) {
34099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34100 }
34101 if (!argp2) {
34102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34103 }
34104 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34105 if (obj2) {
34106 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34107 if (!SWIG_IsOK(ecode3)) {
34108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34109 }
34110 arg3 = static_cast< bool >(val3);
34111 }
34112 {
34113 PyThreadState* __tstate = wxPyBeginAllowThreads();
34114 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34115 wxPyEndAllowThreads(__tstate);
34116 if (PyErr_Occurred()) SWIG_fail;
34117 }
34118 resultobj = SWIG_Py_Void();
34119 return resultobj;
34120 fail:
34121 return NULL;
34122 }
34123
34124
34125 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34126 PyObject *resultobj = 0;
34127 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34128 wxTreeItemId *arg2 = 0 ;
34129 bool arg3 = (bool) true ;
34130 void *argp1 = 0 ;
34131 int res1 = 0 ;
34132 void *argp2 = 0 ;
34133 int res2 = 0 ;
34134 bool val3 ;
34135 int ecode3 = 0 ;
34136 PyObject * obj0 = 0 ;
34137 PyObject * obj1 = 0 ;
34138 PyObject * obj2 = 0 ;
34139 char * kwnames[] = {
34140 (char *) "self",(char *) "item",(char *) "bold", NULL
34141 };
34142
34143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) 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_SetItemBold" "', 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_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34152 }
34153 if (!argp2) {
34154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34155 }
34156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34157 if (obj2) {
34158 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34159 if (!SWIG_IsOK(ecode3)) {
34160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34161 }
34162 arg3 = static_cast< bool >(val3);
34163 }
34164 {
34165 PyThreadState* __tstate = wxPyBeginAllowThreads();
34166 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34167 wxPyEndAllowThreads(__tstate);
34168 if (PyErr_Occurred()) SWIG_fail;
34169 }
34170 resultobj = SWIG_Py_Void();
34171 return resultobj;
34172 fail:
34173 return NULL;
34174 }
34175
34176
34177 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34178 PyObject *resultobj = 0;
34179 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34180 wxTreeItemId *arg2 = 0 ;
34181 bool arg3 = (bool) true ;
34182 void *argp1 = 0 ;
34183 int res1 = 0 ;
34184 void *argp2 = 0 ;
34185 int res2 = 0 ;
34186 bool val3 ;
34187 int ecode3 = 0 ;
34188 PyObject * obj0 = 0 ;
34189 PyObject * obj1 = 0 ;
34190 PyObject * obj2 = 0 ;
34191 char * kwnames[] = {
34192 (char *) "self",(char *) "item",(char *) "highlight", NULL
34193 };
34194
34195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34197 if (!SWIG_IsOK(res1)) {
34198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34199 }
34200 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34202 if (!SWIG_IsOK(res2)) {
34203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34204 }
34205 if (!argp2) {
34206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34207 }
34208 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34209 if (obj2) {
34210 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34211 if (!SWIG_IsOK(ecode3)) {
34212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34213 }
34214 arg3 = static_cast< bool >(val3);
34215 }
34216 {
34217 PyThreadState* __tstate = wxPyBeginAllowThreads();
34218 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34219 wxPyEndAllowThreads(__tstate);
34220 if (PyErr_Occurred()) SWIG_fail;
34221 }
34222 resultobj = SWIG_Py_Void();
34223 return resultobj;
34224 fail:
34225 return NULL;
34226 }
34227
34228
34229 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34230 PyObject *resultobj = 0;
34231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34232 wxTreeItemId *arg2 = 0 ;
34233 wxColour *arg3 = 0 ;
34234 void *argp1 = 0 ;
34235 int res1 = 0 ;
34236 void *argp2 = 0 ;
34237 int res2 = 0 ;
34238 wxColour temp3 ;
34239 PyObject * obj0 = 0 ;
34240 PyObject * obj1 = 0 ;
34241 PyObject * obj2 = 0 ;
34242 char * kwnames[] = {
34243 (char *) "self",(char *) "item",(char *) "col", NULL
34244 };
34245
34246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",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_SetItemTextColour" "', 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_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34255 }
34256 if (!argp2) {
34257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34258 }
34259 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34260 {
34261 arg3 = &temp3;
34262 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34263 }
34264 {
34265 PyThreadState* __tstate = wxPyBeginAllowThreads();
34266 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34267 wxPyEndAllowThreads(__tstate);
34268 if (PyErr_Occurred()) SWIG_fail;
34269 }
34270 resultobj = SWIG_Py_Void();
34271 return resultobj;
34272 fail:
34273 return NULL;
34274 }
34275
34276
34277 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34278 PyObject *resultobj = 0;
34279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34280 wxTreeItemId *arg2 = 0 ;
34281 wxColour *arg3 = 0 ;
34282 void *argp1 = 0 ;
34283 int res1 = 0 ;
34284 void *argp2 = 0 ;
34285 int res2 = 0 ;
34286 wxColour temp3 ;
34287 PyObject * obj0 = 0 ;
34288 PyObject * obj1 = 0 ;
34289 PyObject * obj2 = 0 ;
34290 char * kwnames[] = {
34291 (char *) "self",(char *) "item",(char *) "col", NULL
34292 };
34293
34294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34296 if (!SWIG_IsOK(res1)) {
34297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34298 }
34299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34301 if (!SWIG_IsOK(res2)) {
34302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34303 }
34304 if (!argp2) {
34305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34306 }
34307 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34308 {
34309 arg3 = &temp3;
34310 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34311 }
34312 {
34313 PyThreadState* __tstate = wxPyBeginAllowThreads();
34314 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34315 wxPyEndAllowThreads(__tstate);
34316 if (PyErr_Occurred()) SWIG_fail;
34317 }
34318 resultobj = SWIG_Py_Void();
34319 return resultobj;
34320 fail:
34321 return NULL;
34322 }
34323
34324
34325 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34326 PyObject *resultobj = 0;
34327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34328 wxTreeItemId *arg2 = 0 ;
34329 wxFont *arg3 = 0 ;
34330 void *argp1 = 0 ;
34331 int res1 = 0 ;
34332 void *argp2 = 0 ;
34333 int res2 = 0 ;
34334 void *argp3 = 0 ;
34335 int res3 = 0 ;
34336 PyObject * obj0 = 0 ;
34337 PyObject * obj1 = 0 ;
34338 PyObject * obj2 = 0 ;
34339 char * kwnames[] = {
34340 (char *) "self",(char *) "item",(char *) "font", NULL
34341 };
34342
34343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34345 if (!SWIG_IsOK(res1)) {
34346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34347 }
34348 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34349 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34350 if (!SWIG_IsOK(res2)) {
34351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34352 }
34353 if (!argp2) {
34354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34355 }
34356 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34357 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34358 if (!SWIG_IsOK(res3)) {
34359 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34360 }
34361 if (!argp3) {
34362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34363 }
34364 arg3 = reinterpret_cast< wxFont * >(argp3);
34365 {
34366 PyThreadState* __tstate = wxPyBeginAllowThreads();
34367 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*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_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34379 PyObject *resultobj = 0;
34380 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34381 wxTreeItemId *arg2 = 0 ;
34382 bool result;
34383 void *argp1 = 0 ;
34384 int res1 = 0 ;
34385 void *argp2 = 0 ;
34386 int res2 = 0 ;
34387 PyObject * obj0 = 0 ;
34388 PyObject * obj1 = 0 ;
34389 char * kwnames[] = {
34390 (char *) "self",(char *) "item", NULL
34391 };
34392
34393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34395 if (!SWIG_IsOK(res1)) {
34396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34397 }
34398 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34399 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34400 if (!SWIG_IsOK(res2)) {
34401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34402 }
34403 if (!argp2) {
34404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34405 }
34406 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34407 {
34408 PyThreadState* __tstate = wxPyBeginAllowThreads();
34409 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34410 wxPyEndAllowThreads(__tstate);
34411 if (PyErr_Occurred()) SWIG_fail;
34412 }
34413 {
34414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34415 }
34416 return resultobj;
34417 fail:
34418 return NULL;
34419 }
34420
34421
34422 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34423 PyObject *resultobj = 0;
34424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34425 wxTreeItemId *arg2 = 0 ;
34426 bool result;
34427 void *argp1 = 0 ;
34428 int res1 = 0 ;
34429 void *argp2 = 0 ;
34430 int res2 = 0 ;
34431 PyObject * obj0 = 0 ;
34432 PyObject * obj1 = 0 ;
34433 char * kwnames[] = {
34434 (char *) "self",(char *) "item", NULL
34435 };
34436
34437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34439 if (!SWIG_IsOK(res1)) {
34440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34441 }
34442 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34444 if (!SWIG_IsOK(res2)) {
34445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34446 }
34447 if (!argp2) {
34448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34449 }
34450 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34451 {
34452 PyThreadState* __tstate = wxPyBeginAllowThreads();
34453 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34454 wxPyEndAllowThreads(__tstate);
34455 if (PyErr_Occurred()) SWIG_fail;
34456 }
34457 {
34458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34459 }
34460 return resultobj;
34461 fail:
34462 return NULL;
34463 }
34464
34465
34466 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34467 PyObject *resultobj = 0;
34468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34469 wxTreeItemId *arg2 = 0 ;
34470 bool result;
34471 void *argp1 = 0 ;
34472 int res1 = 0 ;
34473 void *argp2 = 0 ;
34474 int res2 = 0 ;
34475 PyObject * obj0 = 0 ;
34476 PyObject * obj1 = 0 ;
34477 char * kwnames[] = {
34478 (char *) "self",(char *) "item", NULL
34479 };
34480
34481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34483 if (!SWIG_IsOK(res1)) {
34484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34485 }
34486 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34488 if (!SWIG_IsOK(res2)) {
34489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34490 }
34491 if (!argp2) {
34492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34493 }
34494 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34495 {
34496 PyThreadState* __tstate = wxPyBeginAllowThreads();
34497 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34498 wxPyEndAllowThreads(__tstate);
34499 if (PyErr_Occurred()) SWIG_fail;
34500 }
34501 {
34502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34503 }
34504 return resultobj;
34505 fail:
34506 return NULL;
34507 }
34508
34509
34510 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34511 PyObject *resultobj = 0;
34512 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34513 wxTreeItemId *arg2 = 0 ;
34514 bool result;
34515 void *argp1 = 0 ;
34516 int res1 = 0 ;
34517 void *argp2 = 0 ;
34518 int res2 = 0 ;
34519 PyObject * obj0 = 0 ;
34520 PyObject * obj1 = 0 ;
34521 char * kwnames[] = {
34522 (char *) "self",(char *) "item", NULL
34523 };
34524
34525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34527 if (!SWIG_IsOK(res1)) {
34528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34529 }
34530 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34532 if (!SWIG_IsOK(res2)) {
34533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34534 }
34535 if (!argp2) {
34536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34537 }
34538 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34539 {
34540 PyThreadState* __tstate = wxPyBeginAllowThreads();
34541 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34542 wxPyEndAllowThreads(__tstate);
34543 if (PyErr_Occurred()) SWIG_fail;
34544 }
34545 {
34546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34547 }
34548 return resultobj;
34549 fail:
34550 return NULL;
34551 }
34552
34553
34554 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34555 PyObject *resultobj = 0;
34556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34557 wxTreeItemId *arg2 = 0 ;
34558 bool result;
34559 void *argp1 = 0 ;
34560 int res1 = 0 ;
34561 void *argp2 = 0 ;
34562 int res2 = 0 ;
34563 PyObject * obj0 = 0 ;
34564 PyObject * obj1 = 0 ;
34565 char * kwnames[] = {
34566 (char *) "self",(char *) "item", NULL
34567 };
34568
34569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34571 if (!SWIG_IsOK(res1)) {
34572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34573 }
34574 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34576 if (!SWIG_IsOK(res2)) {
34577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34578 }
34579 if (!argp2) {
34580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34581 }
34582 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34583 {
34584 PyThreadState* __tstate = wxPyBeginAllowThreads();
34585 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34586 wxPyEndAllowThreads(__tstate);
34587 if (PyErr_Occurred()) SWIG_fail;
34588 }
34589 {
34590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34591 }
34592 return resultobj;
34593 fail:
34594 return NULL;
34595 }
34596
34597
34598 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34599 PyObject *resultobj = 0;
34600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34601 wxTreeItemId *arg2 = 0 ;
34602 bool arg3 = (bool) true ;
34603 size_t result;
34604 void *argp1 = 0 ;
34605 int res1 = 0 ;
34606 void *argp2 = 0 ;
34607 int res2 = 0 ;
34608 bool val3 ;
34609 int ecode3 = 0 ;
34610 PyObject * obj0 = 0 ;
34611 PyObject * obj1 = 0 ;
34612 PyObject * obj2 = 0 ;
34613 char * kwnames[] = {
34614 (char *) "self",(char *) "item",(char *) "recursively", NULL
34615 };
34616
34617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34619 if (!SWIG_IsOK(res1)) {
34620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34621 }
34622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34624 if (!SWIG_IsOK(res2)) {
34625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34626 }
34627 if (!argp2) {
34628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34629 }
34630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34631 if (obj2) {
34632 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34633 if (!SWIG_IsOK(ecode3)) {
34634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34635 }
34636 arg3 = static_cast< bool >(val3);
34637 }
34638 {
34639 PyThreadState* __tstate = wxPyBeginAllowThreads();
34640 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34641 wxPyEndAllowThreads(__tstate);
34642 if (PyErr_Occurred()) SWIG_fail;
34643 }
34644 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34645 return resultobj;
34646 fail:
34647 return NULL;
34648 }
34649
34650
34651 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34652 PyObject *resultobj = 0;
34653 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34654 wxTreeItemId result;
34655 void *argp1 = 0 ;
34656 int res1 = 0 ;
34657 PyObject *swig_obj[1] ;
34658
34659 if (!args) SWIG_fail;
34660 swig_obj[0] = args;
34661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34662 if (!SWIG_IsOK(res1)) {
34663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34664 }
34665 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34666 {
34667 PyThreadState* __tstate = wxPyBeginAllowThreads();
34668 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34669 wxPyEndAllowThreads(__tstate);
34670 if (PyErr_Occurred()) SWIG_fail;
34671 }
34672 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34673 return resultobj;
34674 fail:
34675 return NULL;
34676 }
34677
34678
34679 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34680 PyObject *resultobj = 0;
34681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34682 wxTreeItemId result;
34683 void *argp1 = 0 ;
34684 int res1 = 0 ;
34685 PyObject *swig_obj[1] ;
34686
34687 if (!args) SWIG_fail;
34688 swig_obj[0] = args;
34689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34690 if (!SWIG_IsOK(res1)) {
34691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34692 }
34693 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34694 {
34695 PyThreadState* __tstate = wxPyBeginAllowThreads();
34696 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
34697 wxPyEndAllowThreads(__tstate);
34698 if (PyErr_Occurred()) SWIG_fail;
34699 }
34700 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34701 return resultobj;
34702 fail:
34703 return NULL;
34704 }
34705
34706
34707 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34708 PyObject *resultobj = 0;
34709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34710 PyObject *result = 0 ;
34711 void *argp1 = 0 ;
34712 int res1 = 0 ;
34713 PyObject *swig_obj[1] ;
34714
34715 if (!args) SWIG_fail;
34716 swig_obj[0] = args;
34717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34718 if (!SWIG_IsOK(res1)) {
34719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34720 }
34721 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34722 {
34723 PyThreadState* __tstate = wxPyBeginAllowThreads();
34724 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
34725 wxPyEndAllowThreads(__tstate);
34726 if (PyErr_Occurred()) SWIG_fail;
34727 }
34728 resultobj = result;
34729 return resultobj;
34730 fail:
34731 return NULL;
34732 }
34733
34734
34735 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34736 PyObject *resultobj = 0;
34737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34738 wxTreeItemId *arg2 = 0 ;
34739 wxTreeItemId result;
34740 void *argp1 = 0 ;
34741 int res1 = 0 ;
34742 void *argp2 = 0 ;
34743 int res2 = 0 ;
34744 PyObject * obj0 = 0 ;
34745 PyObject * obj1 = 0 ;
34746 char * kwnames[] = {
34747 (char *) "self",(char *) "item", NULL
34748 };
34749
34750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
34751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34752 if (!SWIG_IsOK(res1)) {
34753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34754 }
34755 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34757 if (!SWIG_IsOK(res2)) {
34758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34759 }
34760 if (!argp2) {
34761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34762 }
34763 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34764 {
34765 PyThreadState* __tstate = wxPyBeginAllowThreads();
34766 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
34767 wxPyEndAllowThreads(__tstate);
34768 if (PyErr_Occurred()) SWIG_fail;
34769 }
34770 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34771 return resultobj;
34772 fail:
34773 return NULL;
34774 }
34775
34776
34777 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34778 PyObject *resultobj = 0;
34779 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34780 wxTreeItemId *arg2 = 0 ;
34781 PyObject *result = 0 ;
34782 void *argp1 = 0 ;
34783 int res1 = 0 ;
34784 void *argp2 = 0 ;
34785 int res2 = 0 ;
34786 PyObject * obj0 = 0 ;
34787 PyObject * obj1 = 0 ;
34788 char * kwnames[] = {
34789 (char *) "self",(char *) "item", NULL
34790 };
34791
34792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
34793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34794 if (!SWIG_IsOK(res1)) {
34795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34796 }
34797 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34799 if (!SWIG_IsOK(res2)) {
34800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34801 }
34802 if (!argp2) {
34803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34804 }
34805 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34806 {
34807 PyThreadState* __tstate = wxPyBeginAllowThreads();
34808 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
34809 wxPyEndAllowThreads(__tstate);
34810 if (PyErr_Occurred()) SWIG_fail;
34811 }
34812 resultobj = result;
34813 return resultobj;
34814 fail:
34815 return NULL;
34816 }
34817
34818
34819 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34820 PyObject *resultobj = 0;
34821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34822 wxTreeItemId *arg2 = 0 ;
34823 void *arg3 = (void *) 0 ;
34824 PyObject *result = 0 ;
34825 void *argp1 = 0 ;
34826 int res1 = 0 ;
34827 void *argp2 = 0 ;
34828 int res2 = 0 ;
34829 int res3 ;
34830 PyObject * obj0 = 0 ;
34831 PyObject * obj1 = 0 ;
34832 PyObject * obj2 = 0 ;
34833 char * kwnames[] = {
34834 (char *) "self",(char *) "item",(char *) "cookie", NULL
34835 };
34836
34837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34839 if (!SWIG_IsOK(res1)) {
34840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34841 }
34842 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34844 if (!SWIG_IsOK(res2)) {
34845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34846 }
34847 if (!argp2) {
34848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34849 }
34850 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34851 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
34852 if (!SWIG_IsOK(res3)) {
34853 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
34854 }
34855 {
34856 PyThreadState* __tstate = wxPyBeginAllowThreads();
34857 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
34858 wxPyEndAllowThreads(__tstate);
34859 if (PyErr_Occurred()) SWIG_fail;
34860 }
34861 resultobj = result;
34862 return resultobj;
34863 fail:
34864 return NULL;
34865 }
34866
34867
34868 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34869 PyObject *resultobj = 0;
34870 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34871 wxTreeItemId *arg2 = 0 ;
34872 wxTreeItemId result;
34873 void *argp1 = 0 ;
34874 int res1 = 0 ;
34875 void *argp2 = 0 ;
34876 int res2 = 0 ;
34877 PyObject * obj0 = 0 ;
34878 PyObject * obj1 = 0 ;
34879 char * kwnames[] = {
34880 (char *) "self",(char *) "item", NULL
34881 };
34882
34883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
34884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34885 if (!SWIG_IsOK(res1)) {
34886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34887 }
34888 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34890 if (!SWIG_IsOK(res2)) {
34891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34892 }
34893 if (!argp2) {
34894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34895 }
34896 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34897 {
34898 PyThreadState* __tstate = wxPyBeginAllowThreads();
34899 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
34900 wxPyEndAllowThreads(__tstate);
34901 if (PyErr_Occurred()) SWIG_fail;
34902 }
34903 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34904 return resultobj;
34905 fail:
34906 return NULL;
34907 }
34908
34909
34910 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34911 PyObject *resultobj = 0;
34912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34913 wxTreeItemId *arg2 = 0 ;
34914 wxTreeItemId result;
34915 void *argp1 = 0 ;
34916 int res1 = 0 ;
34917 void *argp2 = 0 ;
34918 int res2 = 0 ;
34919 PyObject * obj0 = 0 ;
34920 PyObject * obj1 = 0 ;
34921 char * kwnames[] = {
34922 (char *) "self",(char *) "item", NULL
34923 };
34924
34925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
34926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34927 if (!SWIG_IsOK(res1)) {
34928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34929 }
34930 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34932 if (!SWIG_IsOK(res2)) {
34933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34934 }
34935 if (!argp2) {
34936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34937 }
34938 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34939 {
34940 PyThreadState* __tstate = wxPyBeginAllowThreads();
34941 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
34942 wxPyEndAllowThreads(__tstate);
34943 if (PyErr_Occurred()) SWIG_fail;
34944 }
34945 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34946 return resultobj;
34947 fail:
34948 return NULL;
34949 }
34950
34951
34952 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34953 PyObject *resultobj = 0;
34954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34955 wxTreeItemId *arg2 = 0 ;
34956 wxTreeItemId result;
34957 void *argp1 = 0 ;
34958 int res1 = 0 ;
34959 void *argp2 = 0 ;
34960 int res2 = 0 ;
34961 PyObject * obj0 = 0 ;
34962 PyObject * obj1 = 0 ;
34963 char * kwnames[] = {
34964 (char *) "self",(char *) "item", NULL
34965 };
34966
34967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
34968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34969 if (!SWIG_IsOK(res1)) {
34970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34971 }
34972 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34974 if (!SWIG_IsOK(res2)) {
34975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34976 }
34977 if (!argp2) {
34978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34979 }
34980 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34981 {
34982 PyThreadState* __tstate = wxPyBeginAllowThreads();
34983 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
34984 wxPyEndAllowThreads(__tstate);
34985 if (PyErr_Occurred()) SWIG_fail;
34986 }
34987 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34988 return resultobj;
34989 fail:
34990 return NULL;
34991 }
34992
34993
34994 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34995 PyObject *resultobj = 0;
34996 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34997 wxTreeItemId result;
34998 void *argp1 = 0 ;
34999 int res1 = 0 ;
35000 PyObject *swig_obj[1] ;
35001
35002 if (!args) SWIG_fail;
35003 swig_obj[0] = args;
35004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35005 if (!SWIG_IsOK(res1)) {
35006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35007 }
35008 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35009 {
35010 PyThreadState* __tstate = wxPyBeginAllowThreads();
35011 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35012 wxPyEndAllowThreads(__tstate);
35013 if (PyErr_Occurred()) SWIG_fail;
35014 }
35015 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35016 return resultobj;
35017 fail:
35018 return NULL;
35019 }
35020
35021
35022 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35023 PyObject *resultobj = 0;
35024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35025 wxTreeItemId *arg2 = 0 ;
35026 wxTreeItemId result;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 void *argp2 = 0 ;
35030 int res2 = 0 ;
35031 PyObject * obj0 = 0 ;
35032 PyObject * obj1 = 0 ;
35033 char * kwnames[] = {
35034 (char *) "self",(char *) "item", NULL
35035 };
35036
35037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35039 if (!SWIG_IsOK(res1)) {
35040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35041 }
35042 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35044 if (!SWIG_IsOK(res2)) {
35045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35046 }
35047 if (!argp2) {
35048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35049 }
35050 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35051 {
35052 PyThreadState* __tstate = wxPyBeginAllowThreads();
35053 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35054 wxPyEndAllowThreads(__tstate);
35055 if (PyErr_Occurred()) SWIG_fail;
35056 }
35057 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35058 return resultobj;
35059 fail:
35060 return NULL;
35061 }
35062
35063
35064 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35065 PyObject *resultobj = 0;
35066 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35067 wxTreeItemId *arg2 = 0 ;
35068 wxTreeItemId result;
35069 void *argp1 = 0 ;
35070 int res1 = 0 ;
35071 void *argp2 = 0 ;
35072 int res2 = 0 ;
35073 PyObject * obj0 = 0 ;
35074 PyObject * obj1 = 0 ;
35075 char * kwnames[] = {
35076 (char *) "self",(char *) "item", NULL
35077 };
35078
35079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35081 if (!SWIG_IsOK(res1)) {
35082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35083 }
35084 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35086 if (!SWIG_IsOK(res2)) {
35087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35088 }
35089 if (!argp2) {
35090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35091 }
35092 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35093 {
35094 PyThreadState* __tstate = wxPyBeginAllowThreads();
35095 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35096 wxPyEndAllowThreads(__tstate);
35097 if (PyErr_Occurred()) SWIG_fail;
35098 }
35099 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35100 return resultobj;
35101 fail:
35102 return NULL;
35103 }
35104
35105
35106 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35107 PyObject *resultobj = 0;
35108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35109 wxString *arg2 = 0 ;
35110 int arg3 = (int) -1 ;
35111 int arg4 = (int) -1 ;
35112 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35113 wxTreeItemId result;
35114 void *argp1 = 0 ;
35115 int res1 = 0 ;
35116 bool temp2 = false ;
35117 int val3 ;
35118 int ecode3 = 0 ;
35119 int val4 ;
35120 int ecode4 = 0 ;
35121 int res5 = 0 ;
35122 PyObject * obj0 = 0 ;
35123 PyObject * obj1 = 0 ;
35124 PyObject * obj2 = 0 ;
35125 PyObject * obj3 = 0 ;
35126 PyObject * obj4 = 0 ;
35127 char * kwnames[] = {
35128 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35129 };
35130
35131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35133 if (!SWIG_IsOK(res1)) {
35134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35135 }
35136 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35137 {
35138 arg2 = wxString_in_helper(obj1);
35139 if (arg2 == NULL) SWIG_fail;
35140 temp2 = true;
35141 }
35142 if (obj2) {
35143 ecode3 = SWIG_AsVal_int(obj2, &val3);
35144 if (!SWIG_IsOK(ecode3)) {
35145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35146 }
35147 arg3 = static_cast< int >(val3);
35148 }
35149 if (obj3) {
35150 ecode4 = SWIG_AsVal_int(obj3, &val4);
35151 if (!SWIG_IsOK(ecode4)) {
35152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35153 }
35154 arg4 = static_cast< int >(val4);
35155 }
35156 if (obj4) {
35157 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35158 if (!SWIG_IsOK(res5)) {
35159 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35160 }
35161 }
35162 {
35163 PyThreadState* __tstate = wxPyBeginAllowThreads();
35164 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35165 wxPyEndAllowThreads(__tstate);
35166 if (PyErr_Occurred()) SWIG_fail;
35167 }
35168 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35169 {
35170 if (temp2)
35171 delete arg2;
35172 }
35173 return resultobj;
35174 fail:
35175 {
35176 if (temp2)
35177 delete arg2;
35178 }
35179 return NULL;
35180 }
35181
35182
35183 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35184 PyObject *resultobj = 0;
35185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35186 wxTreeItemId *arg2 = 0 ;
35187 wxString *arg3 = 0 ;
35188 int arg4 = (int) -1 ;
35189 int arg5 = (int) -1 ;
35190 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35191 wxTreeItemId result;
35192 void *argp1 = 0 ;
35193 int res1 = 0 ;
35194 void *argp2 = 0 ;
35195 int res2 = 0 ;
35196 bool temp3 = false ;
35197 int val4 ;
35198 int ecode4 = 0 ;
35199 int val5 ;
35200 int ecode5 = 0 ;
35201 int res6 = 0 ;
35202 PyObject * obj0 = 0 ;
35203 PyObject * obj1 = 0 ;
35204 PyObject * obj2 = 0 ;
35205 PyObject * obj3 = 0 ;
35206 PyObject * obj4 = 0 ;
35207 PyObject * obj5 = 0 ;
35208 char * kwnames[] = {
35209 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35210 };
35211
35212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35214 if (!SWIG_IsOK(res1)) {
35215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35216 }
35217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35219 if (!SWIG_IsOK(res2)) {
35220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35221 }
35222 if (!argp2) {
35223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35224 }
35225 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35226 {
35227 arg3 = wxString_in_helper(obj2);
35228 if (arg3 == NULL) SWIG_fail;
35229 temp3 = true;
35230 }
35231 if (obj3) {
35232 ecode4 = SWIG_AsVal_int(obj3, &val4);
35233 if (!SWIG_IsOK(ecode4)) {
35234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35235 }
35236 arg4 = static_cast< int >(val4);
35237 }
35238 if (obj4) {
35239 ecode5 = SWIG_AsVal_int(obj4, &val5);
35240 if (!SWIG_IsOK(ecode5)) {
35241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35242 }
35243 arg5 = static_cast< int >(val5);
35244 }
35245 if (obj5) {
35246 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35247 if (!SWIG_IsOK(res6)) {
35248 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35249 }
35250 }
35251 {
35252 PyThreadState* __tstate = wxPyBeginAllowThreads();
35253 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35254 wxPyEndAllowThreads(__tstate);
35255 if (PyErr_Occurred()) SWIG_fail;
35256 }
35257 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35258 {
35259 if (temp3)
35260 delete arg3;
35261 }
35262 return resultobj;
35263 fail:
35264 {
35265 if (temp3)
35266 delete arg3;
35267 }
35268 return NULL;
35269 }
35270
35271
35272 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35273 PyObject *resultobj = 0;
35274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35275 wxTreeItemId *arg2 = 0 ;
35276 wxTreeItemId *arg3 = 0 ;
35277 wxString *arg4 = 0 ;
35278 int arg5 = (int) -1 ;
35279 int arg6 = (int) -1 ;
35280 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35281 wxTreeItemId result;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 void *argp2 = 0 ;
35285 int res2 = 0 ;
35286 void *argp3 = 0 ;
35287 int res3 = 0 ;
35288 bool temp4 = false ;
35289 int val5 ;
35290 int ecode5 = 0 ;
35291 int val6 ;
35292 int ecode6 = 0 ;
35293 int res7 = 0 ;
35294 PyObject * obj0 = 0 ;
35295 PyObject * obj1 = 0 ;
35296 PyObject * obj2 = 0 ;
35297 PyObject * obj3 = 0 ;
35298 PyObject * obj4 = 0 ;
35299 PyObject * obj5 = 0 ;
35300 PyObject * obj6 = 0 ;
35301 char * kwnames[] = {
35302 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35303 };
35304
35305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35307 if (!SWIG_IsOK(res1)) {
35308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35309 }
35310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35312 if (!SWIG_IsOK(res2)) {
35313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35314 }
35315 if (!argp2) {
35316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35317 }
35318 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35319 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35320 if (!SWIG_IsOK(res3)) {
35321 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35322 }
35323 if (!argp3) {
35324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35325 }
35326 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35327 {
35328 arg4 = wxString_in_helper(obj3);
35329 if (arg4 == NULL) SWIG_fail;
35330 temp4 = true;
35331 }
35332 if (obj4) {
35333 ecode5 = SWIG_AsVal_int(obj4, &val5);
35334 if (!SWIG_IsOK(ecode5)) {
35335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35336 }
35337 arg5 = static_cast< int >(val5);
35338 }
35339 if (obj5) {
35340 ecode6 = SWIG_AsVal_int(obj5, &val6);
35341 if (!SWIG_IsOK(ecode6)) {
35342 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35343 }
35344 arg6 = static_cast< int >(val6);
35345 }
35346 if (obj6) {
35347 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35348 if (!SWIG_IsOK(res7)) {
35349 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35350 }
35351 }
35352 {
35353 PyThreadState* __tstate = wxPyBeginAllowThreads();
35354 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35355 wxPyEndAllowThreads(__tstate);
35356 if (PyErr_Occurred()) SWIG_fail;
35357 }
35358 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35359 {
35360 if (temp4)
35361 delete arg4;
35362 }
35363 return resultobj;
35364 fail:
35365 {
35366 if (temp4)
35367 delete arg4;
35368 }
35369 return NULL;
35370 }
35371
35372
35373 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj = 0;
35375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35376 wxTreeItemId *arg2 = 0 ;
35377 size_t arg3 ;
35378 wxString *arg4 = 0 ;
35379 int arg5 = (int) -1 ;
35380 int arg6 = (int) -1 ;
35381 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35382 wxTreeItemId result;
35383 void *argp1 = 0 ;
35384 int res1 = 0 ;
35385 void *argp2 = 0 ;
35386 int res2 = 0 ;
35387 size_t val3 ;
35388 int ecode3 = 0 ;
35389 bool temp4 = false ;
35390 int val5 ;
35391 int ecode5 = 0 ;
35392 int val6 ;
35393 int ecode6 = 0 ;
35394 int res7 = 0 ;
35395 PyObject * obj0 = 0 ;
35396 PyObject * obj1 = 0 ;
35397 PyObject * obj2 = 0 ;
35398 PyObject * obj3 = 0 ;
35399 PyObject * obj4 = 0 ;
35400 PyObject * obj5 = 0 ;
35401 PyObject * obj6 = 0 ;
35402 char * kwnames[] = {
35403 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35404 };
35405
35406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35408 if (!SWIG_IsOK(res1)) {
35409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35410 }
35411 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35413 if (!SWIG_IsOK(res2)) {
35414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35415 }
35416 if (!argp2) {
35417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35418 }
35419 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35420 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35421 if (!SWIG_IsOK(ecode3)) {
35422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35423 }
35424 arg3 = static_cast< size_t >(val3);
35425 {
35426 arg4 = wxString_in_helper(obj3);
35427 if (arg4 == NULL) SWIG_fail;
35428 temp4 = true;
35429 }
35430 if (obj4) {
35431 ecode5 = SWIG_AsVal_int(obj4, &val5);
35432 if (!SWIG_IsOK(ecode5)) {
35433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35434 }
35435 arg5 = static_cast< int >(val5);
35436 }
35437 if (obj5) {
35438 ecode6 = SWIG_AsVal_int(obj5, &val6);
35439 if (!SWIG_IsOK(ecode6)) {
35440 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35441 }
35442 arg6 = static_cast< int >(val6);
35443 }
35444 if (obj6) {
35445 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35446 if (!SWIG_IsOK(res7)) {
35447 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35448 }
35449 }
35450 {
35451 PyThreadState* __tstate = wxPyBeginAllowThreads();
35452 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35453 wxPyEndAllowThreads(__tstate);
35454 if (PyErr_Occurred()) SWIG_fail;
35455 }
35456 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35457 {
35458 if (temp4)
35459 delete arg4;
35460 }
35461 return resultobj;
35462 fail:
35463 {
35464 if (temp4)
35465 delete arg4;
35466 }
35467 return NULL;
35468 }
35469
35470
35471 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35472 PyObject *resultobj = 0;
35473 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35474 wxTreeItemId *arg2 = 0 ;
35475 wxString *arg3 = 0 ;
35476 int arg4 = (int) -1 ;
35477 int arg5 = (int) -1 ;
35478 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35479 wxTreeItemId result;
35480 void *argp1 = 0 ;
35481 int res1 = 0 ;
35482 void *argp2 = 0 ;
35483 int res2 = 0 ;
35484 bool temp3 = false ;
35485 int val4 ;
35486 int ecode4 = 0 ;
35487 int val5 ;
35488 int ecode5 = 0 ;
35489 int res6 = 0 ;
35490 PyObject * obj0 = 0 ;
35491 PyObject * obj1 = 0 ;
35492 PyObject * obj2 = 0 ;
35493 PyObject * obj3 = 0 ;
35494 PyObject * obj4 = 0 ;
35495 PyObject * obj5 = 0 ;
35496 char * kwnames[] = {
35497 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35498 };
35499
35500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35502 if (!SWIG_IsOK(res1)) {
35503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35504 }
35505 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35507 if (!SWIG_IsOK(res2)) {
35508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35509 }
35510 if (!argp2) {
35511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35512 }
35513 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35514 {
35515 arg3 = wxString_in_helper(obj2);
35516 if (arg3 == NULL) SWIG_fail;
35517 temp3 = true;
35518 }
35519 if (obj3) {
35520 ecode4 = SWIG_AsVal_int(obj3, &val4);
35521 if (!SWIG_IsOK(ecode4)) {
35522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35523 }
35524 arg4 = static_cast< int >(val4);
35525 }
35526 if (obj4) {
35527 ecode5 = SWIG_AsVal_int(obj4, &val5);
35528 if (!SWIG_IsOK(ecode5)) {
35529 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35530 }
35531 arg5 = static_cast< int >(val5);
35532 }
35533 if (obj5) {
35534 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35535 if (!SWIG_IsOK(res6)) {
35536 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35537 }
35538 }
35539 {
35540 PyThreadState* __tstate = wxPyBeginAllowThreads();
35541 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35542 wxPyEndAllowThreads(__tstate);
35543 if (PyErr_Occurred()) SWIG_fail;
35544 }
35545 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35546 {
35547 if (temp3)
35548 delete arg3;
35549 }
35550 return resultobj;
35551 fail:
35552 {
35553 if (temp3)
35554 delete arg3;
35555 }
35556 return NULL;
35557 }
35558
35559
35560 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35561 PyObject *resultobj = 0;
35562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35563 wxTreeItemId *arg2 = 0 ;
35564 void *argp1 = 0 ;
35565 int res1 = 0 ;
35566 void *argp2 = 0 ;
35567 int res2 = 0 ;
35568 PyObject * obj0 = 0 ;
35569 PyObject * obj1 = 0 ;
35570 char * kwnames[] = {
35571 (char *) "self",(char *) "item", NULL
35572 };
35573
35574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35576 if (!SWIG_IsOK(res1)) {
35577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35578 }
35579 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35581 if (!SWIG_IsOK(res2)) {
35582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35583 }
35584 if (!argp2) {
35585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35586 }
35587 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35588 {
35589 PyThreadState* __tstate = wxPyBeginAllowThreads();
35590 (arg1)->Delete((wxTreeItemId const &)*arg2);
35591 wxPyEndAllowThreads(__tstate);
35592 if (PyErr_Occurred()) SWIG_fail;
35593 }
35594 resultobj = SWIG_Py_Void();
35595 return resultobj;
35596 fail:
35597 return NULL;
35598 }
35599
35600
35601 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35602 PyObject *resultobj = 0;
35603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35604 wxTreeItemId *arg2 = 0 ;
35605 void *argp1 = 0 ;
35606 int res1 = 0 ;
35607 void *argp2 = 0 ;
35608 int res2 = 0 ;
35609 PyObject * obj0 = 0 ;
35610 PyObject * obj1 = 0 ;
35611 char * kwnames[] = {
35612 (char *) "self",(char *) "item", NULL
35613 };
35614
35615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35617 if (!SWIG_IsOK(res1)) {
35618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35619 }
35620 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35622 if (!SWIG_IsOK(res2)) {
35623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35624 }
35625 if (!argp2) {
35626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35627 }
35628 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35629 {
35630 PyThreadState* __tstate = wxPyBeginAllowThreads();
35631 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
35635 resultobj = SWIG_Py_Void();
35636 return resultobj;
35637 fail:
35638 return NULL;
35639 }
35640
35641
35642 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35643 PyObject *resultobj = 0;
35644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35645 void *argp1 = 0 ;
35646 int res1 = 0 ;
35647 PyObject *swig_obj[1] ;
35648
35649 if (!args) SWIG_fail;
35650 swig_obj[0] = args;
35651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35652 if (!SWIG_IsOK(res1)) {
35653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35654 }
35655 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35656 {
35657 PyThreadState* __tstate = wxPyBeginAllowThreads();
35658 (arg1)->DeleteAllItems();
35659 wxPyEndAllowThreads(__tstate);
35660 if (PyErr_Occurred()) SWIG_fail;
35661 }
35662 resultobj = SWIG_Py_Void();
35663 return resultobj;
35664 fail:
35665 return NULL;
35666 }
35667
35668
35669 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35670 PyObject *resultobj = 0;
35671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35672 wxTreeItemId *arg2 = 0 ;
35673 void *argp1 = 0 ;
35674 int res1 = 0 ;
35675 void *argp2 = 0 ;
35676 int res2 = 0 ;
35677 PyObject * obj0 = 0 ;
35678 PyObject * obj1 = 0 ;
35679 char * kwnames[] = {
35680 (char *) "self",(char *) "item", NULL
35681 };
35682
35683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35685 if (!SWIG_IsOK(res1)) {
35686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35687 }
35688 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35690 if (!SWIG_IsOK(res2)) {
35691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35692 }
35693 if (!argp2) {
35694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35695 }
35696 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35697 {
35698 PyThreadState* __tstate = wxPyBeginAllowThreads();
35699 (arg1)->Expand((wxTreeItemId const &)*arg2);
35700 wxPyEndAllowThreads(__tstate);
35701 if (PyErr_Occurred()) SWIG_fail;
35702 }
35703 resultobj = SWIG_Py_Void();
35704 return resultobj;
35705 fail:
35706 return NULL;
35707 }
35708
35709
35710 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35711 PyObject *resultobj = 0;
35712 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35713 wxTreeItemId *arg2 = 0 ;
35714 void *argp1 = 0 ;
35715 int res1 = 0 ;
35716 void *argp2 = 0 ;
35717 int res2 = 0 ;
35718 PyObject * obj0 = 0 ;
35719 PyObject * obj1 = 0 ;
35720 char * kwnames[] = {
35721 (char *) "self",(char *) "item", NULL
35722 };
35723
35724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
35725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35726 if (!SWIG_IsOK(res1)) {
35727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35728 }
35729 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35731 if (!SWIG_IsOK(res2)) {
35732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35733 }
35734 if (!argp2) {
35735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35736 }
35737 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35738 {
35739 PyThreadState* __tstate = wxPyBeginAllowThreads();
35740 (arg1)->Collapse((wxTreeItemId const &)*arg2);
35741 wxPyEndAllowThreads(__tstate);
35742 if (PyErr_Occurred()) SWIG_fail;
35743 }
35744 resultobj = SWIG_Py_Void();
35745 return resultobj;
35746 fail:
35747 return NULL;
35748 }
35749
35750
35751 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35752 PyObject *resultobj = 0;
35753 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35754 wxTreeItemId *arg2 = 0 ;
35755 void *argp1 = 0 ;
35756 int res1 = 0 ;
35757 void *argp2 = 0 ;
35758 int res2 = 0 ;
35759 PyObject * obj0 = 0 ;
35760 PyObject * obj1 = 0 ;
35761 char * kwnames[] = {
35762 (char *) "self",(char *) "item", NULL
35763 };
35764
35765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
35766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35767 if (!SWIG_IsOK(res1)) {
35768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35769 }
35770 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35771 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35772 if (!SWIG_IsOK(res2)) {
35773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35774 }
35775 if (!argp2) {
35776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35777 }
35778 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35779 {
35780 PyThreadState* __tstate = wxPyBeginAllowThreads();
35781 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
35782 wxPyEndAllowThreads(__tstate);
35783 if (PyErr_Occurred()) SWIG_fail;
35784 }
35785 resultobj = SWIG_Py_Void();
35786 return resultobj;
35787 fail:
35788 return NULL;
35789 }
35790
35791
35792 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35793 PyObject *resultobj = 0;
35794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35795 wxTreeItemId *arg2 = 0 ;
35796 void *argp1 = 0 ;
35797 int res1 = 0 ;
35798 void *argp2 = 0 ;
35799 int res2 = 0 ;
35800 PyObject * obj0 = 0 ;
35801 PyObject * obj1 = 0 ;
35802 char * kwnames[] = {
35803 (char *) "self",(char *) "item", NULL
35804 };
35805
35806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
35807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35808 if (!SWIG_IsOK(res1)) {
35809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35810 }
35811 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35813 if (!SWIG_IsOK(res2)) {
35814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35815 }
35816 if (!argp2) {
35817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35818 }
35819 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35820 {
35821 PyThreadState* __tstate = wxPyBeginAllowThreads();
35822 (arg1)->Toggle((wxTreeItemId const &)*arg2);
35823 wxPyEndAllowThreads(__tstate);
35824 if (PyErr_Occurred()) SWIG_fail;
35825 }
35826 resultobj = SWIG_Py_Void();
35827 return resultobj;
35828 fail:
35829 return NULL;
35830 }
35831
35832
35833 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35834 PyObject *resultobj = 0;
35835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35836 void *argp1 = 0 ;
35837 int res1 = 0 ;
35838 PyObject *swig_obj[1] ;
35839
35840 if (!args) SWIG_fail;
35841 swig_obj[0] = args;
35842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35843 if (!SWIG_IsOK(res1)) {
35844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35845 }
35846 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35847 {
35848 PyThreadState* __tstate = wxPyBeginAllowThreads();
35849 (arg1)->Unselect();
35850 wxPyEndAllowThreads(__tstate);
35851 if (PyErr_Occurred()) SWIG_fail;
35852 }
35853 resultobj = SWIG_Py_Void();
35854 return resultobj;
35855 fail:
35856 return NULL;
35857 }
35858
35859
35860 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35861 PyObject *resultobj = 0;
35862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35863 wxTreeItemId *arg2 = 0 ;
35864 void *argp1 = 0 ;
35865 int res1 = 0 ;
35866 void *argp2 = 0 ;
35867 int res2 = 0 ;
35868 PyObject * obj0 = 0 ;
35869 PyObject * obj1 = 0 ;
35870 char * kwnames[] = {
35871 (char *) "self",(char *) "item", NULL
35872 };
35873
35874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
35875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35876 if (!SWIG_IsOK(res1)) {
35877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35878 }
35879 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35881 if (!SWIG_IsOK(res2)) {
35882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35883 }
35884 if (!argp2) {
35885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35886 }
35887 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35888 {
35889 PyThreadState* __tstate = wxPyBeginAllowThreads();
35890 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
35891 wxPyEndAllowThreads(__tstate);
35892 if (PyErr_Occurred()) SWIG_fail;
35893 }
35894 resultobj = SWIG_Py_Void();
35895 return resultobj;
35896 fail:
35897 return NULL;
35898 }
35899
35900
35901 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35902 PyObject *resultobj = 0;
35903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35904 void *argp1 = 0 ;
35905 int res1 = 0 ;
35906 PyObject *swig_obj[1] ;
35907
35908 if (!args) SWIG_fail;
35909 swig_obj[0] = args;
35910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35911 if (!SWIG_IsOK(res1)) {
35912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35913 }
35914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35915 {
35916 PyThreadState* __tstate = wxPyBeginAllowThreads();
35917 (arg1)->UnselectAll();
35918 wxPyEndAllowThreads(__tstate);
35919 if (PyErr_Occurred()) SWIG_fail;
35920 }
35921 resultobj = SWIG_Py_Void();
35922 return resultobj;
35923 fail:
35924 return NULL;
35925 }
35926
35927
35928 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35929 PyObject *resultobj = 0;
35930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35931 wxTreeItemId *arg2 = 0 ;
35932 bool arg3 = (bool) true ;
35933 void *argp1 = 0 ;
35934 int res1 = 0 ;
35935 void *argp2 = 0 ;
35936 int res2 = 0 ;
35937 bool val3 ;
35938 int ecode3 = 0 ;
35939 PyObject * obj0 = 0 ;
35940 PyObject * obj1 = 0 ;
35941 PyObject * obj2 = 0 ;
35942 char * kwnames[] = {
35943 (char *) "self",(char *) "item",(char *) "select", NULL
35944 };
35945
35946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35948 if (!SWIG_IsOK(res1)) {
35949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35950 }
35951 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35953 if (!SWIG_IsOK(res2)) {
35954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35955 }
35956 if (!argp2) {
35957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35958 }
35959 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35960 if (obj2) {
35961 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35962 if (!SWIG_IsOK(ecode3)) {
35963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
35964 }
35965 arg3 = static_cast< bool >(val3);
35966 }
35967 {
35968 PyThreadState* __tstate = wxPyBeginAllowThreads();
35969 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
35970 wxPyEndAllowThreads(__tstate);
35971 if (PyErr_Occurred()) SWIG_fail;
35972 }
35973 resultobj = SWIG_Py_Void();
35974 return resultobj;
35975 fail:
35976 return NULL;
35977 }
35978
35979
35980 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35981 PyObject *resultobj = 0;
35982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35983 wxTreeItemId *arg2 = 0 ;
35984 void *argp1 = 0 ;
35985 int res1 = 0 ;
35986 void *argp2 = 0 ;
35987 int res2 = 0 ;
35988 PyObject * obj0 = 0 ;
35989 PyObject * obj1 = 0 ;
35990 char * kwnames[] = {
35991 (char *) "self",(char *) "item", NULL
35992 };
35993
35994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
35995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35996 if (!SWIG_IsOK(res1)) {
35997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35998 }
35999 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36001 if (!SWIG_IsOK(res2)) {
36002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36003 }
36004 if (!argp2) {
36005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36006 }
36007 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36008 {
36009 PyThreadState* __tstate = wxPyBeginAllowThreads();
36010 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36011 wxPyEndAllowThreads(__tstate);
36012 if (PyErr_Occurred()) SWIG_fail;
36013 }
36014 resultobj = SWIG_Py_Void();
36015 return resultobj;
36016 fail:
36017 return NULL;
36018 }
36019
36020
36021 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36022 PyObject *resultobj = 0;
36023 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36024 wxTreeItemId *arg2 = 0 ;
36025 void *argp1 = 0 ;
36026 int res1 = 0 ;
36027 void *argp2 = 0 ;
36028 int res2 = 0 ;
36029 PyObject * obj0 = 0 ;
36030 PyObject * obj1 = 0 ;
36031 char * kwnames[] = {
36032 (char *) "self",(char *) "item", NULL
36033 };
36034
36035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36037 if (!SWIG_IsOK(res1)) {
36038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36039 }
36040 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36042 if (!SWIG_IsOK(res2)) {
36043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36044 }
36045 if (!argp2) {
36046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36047 }
36048 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36049 {
36050 PyThreadState* __tstate = wxPyBeginAllowThreads();
36051 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36052 wxPyEndAllowThreads(__tstate);
36053 if (PyErr_Occurred()) SWIG_fail;
36054 }
36055 resultobj = SWIG_Py_Void();
36056 return resultobj;
36057 fail:
36058 return NULL;
36059 }
36060
36061
36062 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36063 PyObject *resultobj = 0;
36064 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36065 wxTreeItemId *arg2 = 0 ;
36066 void *argp1 = 0 ;
36067 int res1 = 0 ;
36068 void *argp2 = 0 ;
36069 int res2 = 0 ;
36070 PyObject * obj0 = 0 ;
36071 PyObject * obj1 = 0 ;
36072 char * kwnames[] = {
36073 (char *) "self",(char *) "item", NULL
36074 };
36075
36076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36078 if (!SWIG_IsOK(res1)) {
36079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36080 }
36081 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36083 if (!SWIG_IsOK(res2)) {
36084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36085 }
36086 if (!argp2) {
36087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36088 }
36089 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36090 {
36091 PyThreadState* __tstate = wxPyBeginAllowThreads();
36092 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36093 wxPyEndAllowThreads(__tstate);
36094 if (PyErr_Occurred()) SWIG_fail;
36095 }
36096 resultobj = SWIG_Py_Void();
36097 return resultobj;
36098 fail:
36099 return NULL;
36100 }
36101
36102
36103 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36104 PyObject *resultobj = 0;
36105 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36106 wxTreeItemId *arg2 = 0 ;
36107 void *argp1 = 0 ;
36108 int res1 = 0 ;
36109 void *argp2 = 0 ;
36110 int res2 = 0 ;
36111 PyObject * obj0 = 0 ;
36112 PyObject * obj1 = 0 ;
36113 char * kwnames[] = {
36114 (char *) "self",(char *) "item", NULL
36115 };
36116
36117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36119 if (!SWIG_IsOK(res1)) {
36120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36121 }
36122 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36123 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36124 if (!SWIG_IsOK(res2)) {
36125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36126 }
36127 if (!argp2) {
36128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36129 }
36130 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36131 {
36132 PyThreadState* __tstate = wxPyBeginAllowThreads();
36133 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36134 wxPyEndAllowThreads(__tstate);
36135 if (PyErr_Occurred()) SWIG_fail;
36136 }
36137 resultobj = SWIG_Py_Void();
36138 return resultobj;
36139 fail:
36140 return NULL;
36141 }
36142
36143
36144 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36145 PyObject *resultobj = 0;
36146 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36147 wxTextCtrl *result = 0 ;
36148 void *argp1 = 0 ;
36149 int res1 = 0 ;
36150 PyObject *swig_obj[1] ;
36151
36152 if (!args) SWIG_fail;
36153 swig_obj[0] = args;
36154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36155 if (!SWIG_IsOK(res1)) {
36156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36157 }
36158 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36159 {
36160 PyThreadState* __tstate = wxPyBeginAllowThreads();
36161 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36162 wxPyEndAllowThreads(__tstate);
36163 if (PyErr_Occurred()) SWIG_fail;
36164 }
36165 {
36166 resultobj = wxPyMake_wxObject(result, 0);
36167 }
36168 return resultobj;
36169 fail:
36170 return NULL;
36171 }
36172
36173
36174 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36175 PyObject *resultobj = 0;
36176 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36177 wxTreeItemId *arg2 = 0 ;
36178 void *argp1 = 0 ;
36179 int res1 = 0 ;
36180 void *argp2 = 0 ;
36181 int res2 = 0 ;
36182 PyObject * obj0 = 0 ;
36183 PyObject * obj1 = 0 ;
36184 char * kwnames[] = {
36185 (char *) "self",(char *) "item", NULL
36186 };
36187
36188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36190 if (!SWIG_IsOK(res1)) {
36191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36192 }
36193 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36195 if (!SWIG_IsOK(res2)) {
36196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36197 }
36198 if (!argp2) {
36199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36200 }
36201 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36202 {
36203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36204 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36205 wxPyEndAllowThreads(__tstate);
36206 if (PyErr_Occurred()) SWIG_fail;
36207 }
36208 resultobj = SWIG_Py_Void();
36209 return resultobj;
36210 fail:
36211 return NULL;
36212 }
36213
36214
36215 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36216 PyObject *resultobj = 0;
36217 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36218 wxPoint *arg2 = 0 ;
36219 int *arg3 = 0 ;
36220 wxTreeItemId result;
36221 void *argp1 = 0 ;
36222 int res1 = 0 ;
36223 wxPoint temp2 ;
36224 int temp3 ;
36225 int res3 = SWIG_TMPOBJ ;
36226 PyObject * obj0 = 0 ;
36227 PyObject * obj1 = 0 ;
36228 char * kwnames[] = {
36229 (char *) "self",(char *) "point", NULL
36230 };
36231
36232 arg3 = &temp3;
36233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36235 if (!SWIG_IsOK(res1)) {
36236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36237 }
36238 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36239 {
36240 arg2 = &temp2;
36241 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36242 }
36243 {
36244 PyThreadState* __tstate = wxPyBeginAllowThreads();
36245 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36246 wxPyEndAllowThreads(__tstate);
36247 if (PyErr_Occurred()) SWIG_fail;
36248 }
36249 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36250 if (SWIG_IsTmpObj(res3)) {
36251 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36252 } else {
36253 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36255 }
36256 return resultobj;
36257 fail:
36258 return NULL;
36259 }
36260
36261
36262 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36263 PyObject *resultobj = 0;
36264 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36265 wxTreeItemId *arg2 = 0 ;
36266 bool arg3 = (bool) false ;
36267 PyObject *result = 0 ;
36268 void *argp1 = 0 ;
36269 int res1 = 0 ;
36270 void *argp2 = 0 ;
36271 int res2 = 0 ;
36272 bool val3 ;
36273 int ecode3 = 0 ;
36274 PyObject * obj0 = 0 ;
36275 PyObject * obj1 = 0 ;
36276 PyObject * obj2 = 0 ;
36277 char * kwnames[] = {
36278 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36279 };
36280
36281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36283 if (!SWIG_IsOK(res1)) {
36284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36285 }
36286 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36288 if (!SWIG_IsOK(res2)) {
36289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36290 }
36291 if (!argp2) {
36292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36293 }
36294 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36295 if (obj2) {
36296 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36297 if (!SWIG_IsOK(ecode3)) {
36298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36299 }
36300 arg3 = static_cast< bool >(val3);
36301 }
36302 {
36303 PyThreadState* __tstate = wxPyBeginAllowThreads();
36304 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36305 wxPyEndAllowThreads(__tstate);
36306 if (PyErr_Occurred()) SWIG_fail;
36307 }
36308 resultobj = result;
36309 return resultobj;
36310 fail:
36311 return NULL;
36312 }
36313
36314
36315 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36316 PyObject *resultobj = 0;
36317 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36318 SwigValueWrapper<wxVisualAttributes > result;
36319 int val1 ;
36320 int ecode1 = 0 ;
36321 PyObject * obj0 = 0 ;
36322 char * kwnames[] = {
36323 (char *) "variant", NULL
36324 };
36325
36326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36327 if (obj0) {
36328 ecode1 = SWIG_AsVal_int(obj0, &val1);
36329 if (!SWIG_IsOK(ecode1)) {
36330 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36331 }
36332 arg1 = static_cast< wxWindowVariant >(val1);
36333 }
36334 {
36335 if (!wxPyCheckForApp()) SWIG_fail;
36336 PyThreadState* __tstate = wxPyBeginAllowThreads();
36337 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36338 wxPyEndAllowThreads(__tstate);
36339 if (PyErr_Occurred()) SWIG_fail;
36340 }
36341 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36342 return resultobj;
36343 fail:
36344 return NULL;
36345 }
36346
36347
36348 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36349 PyObject *obj;
36350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36351 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36352 return SWIG_Py_Void();
36353 }
36354
36355 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36356 return SWIG_Python_InitShadowInstance(args);
36357 }
36358
36359 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36360 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36361 return 1;
36362 }
36363
36364
36365 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36366 PyObject *pyobj = 0;
36367
36368 {
36369 #if wxUSE_UNICODE
36370 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36371 #else
36372 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36373 #endif
36374 }
36375 return pyobj;
36376 }
36377
36378
36379 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36380 PyObject *resultobj = 0;
36381 wxWindow *arg1 = (wxWindow *) 0 ;
36382 int arg2 = (int) (int)-1 ;
36383 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36384 wxString *arg3 = (wxString *) &arg3_defvalue ;
36385 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36386 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36387 wxSize const &arg5_defvalue = wxDefaultSize ;
36388 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36389 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36390 wxString const &arg7_defvalue = wxPyEmptyString ;
36391 wxString *arg7 = (wxString *) &arg7_defvalue ;
36392 int arg8 = (int) 0 ;
36393 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36394 wxString *arg9 = (wxString *) &arg9_defvalue ;
36395 wxGenericDirCtrl *result = 0 ;
36396 void *argp1 = 0 ;
36397 int res1 = 0 ;
36398 int val2 ;
36399 int ecode2 = 0 ;
36400 bool temp3 = false ;
36401 wxPoint temp4 ;
36402 wxSize temp5 ;
36403 long val6 ;
36404 int ecode6 = 0 ;
36405 bool temp7 = false ;
36406 int val8 ;
36407 int ecode8 = 0 ;
36408 bool temp9 = false ;
36409 PyObject * obj0 = 0 ;
36410 PyObject * obj1 = 0 ;
36411 PyObject * obj2 = 0 ;
36412 PyObject * obj3 = 0 ;
36413 PyObject * obj4 = 0 ;
36414 PyObject * obj5 = 0 ;
36415 PyObject * obj6 = 0 ;
36416 PyObject * obj7 = 0 ;
36417 PyObject * obj8 = 0 ;
36418 char * kwnames[] = {
36419 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36420 };
36421
36422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36424 if (!SWIG_IsOK(res1)) {
36425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36426 }
36427 arg1 = reinterpret_cast< wxWindow * >(argp1);
36428 if (obj1) {
36429 ecode2 = SWIG_AsVal_int(obj1, &val2);
36430 if (!SWIG_IsOK(ecode2)) {
36431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36432 }
36433 arg2 = static_cast< int >(val2);
36434 }
36435 if (obj2) {
36436 {
36437 arg3 = wxString_in_helper(obj2);
36438 if (arg3 == NULL) SWIG_fail;
36439 temp3 = true;
36440 }
36441 }
36442 if (obj3) {
36443 {
36444 arg4 = &temp4;
36445 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36446 }
36447 }
36448 if (obj4) {
36449 {
36450 arg5 = &temp5;
36451 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36452 }
36453 }
36454 if (obj5) {
36455 ecode6 = SWIG_AsVal_long(obj5, &val6);
36456 if (!SWIG_IsOK(ecode6)) {
36457 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36458 }
36459 arg6 = static_cast< long >(val6);
36460 }
36461 if (obj6) {
36462 {
36463 arg7 = wxString_in_helper(obj6);
36464 if (arg7 == NULL) SWIG_fail;
36465 temp7 = true;
36466 }
36467 }
36468 if (obj7) {
36469 ecode8 = SWIG_AsVal_int(obj7, &val8);
36470 if (!SWIG_IsOK(ecode8)) {
36471 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36472 }
36473 arg8 = static_cast< int >(val8);
36474 }
36475 if (obj8) {
36476 {
36477 arg9 = wxString_in_helper(obj8);
36478 if (arg9 == NULL) SWIG_fail;
36479 temp9 = true;
36480 }
36481 }
36482 {
36483 if (!wxPyCheckForApp()) SWIG_fail;
36484 PyThreadState* __tstate = wxPyBeginAllowThreads();
36485 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36486 wxPyEndAllowThreads(__tstate);
36487 if (PyErr_Occurred()) SWIG_fail;
36488 }
36489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36490 {
36491 if (temp3)
36492 delete arg3;
36493 }
36494 {
36495 if (temp7)
36496 delete arg7;
36497 }
36498 {
36499 if (temp9)
36500 delete arg9;
36501 }
36502 return resultobj;
36503 fail:
36504 {
36505 if (temp3)
36506 delete arg3;
36507 }
36508 {
36509 if (temp7)
36510 delete arg7;
36511 }
36512 {
36513 if (temp9)
36514 delete arg9;
36515 }
36516 return NULL;
36517 }
36518
36519
36520 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36521 PyObject *resultobj = 0;
36522 wxGenericDirCtrl *result = 0 ;
36523
36524 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36525 {
36526 if (!wxPyCheckForApp()) SWIG_fail;
36527 PyThreadState* __tstate = wxPyBeginAllowThreads();
36528 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36529 wxPyEndAllowThreads(__tstate);
36530 if (PyErr_Occurred()) SWIG_fail;
36531 }
36532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36533 return resultobj;
36534 fail:
36535 return NULL;
36536 }
36537
36538
36539 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36540 PyObject *resultobj = 0;
36541 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36542 wxWindow *arg2 = (wxWindow *) 0 ;
36543 int arg3 = (int) (int)-1 ;
36544 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36545 wxString *arg4 = (wxString *) &arg4_defvalue ;
36546 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36547 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36548 wxSize const &arg6_defvalue = wxDefaultSize ;
36549 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36550 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36551 wxString const &arg8_defvalue = wxPyEmptyString ;
36552 wxString *arg8 = (wxString *) &arg8_defvalue ;
36553 int arg9 = (int) 0 ;
36554 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36555 wxString *arg10 = (wxString *) &arg10_defvalue ;
36556 bool result;
36557 void *argp1 = 0 ;
36558 int res1 = 0 ;
36559 void *argp2 = 0 ;
36560 int res2 = 0 ;
36561 int val3 ;
36562 int ecode3 = 0 ;
36563 bool temp4 = false ;
36564 wxPoint temp5 ;
36565 wxSize temp6 ;
36566 long val7 ;
36567 int ecode7 = 0 ;
36568 bool temp8 = false ;
36569 int val9 ;
36570 int ecode9 = 0 ;
36571 bool temp10 = false ;
36572 PyObject * obj0 = 0 ;
36573 PyObject * obj1 = 0 ;
36574 PyObject * obj2 = 0 ;
36575 PyObject * obj3 = 0 ;
36576 PyObject * obj4 = 0 ;
36577 PyObject * obj5 = 0 ;
36578 PyObject * obj6 = 0 ;
36579 PyObject * obj7 = 0 ;
36580 PyObject * obj8 = 0 ;
36581 PyObject * obj9 = 0 ;
36582 char * kwnames[] = {
36583 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36584 };
36585
36586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36588 if (!SWIG_IsOK(res1)) {
36589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36590 }
36591 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36593 if (!SWIG_IsOK(res2)) {
36594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36595 }
36596 arg2 = reinterpret_cast< wxWindow * >(argp2);
36597 if (obj2) {
36598 ecode3 = SWIG_AsVal_int(obj2, &val3);
36599 if (!SWIG_IsOK(ecode3)) {
36600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36601 }
36602 arg3 = static_cast< int >(val3);
36603 }
36604 if (obj3) {
36605 {
36606 arg4 = wxString_in_helper(obj3);
36607 if (arg4 == NULL) SWIG_fail;
36608 temp4 = true;
36609 }
36610 }
36611 if (obj4) {
36612 {
36613 arg5 = &temp5;
36614 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36615 }
36616 }
36617 if (obj5) {
36618 {
36619 arg6 = &temp6;
36620 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36621 }
36622 }
36623 if (obj6) {
36624 ecode7 = SWIG_AsVal_long(obj6, &val7);
36625 if (!SWIG_IsOK(ecode7)) {
36626 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
36627 }
36628 arg7 = static_cast< long >(val7);
36629 }
36630 if (obj7) {
36631 {
36632 arg8 = wxString_in_helper(obj7);
36633 if (arg8 == NULL) SWIG_fail;
36634 temp8 = true;
36635 }
36636 }
36637 if (obj8) {
36638 ecode9 = SWIG_AsVal_int(obj8, &val9);
36639 if (!SWIG_IsOK(ecode9)) {
36640 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
36641 }
36642 arg9 = static_cast< int >(val9);
36643 }
36644 if (obj9) {
36645 {
36646 arg10 = wxString_in_helper(obj9);
36647 if (arg10 == NULL) SWIG_fail;
36648 temp10 = true;
36649 }
36650 }
36651 {
36652 PyThreadState* __tstate = wxPyBeginAllowThreads();
36653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
36654 wxPyEndAllowThreads(__tstate);
36655 if (PyErr_Occurred()) SWIG_fail;
36656 }
36657 {
36658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36659 }
36660 {
36661 if (temp4)
36662 delete arg4;
36663 }
36664 {
36665 if (temp8)
36666 delete arg8;
36667 }
36668 {
36669 if (temp10)
36670 delete arg10;
36671 }
36672 return resultobj;
36673 fail:
36674 {
36675 if (temp4)
36676 delete arg4;
36677 }
36678 {
36679 if (temp8)
36680 delete arg8;
36681 }
36682 {
36683 if (temp10)
36684 delete arg10;
36685 }
36686 return NULL;
36687 }
36688
36689
36690 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36691 PyObject *resultobj = 0;
36692 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36693 wxString *arg2 = 0 ;
36694 bool result;
36695 void *argp1 = 0 ;
36696 int res1 = 0 ;
36697 bool temp2 = false ;
36698 PyObject * obj0 = 0 ;
36699 PyObject * obj1 = 0 ;
36700 char * kwnames[] = {
36701 (char *) "self",(char *) "path", NULL
36702 };
36703
36704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
36705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36706 if (!SWIG_IsOK(res1)) {
36707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36708 }
36709 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36710 {
36711 arg2 = wxString_in_helper(obj1);
36712 if (arg2 == NULL) SWIG_fail;
36713 temp2 = true;
36714 }
36715 {
36716 PyThreadState* __tstate = wxPyBeginAllowThreads();
36717 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
36718 wxPyEndAllowThreads(__tstate);
36719 if (PyErr_Occurred()) SWIG_fail;
36720 }
36721 {
36722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36723 }
36724 {
36725 if (temp2)
36726 delete arg2;
36727 }
36728 return resultobj;
36729 fail:
36730 {
36731 if (temp2)
36732 delete arg2;
36733 }
36734 return NULL;
36735 }
36736
36737
36738 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36739 PyObject *resultobj = 0;
36740 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36741 wxString result;
36742 void *argp1 = 0 ;
36743 int res1 = 0 ;
36744 PyObject *swig_obj[1] ;
36745
36746 if (!args) SWIG_fail;
36747 swig_obj[0] = args;
36748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36749 if (!SWIG_IsOK(res1)) {
36750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36751 }
36752 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36753 {
36754 PyThreadState* __tstate = wxPyBeginAllowThreads();
36755 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
36756 wxPyEndAllowThreads(__tstate);
36757 if (PyErr_Occurred()) SWIG_fail;
36758 }
36759 {
36760 #if wxUSE_UNICODE
36761 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36762 #else
36763 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36764 #endif
36765 }
36766 return resultobj;
36767 fail:
36768 return NULL;
36769 }
36770
36771
36772 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36773 PyObject *resultobj = 0;
36774 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36775 wxString *arg2 = 0 ;
36776 void *argp1 = 0 ;
36777 int res1 = 0 ;
36778 bool temp2 = false ;
36779 PyObject * obj0 = 0 ;
36780 PyObject * obj1 = 0 ;
36781 char * kwnames[] = {
36782 (char *) "self",(char *) "path", NULL
36783 };
36784
36785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
36786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36787 if (!SWIG_IsOK(res1)) {
36788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36789 }
36790 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36791 {
36792 arg2 = wxString_in_helper(obj1);
36793 if (arg2 == NULL) SWIG_fail;
36794 temp2 = true;
36795 }
36796 {
36797 PyThreadState* __tstate = wxPyBeginAllowThreads();
36798 (arg1)->SetDefaultPath((wxString const &)*arg2);
36799 wxPyEndAllowThreads(__tstate);
36800 if (PyErr_Occurred()) SWIG_fail;
36801 }
36802 resultobj = SWIG_Py_Void();
36803 {
36804 if (temp2)
36805 delete arg2;
36806 }
36807 return resultobj;
36808 fail:
36809 {
36810 if (temp2)
36811 delete arg2;
36812 }
36813 return NULL;
36814 }
36815
36816
36817 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36818 PyObject *resultobj = 0;
36819 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36820 wxString result;
36821 void *argp1 = 0 ;
36822 int res1 = 0 ;
36823 PyObject *swig_obj[1] ;
36824
36825 if (!args) SWIG_fail;
36826 swig_obj[0] = args;
36827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36828 if (!SWIG_IsOK(res1)) {
36829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36830 }
36831 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36832 {
36833 PyThreadState* __tstate = wxPyBeginAllowThreads();
36834 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
36835 wxPyEndAllowThreads(__tstate);
36836 if (PyErr_Occurred()) SWIG_fail;
36837 }
36838 {
36839 #if wxUSE_UNICODE
36840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36841 #else
36842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36843 #endif
36844 }
36845 return resultobj;
36846 fail:
36847 return NULL;
36848 }
36849
36850
36851 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36852 PyObject *resultobj = 0;
36853 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36854 wxString result;
36855 void *argp1 = 0 ;
36856 int res1 = 0 ;
36857 PyObject *swig_obj[1] ;
36858
36859 if (!args) SWIG_fail;
36860 swig_obj[0] = args;
36861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36862 if (!SWIG_IsOK(res1)) {
36863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36864 }
36865 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36866 {
36867 PyThreadState* __tstate = wxPyBeginAllowThreads();
36868 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
36869 wxPyEndAllowThreads(__tstate);
36870 if (PyErr_Occurred()) SWIG_fail;
36871 }
36872 {
36873 #if wxUSE_UNICODE
36874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36875 #else
36876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36877 #endif
36878 }
36879 return resultobj;
36880 fail:
36881 return NULL;
36882 }
36883
36884
36885 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36886 PyObject *resultobj = 0;
36887 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36888 wxString *arg2 = 0 ;
36889 void *argp1 = 0 ;
36890 int res1 = 0 ;
36891 bool temp2 = false ;
36892 PyObject * obj0 = 0 ;
36893 PyObject * obj1 = 0 ;
36894 char * kwnames[] = {
36895 (char *) "self",(char *) "path", NULL
36896 };
36897
36898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
36899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36900 if (!SWIG_IsOK(res1)) {
36901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36902 }
36903 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36904 {
36905 arg2 = wxString_in_helper(obj1);
36906 if (arg2 == NULL) SWIG_fail;
36907 temp2 = true;
36908 }
36909 {
36910 PyThreadState* __tstate = wxPyBeginAllowThreads();
36911 (arg1)->SetPath((wxString const &)*arg2);
36912 wxPyEndAllowThreads(__tstate);
36913 if (PyErr_Occurred()) SWIG_fail;
36914 }
36915 resultobj = SWIG_Py_Void();
36916 {
36917 if (temp2)
36918 delete arg2;
36919 }
36920 return resultobj;
36921 fail:
36922 {
36923 if (temp2)
36924 delete arg2;
36925 }
36926 return NULL;
36927 }
36928
36929
36930 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36931 PyObject *resultobj = 0;
36932 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36933 bool arg2 ;
36934 void *argp1 = 0 ;
36935 int res1 = 0 ;
36936 bool val2 ;
36937 int ecode2 = 0 ;
36938 PyObject * obj0 = 0 ;
36939 PyObject * obj1 = 0 ;
36940 char * kwnames[] = {
36941 (char *) "self",(char *) "show", NULL
36942 };
36943
36944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
36945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36946 if (!SWIG_IsOK(res1)) {
36947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36948 }
36949 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36950 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36951 if (!SWIG_IsOK(ecode2)) {
36952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
36953 }
36954 arg2 = static_cast< bool >(val2);
36955 {
36956 PyThreadState* __tstate = wxPyBeginAllowThreads();
36957 (arg1)->ShowHidden(arg2);
36958 wxPyEndAllowThreads(__tstate);
36959 if (PyErr_Occurred()) SWIG_fail;
36960 }
36961 resultobj = SWIG_Py_Void();
36962 return resultobj;
36963 fail:
36964 return NULL;
36965 }
36966
36967
36968 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36969 PyObject *resultobj = 0;
36970 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36971 bool result;
36972 void *argp1 = 0 ;
36973 int res1 = 0 ;
36974 PyObject *swig_obj[1] ;
36975
36976 if (!args) SWIG_fail;
36977 swig_obj[0] = args;
36978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36979 if (!SWIG_IsOK(res1)) {
36980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36981 }
36982 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36983 {
36984 PyThreadState* __tstate = wxPyBeginAllowThreads();
36985 result = (bool)(arg1)->GetShowHidden();
36986 wxPyEndAllowThreads(__tstate);
36987 if (PyErr_Occurred()) SWIG_fail;
36988 }
36989 {
36990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36991 }
36992 return resultobj;
36993 fail:
36994 return NULL;
36995 }
36996
36997
36998 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36999 PyObject *resultobj = 0;
37000 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37001 wxString result;
37002 void *argp1 = 0 ;
37003 int res1 = 0 ;
37004 PyObject *swig_obj[1] ;
37005
37006 if (!args) SWIG_fail;
37007 swig_obj[0] = args;
37008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37009 if (!SWIG_IsOK(res1)) {
37010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37011 }
37012 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37013 {
37014 PyThreadState* __tstate = wxPyBeginAllowThreads();
37015 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37016 wxPyEndAllowThreads(__tstate);
37017 if (PyErr_Occurred()) SWIG_fail;
37018 }
37019 {
37020 #if wxUSE_UNICODE
37021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37022 #else
37023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37024 #endif
37025 }
37026 return resultobj;
37027 fail:
37028 return NULL;
37029 }
37030
37031
37032 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37033 PyObject *resultobj = 0;
37034 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37035 wxString *arg2 = 0 ;
37036 void *argp1 = 0 ;
37037 int res1 = 0 ;
37038 bool temp2 = false ;
37039 PyObject * obj0 = 0 ;
37040 PyObject * obj1 = 0 ;
37041 char * kwnames[] = {
37042 (char *) "self",(char *) "filter", NULL
37043 };
37044
37045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37047 if (!SWIG_IsOK(res1)) {
37048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37049 }
37050 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37051 {
37052 arg2 = wxString_in_helper(obj1);
37053 if (arg2 == NULL) SWIG_fail;
37054 temp2 = true;
37055 }
37056 {
37057 PyThreadState* __tstate = wxPyBeginAllowThreads();
37058 (arg1)->SetFilter((wxString const &)*arg2);
37059 wxPyEndAllowThreads(__tstate);
37060 if (PyErr_Occurred()) SWIG_fail;
37061 }
37062 resultobj = SWIG_Py_Void();
37063 {
37064 if (temp2)
37065 delete arg2;
37066 }
37067 return resultobj;
37068 fail:
37069 {
37070 if (temp2)
37071 delete arg2;
37072 }
37073 return NULL;
37074 }
37075
37076
37077 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37078 PyObject *resultobj = 0;
37079 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37080 int result;
37081 void *argp1 = 0 ;
37082 int res1 = 0 ;
37083 PyObject *swig_obj[1] ;
37084
37085 if (!args) SWIG_fail;
37086 swig_obj[0] = args;
37087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37088 if (!SWIG_IsOK(res1)) {
37089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37090 }
37091 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37092 {
37093 PyThreadState* __tstate = wxPyBeginAllowThreads();
37094 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37095 wxPyEndAllowThreads(__tstate);
37096 if (PyErr_Occurred()) SWIG_fail;
37097 }
37098 resultobj = SWIG_From_int(static_cast< int >(result));
37099 return resultobj;
37100 fail:
37101 return NULL;
37102 }
37103
37104
37105 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37106 PyObject *resultobj = 0;
37107 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37108 int arg2 ;
37109 void *argp1 = 0 ;
37110 int res1 = 0 ;
37111 int val2 ;
37112 int ecode2 = 0 ;
37113 PyObject * obj0 = 0 ;
37114 PyObject * obj1 = 0 ;
37115 char * kwnames[] = {
37116 (char *) "self",(char *) "n", NULL
37117 };
37118
37119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37121 if (!SWIG_IsOK(res1)) {
37122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37123 }
37124 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37125 ecode2 = SWIG_AsVal_int(obj1, &val2);
37126 if (!SWIG_IsOK(ecode2)) {
37127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37128 }
37129 arg2 = static_cast< int >(val2);
37130 {
37131 PyThreadState* __tstate = wxPyBeginAllowThreads();
37132 (arg1)->SetFilterIndex(arg2);
37133 wxPyEndAllowThreads(__tstate);
37134 if (PyErr_Occurred()) SWIG_fail;
37135 }
37136 resultobj = SWIG_Py_Void();
37137 return resultobj;
37138 fail:
37139 return NULL;
37140 }
37141
37142
37143 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37144 PyObject *resultobj = 0;
37145 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37146 wxTreeItemId result;
37147 void *argp1 = 0 ;
37148 int res1 = 0 ;
37149 PyObject *swig_obj[1] ;
37150
37151 if (!args) SWIG_fail;
37152 swig_obj[0] = args;
37153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37154 if (!SWIG_IsOK(res1)) {
37155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37156 }
37157 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37158 {
37159 PyThreadState* __tstate = wxPyBeginAllowThreads();
37160 result = (arg1)->GetRootId();
37161 wxPyEndAllowThreads(__tstate);
37162 if (PyErr_Occurred()) SWIG_fail;
37163 }
37164 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37165 return resultobj;
37166 fail:
37167 return NULL;
37168 }
37169
37170
37171 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37172 PyObject *resultobj = 0;
37173 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37174 wxPyTreeCtrl *result = 0 ;
37175 void *argp1 = 0 ;
37176 int res1 = 0 ;
37177 PyObject *swig_obj[1] ;
37178
37179 if (!args) SWIG_fail;
37180 swig_obj[0] = args;
37181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37182 if (!SWIG_IsOK(res1)) {
37183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37184 }
37185 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37186 {
37187 PyThreadState* __tstate = wxPyBeginAllowThreads();
37188 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37189 wxPyEndAllowThreads(__tstate);
37190 if (PyErr_Occurred()) SWIG_fail;
37191 }
37192 {
37193 resultobj = wxPyMake_wxObject(result, 0);
37194 }
37195 return resultobj;
37196 fail:
37197 return NULL;
37198 }
37199
37200
37201 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37202 PyObject *resultobj = 0;
37203 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37204 wxDirFilterListCtrl *result = 0 ;
37205 void *argp1 = 0 ;
37206 int res1 = 0 ;
37207 PyObject *swig_obj[1] ;
37208
37209 if (!args) SWIG_fail;
37210 swig_obj[0] = args;
37211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37212 if (!SWIG_IsOK(res1)) {
37213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37214 }
37215 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37216 {
37217 PyThreadState* __tstate = wxPyBeginAllowThreads();
37218 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37219 wxPyEndAllowThreads(__tstate);
37220 if (PyErr_Occurred()) SWIG_fail;
37221 }
37222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37223 return resultobj;
37224 fail:
37225 return NULL;
37226 }
37227
37228
37229 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37230 PyObject *resultobj = 0;
37231 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37232 wxTreeItemId arg2 ;
37233 wxString *arg3 = 0 ;
37234 bool *arg4 = 0 ;
37235 wxTreeItemId result;
37236 void *argp1 = 0 ;
37237 int res1 = 0 ;
37238 void *argp2 ;
37239 int res2 = 0 ;
37240 bool temp3 = false ;
37241 bool temp4 ;
37242 int res4 = SWIG_TMPOBJ ;
37243 PyObject * obj0 = 0 ;
37244 PyObject * obj1 = 0 ;
37245 PyObject * obj2 = 0 ;
37246 char * kwnames[] = {
37247 (char *) "self",(char *) "parentId",(char *) "path", NULL
37248 };
37249
37250 arg4 = &temp4;
37251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37253 if (!SWIG_IsOK(res1)) {
37254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37255 }
37256 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37257 {
37258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37259 if (!SWIG_IsOK(res2)) {
37260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37261 }
37262 if (!argp2) {
37263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37264 } else {
37265 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37266 arg2 = *temp;
37267 if (SWIG_IsNewObj(res2)) delete temp;
37268 }
37269 }
37270 {
37271 arg3 = wxString_in_helper(obj2);
37272 if (arg3 == NULL) SWIG_fail;
37273 temp3 = true;
37274 }
37275 {
37276 PyThreadState* __tstate = wxPyBeginAllowThreads();
37277 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37278 wxPyEndAllowThreads(__tstate);
37279 if (PyErr_Occurred()) SWIG_fail;
37280 }
37281 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37282 if (SWIG_IsTmpObj(res4)) {
37283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37284 } else {
37285 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37287 }
37288 {
37289 if (temp3)
37290 delete arg3;
37291 }
37292 return resultobj;
37293 fail:
37294 {
37295 if (temp3)
37296 delete arg3;
37297 }
37298 return NULL;
37299 }
37300
37301
37302 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37303 PyObject *resultobj = 0;
37304 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37305 void *argp1 = 0 ;
37306 int res1 = 0 ;
37307 PyObject *swig_obj[1] ;
37308
37309 if (!args) SWIG_fail;
37310 swig_obj[0] = args;
37311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37312 if (!SWIG_IsOK(res1)) {
37313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37314 }
37315 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37316 {
37317 PyThreadState* __tstate = wxPyBeginAllowThreads();
37318 (arg1)->DoResize();
37319 wxPyEndAllowThreads(__tstate);
37320 if (PyErr_Occurred()) SWIG_fail;
37321 }
37322 resultobj = SWIG_Py_Void();
37323 return resultobj;
37324 fail:
37325 return NULL;
37326 }
37327
37328
37329 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37330 PyObject *resultobj = 0;
37331 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37332 void *argp1 = 0 ;
37333 int res1 = 0 ;
37334 PyObject *swig_obj[1] ;
37335
37336 if (!args) SWIG_fail;
37337 swig_obj[0] = args;
37338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37339 if (!SWIG_IsOK(res1)) {
37340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37341 }
37342 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37343 {
37344 PyThreadState* __tstate = wxPyBeginAllowThreads();
37345 (arg1)->ReCreateTree();
37346 wxPyEndAllowThreads(__tstate);
37347 if (PyErr_Occurred()) SWIG_fail;
37348 }
37349 resultobj = SWIG_Py_Void();
37350 return resultobj;
37351 fail:
37352 return NULL;
37353 }
37354
37355
37356 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37357 PyObject *obj;
37358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37359 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37360 return SWIG_Py_Void();
37361 }
37362
37363 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37364 return SWIG_Python_InitShadowInstance(args);
37365 }
37366
37367 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37368 PyObject *resultobj = 0;
37369 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37370 int arg2 = (int) (int)-1 ;
37371 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37372 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37373 wxSize const &arg4_defvalue = wxDefaultSize ;
37374 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37375 long arg5 = (long) 0 ;
37376 wxDirFilterListCtrl *result = 0 ;
37377 void *argp1 = 0 ;
37378 int res1 = 0 ;
37379 int val2 ;
37380 int ecode2 = 0 ;
37381 wxPoint temp3 ;
37382 wxSize temp4 ;
37383 long val5 ;
37384 int ecode5 = 0 ;
37385 PyObject * obj0 = 0 ;
37386 PyObject * obj1 = 0 ;
37387 PyObject * obj2 = 0 ;
37388 PyObject * obj3 = 0 ;
37389 PyObject * obj4 = 0 ;
37390 char * kwnames[] = {
37391 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37392 };
37393
37394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37396 if (!SWIG_IsOK(res1)) {
37397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37398 }
37399 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37400 if (obj1) {
37401 ecode2 = SWIG_AsVal_int(obj1, &val2);
37402 if (!SWIG_IsOK(ecode2)) {
37403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37404 }
37405 arg2 = static_cast< int >(val2);
37406 }
37407 if (obj2) {
37408 {
37409 arg3 = &temp3;
37410 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37411 }
37412 }
37413 if (obj3) {
37414 {
37415 arg4 = &temp4;
37416 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37417 }
37418 }
37419 if (obj4) {
37420 ecode5 = SWIG_AsVal_long(obj4, &val5);
37421 if (!SWIG_IsOK(ecode5)) {
37422 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37423 }
37424 arg5 = static_cast< long >(val5);
37425 }
37426 {
37427 if (!wxPyCheckForApp()) SWIG_fail;
37428 PyThreadState* __tstate = wxPyBeginAllowThreads();
37429 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37430 wxPyEndAllowThreads(__tstate);
37431 if (PyErr_Occurred()) SWIG_fail;
37432 }
37433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37434 return resultobj;
37435 fail:
37436 return NULL;
37437 }
37438
37439
37440 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37441 PyObject *resultobj = 0;
37442 wxDirFilterListCtrl *result = 0 ;
37443
37444 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37445 {
37446 if (!wxPyCheckForApp()) SWIG_fail;
37447 PyThreadState* __tstate = wxPyBeginAllowThreads();
37448 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37449 wxPyEndAllowThreads(__tstate);
37450 if (PyErr_Occurred()) SWIG_fail;
37451 }
37452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37453 return resultobj;
37454 fail:
37455 return NULL;
37456 }
37457
37458
37459 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37460 PyObject *resultobj = 0;
37461 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37462 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37463 int arg3 = (int) (int)-1 ;
37464 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37465 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37466 wxSize const &arg5_defvalue = wxDefaultSize ;
37467 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37468 long arg6 = (long) 0 ;
37469 bool result;
37470 void *argp1 = 0 ;
37471 int res1 = 0 ;
37472 void *argp2 = 0 ;
37473 int res2 = 0 ;
37474 int val3 ;
37475 int ecode3 = 0 ;
37476 wxPoint temp4 ;
37477 wxSize temp5 ;
37478 long val6 ;
37479 int ecode6 = 0 ;
37480 PyObject * obj0 = 0 ;
37481 PyObject * obj1 = 0 ;
37482 PyObject * obj2 = 0 ;
37483 PyObject * obj3 = 0 ;
37484 PyObject * obj4 = 0 ;
37485 PyObject * obj5 = 0 ;
37486 char * kwnames[] = {
37487 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37488 };
37489
37490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37492 if (!SWIG_IsOK(res1)) {
37493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37494 }
37495 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37497 if (!SWIG_IsOK(res2)) {
37498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37499 }
37500 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37501 if (obj2) {
37502 ecode3 = SWIG_AsVal_int(obj2, &val3);
37503 if (!SWIG_IsOK(ecode3)) {
37504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37505 }
37506 arg3 = static_cast< int >(val3);
37507 }
37508 if (obj3) {
37509 {
37510 arg4 = &temp4;
37511 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37512 }
37513 }
37514 if (obj4) {
37515 {
37516 arg5 = &temp5;
37517 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37518 }
37519 }
37520 if (obj5) {
37521 ecode6 = SWIG_AsVal_long(obj5, &val6);
37522 if (!SWIG_IsOK(ecode6)) {
37523 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37524 }
37525 arg6 = static_cast< long >(val6);
37526 }
37527 {
37528 PyThreadState* __tstate = wxPyBeginAllowThreads();
37529 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37530 wxPyEndAllowThreads(__tstate);
37531 if (PyErr_Occurred()) SWIG_fail;
37532 }
37533 {
37534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37535 }
37536 return resultobj;
37537 fail:
37538 return NULL;
37539 }
37540
37541
37542 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37543 PyObject *resultobj = 0;
37544 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37545 wxString *arg2 = 0 ;
37546 int arg3 ;
37547 void *argp1 = 0 ;
37548 int res1 = 0 ;
37549 bool temp2 = false ;
37550 int val3 ;
37551 int ecode3 = 0 ;
37552 PyObject * obj0 = 0 ;
37553 PyObject * obj1 = 0 ;
37554 PyObject * obj2 = 0 ;
37555 char * kwnames[] = {
37556 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37557 };
37558
37559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37561 if (!SWIG_IsOK(res1)) {
37562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37563 }
37564 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37565 {
37566 arg2 = wxString_in_helper(obj1);
37567 if (arg2 == NULL) SWIG_fail;
37568 temp2 = true;
37569 }
37570 ecode3 = SWIG_AsVal_int(obj2, &val3);
37571 if (!SWIG_IsOK(ecode3)) {
37572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37573 }
37574 arg3 = static_cast< int >(val3);
37575 {
37576 PyThreadState* __tstate = wxPyBeginAllowThreads();
37577 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37578 wxPyEndAllowThreads(__tstate);
37579 if (PyErr_Occurred()) SWIG_fail;
37580 }
37581 resultobj = SWIG_Py_Void();
37582 {
37583 if (temp2)
37584 delete arg2;
37585 }
37586 return resultobj;
37587 fail:
37588 {
37589 if (temp2)
37590 delete arg2;
37591 }
37592 return NULL;
37593 }
37594
37595
37596 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37597 PyObject *obj;
37598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37599 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37600 return SWIG_Py_Void();
37601 }
37602
37603 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37604 return SWIG_Python_InitShadowInstance(args);
37605 }
37606
37607 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37608 PyObject *resultobj = 0;
37609 wxWindow *arg1 = (wxWindow *) 0 ;
37610 int arg2 = (int) (int)-1 ;
37611 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37612 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37613 wxSize const &arg4_defvalue = wxDefaultSize ;
37614 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37615 long arg5 = (long) 0 ;
37616 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37617 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37618 wxString const &arg7_defvalue = wxPyControlNameStr ;
37619 wxString *arg7 = (wxString *) &arg7_defvalue ;
37620 wxPyControl *result = 0 ;
37621 void *argp1 = 0 ;
37622 int res1 = 0 ;
37623 int val2 ;
37624 int ecode2 = 0 ;
37625 wxPoint temp3 ;
37626 wxSize temp4 ;
37627 long val5 ;
37628 int ecode5 = 0 ;
37629 void *argp6 = 0 ;
37630 int res6 = 0 ;
37631 bool temp7 = false ;
37632 PyObject * obj0 = 0 ;
37633 PyObject * obj1 = 0 ;
37634 PyObject * obj2 = 0 ;
37635 PyObject * obj3 = 0 ;
37636 PyObject * obj4 = 0 ;
37637 PyObject * obj5 = 0 ;
37638 PyObject * obj6 = 0 ;
37639 char * kwnames[] = {
37640 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37641 };
37642
37643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37645 if (!SWIG_IsOK(res1)) {
37646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
37647 }
37648 arg1 = reinterpret_cast< wxWindow * >(argp1);
37649 if (obj1) {
37650 ecode2 = SWIG_AsVal_int(obj1, &val2);
37651 if (!SWIG_IsOK(ecode2)) {
37652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
37653 }
37654 arg2 = static_cast< int >(val2);
37655 }
37656 if (obj2) {
37657 {
37658 arg3 = &temp3;
37659 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37660 }
37661 }
37662 if (obj3) {
37663 {
37664 arg4 = &temp4;
37665 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37666 }
37667 }
37668 if (obj4) {
37669 ecode5 = SWIG_AsVal_long(obj4, &val5);
37670 if (!SWIG_IsOK(ecode5)) {
37671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
37672 }
37673 arg5 = static_cast< long >(val5);
37674 }
37675 if (obj5) {
37676 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
37677 if (!SWIG_IsOK(res6)) {
37678 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
37679 }
37680 if (!argp6) {
37681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
37682 }
37683 arg6 = reinterpret_cast< wxValidator * >(argp6);
37684 }
37685 if (obj6) {
37686 {
37687 arg7 = wxString_in_helper(obj6);
37688 if (arg7 == NULL) SWIG_fail;
37689 temp7 = true;
37690 }
37691 }
37692 {
37693 if (!wxPyCheckForApp()) SWIG_fail;
37694 PyThreadState* __tstate = wxPyBeginAllowThreads();
37695 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
37696 wxPyEndAllowThreads(__tstate);
37697 if (PyErr_Occurred()) SWIG_fail;
37698 }
37699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
37700 {
37701 if (temp7)
37702 delete arg7;
37703 }
37704 return resultobj;
37705 fail:
37706 {
37707 if (temp7)
37708 delete arg7;
37709 }
37710 return NULL;
37711 }
37712
37713
37714 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37715 PyObject *resultobj = 0;
37716 wxPyControl *result = 0 ;
37717
37718 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
37719 {
37720 if (!wxPyCheckForApp()) SWIG_fail;
37721 PyThreadState* __tstate = wxPyBeginAllowThreads();
37722 result = (wxPyControl *)new wxPyControl();
37723 wxPyEndAllowThreads(__tstate);
37724 if (PyErr_Occurred()) SWIG_fail;
37725 }
37726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
37727 return resultobj;
37728 fail:
37729 return NULL;
37730 }
37731
37732
37733 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37734 PyObject *resultobj = 0;
37735 wxPyControl *arg1 = (wxPyControl *) 0 ;
37736 PyObject *arg2 = (PyObject *) 0 ;
37737 PyObject *arg3 = (PyObject *) 0 ;
37738 void *argp1 = 0 ;
37739 int res1 = 0 ;
37740 PyObject * obj0 = 0 ;
37741 PyObject * obj1 = 0 ;
37742 PyObject * obj2 = 0 ;
37743 char * kwnames[] = {
37744 (char *) "self",(char *) "self",(char *) "_class", NULL
37745 };
37746
37747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37749 if (!SWIG_IsOK(res1)) {
37750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
37751 }
37752 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37753 arg2 = obj1;
37754 arg3 = obj2;
37755 {
37756 PyThreadState* __tstate = wxPyBeginAllowThreads();
37757 (arg1)->_setCallbackInfo(arg2,arg3);
37758 wxPyEndAllowThreads(__tstate);
37759 if (PyErr_Occurred()) SWIG_fail;
37760 }
37761 resultobj = SWIG_Py_Void();
37762 return resultobj;
37763 fail:
37764 return NULL;
37765 }
37766
37767
37768 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37769 PyObject *resultobj = 0;
37770 wxPyControl *arg1 = (wxPyControl *) 0 ;
37771 wxSize *arg2 = 0 ;
37772 void *argp1 = 0 ;
37773 int res1 = 0 ;
37774 wxSize temp2 ;
37775 PyObject * obj0 = 0 ;
37776 PyObject * obj1 = 0 ;
37777 char * kwnames[] = {
37778 (char *) "self",(char *) "size", NULL
37779 };
37780
37781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37783 if (!SWIG_IsOK(res1)) {
37784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
37785 }
37786 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37787 {
37788 arg2 = &temp2;
37789 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37790 }
37791 {
37792 PyThreadState* __tstate = wxPyBeginAllowThreads();
37793 (arg1)->SetBestSize((wxSize const &)*arg2);
37794 wxPyEndAllowThreads(__tstate);
37795 if (PyErr_Occurred()) SWIG_fail;
37796 }
37797 resultobj = SWIG_Py_Void();
37798 return resultobj;
37799 fail:
37800 return NULL;
37801 }
37802
37803
37804 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37805 PyObject *resultobj = 0;
37806 wxPyControl *arg1 = (wxPyControl *) 0 ;
37807 wxDC *arg2 = (wxDC *) 0 ;
37808 bool result;
37809 void *argp1 = 0 ;
37810 int res1 = 0 ;
37811 void *argp2 = 0 ;
37812 int res2 = 0 ;
37813 PyObject * obj0 = 0 ;
37814 PyObject * obj1 = 0 ;
37815 char * kwnames[] = {
37816 (char *) "self",(char *) "dc", NULL
37817 };
37818
37819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37821 if (!SWIG_IsOK(res1)) {
37822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
37823 }
37824 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
37826 if (!SWIG_IsOK(res2)) {
37827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
37828 }
37829 arg2 = reinterpret_cast< wxDC * >(argp2);
37830 {
37831 PyThreadState* __tstate = wxPyBeginAllowThreads();
37832 result = (bool)(arg1)->DoEraseBackground(arg2);
37833 wxPyEndAllowThreads(__tstate);
37834 if (PyErr_Occurred()) SWIG_fail;
37835 }
37836 {
37837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37838 }
37839 return resultobj;
37840 fail:
37841 return NULL;
37842 }
37843
37844
37845 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37846 PyObject *resultobj = 0;
37847 wxPyControl *arg1 = (wxPyControl *) 0 ;
37848 int arg2 ;
37849 int arg3 ;
37850 int arg4 ;
37851 int arg5 ;
37852 void *argp1 = 0 ;
37853 int res1 = 0 ;
37854 int val2 ;
37855 int ecode2 = 0 ;
37856 int val3 ;
37857 int ecode3 = 0 ;
37858 int val4 ;
37859 int ecode4 = 0 ;
37860 int val5 ;
37861 int ecode5 = 0 ;
37862 PyObject * obj0 = 0 ;
37863 PyObject * obj1 = 0 ;
37864 PyObject * obj2 = 0 ;
37865 PyObject * obj3 = 0 ;
37866 PyObject * obj4 = 0 ;
37867 char * kwnames[] = {
37868 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37869 };
37870
37871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37873 if (!SWIG_IsOK(res1)) {
37874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
37875 }
37876 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37877 ecode2 = SWIG_AsVal_int(obj1, &val2);
37878 if (!SWIG_IsOK(ecode2)) {
37879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
37880 }
37881 arg2 = static_cast< int >(val2);
37882 ecode3 = SWIG_AsVal_int(obj2, &val3);
37883 if (!SWIG_IsOK(ecode3)) {
37884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
37885 }
37886 arg3 = static_cast< int >(val3);
37887 ecode4 = SWIG_AsVal_int(obj3, &val4);
37888 if (!SWIG_IsOK(ecode4)) {
37889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
37890 }
37891 arg4 = static_cast< int >(val4);
37892 ecode5 = SWIG_AsVal_int(obj4, &val5);
37893 if (!SWIG_IsOK(ecode5)) {
37894 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
37895 }
37896 arg5 = static_cast< int >(val5);
37897 {
37898 PyThreadState* __tstate = wxPyBeginAllowThreads();
37899 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
37900 wxPyEndAllowThreads(__tstate);
37901 if (PyErr_Occurred()) SWIG_fail;
37902 }
37903 resultobj = SWIG_Py_Void();
37904 return resultobj;
37905 fail:
37906 return NULL;
37907 }
37908
37909
37910 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37911 PyObject *resultobj = 0;
37912 wxPyControl *arg1 = (wxPyControl *) 0 ;
37913 int arg2 ;
37914 int arg3 ;
37915 int arg4 ;
37916 int arg5 ;
37917 int arg6 = (int) wxSIZE_AUTO ;
37918 void *argp1 = 0 ;
37919 int res1 = 0 ;
37920 int val2 ;
37921 int ecode2 = 0 ;
37922 int val3 ;
37923 int ecode3 = 0 ;
37924 int val4 ;
37925 int ecode4 = 0 ;
37926 int val5 ;
37927 int ecode5 = 0 ;
37928 int val6 ;
37929 int ecode6 = 0 ;
37930 PyObject * obj0 = 0 ;
37931 PyObject * obj1 = 0 ;
37932 PyObject * obj2 = 0 ;
37933 PyObject * obj3 = 0 ;
37934 PyObject * obj4 = 0 ;
37935 PyObject * obj5 = 0 ;
37936 char * kwnames[] = {
37937 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
37938 };
37939
37940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37942 if (!SWIG_IsOK(res1)) {
37943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
37944 }
37945 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37946 ecode2 = SWIG_AsVal_int(obj1, &val2);
37947 if (!SWIG_IsOK(ecode2)) {
37948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
37949 }
37950 arg2 = static_cast< int >(val2);
37951 ecode3 = SWIG_AsVal_int(obj2, &val3);
37952 if (!SWIG_IsOK(ecode3)) {
37953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
37954 }
37955 arg3 = static_cast< int >(val3);
37956 ecode4 = SWIG_AsVal_int(obj3, &val4);
37957 if (!SWIG_IsOK(ecode4)) {
37958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
37959 }
37960 arg4 = static_cast< int >(val4);
37961 ecode5 = SWIG_AsVal_int(obj4, &val5);
37962 if (!SWIG_IsOK(ecode5)) {
37963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
37964 }
37965 arg5 = static_cast< int >(val5);
37966 if (obj5) {
37967 ecode6 = SWIG_AsVal_int(obj5, &val6);
37968 if (!SWIG_IsOK(ecode6)) {
37969 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
37970 }
37971 arg6 = static_cast< int >(val6);
37972 }
37973 {
37974 PyThreadState* __tstate = wxPyBeginAllowThreads();
37975 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
37976 wxPyEndAllowThreads(__tstate);
37977 if (PyErr_Occurred()) SWIG_fail;
37978 }
37979 resultobj = SWIG_Py_Void();
37980 return resultobj;
37981 fail:
37982 return NULL;
37983 }
37984
37985
37986 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37987 PyObject *resultobj = 0;
37988 wxPyControl *arg1 = (wxPyControl *) 0 ;
37989 int arg2 ;
37990 int arg3 ;
37991 void *argp1 = 0 ;
37992 int res1 = 0 ;
37993 int val2 ;
37994 int ecode2 = 0 ;
37995 int val3 ;
37996 int ecode3 = 0 ;
37997 PyObject * obj0 = 0 ;
37998 PyObject * obj1 = 0 ;
37999 PyObject * obj2 = 0 ;
38000 char * kwnames[] = {
38001 (char *) "self",(char *) "width",(char *) "height", NULL
38002 };
38003
38004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38006 if (!SWIG_IsOK(res1)) {
38007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38008 }
38009 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38010 ecode2 = SWIG_AsVal_int(obj1, &val2);
38011 if (!SWIG_IsOK(ecode2)) {
38012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38013 }
38014 arg2 = static_cast< int >(val2);
38015 ecode3 = SWIG_AsVal_int(obj2, &val3);
38016 if (!SWIG_IsOK(ecode3)) {
38017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38018 }
38019 arg3 = static_cast< int >(val3);
38020 {
38021 PyThreadState* __tstate = wxPyBeginAllowThreads();
38022 (arg1)->DoSetClientSize(arg2,arg3);
38023 wxPyEndAllowThreads(__tstate);
38024 if (PyErr_Occurred()) SWIG_fail;
38025 }
38026 resultobj = SWIG_Py_Void();
38027 return resultobj;
38028 fail:
38029 return NULL;
38030 }
38031
38032
38033 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38034 PyObject *resultobj = 0;
38035 wxPyControl *arg1 = (wxPyControl *) 0 ;
38036 int arg2 ;
38037 int arg3 ;
38038 void *argp1 = 0 ;
38039 int res1 = 0 ;
38040 int val2 ;
38041 int ecode2 = 0 ;
38042 int val3 ;
38043 int ecode3 = 0 ;
38044 PyObject * obj0 = 0 ;
38045 PyObject * obj1 = 0 ;
38046 PyObject * obj2 = 0 ;
38047 char * kwnames[] = {
38048 (char *) "self",(char *) "x",(char *) "y", NULL
38049 };
38050
38051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38053 if (!SWIG_IsOK(res1)) {
38054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38055 }
38056 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38057 ecode2 = SWIG_AsVal_int(obj1, &val2);
38058 if (!SWIG_IsOK(ecode2)) {
38059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38060 }
38061 arg2 = static_cast< int >(val2);
38062 ecode3 = SWIG_AsVal_int(obj2, &val3);
38063 if (!SWIG_IsOK(ecode3)) {
38064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38065 }
38066 arg3 = static_cast< int >(val3);
38067 {
38068 PyThreadState* __tstate = wxPyBeginAllowThreads();
38069 (arg1)->DoSetVirtualSize(arg2,arg3);
38070 wxPyEndAllowThreads(__tstate);
38071 if (PyErr_Occurred()) SWIG_fail;
38072 }
38073 resultobj = SWIG_Py_Void();
38074 return resultobj;
38075 fail:
38076 return NULL;
38077 }
38078
38079
38080 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38081 PyObject *resultobj = 0;
38082 wxPyControl *arg1 = (wxPyControl *) 0 ;
38083 int *arg2 = (int *) 0 ;
38084 int *arg3 = (int *) 0 ;
38085 void *argp1 = 0 ;
38086 int res1 = 0 ;
38087 int temp2 ;
38088 int res2 = SWIG_TMPOBJ ;
38089 int temp3 ;
38090 int res3 = SWIG_TMPOBJ ;
38091 PyObject *swig_obj[1] ;
38092
38093 arg2 = &temp2;
38094 arg3 = &temp3;
38095 if (!args) SWIG_fail;
38096 swig_obj[0] = args;
38097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38098 if (!SWIG_IsOK(res1)) {
38099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38100 }
38101 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 if (SWIG_IsTmpObj(res2)) {
38110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38111 } else {
38112 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38114 }
38115 if (SWIG_IsTmpObj(res3)) {
38116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38117 } else {
38118 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38120 }
38121 return resultobj;
38122 fail:
38123 return NULL;
38124 }
38125
38126
38127 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38128 PyObject *resultobj = 0;
38129 wxPyControl *arg1 = (wxPyControl *) 0 ;
38130 int *arg2 = (int *) 0 ;
38131 int *arg3 = (int *) 0 ;
38132 void *argp1 = 0 ;
38133 int res1 = 0 ;
38134 int temp2 ;
38135 int res2 = SWIG_TMPOBJ ;
38136 int temp3 ;
38137 int res3 = SWIG_TMPOBJ ;
38138 PyObject *swig_obj[1] ;
38139
38140 arg2 = &temp2;
38141 arg3 = &temp3;
38142 if (!args) SWIG_fail;
38143 swig_obj[0] = args;
38144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38145 if (!SWIG_IsOK(res1)) {
38146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38147 }
38148 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38149 {
38150 PyThreadState* __tstate = wxPyBeginAllowThreads();
38151 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38152 wxPyEndAllowThreads(__tstate);
38153 if (PyErr_Occurred()) SWIG_fail;
38154 }
38155 resultobj = SWIG_Py_Void();
38156 if (SWIG_IsTmpObj(res2)) {
38157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38158 } else {
38159 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38161 }
38162 if (SWIG_IsTmpObj(res3)) {
38163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38164 } else {
38165 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38167 }
38168 return resultobj;
38169 fail:
38170 return NULL;
38171 }
38172
38173
38174 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38175 PyObject *resultobj = 0;
38176 wxPyControl *arg1 = (wxPyControl *) 0 ;
38177 int *arg2 = (int *) 0 ;
38178 int *arg3 = (int *) 0 ;
38179 void *argp1 = 0 ;
38180 int res1 = 0 ;
38181 int temp2 ;
38182 int res2 = SWIG_TMPOBJ ;
38183 int temp3 ;
38184 int res3 = SWIG_TMPOBJ ;
38185 PyObject *swig_obj[1] ;
38186
38187 arg2 = &temp2;
38188 arg3 = &temp3;
38189 if (!args) SWIG_fail;
38190 swig_obj[0] = args;
38191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38192 if (!SWIG_IsOK(res1)) {
38193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38194 }
38195 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38196 {
38197 PyThreadState* __tstate = wxPyBeginAllowThreads();
38198 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38199 wxPyEndAllowThreads(__tstate);
38200 if (PyErr_Occurred()) SWIG_fail;
38201 }
38202 resultobj = SWIG_Py_Void();
38203 if (SWIG_IsTmpObj(res2)) {
38204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38205 } else {
38206 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38207 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38208 }
38209 if (SWIG_IsTmpObj(res3)) {
38210 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38211 } else {
38212 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38214 }
38215 return resultobj;
38216 fail:
38217 return NULL;
38218 }
38219
38220
38221 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38222 PyObject *resultobj = 0;
38223 wxPyControl *arg1 = (wxPyControl *) 0 ;
38224 wxSize result;
38225 void *argp1 = 0 ;
38226 int res1 = 0 ;
38227 PyObject *swig_obj[1] ;
38228
38229 if (!args) SWIG_fail;
38230 swig_obj[0] = args;
38231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38232 if (!SWIG_IsOK(res1)) {
38233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38234 }
38235 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38236 {
38237 PyThreadState* __tstate = wxPyBeginAllowThreads();
38238 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38239 wxPyEndAllowThreads(__tstate);
38240 if (PyErr_Occurred()) SWIG_fail;
38241 }
38242 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38243 return resultobj;
38244 fail:
38245 return NULL;
38246 }
38247
38248
38249 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38250 PyObject *resultobj = 0;
38251 wxPyControl *arg1 = (wxPyControl *) 0 ;
38252 wxSize result;
38253 void *argp1 = 0 ;
38254 int res1 = 0 ;
38255 PyObject *swig_obj[1] ;
38256
38257 if (!args) SWIG_fail;
38258 swig_obj[0] = args;
38259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38260 if (!SWIG_IsOK(res1)) {
38261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38262 }
38263 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38264 {
38265 PyThreadState* __tstate = wxPyBeginAllowThreads();
38266 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38267 wxPyEndAllowThreads(__tstate);
38268 if (PyErr_Occurred()) SWIG_fail;
38269 }
38270 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38271 return resultobj;
38272 fail:
38273 return NULL;
38274 }
38275
38276
38277 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38278 PyObject *resultobj = 0;
38279 wxPyControl *arg1 = (wxPyControl *) 0 ;
38280 SwigValueWrapper<wxVisualAttributes > result;
38281 void *argp1 = 0 ;
38282 int res1 = 0 ;
38283 PyObject *swig_obj[1] ;
38284
38285 if (!args) SWIG_fail;
38286 swig_obj[0] = args;
38287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38288 if (!SWIG_IsOK(res1)) {
38289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38290 }
38291 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38292 {
38293 PyThreadState* __tstate = wxPyBeginAllowThreads();
38294 result = (arg1)->GetDefaultAttributes();
38295 wxPyEndAllowThreads(__tstate);
38296 if (PyErr_Occurred()) SWIG_fail;
38297 }
38298 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38299 return resultobj;
38300 fail:
38301 return NULL;
38302 }
38303
38304
38305 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38306 PyObject *resultobj = 0;
38307 wxPyControl *arg1 = (wxPyControl *) 0 ;
38308 void *argp1 = 0 ;
38309 int res1 = 0 ;
38310 PyObject *swig_obj[1] ;
38311
38312 if (!args) SWIG_fail;
38313 swig_obj[0] = args;
38314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38315 if (!SWIG_IsOK(res1)) {
38316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38317 }
38318 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38319 {
38320 PyThreadState* __tstate = wxPyBeginAllowThreads();
38321 (arg1)->OnInternalIdle();
38322 wxPyEndAllowThreads(__tstate);
38323 if (PyErr_Occurred()) SWIG_fail;
38324 }
38325 resultobj = SWIG_Py_Void();
38326 return resultobj;
38327 fail:
38328 return NULL;
38329 }
38330
38331
38332 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38333 PyObject *obj;
38334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38335 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38336 return SWIG_Py_Void();
38337 }
38338
38339 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38340 return SWIG_Python_InitShadowInstance(args);
38341 }
38342
38343 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38344 PyObject *resultobj = 0;
38345 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38346 int arg2 = (int) 0 ;
38347 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38348 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38349 wxHelpEvent *result = 0 ;
38350 int val1 ;
38351 int ecode1 = 0 ;
38352 int val2 ;
38353 int ecode2 = 0 ;
38354 wxPoint temp3 ;
38355 PyObject * obj0 = 0 ;
38356 PyObject * obj1 = 0 ;
38357 PyObject * obj2 = 0 ;
38358 char * kwnames[] = {
38359 (char *) "type",(char *) "winid",(char *) "pt", NULL
38360 };
38361
38362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38363 if (obj0) {
38364 ecode1 = SWIG_AsVal_int(obj0, &val1);
38365 if (!SWIG_IsOK(ecode1)) {
38366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38367 }
38368 arg1 = static_cast< wxEventType >(val1);
38369 }
38370 if (obj1) {
38371 ecode2 = SWIG_AsVal_int(obj1, &val2);
38372 if (!SWIG_IsOK(ecode2)) {
38373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38374 }
38375 arg2 = static_cast< int >(val2);
38376 }
38377 if (obj2) {
38378 {
38379 arg3 = &temp3;
38380 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38381 }
38382 }
38383 {
38384 PyThreadState* __tstate = wxPyBeginAllowThreads();
38385 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38386 wxPyEndAllowThreads(__tstate);
38387 if (PyErr_Occurred()) SWIG_fail;
38388 }
38389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38390 return resultobj;
38391 fail:
38392 return NULL;
38393 }
38394
38395
38396 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38397 PyObject *resultobj = 0;
38398 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38399 wxPoint result;
38400 void *argp1 = 0 ;
38401 int res1 = 0 ;
38402 PyObject *swig_obj[1] ;
38403
38404 if (!args) SWIG_fail;
38405 swig_obj[0] = args;
38406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38407 if (!SWIG_IsOK(res1)) {
38408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38409 }
38410 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38411 {
38412 PyThreadState* __tstate = wxPyBeginAllowThreads();
38413 result = ((wxHelpEvent const *)arg1)->GetPosition();
38414 wxPyEndAllowThreads(__tstate);
38415 if (PyErr_Occurred()) SWIG_fail;
38416 }
38417 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38418 return resultobj;
38419 fail:
38420 return NULL;
38421 }
38422
38423
38424 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38425 PyObject *resultobj = 0;
38426 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38427 wxPoint *arg2 = 0 ;
38428 void *argp1 = 0 ;
38429 int res1 = 0 ;
38430 wxPoint temp2 ;
38431 PyObject * obj0 = 0 ;
38432 PyObject * obj1 = 0 ;
38433 char * kwnames[] = {
38434 (char *) "self",(char *) "pos", NULL
38435 };
38436
38437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38439 if (!SWIG_IsOK(res1)) {
38440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38441 }
38442 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38443 {
38444 arg2 = &temp2;
38445 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38446 }
38447 {
38448 PyThreadState* __tstate = wxPyBeginAllowThreads();
38449 (arg1)->SetPosition((wxPoint const &)*arg2);
38450 wxPyEndAllowThreads(__tstate);
38451 if (PyErr_Occurred()) SWIG_fail;
38452 }
38453 resultobj = SWIG_Py_Void();
38454 return resultobj;
38455 fail:
38456 return NULL;
38457 }
38458
38459
38460 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38461 PyObject *resultobj = 0;
38462 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38463 wxString *result = 0 ;
38464 void *argp1 = 0 ;
38465 int res1 = 0 ;
38466 PyObject *swig_obj[1] ;
38467
38468 if (!args) SWIG_fail;
38469 swig_obj[0] = args;
38470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38471 if (!SWIG_IsOK(res1)) {
38472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38473 }
38474 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38475 {
38476 PyThreadState* __tstate = wxPyBeginAllowThreads();
38477 {
38478 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38479 result = (wxString *) &_result_ref;
38480 }
38481 wxPyEndAllowThreads(__tstate);
38482 if (PyErr_Occurred()) SWIG_fail;
38483 }
38484 {
38485 #if wxUSE_UNICODE
38486 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38487 #else
38488 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38489 #endif
38490 }
38491 return resultobj;
38492 fail:
38493 return NULL;
38494 }
38495
38496
38497 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38498 PyObject *resultobj = 0;
38499 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38500 wxString *arg2 = 0 ;
38501 void *argp1 = 0 ;
38502 int res1 = 0 ;
38503 bool temp2 = false ;
38504 PyObject * obj0 = 0 ;
38505 PyObject * obj1 = 0 ;
38506 char * kwnames[] = {
38507 (char *) "self",(char *) "link", NULL
38508 };
38509
38510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38512 if (!SWIG_IsOK(res1)) {
38513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38514 }
38515 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38516 {
38517 arg2 = wxString_in_helper(obj1);
38518 if (arg2 == NULL) SWIG_fail;
38519 temp2 = true;
38520 }
38521 {
38522 PyThreadState* __tstate = wxPyBeginAllowThreads();
38523 (arg1)->SetLink((wxString const &)*arg2);
38524 wxPyEndAllowThreads(__tstate);
38525 if (PyErr_Occurred()) SWIG_fail;
38526 }
38527 resultobj = SWIG_Py_Void();
38528 {
38529 if (temp2)
38530 delete arg2;
38531 }
38532 return resultobj;
38533 fail:
38534 {
38535 if (temp2)
38536 delete arg2;
38537 }
38538 return NULL;
38539 }
38540
38541
38542 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38543 PyObject *resultobj = 0;
38544 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38545 wxString *result = 0 ;
38546 void *argp1 = 0 ;
38547 int res1 = 0 ;
38548 PyObject *swig_obj[1] ;
38549
38550 if (!args) SWIG_fail;
38551 swig_obj[0] = args;
38552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38553 if (!SWIG_IsOK(res1)) {
38554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38555 }
38556 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38557 {
38558 PyThreadState* __tstate = wxPyBeginAllowThreads();
38559 {
38560 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38561 result = (wxString *) &_result_ref;
38562 }
38563 wxPyEndAllowThreads(__tstate);
38564 if (PyErr_Occurred()) SWIG_fail;
38565 }
38566 {
38567 #if wxUSE_UNICODE
38568 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38569 #else
38570 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38571 #endif
38572 }
38573 return resultobj;
38574 fail:
38575 return NULL;
38576 }
38577
38578
38579 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38580 PyObject *resultobj = 0;
38581 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38582 wxString *arg2 = 0 ;
38583 void *argp1 = 0 ;
38584 int res1 = 0 ;
38585 bool temp2 = false ;
38586 PyObject * obj0 = 0 ;
38587 PyObject * obj1 = 0 ;
38588 char * kwnames[] = {
38589 (char *) "self",(char *) "target", NULL
38590 };
38591
38592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38594 if (!SWIG_IsOK(res1)) {
38595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38596 }
38597 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38598 {
38599 arg2 = wxString_in_helper(obj1);
38600 if (arg2 == NULL) SWIG_fail;
38601 temp2 = true;
38602 }
38603 {
38604 PyThreadState* __tstate = wxPyBeginAllowThreads();
38605 (arg1)->SetTarget((wxString const &)*arg2);
38606 wxPyEndAllowThreads(__tstate);
38607 if (PyErr_Occurred()) SWIG_fail;
38608 }
38609 resultobj = SWIG_Py_Void();
38610 {
38611 if (temp2)
38612 delete arg2;
38613 }
38614 return resultobj;
38615 fail:
38616 {
38617 if (temp2)
38618 delete arg2;
38619 }
38620 return NULL;
38621 }
38622
38623
38624 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38625 PyObject *obj;
38626 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38627 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
38628 return SWIG_Py_Void();
38629 }
38630
38631 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38632 return SWIG_Python_InitShadowInstance(args);
38633 }
38634
38635 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38636 PyObject *resultobj = 0;
38637 wxWindow *arg1 = (wxWindow *) NULL ;
38638 bool arg2 = (bool) true ;
38639 wxContextHelp *result = 0 ;
38640 void *argp1 = 0 ;
38641 int res1 = 0 ;
38642 bool val2 ;
38643 int ecode2 = 0 ;
38644 PyObject * obj0 = 0 ;
38645 PyObject * obj1 = 0 ;
38646 char * kwnames[] = {
38647 (char *) "window",(char *) "doNow", NULL
38648 };
38649
38650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38651 if (obj0) {
38652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38653 if (!SWIG_IsOK(res1)) {
38654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
38655 }
38656 arg1 = reinterpret_cast< wxWindow * >(argp1);
38657 }
38658 if (obj1) {
38659 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38660 if (!SWIG_IsOK(ecode2)) {
38661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
38662 }
38663 arg2 = static_cast< bool >(val2);
38664 }
38665 {
38666 if (!wxPyCheckForApp()) SWIG_fail;
38667 PyThreadState* __tstate = wxPyBeginAllowThreads();
38668 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
38669 wxPyEndAllowThreads(__tstate);
38670 if (PyErr_Occurred()) SWIG_fail;
38671 }
38672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
38673 return resultobj;
38674 fail:
38675 return NULL;
38676 }
38677
38678
38679 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38680 PyObject *resultobj = 0;
38681 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38682 void *argp1 = 0 ;
38683 int res1 = 0 ;
38684 PyObject *swig_obj[1] ;
38685
38686 if (!args) SWIG_fail;
38687 swig_obj[0] = args;
38688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
38689 if (!SWIG_IsOK(res1)) {
38690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38691 }
38692 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38693 {
38694 PyThreadState* __tstate = wxPyBeginAllowThreads();
38695 delete arg1;
38696
38697 wxPyEndAllowThreads(__tstate);
38698 if (PyErr_Occurred()) SWIG_fail;
38699 }
38700 resultobj = SWIG_Py_Void();
38701 return resultobj;
38702 fail:
38703 return NULL;
38704 }
38705
38706
38707 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38708 PyObject *resultobj = 0;
38709 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38710 wxWindow *arg2 = (wxWindow *) NULL ;
38711 bool result;
38712 void *argp1 = 0 ;
38713 int res1 = 0 ;
38714 void *argp2 = 0 ;
38715 int res2 = 0 ;
38716 PyObject * obj0 = 0 ;
38717 PyObject * obj1 = 0 ;
38718 char * kwnames[] = {
38719 (char *) "self",(char *) "window", NULL
38720 };
38721
38722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38724 if (!SWIG_IsOK(res1)) {
38725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38726 }
38727 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38728 if (obj1) {
38729 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38730 if (!SWIG_IsOK(res2)) {
38731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
38732 }
38733 arg2 = reinterpret_cast< wxWindow * >(argp2);
38734 }
38735 {
38736 PyThreadState* __tstate = wxPyBeginAllowThreads();
38737 result = (bool)(arg1)->BeginContextHelp(arg2);
38738 wxPyEndAllowThreads(__tstate);
38739 if (PyErr_Occurred()) SWIG_fail;
38740 }
38741 {
38742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38743 }
38744 return resultobj;
38745 fail:
38746 return NULL;
38747 }
38748
38749
38750 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38751 PyObject *resultobj = 0;
38752 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38753 bool result;
38754 void *argp1 = 0 ;
38755 int res1 = 0 ;
38756 PyObject *swig_obj[1] ;
38757
38758 if (!args) SWIG_fail;
38759 swig_obj[0] = args;
38760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38761 if (!SWIG_IsOK(res1)) {
38762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38763 }
38764 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38765 {
38766 PyThreadState* __tstate = wxPyBeginAllowThreads();
38767 result = (bool)(arg1)->EndContextHelp();
38768 wxPyEndAllowThreads(__tstate);
38769 if (PyErr_Occurred()) SWIG_fail;
38770 }
38771 {
38772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38773 }
38774 return resultobj;
38775 fail:
38776 return NULL;
38777 }
38778
38779
38780 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38781 PyObject *obj;
38782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38783 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
38784 return SWIG_Py_Void();
38785 }
38786
38787 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38788 return SWIG_Python_InitShadowInstance(args);
38789 }
38790
38791 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38792 PyObject *resultobj = 0;
38793 wxWindow *arg1 = (wxWindow *) 0 ;
38794 int arg2 = (int) wxID_CONTEXT_HELP ;
38795 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38796 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38797 wxSize const &arg4_defvalue = wxDefaultSize ;
38798 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38799 long arg5 = (long) wxBU_AUTODRAW ;
38800 wxContextHelpButton *result = 0 ;
38801 void *argp1 = 0 ;
38802 int res1 = 0 ;
38803 int val2 ;
38804 int ecode2 = 0 ;
38805 wxPoint temp3 ;
38806 wxSize temp4 ;
38807 long val5 ;
38808 int ecode5 = 0 ;
38809 PyObject * obj0 = 0 ;
38810 PyObject * obj1 = 0 ;
38811 PyObject * obj2 = 0 ;
38812 PyObject * obj3 = 0 ;
38813 PyObject * obj4 = 0 ;
38814 char * kwnames[] = {
38815 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38816 };
38817
38818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38820 if (!SWIG_IsOK(res1)) {
38821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
38822 }
38823 arg1 = reinterpret_cast< wxWindow * >(argp1);
38824 if (obj1) {
38825 ecode2 = SWIG_AsVal_int(obj1, &val2);
38826 if (!SWIG_IsOK(ecode2)) {
38827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
38828 }
38829 arg2 = static_cast< int >(val2);
38830 }
38831 if (obj2) {
38832 {
38833 arg3 = &temp3;
38834 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38835 }
38836 }
38837 if (obj3) {
38838 {
38839 arg4 = &temp4;
38840 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38841 }
38842 }
38843 if (obj4) {
38844 ecode5 = SWIG_AsVal_long(obj4, &val5);
38845 if (!SWIG_IsOK(ecode5)) {
38846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
38847 }
38848 arg5 = static_cast< long >(val5);
38849 }
38850 {
38851 if (!wxPyCheckForApp()) SWIG_fail;
38852 PyThreadState* __tstate = wxPyBeginAllowThreads();
38853 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38854 wxPyEndAllowThreads(__tstate);
38855 if (PyErr_Occurred()) SWIG_fail;
38856 }
38857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
38858 return resultobj;
38859 fail:
38860 return NULL;
38861 }
38862
38863
38864 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38865 PyObject *obj;
38866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38867 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
38868 return SWIG_Py_Void();
38869 }
38870
38871 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38872 return SWIG_Python_InitShadowInstance(args);
38873 }
38874
38875 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38876 PyObject *resultobj = 0;
38877 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
38878 wxHelpProvider *result = 0 ;
38879 int res1 = 0 ;
38880 PyObject * obj0 = 0 ;
38881 char * kwnames[] = {
38882 (char *) "helpProvider", NULL
38883 };
38884
38885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
38886 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
38887 if (!SWIG_IsOK(res1)) {
38888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
38889 }
38890 {
38891 PyThreadState* __tstate = wxPyBeginAllowThreads();
38892 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
38893 wxPyEndAllowThreads(__tstate);
38894 if (PyErr_Occurred()) SWIG_fail;
38895 }
38896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
38897 return resultobj;
38898 fail:
38899 return NULL;
38900 }
38901
38902
38903 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38904 PyObject *resultobj = 0;
38905 wxHelpProvider *result = 0 ;
38906
38907 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
38908 {
38909 PyThreadState* __tstate = wxPyBeginAllowThreads();
38910 result = (wxHelpProvider *)wxHelpProvider::Get();
38911 wxPyEndAllowThreads(__tstate);
38912 if (PyErr_Occurred()) SWIG_fail;
38913 }
38914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
38915 return resultobj;
38916 fail:
38917 return NULL;
38918 }
38919
38920
38921 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38922 PyObject *resultobj = 0;
38923 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
38924 wxWindow *arg2 = (wxWindow *) 0 ;
38925 wxString result;
38926 void *argp1 = 0 ;
38927 int res1 = 0 ;
38928 void *argp2 = 0 ;
38929 int res2 = 0 ;
38930 PyObject * obj0 = 0 ;
38931 PyObject * obj1 = 0 ;
38932 char * kwnames[] = {
38933 (char *) "self",(char *) "window", NULL
38934 };
38935
38936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
38938 if (!SWIG_IsOK(res1)) {
38939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
38940 }
38941 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
38942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38943 if (!SWIG_IsOK(res2)) {
38944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
38945 }
38946 arg2 = reinterpret_cast< wxWindow * >(argp2);
38947 {
38948 PyThreadState* __tstate = wxPyBeginAllowThreads();
38949 result = (arg1)->GetHelp((wxWindow const *)arg2);
38950 wxPyEndAllowThreads(__tstate);
38951 if (PyErr_Occurred()) SWIG_fail;
38952 }
38953 {
38954 #if wxUSE_UNICODE
38955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38956 #else
38957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38958 #endif
38959 }
38960 return resultobj;
38961 fail:
38962 return NULL;
38963 }
38964
38965
38966 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38967 PyObject *resultobj = 0;
38968 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
38969 wxWindow *arg2 = (wxWindow *) 0 ;
38970 bool result;
38971 void *argp1 = 0 ;
38972 int res1 = 0 ;
38973 void *argp2 = 0 ;
38974 int res2 = 0 ;
38975 PyObject * obj0 = 0 ;
38976 PyObject * obj1 = 0 ;
38977 char * kwnames[] = {
38978 (char *) "self",(char *) "window", NULL
38979 };
38980
38981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
38983 if (!SWIG_IsOK(res1)) {
38984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
38985 }
38986 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
38987 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38988 if (!SWIG_IsOK(res2)) {
38989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
38990 }
38991 arg2 = reinterpret_cast< wxWindow * >(argp2);
38992 {
38993 PyThreadState* __tstate = wxPyBeginAllowThreads();
38994 result = (bool)(arg1)->ShowHelp(arg2);
38995 wxPyEndAllowThreads(__tstate);
38996 if (PyErr_Occurred()) SWIG_fail;
38997 }
38998 {
38999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39000 }
39001 return resultobj;
39002 fail:
39003 return NULL;
39004 }
39005
39006
39007 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39008 PyObject *resultobj = 0;
39009 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39010 wxWindow *arg2 = (wxWindow *) 0 ;
39011 wxString *arg3 = 0 ;
39012 void *argp1 = 0 ;
39013 int res1 = 0 ;
39014 void *argp2 = 0 ;
39015 int res2 = 0 ;
39016 bool temp3 = false ;
39017 PyObject * obj0 = 0 ;
39018 PyObject * obj1 = 0 ;
39019 PyObject * obj2 = 0 ;
39020 char * kwnames[] = {
39021 (char *) "self",(char *) "window",(char *) "text", NULL
39022 };
39023
39024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39026 if (!SWIG_IsOK(res1)) {
39027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39028 }
39029 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39030 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39031 if (!SWIG_IsOK(res2)) {
39032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39033 }
39034 arg2 = reinterpret_cast< wxWindow * >(argp2);
39035 {
39036 arg3 = wxString_in_helper(obj2);
39037 if (arg3 == NULL) SWIG_fail;
39038 temp3 = true;
39039 }
39040 {
39041 PyThreadState* __tstate = wxPyBeginAllowThreads();
39042 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39043 wxPyEndAllowThreads(__tstate);
39044 if (PyErr_Occurred()) SWIG_fail;
39045 }
39046 resultobj = SWIG_Py_Void();
39047 {
39048 if (temp3)
39049 delete arg3;
39050 }
39051 return resultobj;
39052 fail:
39053 {
39054 if (temp3)
39055 delete arg3;
39056 }
39057 return NULL;
39058 }
39059
39060
39061 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39062 PyObject *resultobj = 0;
39063 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39064 int arg2 ;
39065 wxString *arg3 = 0 ;
39066 void *argp1 = 0 ;
39067 int res1 = 0 ;
39068 int val2 ;
39069 int ecode2 = 0 ;
39070 bool temp3 = false ;
39071 PyObject * obj0 = 0 ;
39072 PyObject * obj1 = 0 ;
39073 PyObject * obj2 = 0 ;
39074 char * kwnames[] = {
39075 (char *) "self",(char *) "id",(char *) "text", NULL
39076 };
39077
39078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39080 if (!SWIG_IsOK(res1)) {
39081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39082 }
39083 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39084 ecode2 = SWIG_AsVal_int(obj1, &val2);
39085 if (!SWIG_IsOK(ecode2)) {
39086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39087 }
39088 arg2 = static_cast< int >(val2);
39089 {
39090 arg3 = wxString_in_helper(obj2);
39091 if (arg3 == NULL) SWIG_fail;
39092 temp3 = true;
39093 }
39094 {
39095 PyThreadState* __tstate = wxPyBeginAllowThreads();
39096 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39097 wxPyEndAllowThreads(__tstate);
39098 if (PyErr_Occurred()) SWIG_fail;
39099 }
39100 resultobj = SWIG_Py_Void();
39101 {
39102 if (temp3)
39103 delete arg3;
39104 }
39105 return resultobj;
39106 fail:
39107 {
39108 if (temp3)
39109 delete arg3;
39110 }
39111 return NULL;
39112 }
39113
39114
39115 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39116 PyObject *resultobj = 0;
39117 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39118 wxWindow *arg2 = (wxWindow *) 0 ;
39119 void *argp1 = 0 ;
39120 int res1 = 0 ;
39121 void *argp2 = 0 ;
39122 int res2 = 0 ;
39123 PyObject * obj0 = 0 ;
39124 PyObject * obj1 = 0 ;
39125 char * kwnames[] = {
39126 (char *) "self",(char *) "window", NULL
39127 };
39128
39129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39131 if (!SWIG_IsOK(res1)) {
39132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39133 }
39134 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39136 if (!SWIG_IsOK(res2)) {
39137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39138 }
39139 arg2 = reinterpret_cast< wxWindow * >(argp2);
39140 {
39141 PyThreadState* __tstate = wxPyBeginAllowThreads();
39142 (arg1)->RemoveHelp(arg2);
39143 wxPyEndAllowThreads(__tstate);
39144 if (PyErr_Occurred()) SWIG_fail;
39145 }
39146 resultobj = SWIG_Py_Void();
39147 return resultobj;
39148 fail:
39149 return NULL;
39150 }
39151
39152
39153 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39154 PyObject *resultobj = 0;
39155 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39156 void *argp1 = 0 ;
39157 int res1 = 0 ;
39158 PyObject *swig_obj[1] ;
39159
39160 if (!args) SWIG_fail;
39161 swig_obj[0] = args;
39162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39163 if (!SWIG_IsOK(res1)) {
39164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39165 }
39166 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39167 {
39168 PyThreadState* __tstate = wxPyBeginAllowThreads();
39169 wxHelpProvider_Destroy(arg1);
39170 wxPyEndAllowThreads(__tstate);
39171 if (PyErr_Occurred()) SWIG_fail;
39172 }
39173 resultobj = SWIG_Py_Void();
39174 return resultobj;
39175 fail:
39176 return NULL;
39177 }
39178
39179
39180 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39181 PyObject *obj;
39182 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39183 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39184 return SWIG_Py_Void();
39185 }
39186
39187 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39188 PyObject *resultobj = 0;
39189 wxSimpleHelpProvider *result = 0 ;
39190
39191 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39192 {
39193 PyThreadState* __tstate = wxPyBeginAllowThreads();
39194 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39195 wxPyEndAllowThreads(__tstate);
39196 if (PyErr_Occurred()) SWIG_fail;
39197 }
39198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39199 return resultobj;
39200 fail:
39201 return NULL;
39202 }
39203
39204
39205 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39206 PyObject *obj;
39207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39208 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39209 return SWIG_Py_Void();
39210 }
39211
39212 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39213 return SWIG_Python_InitShadowInstance(args);
39214 }
39215
39216 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39217 PyObject *resultobj = 0;
39218 wxBitmap *arg1 = 0 ;
39219 wxCursor const &arg2_defvalue = wxNullCursor ;
39220 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39221 wxGenericDragImage *result = 0 ;
39222 void *argp1 = 0 ;
39223 int res1 = 0 ;
39224 void *argp2 = 0 ;
39225 int res2 = 0 ;
39226 PyObject * obj0 = 0 ;
39227 PyObject * obj1 = 0 ;
39228 char * kwnames[] = {
39229 (char *) "image",(char *) "cursor", NULL
39230 };
39231
39232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39233 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39234 if (!SWIG_IsOK(res1)) {
39235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39236 }
39237 if (!argp1) {
39238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39239 }
39240 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39241 if (obj1) {
39242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39243 if (!SWIG_IsOK(res2)) {
39244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39245 }
39246 if (!argp2) {
39247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39248 }
39249 arg2 = reinterpret_cast< wxCursor * >(argp2);
39250 }
39251 {
39252 if (!wxPyCheckForApp()) SWIG_fail;
39253 PyThreadState* __tstate = wxPyBeginAllowThreads();
39254 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39255 wxPyEndAllowThreads(__tstate);
39256 if (PyErr_Occurred()) SWIG_fail;
39257 }
39258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39259 return resultobj;
39260 fail:
39261 return NULL;
39262 }
39263
39264
39265 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39266 PyObject *resultobj = 0;
39267 wxIcon *arg1 = 0 ;
39268 wxCursor const &arg2_defvalue = wxNullCursor ;
39269 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39270 wxGenericDragImage *result = 0 ;
39271 void *argp1 = 0 ;
39272 int res1 = 0 ;
39273 void *argp2 = 0 ;
39274 int res2 = 0 ;
39275 PyObject * obj0 = 0 ;
39276 PyObject * obj1 = 0 ;
39277 char * kwnames[] = {
39278 (char *) "image",(char *) "cursor", NULL
39279 };
39280
39281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39283 if (!SWIG_IsOK(res1)) {
39284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39285 }
39286 if (!argp1) {
39287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39288 }
39289 arg1 = reinterpret_cast< wxIcon * >(argp1);
39290 if (obj1) {
39291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39292 if (!SWIG_IsOK(res2)) {
39293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39294 }
39295 if (!argp2) {
39296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39297 }
39298 arg2 = reinterpret_cast< wxCursor * >(argp2);
39299 }
39300 {
39301 if (!wxPyCheckForApp()) SWIG_fail;
39302 PyThreadState* __tstate = wxPyBeginAllowThreads();
39303 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39304 wxPyEndAllowThreads(__tstate);
39305 if (PyErr_Occurred()) SWIG_fail;
39306 }
39307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39308 return resultobj;
39309 fail:
39310 return NULL;
39311 }
39312
39313
39314 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39315 PyObject *resultobj = 0;
39316 wxString *arg1 = 0 ;
39317 wxCursor const &arg2_defvalue = wxNullCursor ;
39318 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39319 wxGenericDragImage *result = 0 ;
39320 bool temp1 = false ;
39321 void *argp2 = 0 ;
39322 int res2 = 0 ;
39323 PyObject * obj0 = 0 ;
39324 PyObject * obj1 = 0 ;
39325 char * kwnames[] = {
39326 (char *) "str",(char *) "cursor", NULL
39327 };
39328
39329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39330 {
39331 arg1 = wxString_in_helper(obj0);
39332 if (arg1 == NULL) SWIG_fail;
39333 temp1 = true;
39334 }
39335 if (obj1) {
39336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39337 if (!SWIG_IsOK(res2)) {
39338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39339 }
39340 if (!argp2) {
39341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39342 }
39343 arg2 = reinterpret_cast< wxCursor * >(argp2);
39344 }
39345 {
39346 if (!wxPyCheckForApp()) SWIG_fail;
39347 PyThreadState* __tstate = wxPyBeginAllowThreads();
39348 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39349 wxPyEndAllowThreads(__tstate);
39350 if (PyErr_Occurred()) SWIG_fail;
39351 }
39352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39353 {
39354 if (temp1)
39355 delete arg1;
39356 }
39357 return resultobj;
39358 fail:
39359 {
39360 if (temp1)
39361 delete arg1;
39362 }
39363 return NULL;
39364 }
39365
39366
39367 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39368 PyObject *resultobj = 0;
39369 wxPyTreeCtrl *arg1 = 0 ;
39370 wxTreeItemId *arg2 = 0 ;
39371 wxGenericDragImage *result = 0 ;
39372 void *argp1 = 0 ;
39373 int res1 = 0 ;
39374 void *argp2 = 0 ;
39375 int res2 = 0 ;
39376 PyObject * obj0 = 0 ;
39377 PyObject * obj1 = 0 ;
39378 char * kwnames[] = {
39379 (char *) "treeCtrl",(char *) "id", NULL
39380 };
39381
39382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39383 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39384 if (!SWIG_IsOK(res1)) {
39385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39386 }
39387 if (!argp1) {
39388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39389 }
39390 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39392 if (!SWIG_IsOK(res2)) {
39393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39394 }
39395 if (!argp2) {
39396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39397 }
39398 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39399 {
39400 if (!wxPyCheckForApp()) SWIG_fail;
39401 PyThreadState* __tstate = wxPyBeginAllowThreads();
39402 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39403 wxPyEndAllowThreads(__tstate);
39404 if (PyErr_Occurred()) SWIG_fail;
39405 }
39406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39407 return resultobj;
39408 fail:
39409 return NULL;
39410 }
39411
39412
39413 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39414 PyObject *resultobj = 0;
39415 wxPyListCtrl *arg1 = 0 ;
39416 long arg2 ;
39417 wxGenericDragImage *result = 0 ;
39418 void *argp1 = 0 ;
39419 int res1 = 0 ;
39420 long val2 ;
39421 int ecode2 = 0 ;
39422 PyObject * obj0 = 0 ;
39423 PyObject * obj1 = 0 ;
39424 char * kwnames[] = {
39425 (char *) "listCtrl",(char *) "id", NULL
39426 };
39427
39428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39429 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39430 if (!SWIG_IsOK(res1)) {
39431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39432 }
39433 if (!argp1) {
39434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39435 }
39436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39437 ecode2 = SWIG_AsVal_long(obj1, &val2);
39438 if (!SWIG_IsOK(ecode2)) {
39439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39440 }
39441 arg2 = static_cast< long >(val2);
39442 {
39443 if (!wxPyCheckForApp()) SWIG_fail;
39444 PyThreadState* __tstate = wxPyBeginAllowThreads();
39445 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39446 wxPyEndAllowThreads(__tstate);
39447 if (PyErr_Occurred()) SWIG_fail;
39448 }
39449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39450 return resultobj;
39451 fail:
39452 return NULL;
39453 }
39454
39455
39456 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39457 PyObject *resultobj = 0;
39458 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39459 void *argp1 = 0 ;
39460 int res1 = 0 ;
39461 PyObject *swig_obj[1] ;
39462
39463 if (!args) SWIG_fail;
39464 swig_obj[0] = args;
39465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39466 if (!SWIG_IsOK(res1)) {
39467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39468 }
39469 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39470 {
39471 PyThreadState* __tstate = wxPyBeginAllowThreads();
39472 delete arg1;
39473
39474 wxPyEndAllowThreads(__tstate);
39475 if (PyErr_Occurred()) SWIG_fail;
39476 }
39477 resultobj = SWIG_Py_Void();
39478 return resultobj;
39479 fail:
39480 return NULL;
39481 }
39482
39483
39484 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39485 PyObject *resultobj = 0;
39486 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39487 wxBitmap *arg2 = (wxBitmap *) 0 ;
39488 void *argp1 = 0 ;
39489 int res1 = 0 ;
39490 void *argp2 = 0 ;
39491 int res2 = 0 ;
39492 PyObject * obj0 = 0 ;
39493 PyObject * obj1 = 0 ;
39494 char * kwnames[] = {
39495 (char *) "self",(char *) "bitmap", NULL
39496 };
39497
39498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39500 if (!SWIG_IsOK(res1)) {
39501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39502 }
39503 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39504 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39505 if (!SWIG_IsOK(res2)) {
39506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39507 }
39508 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39509 {
39510 PyThreadState* __tstate = wxPyBeginAllowThreads();
39511 (arg1)->SetBackingBitmap(arg2);
39512 wxPyEndAllowThreads(__tstate);
39513 if (PyErr_Occurred()) SWIG_fail;
39514 }
39515 resultobj = SWIG_Py_Void();
39516 return resultobj;
39517 fail:
39518 return NULL;
39519 }
39520
39521
39522 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39523 PyObject *resultobj = 0;
39524 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39525 wxPoint *arg2 = 0 ;
39526 wxWindow *arg3 = (wxWindow *) 0 ;
39527 bool arg4 = (bool) false ;
39528 wxRect *arg5 = (wxRect *) NULL ;
39529 bool result;
39530 void *argp1 = 0 ;
39531 int res1 = 0 ;
39532 wxPoint temp2 ;
39533 void *argp3 = 0 ;
39534 int res3 = 0 ;
39535 bool val4 ;
39536 int ecode4 = 0 ;
39537 void *argp5 = 0 ;
39538 int res5 = 0 ;
39539 PyObject * obj0 = 0 ;
39540 PyObject * obj1 = 0 ;
39541 PyObject * obj2 = 0 ;
39542 PyObject * obj3 = 0 ;
39543 PyObject * obj4 = 0 ;
39544 char * kwnames[] = {
39545 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39546 };
39547
39548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39550 if (!SWIG_IsOK(res1)) {
39551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39552 }
39553 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39554 {
39555 arg2 = &temp2;
39556 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39557 }
39558 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39559 if (!SWIG_IsOK(res3)) {
39560 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39561 }
39562 arg3 = reinterpret_cast< wxWindow * >(argp3);
39563 if (obj3) {
39564 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39565 if (!SWIG_IsOK(ecode4)) {
39566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39567 }
39568 arg4 = static_cast< bool >(val4);
39569 }
39570 if (obj4) {
39571 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39572 if (!SWIG_IsOK(res5)) {
39573 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
39574 }
39575 arg5 = reinterpret_cast< wxRect * >(argp5);
39576 }
39577 {
39578 PyThreadState* __tstate = wxPyBeginAllowThreads();
39579 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
39580 wxPyEndAllowThreads(__tstate);
39581 if (PyErr_Occurred()) SWIG_fail;
39582 }
39583 {
39584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39585 }
39586 return resultobj;
39587 fail:
39588 return NULL;
39589 }
39590
39591
39592 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39593 PyObject *resultobj = 0;
39594 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39595 wxPoint *arg2 = 0 ;
39596 wxWindow *arg3 = (wxWindow *) 0 ;
39597 wxWindow *arg4 = (wxWindow *) 0 ;
39598 bool result;
39599 void *argp1 = 0 ;
39600 int res1 = 0 ;
39601 wxPoint temp2 ;
39602 void *argp3 = 0 ;
39603 int res3 = 0 ;
39604 void *argp4 = 0 ;
39605 int res4 = 0 ;
39606 PyObject * obj0 = 0 ;
39607 PyObject * obj1 = 0 ;
39608 PyObject * obj2 = 0 ;
39609 PyObject * obj3 = 0 ;
39610 char * kwnames[] = {
39611 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
39612 };
39613
39614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39616 if (!SWIG_IsOK(res1)) {
39617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39618 }
39619 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39620 {
39621 arg2 = &temp2;
39622 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39623 }
39624 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39625 if (!SWIG_IsOK(res3)) {
39626 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
39627 }
39628 arg3 = reinterpret_cast< wxWindow * >(argp3);
39629 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
39630 if (!SWIG_IsOK(res4)) {
39631 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
39632 }
39633 arg4 = reinterpret_cast< wxWindow * >(argp4);
39634 {
39635 PyThreadState* __tstate = wxPyBeginAllowThreads();
39636 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
39637 wxPyEndAllowThreads(__tstate);
39638 if (PyErr_Occurred()) SWIG_fail;
39639 }
39640 {
39641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39642 }
39643 return resultobj;
39644 fail:
39645 return NULL;
39646 }
39647
39648
39649 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39650 PyObject *resultobj = 0;
39651 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39652 bool result;
39653 void *argp1 = 0 ;
39654 int res1 = 0 ;
39655 PyObject *swig_obj[1] ;
39656
39657 if (!args) SWIG_fail;
39658 swig_obj[0] = args;
39659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39660 if (!SWIG_IsOK(res1)) {
39661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39662 }
39663 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39664 {
39665 PyThreadState* __tstate = wxPyBeginAllowThreads();
39666 result = (bool)(arg1)->EndDrag();
39667 wxPyEndAllowThreads(__tstate);
39668 if (PyErr_Occurred()) SWIG_fail;
39669 }
39670 {
39671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39672 }
39673 return resultobj;
39674 fail:
39675 return NULL;
39676 }
39677
39678
39679 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39680 PyObject *resultobj = 0;
39681 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39682 wxPoint *arg2 = 0 ;
39683 bool result;
39684 void *argp1 = 0 ;
39685 int res1 = 0 ;
39686 wxPoint temp2 ;
39687 PyObject * obj0 = 0 ;
39688 PyObject * obj1 = 0 ;
39689 char * kwnames[] = {
39690 (char *) "self",(char *) "pt", NULL
39691 };
39692
39693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
39694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39695 if (!SWIG_IsOK(res1)) {
39696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39697 }
39698 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39699 {
39700 arg2 = &temp2;
39701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39702 }
39703 {
39704 PyThreadState* __tstate = wxPyBeginAllowThreads();
39705 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
39706 wxPyEndAllowThreads(__tstate);
39707 if (PyErr_Occurred()) SWIG_fail;
39708 }
39709 {
39710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39711 }
39712 return resultobj;
39713 fail:
39714 return NULL;
39715 }
39716
39717
39718 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39719 PyObject *resultobj = 0;
39720 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39721 bool result;
39722 void *argp1 = 0 ;
39723 int res1 = 0 ;
39724 PyObject *swig_obj[1] ;
39725
39726 if (!args) SWIG_fail;
39727 swig_obj[0] = args;
39728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39729 if (!SWIG_IsOK(res1)) {
39730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39731 }
39732 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39733 {
39734 PyThreadState* __tstate = wxPyBeginAllowThreads();
39735 result = (bool)(arg1)->Show();
39736 wxPyEndAllowThreads(__tstate);
39737 if (PyErr_Occurred()) SWIG_fail;
39738 }
39739 {
39740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39741 }
39742 return resultobj;
39743 fail:
39744 return NULL;
39745 }
39746
39747
39748 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39749 PyObject *resultobj = 0;
39750 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39751 bool result;
39752 void *argp1 = 0 ;
39753 int res1 = 0 ;
39754 PyObject *swig_obj[1] ;
39755
39756 if (!args) SWIG_fail;
39757 swig_obj[0] = args;
39758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39759 if (!SWIG_IsOK(res1)) {
39760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39761 }
39762 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39763 {
39764 PyThreadState* __tstate = wxPyBeginAllowThreads();
39765 result = (bool)(arg1)->Hide();
39766 wxPyEndAllowThreads(__tstate);
39767 if (PyErr_Occurred()) SWIG_fail;
39768 }
39769 {
39770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39771 }
39772 return resultobj;
39773 fail:
39774 return NULL;
39775 }
39776
39777
39778 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39779 PyObject *resultobj = 0;
39780 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39781 wxPoint *arg2 = 0 ;
39782 wxRect result;
39783 void *argp1 = 0 ;
39784 int res1 = 0 ;
39785 wxPoint temp2 ;
39786 PyObject * obj0 = 0 ;
39787 PyObject * obj1 = 0 ;
39788 char * kwnames[] = {
39789 (char *) "self",(char *) "pos", NULL
39790 };
39791
39792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
39793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39794 if (!SWIG_IsOK(res1)) {
39795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
39796 }
39797 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39798 {
39799 arg2 = &temp2;
39800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39801 }
39802 {
39803 PyThreadState* __tstate = wxPyBeginAllowThreads();
39804 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
39805 wxPyEndAllowThreads(__tstate);
39806 if (PyErr_Occurred()) SWIG_fail;
39807 }
39808 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
39809 return resultobj;
39810 fail:
39811 return NULL;
39812 }
39813
39814
39815 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39816 PyObject *resultobj = 0;
39817 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39818 wxDC *arg2 = 0 ;
39819 wxPoint *arg3 = 0 ;
39820 bool result;
39821 void *argp1 = 0 ;
39822 int res1 = 0 ;
39823 void *argp2 = 0 ;
39824 int res2 = 0 ;
39825 wxPoint temp3 ;
39826 PyObject * obj0 = 0 ;
39827 PyObject * obj1 = 0 ;
39828 PyObject * obj2 = 0 ;
39829 char * kwnames[] = {
39830 (char *) "self",(char *) "dc",(char *) "pos", NULL
39831 };
39832
39833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39835 if (!SWIG_IsOK(res1)) {
39836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
39837 }
39838 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
39840 if (!SWIG_IsOK(res2)) {
39841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
39842 }
39843 if (!argp2) {
39844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
39845 }
39846 arg2 = reinterpret_cast< wxDC * >(argp2);
39847 {
39848 arg3 = &temp3;
39849 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39850 }
39851 {
39852 PyThreadState* __tstate = wxPyBeginAllowThreads();
39853 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
39854 wxPyEndAllowThreads(__tstate);
39855 if (PyErr_Occurred()) SWIG_fail;
39856 }
39857 {
39858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39859 }
39860 return resultobj;
39861 fail:
39862 return NULL;
39863 }
39864
39865
39866 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39867 PyObject *resultobj = 0;
39868 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39869 wxDC *arg2 = 0 ;
39870 wxMemoryDC *arg3 = 0 ;
39871 wxRect *arg4 = 0 ;
39872 wxRect *arg5 = 0 ;
39873 bool result;
39874 void *argp1 = 0 ;
39875 int res1 = 0 ;
39876 void *argp2 = 0 ;
39877 int res2 = 0 ;
39878 void *argp3 = 0 ;
39879 int res3 = 0 ;
39880 wxRect temp4 ;
39881 wxRect temp5 ;
39882 PyObject * obj0 = 0 ;
39883 PyObject * obj1 = 0 ;
39884 PyObject * obj2 = 0 ;
39885 PyObject * obj3 = 0 ;
39886 PyObject * obj4 = 0 ;
39887 char * kwnames[] = {
39888 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
39889 };
39890
39891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39893 if (!SWIG_IsOK(res1)) {
39894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
39895 }
39896 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
39898 if (!SWIG_IsOK(res2)) {
39899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
39900 }
39901 if (!argp2) {
39902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
39903 }
39904 arg2 = reinterpret_cast< wxDC * >(argp2);
39905 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
39906 if (!SWIG_IsOK(res3)) {
39907 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
39908 }
39909 if (!argp3) {
39910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
39911 }
39912 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
39913 {
39914 arg4 = &temp4;
39915 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
39916 }
39917 {
39918 arg5 = &temp5;
39919 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
39920 }
39921 {
39922 PyThreadState* __tstate = wxPyBeginAllowThreads();
39923 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
39924 wxPyEndAllowThreads(__tstate);
39925 if (PyErr_Occurred()) SWIG_fail;
39926 }
39927 {
39928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39929 }
39930 return resultobj;
39931 fail:
39932 return NULL;
39933 }
39934
39935
39936 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39937 PyObject *resultobj = 0;
39938 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39939 wxPoint *arg2 = 0 ;
39940 wxPoint *arg3 = 0 ;
39941 bool arg4 ;
39942 bool arg5 ;
39943 bool result;
39944 void *argp1 = 0 ;
39945 int res1 = 0 ;
39946 wxPoint temp2 ;
39947 wxPoint temp3 ;
39948 bool val4 ;
39949 int ecode4 = 0 ;
39950 bool val5 ;
39951 int ecode5 = 0 ;
39952 PyObject * obj0 = 0 ;
39953 PyObject * obj1 = 0 ;
39954 PyObject * obj2 = 0 ;
39955 PyObject * obj3 = 0 ;
39956 PyObject * obj4 = 0 ;
39957 char * kwnames[] = {
39958 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
39959 };
39960
39961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39963 if (!SWIG_IsOK(res1)) {
39964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39965 }
39966 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39967 {
39968 arg2 = &temp2;
39969 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39970 }
39971 {
39972 arg3 = &temp3;
39973 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39974 }
39975 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39976 if (!SWIG_IsOK(ecode4)) {
39977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
39978 }
39979 arg4 = static_cast< bool >(val4);
39980 ecode5 = SWIG_AsVal_bool(obj4, &val5);
39981 if (!SWIG_IsOK(ecode5)) {
39982 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
39983 }
39984 arg5 = static_cast< bool >(val5);
39985 {
39986 PyThreadState* __tstate = wxPyBeginAllowThreads();
39987 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
39988 wxPyEndAllowThreads(__tstate);
39989 if (PyErr_Occurred()) SWIG_fail;
39990 }
39991 {
39992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39993 }
39994 return resultobj;
39995 fail:
39996 return NULL;
39997 }
39998
39999
40000 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40001 PyObject *obj;
40002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40003 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40004 return SWIG_Py_Void();
40005 }
40006
40007 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40008 return SWIG_Python_InitShadowInstance(args);
40009 }
40010
40011 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40012 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40013 return 1;
40014 }
40015
40016
40017 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40018 PyObject *pyobj = 0;
40019
40020 {
40021 #if wxUSE_UNICODE
40022 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40023 #else
40024 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40025 #endif
40026 }
40027 return pyobj;
40028 }
40029
40030
40031 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40032 PyObject *resultobj = 0;
40033 wxWindow *arg1 = (wxWindow *) 0 ;
40034 int arg2 = (int) -1 ;
40035 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40036 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40037 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40038 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40039 wxSize const &arg5_defvalue = wxDefaultSize ;
40040 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40041 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40042 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40043 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40044 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40045 wxString *arg8 = (wxString *) &arg8_defvalue ;
40046 wxDatePickerCtrl *result = 0 ;
40047 void *argp1 = 0 ;
40048 int res1 = 0 ;
40049 int val2 ;
40050 int ecode2 = 0 ;
40051 void *argp3 = 0 ;
40052 int res3 = 0 ;
40053 wxPoint temp4 ;
40054 wxSize temp5 ;
40055 long val6 ;
40056 int ecode6 = 0 ;
40057 void *argp7 = 0 ;
40058 int res7 = 0 ;
40059 bool temp8 = false ;
40060 PyObject * obj0 = 0 ;
40061 PyObject * obj1 = 0 ;
40062 PyObject * obj2 = 0 ;
40063 PyObject * obj3 = 0 ;
40064 PyObject * obj4 = 0 ;
40065 PyObject * obj5 = 0 ;
40066 PyObject * obj6 = 0 ;
40067 PyObject * obj7 = 0 ;
40068 char * kwnames[] = {
40069 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40070 };
40071
40072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40074 if (!SWIG_IsOK(res1)) {
40075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40076 }
40077 arg1 = reinterpret_cast< wxWindow * >(argp1);
40078 if (obj1) {
40079 ecode2 = SWIG_AsVal_int(obj1, &val2);
40080 if (!SWIG_IsOK(ecode2)) {
40081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40082 }
40083 arg2 = static_cast< int >(val2);
40084 }
40085 if (obj2) {
40086 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40087 if (!SWIG_IsOK(res3)) {
40088 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40089 }
40090 if (!argp3) {
40091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40092 }
40093 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40094 }
40095 if (obj3) {
40096 {
40097 arg4 = &temp4;
40098 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40099 }
40100 }
40101 if (obj4) {
40102 {
40103 arg5 = &temp5;
40104 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40105 }
40106 }
40107 if (obj5) {
40108 ecode6 = SWIG_AsVal_long(obj5, &val6);
40109 if (!SWIG_IsOK(ecode6)) {
40110 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40111 }
40112 arg6 = static_cast< long >(val6);
40113 }
40114 if (obj6) {
40115 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40116 if (!SWIG_IsOK(res7)) {
40117 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40118 }
40119 if (!argp7) {
40120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40121 }
40122 arg7 = reinterpret_cast< wxValidator * >(argp7);
40123 }
40124 if (obj7) {
40125 {
40126 arg8 = wxString_in_helper(obj7);
40127 if (arg8 == NULL) SWIG_fail;
40128 temp8 = true;
40129 }
40130 }
40131 {
40132 if (!wxPyCheckForApp()) SWIG_fail;
40133 PyThreadState* __tstate = wxPyBeginAllowThreads();
40134 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40135 wxPyEndAllowThreads(__tstate);
40136 if (PyErr_Occurred()) SWIG_fail;
40137 }
40138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40139 {
40140 if (temp8)
40141 delete arg8;
40142 }
40143 return resultobj;
40144 fail:
40145 {
40146 if (temp8)
40147 delete arg8;
40148 }
40149 return NULL;
40150 }
40151
40152
40153 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40154 PyObject *resultobj = 0;
40155 wxDatePickerCtrl *result = 0 ;
40156
40157 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40158 {
40159 if (!wxPyCheckForApp()) SWIG_fail;
40160 PyThreadState* __tstate = wxPyBeginAllowThreads();
40161 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40162 wxPyEndAllowThreads(__tstate);
40163 if (PyErr_Occurred()) SWIG_fail;
40164 }
40165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40166 return resultobj;
40167 fail:
40168 return NULL;
40169 }
40170
40171
40172 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40173 PyObject *resultobj = 0;
40174 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40175 wxWindow *arg2 = (wxWindow *) 0 ;
40176 int arg3 = (int) -1 ;
40177 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40178 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40181 wxSize const &arg6_defvalue = wxDefaultSize ;
40182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40183 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40184 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40185 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40186 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40187 wxString *arg9 = (wxString *) &arg9_defvalue ;
40188 bool result;
40189 void *argp1 = 0 ;
40190 int res1 = 0 ;
40191 void *argp2 = 0 ;
40192 int res2 = 0 ;
40193 int val3 ;
40194 int ecode3 = 0 ;
40195 void *argp4 = 0 ;
40196 int res4 = 0 ;
40197 wxPoint temp5 ;
40198 wxSize temp6 ;
40199 long val7 ;
40200 int ecode7 = 0 ;
40201 void *argp8 = 0 ;
40202 int res8 = 0 ;
40203 bool temp9 = false ;
40204 PyObject * obj0 = 0 ;
40205 PyObject * obj1 = 0 ;
40206 PyObject * obj2 = 0 ;
40207 PyObject * obj3 = 0 ;
40208 PyObject * obj4 = 0 ;
40209 PyObject * obj5 = 0 ;
40210 PyObject * obj6 = 0 ;
40211 PyObject * obj7 = 0 ;
40212 PyObject * obj8 = 0 ;
40213 char * kwnames[] = {
40214 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40215 };
40216
40217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40219 if (!SWIG_IsOK(res1)) {
40220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40221 }
40222 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40223 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40224 if (!SWIG_IsOK(res2)) {
40225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40226 }
40227 arg2 = reinterpret_cast< wxWindow * >(argp2);
40228 if (obj2) {
40229 ecode3 = SWIG_AsVal_int(obj2, &val3);
40230 if (!SWIG_IsOK(ecode3)) {
40231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40232 }
40233 arg3 = static_cast< int >(val3);
40234 }
40235 if (obj3) {
40236 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40237 if (!SWIG_IsOK(res4)) {
40238 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40239 }
40240 if (!argp4) {
40241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40242 }
40243 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40244 }
40245 if (obj4) {
40246 {
40247 arg5 = &temp5;
40248 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40249 }
40250 }
40251 if (obj5) {
40252 {
40253 arg6 = &temp6;
40254 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40255 }
40256 }
40257 if (obj6) {
40258 ecode7 = SWIG_AsVal_long(obj6, &val7);
40259 if (!SWIG_IsOK(ecode7)) {
40260 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40261 }
40262 arg7 = static_cast< long >(val7);
40263 }
40264 if (obj7) {
40265 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40266 if (!SWIG_IsOK(res8)) {
40267 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40268 }
40269 if (!argp8) {
40270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40271 }
40272 arg8 = reinterpret_cast< wxValidator * >(argp8);
40273 }
40274 if (obj8) {
40275 {
40276 arg9 = wxString_in_helper(obj8);
40277 if (arg9 == NULL) SWIG_fail;
40278 temp9 = true;
40279 }
40280 }
40281 {
40282 PyThreadState* __tstate = wxPyBeginAllowThreads();
40283 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40284 wxPyEndAllowThreads(__tstate);
40285 if (PyErr_Occurred()) SWIG_fail;
40286 }
40287 {
40288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40289 }
40290 {
40291 if (temp9)
40292 delete arg9;
40293 }
40294 return resultobj;
40295 fail:
40296 {
40297 if (temp9)
40298 delete arg9;
40299 }
40300 return NULL;
40301 }
40302
40303
40304 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40305 PyObject *resultobj = 0;
40306 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40307 wxDateTime *arg2 = 0 ;
40308 void *argp1 = 0 ;
40309 int res1 = 0 ;
40310 void *argp2 = 0 ;
40311 int res2 = 0 ;
40312 PyObject * obj0 = 0 ;
40313 PyObject * obj1 = 0 ;
40314 char * kwnames[] = {
40315 (char *) "self",(char *) "dt", NULL
40316 };
40317
40318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40320 if (!SWIG_IsOK(res1)) {
40321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40322 }
40323 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40325 if (!SWIG_IsOK(res2)) {
40326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40327 }
40328 if (!argp2) {
40329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40330 }
40331 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40332 {
40333 PyThreadState* __tstate = wxPyBeginAllowThreads();
40334 (arg1)->SetValue((wxDateTime const &)*arg2);
40335 wxPyEndAllowThreads(__tstate);
40336 if (PyErr_Occurred()) SWIG_fail;
40337 }
40338 resultobj = SWIG_Py_Void();
40339 return resultobj;
40340 fail:
40341 return NULL;
40342 }
40343
40344
40345 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40346 PyObject *resultobj = 0;
40347 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40348 wxDateTime result;
40349 void *argp1 = 0 ;
40350 int res1 = 0 ;
40351 PyObject *swig_obj[1] ;
40352
40353 if (!args) SWIG_fail;
40354 swig_obj[0] = args;
40355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40356 if (!SWIG_IsOK(res1)) {
40357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40358 }
40359 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40360 {
40361 PyThreadState* __tstate = wxPyBeginAllowThreads();
40362 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40363 wxPyEndAllowThreads(__tstate);
40364 if (PyErr_Occurred()) SWIG_fail;
40365 }
40366 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40367 return resultobj;
40368 fail:
40369 return NULL;
40370 }
40371
40372
40373 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40374 PyObject *resultobj = 0;
40375 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40376 wxDateTime *arg2 = 0 ;
40377 wxDateTime *arg3 = 0 ;
40378 void *argp1 = 0 ;
40379 int res1 = 0 ;
40380 void *argp2 = 0 ;
40381 int res2 = 0 ;
40382 void *argp3 = 0 ;
40383 int res3 = 0 ;
40384 PyObject * obj0 = 0 ;
40385 PyObject * obj1 = 0 ;
40386 PyObject * obj2 = 0 ;
40387 char * kwnames[] = {
40388 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40389 };
40390
40391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40393 if (!SWIG_IsOK(res1)) {
40394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40395 }
40396 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40397 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40398 if (!SWIG_IsOK(res2)) {
40399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40400 }
40401 if (!argp2) {
40402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40403 }
40404 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40405 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40406 if (!SWIG_IsOK(res3)) {
40407 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40408 }
40409 if (!argp3) {
40410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40411 }
40412 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40413 {
40414 PyThreadState* __tstate = wxPyBeginAllowThreads();
40415 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40416 wxPyEndAllowThreads(__tstate);
40417 if (PyErr_Occurred()) SWIG_fail;
40418 }
40419 resultobj = SWIG_Py_Void();
40420 return resultobj;
40421 fail:
40422 return NULL;
40423 }
40424
40425
40426 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40427 PyObject *resultobj = 0;
40428 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40429 wxDateTime result;
40430 void *argp1 = 0 ;
40431 int res1 = 0 ;
40432 PyObject *swig_obj[1] ;
40433
40434 if (!args) SWIG_fail;
40435 swig_obj[0] = args;
40436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40437 if (!SWIG_IsOK(res1)) {
40438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40439 }
40440 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40441 {
40442 PyThreadState* __tstate = wxPyBeginAllowThreads();
40443 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40444 wxPyEndAllowThreads(__tstate);
40445 if (PyErr_Occurred()) SWIG_fail;
40446 }
40447 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40448 return resultobj;
40449 fail:
40450 return NULL;
40451 }
40452
40453
40454 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40455 PyObject *resultobj = 0;
40456 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40457 wxDateTime result;
40458 void *argp1 = 0 ;
40459 int res1 = 0 ;
40460 PyObject *swig_obj[1] ;
40461
40462 if (!args) SWIG_fail;
40463 swig_obj[0] = args;
40464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40465 if (!SWIG_IsOK(res1)) {
40466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40467 }
40468 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40469 {
40470 PyThreadState* __tstate = wxPyBeginAllowThreads();
40471 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40472 wxPyEndAllowThreads(__tstate);
40473 if (PyErr_Occurred()) SWIG_fail;
40474 }
40475 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40476 return resultobj;
40477 fail:
40478 return NULL;
40479 }
40480
40481
40482 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40483 PyObject *obj;
40484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40485 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40486 return SWIG_Py_Void();
40487 }
40488
40489 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40490 return SWIG_Python_InitShadowInstance(args);
40491 }
40492
40493 static PyMethodDef SwigMethods[] = {
40494 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40495 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40496 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40497 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40498 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40499 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40500 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40501 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40502 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40503 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40504 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40505 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40506 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40507 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40508 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40509 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40510 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40511 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40512 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40513 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40514 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40515 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40516 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40517 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40518 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40519 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40520 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40521 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40522 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40523 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40524 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40525 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40526 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40527 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40528 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40529 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40530 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40531 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40532 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40533 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40534 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40535 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40536 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40537 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40538 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40539 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40540 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40541 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40542 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40543 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40544 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40545 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40546 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40547 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40548 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40549 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40550 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40551 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40552 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40553 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
40554 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40555 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40556 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40557 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40558 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40559 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40560 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40561 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40562 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40563 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40564 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40565 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40566 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40567 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40568 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40569 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40570 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40571 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40572 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40573 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40574 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40575 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40576 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40577 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40578 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
40579 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
40580 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
40581 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
40582 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
40583 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40584 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
40585 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
40586 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
40587 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
40588 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40589 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40590 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
40591 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
40592 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
40593 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
40594 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40595 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
40596 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
40597 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40598 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
40599 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
40600 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
40601 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
40602 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40603 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
40604 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40605 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
40606 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
40607 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40608 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
40609 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40610 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
40611 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40612 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40613 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40614 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
40615 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
40616 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40617 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
40618 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40619 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
40620 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
40621 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40622 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40623 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40624 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
40625 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
40626 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
40627 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40628 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
40629 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
40630 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
40631 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40632 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40633 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
40634 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40635 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40636 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40637 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
40638 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40639 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
40640 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
40641 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40642 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
40643 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40644 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
40645 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
40646 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
40647 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
40648 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
40649 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
40650 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
40651 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
40652 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
40653 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40654 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40655 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
40656 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
40657 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40658 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40659 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
40660 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
40661 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
40662 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
40663 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
40664 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
40665 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
40666 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
40667 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
40668 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
40669 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
40670 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
40671 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
40672 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
40673 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
40674 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
40675 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
40676 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
40677 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
40678 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
40679 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
40680 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
40681 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40682 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
40683 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40684 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
40685 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40686 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40687 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
40688 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
40689 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
40690 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
40691 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
40692 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
40693 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
40694 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
40695 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
40696 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
40697 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40698 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40699 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
40700 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
40701 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
40702 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
40703 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
40704 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
40705 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
40706 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
40707 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40708 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40709 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40710 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
40711 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40712 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
40713 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40714 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40715 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
40716 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
40717 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
40718 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
40719 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
40720 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
40721 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
40722 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
40723 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
40724 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
40725 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
40726 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40727 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
40728 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
40729 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
40730 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40731 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
40732 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40733 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
40734 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40735 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40736 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
40737 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
40738 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40739 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
40740 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
40741 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
40742 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
40743 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
40744 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
40745 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
40746 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40747 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
40748 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
40749 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
40750 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
40751 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
40752 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40753 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40754 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
40755 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
40756 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
40757 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
40758 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40759 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
40760 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
40761 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
40762 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40763 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
40764 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
40765 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40766 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
40767 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40768 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
40769 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
40770 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40771 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
40772 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40773 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
40774 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40775 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
40776 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40777 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
40778 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
40779 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40780 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40781 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
40782 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
40783 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40784 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
40785 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40786 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
40787 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
40788 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
40789 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
40790 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40791 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40792 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
40793 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
40794 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40795 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
40796 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
40797 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40798 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
40799 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
40800 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
40801 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
40802 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
40803 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
40804 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40805 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
40806 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
40807 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
40808 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
40809 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40810 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
40811 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40812 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40813 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
40814 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
40815 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
40816 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
40817 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40818 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
40819 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40820 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40821 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
40822 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
40823 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
40824 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
40825 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
40826 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
40827 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
40828 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
40829 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
40830 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
40831 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
40832 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
40833 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
40834 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
40835 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
40836 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
40837 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
40838 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40839 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40840 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
40841 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
40842 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
40843 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
40844 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40845 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40846 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
40847 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40848 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
40849 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
40850 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
40851 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
40852 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
40853 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
40854 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
40855 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
40856 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40857 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40858 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
40859 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
40860 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
40861 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
40862 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
40863 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
40864 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40865 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
40866 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
40867 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
40868 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
40869 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
40870 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
40871 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
40872 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
40873 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40874 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40875 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40876 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
40877 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40878 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
40879 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40880 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
40881 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40882 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
40883 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
40884 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
40885 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
40886 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40887 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
40888 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
40889 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
40890 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40891 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
40892 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40893 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
40894 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
40895 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40896 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
40897 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
40898 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
40899 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
40900 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40901 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
40902 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
40903 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
40904 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40905 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
40906 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
40907 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
40908 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
40909 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40910 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
40911 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
40912 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
40913 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40914 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
40915 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
40916 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
40917 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
40918 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40919 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
40920 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
40921 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
40922 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
40923 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
40924 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
40925 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
40926 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
40927 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
40928 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40929 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
40930 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
40931 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
40932 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
40933 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40934 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
40935 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
40936 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
40937 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
40938 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40939 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
40940 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
40941 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
40942 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
40943 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
40944 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
40945 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
40946 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
40947 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
40948 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
40949 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
40950 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
40951 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
40952 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
40953 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
40954 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
40955 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
40956 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
40957 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
40958 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
40959 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
40960 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
40961 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
40962 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
40963 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40965 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40966 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
40967 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
40968 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
40969 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
40970 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
40971 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
40973 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
40974 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
40975 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
40978 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
40979 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
40980 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
40981 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
40982 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
40983 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
40984 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
40985 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
40986 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
40987 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
40988 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
40989 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
40990 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
40991 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
40992 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
40993 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
40994 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
40995 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
40996 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
40997 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
40998 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40999 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41000 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41001 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41002 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41003 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41004 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41005 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41006 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41007 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41008 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41009 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41010 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41011 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41012 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41013 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41014 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41015 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41016 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41017 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41018 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41019 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41020 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41021 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41022 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41023 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41024 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41025 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41026 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41027 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41028 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41030 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41031 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41032 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41033 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41034 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41035 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41036 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41037 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41038 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41039 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41040 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41041 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41042 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41043 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41044 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41045 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41046 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41047 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41048 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41049 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41050 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41051 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41052 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41053 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41055 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41056 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41057 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41058 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41059 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41060 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41061 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41062 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41063 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41064 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41065 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41066 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41067 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41068 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41069 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41070 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41071 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41072 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41073 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41074 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41075 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41076 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41077 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41078 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41079 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41080 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41081 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41082 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41083 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41084 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41085 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41086 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41087 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41088 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41089 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41090 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41091 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41092 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41093 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41094 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41095 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41096 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41097 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41098 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41099 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41100 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41101 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41102 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41103 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41104 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41105 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41106 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41107 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41108 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41109 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41110 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41111 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41112 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41113 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41114 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41115 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41116 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41117 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41118 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41119 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41120 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41122 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41123 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41124 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41125 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41126 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41127 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41128 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41129 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41130 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41131 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41132 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41133 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41135 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41138 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41139 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41140 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41141 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41142 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41143 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41144 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41145 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41146 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41147 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41148 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41149 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41150 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41151 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41152 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41153 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41154 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41155 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41156 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41157 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41158 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41159 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41160 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41161 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41162 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41163 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41164 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41165 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41166 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41167 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41168 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41169 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41170 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41171 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41172 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41173 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41174 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41176 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41177 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41178 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41179 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41180 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41181 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41182 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41183 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41186 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41187 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41190 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41191 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41192 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41193 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41194 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41195 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41196 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41197 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41198 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41199 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41200 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41201 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41203 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41204 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41205 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41206 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41207 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41208 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41209 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41211 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41212 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41213 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41214 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41215 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41216 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41217 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41218 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41219 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41220 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41221 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41222 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41223 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41224 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41225 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41226 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41227 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41228 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41229 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41230 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41231 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41232 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41233 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41234 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41235 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41236 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41237 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41238 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41239 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41240 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41241 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41242 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41243 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41244 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41245 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41246 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41247 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41248 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41249 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41250 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41251 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41252 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41253 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41254 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41255 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41256 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41257 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41258 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41259 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41260 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41261 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41262 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41263 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41264 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41266 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41267 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41268 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41269 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41270 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41272 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41273 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41275 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41276 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41277 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41278 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41279 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41280 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41281 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41282 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41283 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41284 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41285 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41286 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41287 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41288 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41289 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41290 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41291 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41292 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41293 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41294 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41295 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41296 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41297 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41298 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41299 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41300 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41301 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41302 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41303 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41304 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41305 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41306 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41307 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41308 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41309 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41310 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41311 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41312 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41313 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41314 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41315 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41316 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41317 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41318 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41319 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41321 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41323 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41324 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41325 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41326 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41327 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41328 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41329 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41330 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41331 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41332 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41333 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41334 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41335 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41336 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41337 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41338 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41339 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41340 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41341 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41342 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41344 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41345 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41347 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41348 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41350 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41354 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41355 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41356 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41357 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41358 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41359 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41360 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41361 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41362 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41363 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41364 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41365 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41366 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41367 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41368 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41369 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41370 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41371 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41372 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41373 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41374 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41375 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41376 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41377 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41378 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41379 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41380 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41381 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41382 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41383 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
41384 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41385 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41386 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41387 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41388 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41389 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41390 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41391 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41392 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41393 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41394 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41395 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41396 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41397 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41398 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41400 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41401 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41402 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41404 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41406 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41408 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41409 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41410 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41412 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41413 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41414 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41415 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41416 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41417 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41418 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41419 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41420 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41421 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41422 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41423 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41424 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41425 { NULL, NULL, 0, NULL }
41426 };
41427
41428
41429 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41430
41431 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41432 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41433 }
41434 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41435 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41436 }
41437 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41438 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41439 }
41440 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41441 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41442 }
41443 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41444 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41445 }
41446 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41447 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41448 }
41449 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41450 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41451 }
41452 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41453 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41454 }
41455 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41456 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41457 }
41458 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41459 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41460 }
41461 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41462 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41463 }
41464 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41465 return (void *)((wxEvent *) ((wxPyEvent *) x));
41466 }
41467 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41468 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41469 }
41470 static void *_p_wxListEventTo_p_wxEvent(void *x) {
41471 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41472 }
41473 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41474 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41475 }
41476 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41477 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41478 }
41479 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41480 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41481 }
41482 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41483 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41484 }
41485 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41486 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41487 }
41488 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41489 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41490 }
41491 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41492 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41493 }
41494 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41495 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41496 }
41497 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41498 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41499 }
41500 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41501 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41502 }
41503 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41504 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41505 }
41506 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41507 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41508 }
41509 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41510 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41511 }
41512 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41513 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41514 }
41515 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41516 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41517 }
41518 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41519 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41520 }
41521 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41522 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41523 }
41524 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41525 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41526 }
41527 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41528 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41529 }
41530 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41531 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41532 }
41533 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41534 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41535 }
41536 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41537 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41538 }
41539 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41540 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41541 }
41542 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41543 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41544 }
41545 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41546 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41547 }
41548 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41549 return (void *)((wxEvent *) ((wxShowEvent *) x));
41550 }
41551 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41552 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41553 }
41554 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41555 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41556 }
41557 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41558 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41559 }
41560 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41561 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41562 }
41563 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41564 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41565 }
41566 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41567 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41568 }
41569 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
41570 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
41571 }
41572 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
41573 return (void *)((wxItemContainer *) ((wxComboBox *) x));
41574 }
41575 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
41576 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41577 }
41578 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
41579 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
41580 }
41581 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41582 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41583 }
41584 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
41585 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
41586 }
41587 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
41588 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41589 }
41590 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
41591 return (void *)((wxPyListCtrl *) ((wxListView *) x));
41592 }
41593 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
41594 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
41595 }
41596 static void *_p_wxToolBarTo_p_wxControl(void *x) {
41597 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
41598 }
41599 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
41600 return (void *)((wxControl *) ((wxToggleButton *) x));
41601 }
41602 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
41603 return (void *)((wxControl *) ((wxRadioButton *) x));
41604 }
41605 static void *_p_wxToolbookTo_p_wxControl(void *x) {
41606 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
41607 }
41608 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
41609 return (void *)((wxControl *) ((wxToolBarBase *) x));
41610 }
41611 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
41612 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41613 }
41614 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
41615 return (void *)((wxControl *) ((wxPyListCtrl *) x));
41616 }
41617 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
41618 return (void *)((wxControl *) ((wxComboBox *) x));
41619 }
41620 static void *_p_wxPyControlTo_p_wxControl(void *x) {
41621 return (void *)((wxControl *) ((wxPyControl *) x));
41622 }
41623 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
41624 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
41625 }
41626 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
41627 return (void *)((wxControl *) ((wxScrollBar *) x));
41628 }
41629 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41630 return (void *)((wxControl *) ((wxControlWithItems *) x));
41631 }
41632 static void *_p_wxGaugeTo_p_wxControl(void *x) {
41633 return (void *)((wxControl *) ((wxGauge *) x));
41634 }
41635 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
41636 return (void *)((wxControl *) ((wxStaticLine *) x));
41637 }
41638 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
41639 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
41640 }
41641 static void *_p_wxListbookTo_p_wxControl(void *x) {
41642 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
41643 }
41644 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
41645 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
41646 }
41647 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
41648 return (void *)((wxControl *) ((wxCheckBox *) x));
41649 }
41650 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
41651 return (void *)((wxControl *) ((wxRadioBox *) x));
41652 }
41653 static void *_p_wxChoiceTo_p_wxControl(void *x) {
41654 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
41655 }
41656 static void *_p_wxListBoxTo_p_wxControl(void *x) {
41657 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
41658 }
41659 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
41660 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41661 }
41662 static void *_p_wxListViewTo_p_wxControl(void *x) {
41663 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
41664 }
41665 static void *_p_wxNotebookTo_p_wxControl(void *x) {
41666 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
41667 }
41668 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
41669 return (void *)((wxControl *) ((wxStaticBitmap *) x));
41670 }
41671 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
41672 return (void *)((wxControl *) ((wxSpinCtrl *) x));
41673 }
41674 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
41675 return (void *)((wxControl *) ((wxStaticText *) x));
41676 }
41677 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
41678 return (void *)((wxControl *) ((wxStaticBox *) x));
41679 }
41680 static void *_p_wxSliderTo_p_wxControl(void *x) {
41681 return (void *)((wxControl *) ((wxSlider *) x));
41682 }
41683 static void *_p_wxTreebookTo_p_wxControl(void *x) {
41684 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
41685 }
41686 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
41687 return (void *)((wxControl *) ((wxSpinButton *) x));
41688 }
41689 static void *_p_wxButtonTo_p_wxControl(void *x) {
41690 return (void *)((wxControl *) ((wxButton *) x));
41691 }
41692 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
41693 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
41694 }
41695 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
41696 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
41697 }
41698 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
41699 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
41700 }
41701 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
41702 return (void *)((wxControl *) ((wxTextCtrl *) x));
41703 }
41704 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
41705 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
41706 }
41707 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
41708 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
41709 }
41710 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
41711 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41712 }
41713 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
41714 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
41715 }
41716 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
41717 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
41718 }
41719 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
41720 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
41721 }
41722 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
41723 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41724 }
41725 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
41726 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41727 }
41728 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
41729 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41730 }
41731 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
41732 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41733 }
41734 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
41735 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41736 }
41737 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
41738 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
41739 }
41740 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
41741 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
41742 }
41743 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
41744 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
41745 }
41746 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
41747 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
41748 }
41749 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
41750 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
41751 }
41752 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41753 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41754 }
41755 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
41756 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
41757 }
41758 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41759 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41760 }
41761 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41762 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41763 }
41764 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
41765 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
41766 }
41767 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41768 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41769 }
41770 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
41771 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
41772 }
41773 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
41774 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
41775 }
41776 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
41777 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
41778 }
41779 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41780 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41781 }
41782 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
41783 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
41784 }
41785 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
41786 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
41787 }
41788 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
41789 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
41790 }
41791 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
41792 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
41793 }
41794 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
41795 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41796 }
41797 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
41798 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
41799 }
41800 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
41801 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
41802 }
41803 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
41804 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
41805 }
41806 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
41807 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
41808 }
41809 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
41810 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41811 }
41812 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
41813 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
41814 }
41815 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
41816 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
41817 }
41818 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
41819 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
41820 }
41821 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
41822 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
41823 }
41824 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
41825 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
41826 }
41827 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
41828 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
41829 }
41830 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
41831 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
41832 }
41833 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
41834 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41835 }
41836 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
41837 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
41838 }
41839 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
41840 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
41841 }
41842 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
41843 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
41844 }
41845 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
41846 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
41847 }
41848 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
41849 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
41850 }
41851 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
41852 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
41853 }
41854 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
41855 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
41856 }
41857 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
41858 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
41859 }
41860 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
41861 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
41862 }
41863 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
41864 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
41865 }
41866 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
41867 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
41868 }
41869 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
41870 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
41871 }
41872 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
41873 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
41874 }
41875 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
41876 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
41877 }
41878 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
41879 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
41880 }
41881 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
41882 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
41883 }
41884 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
41885 return (void *)((wxListBox *) ((wxCheckListBox *) x));
41886 }
41887 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
41888 return (void *)((wxButton *) ((wxBitmapButton *) x));
41889 }
41890 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
41891 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
41892 }
41893 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
41894 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
41895 }
41896 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
41897 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
41898 }
41899 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
41900 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
41901 }
41902 static void *_p_wxToolbookTo_p_wxObject(void *x) {
41903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
41904 }
41905 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
41906 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
41907 }
41908 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
41909 return (void *)((wxObject *) ((wxSizerItem *) x));
41910 }
41911 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
41912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
41913 }
41914 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
41915 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
41916 }
41917 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
41918 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
41919 }
41920 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
41921 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
41922 }
41923 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
41924 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
41925 }
41926 static void *_p_wxSizerTo_p_wxObject(void *x) {
41927 return (void *)((wxObject *) ((wxSizer *) x));
41928 }
41929 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
41930 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41931 }
41932 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
41933 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
41934 }
41935 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
41936 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
41937 }
41938 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
41939 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
41940 }
41941 static void *_p_wxEventTo_p_wxObject(void *x) {
41942 return (void *)((wxObject *) ((wxEvent *) x));
41943 }
41944 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
41945 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
41946 }
41947 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
41948 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
41949 }
41950 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
41951 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
41952 }
41953 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
41954 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
41955 }
41956 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
41957 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
41958 }
41959 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
41960 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41961 }
41962 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
41963 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
41964 }
41965 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
41966 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
41967 }
41968 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
41969 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
41970 }
41971 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
41972 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
41973 }
41974 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
41975 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41976 }
41977 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
41978 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
41979 }
41980 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
41981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
41982 }
41983 static void *_p_wxControlTo_p_wxObject(void *x) {
41984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
41985 }
41986 static void *_p_wxPyControlTo_p_wxObject(void *x) {
41987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
41988 }
41989 static void *_p_wxGaugeTo_p_wxObject(void *x) {
41990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
41991 }
41992 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
41993 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
41994 }
41995 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
41996 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
41997 }
41998 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
41999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42000 }
42001 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42002 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42003 }
42004 static void *_p_wxChoiceTo_p_wxObject(void *x) {
42005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42006 }
42007 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42008 return (void *)((wxObject *) ((wxFSFile *) x));
42009 }
42010 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42011 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42012 }
42013 static void *_p_wxTreebookTo_p_wxObject(void *x) {
42014 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42015 }
42016 static void *_p_wxListViewTo_p_wxObject(void *x) {
42017 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42018 }
42019 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42020 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42021 }
42022 static void *_p_wxNotebookTo_p_wxObject(void *x) {
42023 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42024 }
42025 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42026 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42027 }
42028 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42030 }
42031 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42032 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42033 }
42034 static void *_p_wxListbookTo_p_wxObject(void *x) {
42035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42036 }
42037 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42038 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42039 }
42040 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42041 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42042 }
42043 static void *_p_wxSliderTo_p_wxObject(void *x) {
42044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42045 }
42046 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42047 return (void *)((wxObject *) ((wxMenuItem *) x));
42048 }
42049 static void *_p_wxDateEventTo_p_wxObject(void *x) {
42050 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42051 }
42052 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42053 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42054 }
42055 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42056 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42057 }
42058 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42059 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42060 }
42061 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42062 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42063 }
42064 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42065 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42066 }
42067 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42068 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42069 }
42070 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42071 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42072 }
42073 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42074 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42075 }
42076 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42077 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42078 }
42079 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42080 return (void *)((wxObject *) ((wxContextHelp *) x));
42081 }
42082 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42083 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42084 }
42085 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42086 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42087 }
42088 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42089 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42090 }
42091 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42092 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42093 }
42094 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42095 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42096 }
42097 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42098 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42099 }
42100 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42101 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42102 }
42103 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42104 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42105 }
42106 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42107 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42108 }
42109 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42110 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42111 }
42112 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42113 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42114 }
42115 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42116 return (void *)((wxObject *) ((wxImageHandler *) x));
42117 }
42118 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42119 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42120 }
42121 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42122 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42123 }
42124 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42125 return (void *)((wxObject *) ((wxEvtHandler *) x));
42126 }
42127 static void *_p_wxListEventTo_p_wxObject(void *x) {
42128 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42129 }
42130 static void *_p_wxListBoxTo_p_wxObject(void *x) {
42131 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42132 }
42133 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42134 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42135 }
42136 static void *_p_wxButtonTo_p_wxObject(void *x) {
42137 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42138 }
42139 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42140 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42141 }
42142 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42143 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42144 }
42145 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42146 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42147 }
42148 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42149 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42150 }
42151 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42152 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42153 }
42154 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42155 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42156 }
42157 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42158 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42159 }
42160 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42161 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
42162 }
42163 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42164 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42165 }
42166 static void *_p_wxListItemTo_p_wxObject(void *x) {
42167 return (void *)((wxObject *) ((wxListItem *) x));
42168 }
42169 static void *_p_wxImageTo_p_wxObject(void *x) {
42170 return (void *)((wxObject *) ((wxImage *) x));
42171 }
42172 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42173 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42174 }
42175 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42176 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42177 }
42178 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42179 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42180 }
42181 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42182 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42183 }
42184 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42185 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42186 }
42187 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42189 }
42190 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42191 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42192 }
42193 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42194 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42195 }
42196 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42197 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42198 }
42199 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42200 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42201 }
42202 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42203 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42204 }
42205 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42206 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42207 }
42208 static void *_p_wxWindowTo_p_wxObject(void *x) {
42209 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42210 }
42211 static void *_p_wxMenuTo_p_wxObject(void *x) {
42212 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42213 }
42214 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42215 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42216 }
42217 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42218 return (void *)((wxObject *) ((wxFileSystem *) x));
42219 }
42220 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42221 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42222 }
42223 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42224 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42225 }
42226 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42227 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42228 }
42229 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42230 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42231 }
42232 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42233 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42234 }
42235 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42236 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42237 }
42238 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42240 }
42241 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42242 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42243 }
42244 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42245 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42246 }
42247 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42248 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42249 }
42250 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42251 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42252 }
42253 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42254 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42255 }
42256 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42257 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42258 }
42259 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42260 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42261 }
42262 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42263 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42264 }
42265 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42266 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42267 }
42268 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42269 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42270 }
42271 static void *_p_wxToolBarTo_p_wxObject(void *x) {
42272 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42273 }
42274 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42275 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42276 }
42277 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42278 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42279 }
42280 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42281 return (void *)((wxWindow *) ((wxMenuBar *) x));
42282 }
42283 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42284 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42285 }
42286 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42287 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42288 }
42289 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42290 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42291 }
42292 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42293 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42294 }
42295 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42296 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42297 }
42298 static void *_p_wxControlTo_p_wxWindow(void *x) {
42299 return (void *)((wxWindow *) ((wxControl *) x));
42300 }
42301 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42302 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42303 }
42304 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42305 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42306 }
42307 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42308 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
42309 }
42310 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42311 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42312 }
42313 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42314 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42315 }
42316 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42317 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42318 }
42319 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42320 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42321 }
42322 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42323 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42324 }
42325 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42326 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42327 }
42328 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42329 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42330 }
42331 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42332 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42333 }
42334 static void *_p_wxListbookTo_p_wxWindow(void *x) {
42335 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42336 }
42337 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42338 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42339 }
42340 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42341 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42342 }
42343 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42344 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42345 }
42346 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42347 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42348 }
42349 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42350 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42351 }
42352 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42353 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42354 }
42355 static void *_p_wxListViewTo_p_wxWindow(void *x) {
42356 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42357 }
42358 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42359 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42360 }
42361 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42362 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42363 }
42364 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42365 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42366 }
42367 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42368 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42369 }
42370 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42371 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42372 }
42373 static void *_p_wxSliderTo_p_wxWindow(void *x) {
42374 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42375 }
42376 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42377 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42378 }
42379 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42380 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42381 }
42382 static void *_p_wxButtonTo_p_wxWindow(void *x) {
42383 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42384 }
42385 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42386 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42387 }
42388 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42389 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42390 }
42391 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42392 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42393 }
42394 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42395 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42396 }
42397 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42398 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42399 }
42400 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42401 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42402 }
42403 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42404 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42405 }
42406 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42407 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42408 }
42409 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42410 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42411 }
42412 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42413 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42414 }
42415 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42416 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42417 }
42418 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42419 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42420 }
42421 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42422 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42423 }
42424 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42425 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42426 }
42427 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42428 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42429 }
42430 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42431 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42432 }
42433 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42434 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42435 }
42436 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42437 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42438 }
42439 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42440 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42441 }
42442 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42443 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42444 }
42445 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42446 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42447 }
42448 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42449 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42450 }
42451 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42452 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42453 }
42454 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42455 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42456 }
42457 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42458 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42459 }
42460 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42461 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42462 }
42463 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42464 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42465 }
42466 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42467 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42468 }
42469 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42470 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42471 }
42472 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42473 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42474 }
42475 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42476 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42477 }
42478 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42479 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42480 }
42481 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42482 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42483 }
42484 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42485 return (void *)((wxValidator *) ((wxPyValidator *) x));
42486 }
42487 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42488 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42489 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};
42490 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42491 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42492 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42493 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42494 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42495 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42496 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42497 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42498 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42499 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42500 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42501 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42502 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42503 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42504 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42505 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42506 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42507 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42508 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42509 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42510 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42511 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42512 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42513 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42514 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42515 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42516 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42517 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42518 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42519 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42520 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42521 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42522 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42523 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42524 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42525 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42526 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42527 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42528 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42529 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42530 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42531 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42532 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42533 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42534 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42535 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42536 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42537 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42538 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42539 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42540 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42541 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42542 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42543 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42544 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42545 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42546 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42547 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42548 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42549 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42550 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42551 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42552 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42553 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42554 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42555 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42556 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42557 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42558 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42559 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
42560 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
42561 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
42562 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
42563 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
42564 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
42565 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
42566 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
42567 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
42568 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
42569 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
42570 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
42571 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
42572 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
42573 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
42574 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
42575 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
42576 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
42577 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
42578 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
42579 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
42580 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
42581 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
42582 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
42583 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
42584 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
42585 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
42586 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
42587 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
42588 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
42589 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
42590 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
42591 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
42592 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
42593 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
42594 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
42595 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
42596 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
42597 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
42598 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
42599 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
42600 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
42601 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
42602 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
42603 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
42604 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
42605 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
42606 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
42607 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
42608 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
42609 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
42610 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
42611 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
42612 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
42613 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
42614 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
42615 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
42616 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
42617 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
42618 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
42619 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
42620 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
42621 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
42622 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
42623 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
42624 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
42625 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
42626 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
42627 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
42628 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
42629 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
42630 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
42631 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
42632 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
42633 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
42634 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
42635 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
42636 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
42637 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
42638 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
42639 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
42640 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
42641 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
42642 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
42643 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
42644 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
42645 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
42646 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
42647 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
42648 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
42649 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
42650
42651 static swig_type_info *swig_type_initial[] = {
42652 &_swigt__p_bool,
42653 &_swigt__p_char,
42654 &_swigt__p_form_ops_t,
42655 &_swigt__p_int,
42656 &_swigt__p_long,
42657 &_swigt__p_unsigned_char,
42658 &_swigt__p_unsigned_int,
42659 &_swigt__p_unsigned_long,
42660 &_swigt__p_void,
42661 &_swigt__p_wxANIHandler,
42662 &_swigt__p_wxAcceleratorTable,
42663 &_swigt__p_wxActivateEvent,
42664 &_swigt__p_wxArrayInt,
42665 &_swigt__p_wxArrayString,
42666 &_swigt__p_wxBMPHandler,
42667 &_swigt__p_wxBitmap,
42668 &_swigt__p_wxBitmapButton,
42669 &_swigt__p_wxBookCtrlBase,
42670 &_swigt__p_wxBookCtrlBaseEvent,
42671 &_swigt__p_wxBoxSizer,
42672 &_swigt__p_wxButton,
42673 &_swigt__p_wxCURHandler,
42674 &_swigt__p_wxCheckBox,
42675 &_swigt__p_wxCheckListBox,
42676 &_swigt__p_wxChildFocusEvent,
42677 &_swigt__p_wxChoice,
42678 &_swigt__p_wxChoicebook,
42679 &_swigt__p_wxChoicebookEvent,
42680 &_swigt__p_wxCloseEvent,
42681 &_swigt__p_wxColour,
42682 &_swigt__p_wxComboBox,
42683 &_swigt__p_wxCommandEvent,
42684 &_swigt__p_wxContextHelp,
42685 &_swigt__p_wxContextHelpButton,
42686 &_swigt__p_wxContextMenuEvent,
42687 &_swigt__p_wxControl,
42688 &_swigt__p_wxControlWithItems,
42689 &_swigt__p_wxCursor,
42690 &_swigt__p_wxDC,
42691 &_swigt__p_wxDateEvent,
42692 &_swigt__p_wxDatePickerCtrl,
42693 &_swigt__p_wxDateTime,
42694 &_swigt__p_wxDirFilterListCtrl,
42695 &_swigt__p_wxDisplayChangedEvent,
42696 &_swigt__p_wxDropFilesEvent,
42697 &_swigt__p_wxDuplexMode,
42698 &_swigt__p_wxEraseEvent,
42699 &_swigt__p_wxEvent,
42700 &_swigt__p_wxEvtHandler,
42701 &_swigt__p_wxFSFile,
42702 &_swigt__p_wxFileSystem,
42703 &_swigt__p_wxFlexGridSizer,
42704 &_swigt__p_wxFocusEvent,
42705 &_swigt__p_wxFont,
42706 &_swigt__p_wxGBSizerItem,
42707 &_swigt__p_wxGIFHandler,
42708 &_swigt__p_wxGauge,
42709 &_swigt__p_wxGenericDirCtrl,
42710 &_swigt__p_wxGenericDragImage,
42711 &_swigt__p_wxGridBagSizer,
42712 &_swigt__p_wxGridSizer,
42713 &_swigt__p_wxHelpEvent,
42714 &_swigt__p_wxHelpProvider,
42715 &_swigt__p_wxICOHandler,
42716 &_swigt__p_wxIcon,
42717 &_swigt__p_wxIconizeEvent,
42718 &_swigt__p_wxIdleEvent,
42719 &_swigt__p_wxImage,
42720 &_swigt__p_wxImageHandler,
42721 &_swigt__p_wxImageList,
42722 &_swigt__p_wxIndividualLayoutConstraint,
42723 &_swigt__p_wxInitDialogEvent,
42724 &_swigt__p_wxItemContainer,
42725 &_swigt__p_wxJPEGHandler,
42726 &_swigt__p_wxKeyEvent,
42727 &_swigt__p_wxLayoutConstraints,
42728 &_swigt__p_wxListBox,
42729 &_swigt__p_wxListEvent,
42730 &_swigt__p_wxListItem,
42731 &_swigt__p_wxListItemAttr,
42732 &_swigt__p_wxListView,
42733 &_swigt__p_wxListbook,
42734 &_swigt__p_wxListbookEvent,
42735 &_swigt__p_wxMaximizeEvent,
42736 &_swigt__p_wxMemoryDC,
42737 &_swigt__p_wxMenu,
42738 &_swigt__p_wxMenuBar,
42739 &_swigt__p_wxMenuEvent,
42740 &_swigt__p_wxMenuItem,
42741 &_swigt__p_wxMouseCaptureChangedEvent,
42742 &_swigt__p_wxMouseEvent,
42743 &_swigt__p_wxMoveEvent,
42744 &_swigt__p_wxNavigationKeyEvent,
42745 &_swigt__p_wxNcPaintEvent,
42746 &_swigt__p_wxNotebook,
42747 &_swigt__p_wxNotebookEvent,
42748 &_swigt__p_wxNotifyEvent,
42749 &_swigt__p_wxObject,
42750 &_swigt__p_wxPCXHandler,
42751 &_swigt__p_wxPNGHandler,
42752 &_swigt__p_wxPNMHandler,
42753 &_swigt__p_wxPaintEvent,
42754 &_swigt__p_wxPaletteChangedEvent,
42755 &_swigt__p_wxPaperSize,
42756 &_swigt__p_wxPoint,
42757 &_swigt__p_wxPyApp,
42758 &_swigt__p_wxPyCommandEvent,
42759 &_swigt__p_wxPyControl,
42760 &_swigt__p_wxPyEvent,
42761 &_swigt__p_wxPyImageHandler,
42762 &_swigt__p_wxPyListCtrl,
42763 &_swigt__p_wxPySizer,
42764 &_swigt__p_wxPyTreeCtrl,
42765 &_swigt__p_wxPyTreeItemData,
42766 &_swigt__p_wxPyValidator,
42767 &_swigt__p_wxQueryNewPaletteEvent,
42768 &_swigt__p_wxRadioBox,
42769 &_swigt__p_wxRadioButton,
42770 &_swigt__p_wxRect,
42771 &_swigt__p_wxScrollBar,
42772 &_swigt__p_wxScrollEvent,
42773 &_swigt__p_wxScrollWinEvent,
42774 &_swigt__p_wxSetCursorEvent,
42775 &_swigt__p_wxShowEvent,
42776 &_swigt__p_wxSimpleHelpProvider,
42777 &_swigt__p_wxSize,
42778 &_swigt__p_wxSizeEvent,
42779 &_swigt__p_wxSizer,
42780 &_swigt__p_wxSizerItem,
42781 &_swigt__p_wxSlider,
42782 &_swigt__p_wxSpinButton,
42783 &_swigt__p_wxSpinCtrl,
42784 &_swigt__p_wxSpinEvent,
42785 &_swigt__p_wxStaticBitmap,
42786 &_swigt__p_wxStaticBox,
42787 &_swigt__p_wxStaticBoxSizer,
42788 &_swigt__p_wxStaticLine,
42789 &_swigt__p_wxStaticText,
42790 &_swigt__p_wxStdDialogButtonSizer,
42791 &_swigt__p_wxString,
42792 &_swigt__p_wxSysColourChangedEvent,
42793 &_swigt__p_wxTIFFHandler,
42794 &_swigt__p_wxTextAttr,
42795 &_swigt__p_wxTextCtrl,
42796 &_swigt__p_wxTextUrlEvent,
42797 &_swigt__p_wxToggleButton,
42798 &_swigt__p_wxToolBar,
42799 &_swigt__p_wxToolBarBase,
42800 &_swigt__p_wxToolBarToolBase,
42801 &_swigt__p_wxToolbook,
42802 &_swigt__p_wxToolbookEvent,
42803 &_swigt__p_wxTreeCtrl,
42804 &_swigt__p_wxTreeEvent,
42805 &_swigt__p_wxTreeItemId,
42806 &_swigt__p_wxTreebook,
42807 &_swigt__p_wxTreebookEvent,
42808 &_swigt__p_wxUpdateUIEvent,
42809 &_swigt__p_wxValidator,
42810 &_swigt__p_wxVisualAttributes,
42811 &_swigt__p_wxWindow,
42812 &_swigt__p_wxWindowCreateEvent,
42813 &_swigt__p_wxWindowDestroyEvent,
42814 &_swigt__p_wxXPMHandler,
42815 };
42816
42817 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
42818 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
42819 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
42820 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
42821 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
42822 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
42823 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
42824 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
42825 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
42826 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
42827 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
42828 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
42829 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}};
42830 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}};
42831 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}};
42832 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}};
42833 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
42834 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
42835 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
42836 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
42837 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
42838 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
42839 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
42840 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
42841 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
42842 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
42843 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
42844 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
42845 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
42846 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
42847 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
42848 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}};
42849 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
42850 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
42851 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}};
42852 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
42853 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
42854 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
42855 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
42856 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
42857 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
42858 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
42859 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
42860 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
42861 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
42862 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
42863 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
42864 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
42865 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
42866 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
42867 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
42868 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
42869 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
42870 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
42871 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
42872 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
42873 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
42874 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
42875 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
42876 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
42877 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
42878 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
42879 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
42880 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
42881 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
42882 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
42883 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}};
42884 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
42885 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
42886 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
42887 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
42888 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}};
42889 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
42890 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
42891 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
42892 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
42893 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
42894 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}};
42895 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
42896 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
42897 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}};
42898 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
42899 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}};
42900 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
42901 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
42902 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
42903 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
42904 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
42905 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
42906 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
42907 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
42908 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
42909 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
42910 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}};
42911 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
42912 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
42913 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
42914 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
42915 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
42916 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
42917 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
42918 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
42919 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
42920 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
42921 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
42922 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
42923 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
42924 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
42925 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
42926 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
42927 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
42928 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
42929 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
42930 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
42931 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
42932 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
42933 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
42934 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
42935 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
42936 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
42937 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
42938 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
42939 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
42940 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
42941 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}};
42942 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
42943 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
42944 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
42945 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}};
42946 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
42947 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
42948 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
42949 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
42950 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
42951 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
42952 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
42953 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
42954 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
42955 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
42956 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
42957 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
42958 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
42959 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
42960 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
42961 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
42962 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
42963 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
42964 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
42965 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
42966 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
42967 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
42968 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}};
42969 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
42970 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
42971 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
42972 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
42973 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
42974 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
42975 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
42976 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
42977 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}};
42978 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
42979 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}};
42980
42981 static swig_cast_info *swig_cast_initial[] = {
42982 _swigc__p_bool,
42983 _swigc__p_char,
42984 _swigc__p_form_ops_t,
42985 _swigc__p_int,
42986 _swigc__p_long,
42987 _swigc__p_unsigned_char,
42988 _swigc__p_unsigned_int,
42989 _swigc__p_unsigned_long,
42990 _swigc__p_void,
42991 _swigc__p_wxANIHandler,
42992 _swigc__p_wxAcceleratorTable,
42993 _swigc__p_wxActivateEvent,
42994 _swigc__p_wxArrayInt,
42995 _swigc__p_wxArrayString,
42996 _swigc__p_wxBMPHandler,
42997 _swigc__p_wxBitmap,
42998 _swigc__p_wxBitmapButton,
42999 _swigc__p_wxBookCtrlBase,
43000 _swigc__p_wxBookCtrlBaseEvent,
43001 _swigc__p_wxBoxSizer,
43002 _swigc__p_wxButton,
43003 _swigc__p_wxCURHandler,
43004 _swigc__p_wxCheckBox,
43005 _swigc__p_wxCheckListBox,
43006 _swigc__p_wxChildFocusEvent,
43007 _swigc__p_wxChoice,
43008 _swigc__p_wxChoicebook,
43009 _swigc__p_wxChoicebookEvent,
43010 _swigc__p_wxCloseEvent,
43011 _swigc__p_wxColour,
43012 _swigc__p_wxComboBox,
43013 _swigc__p_wxCommandEvent,
43014 _swigc__p_wxContextHelp,
43015 _swigc__p_wxContextHelpButton,
43016 _swigc__p_wxContextMenuEvent,
43017 _swigc__p_wxControl,
43018 _swigc__p_wxControlWithItems,
43019 _swigc__p_wxCursor,
43020 _swigc__p_wxDC,
43021 _swigc__p_wxDateEvent,
43022 _swigc__p_wxDatePickerCtrl,
43023 _swigc__p_wxDateTime,
43024 _swigc__p_wxDirFilterListCtrl,
43025 _swigc__p_wxDisplayChangedEvent,
43026 _swigc__p_wxDropFilesEvent,
43027 _swigc__p_wxDuplexMode,
43028 _swigc__p_wxEraseEvent,
43029 _swigc__p_wxEvent,
43030 _swigc__p_wxEvtHandler,
43031 _swigc__p_wxFSFile,
43032 _swigc__p_wxFileSystem,
43033 _swigc__p_wxFlexGridSizer,
43034 _swigc__p_wxFocusEvent,
43035 _swigc__p_wxFont,
43036 _swigc__p_wxGBSizerItem,
43037 _swigc__p_wxGIFHandler,
43038 _swigc__p_wxGauge,
43039 _swigc__p_wxGenericDirCtrl,
43040 _swigc__p_wxGenericDragImage,
43041 _swigc__p_wxGridBagSizer,
43042 _swigc__p_wxGridSizer,
43043 _swigc__p_wxHelpEvent,
43044 _swigc__p_wxHelpProvider,
43045 _swigc__p_wxICOHandler,
43046 _swigc__p_wxIcon,
43047 _swigc__p_wxIconizeEvent,
43048 _swigc__p_wxIdleEvent,
43049 _swigc__p_wxImage,
43050 _swigc__p_wxImageHandler,
43051 _swigc__p_wxImageList,
43052 _swigc__p_wxIndividualLayoutConstraint,
43053 _swigc__p_wxInitDialogEvent,
43054 _swigc__p_wxItemContainer,
43055 _swigc__p_wxJPEGHandler,
43056 _swigc__p_wxKeyEvent,
43057 _swigc__p_wxLayoutConstraints,
43058 _swigc__p_wxListBox,
43059 _swigc__p_wxListEvent,
43060 _swigc__p_wxListItem,
43061 _swigc__p_wxListItemAttr,
43062 _swigc__p_wxListView,
43063 _swigc__p_wxListbook,
43064 _swigc__p_wxListbookEvent,
43065 _swigc__p_wxMaximizeEvent,
43066 _swigc__p_wxMemoryDC,
43067 _swigc__p_wxMenu,
43068 _swigc__p_wxMenuBar,
43069 _swigc__p_wxMenuEvent,
43070 _swigc__p_wxMenuItem,
43071 _swigc__p_wxMouseCaptureChangedEvent,
43072 _swigc__p_wxMouseEvent,
43073 _swigc__p_wxMoveEvent,
43074 _swigc__p_wxNavigationKeyEvent,
43075 _swigc__p_wxNcPaintEvent,
43076 _swigc__p_wxNotebook,
43077 _swigc__p_wxNotebookEvent,
43078 _swigc__p_wxNotifyEvent,
43079 _swigc__p_wxObject,
43080 _swigc__p_wxPCXHandler,
43081 _swigc__p_wxPNGHandler,
43082 _swigc__p_wxPNMHandler,
43083 _swigc__p_wxPaintEvent,
43084 _swigc__p_wxPaletteChangedEvent,
43085 _swigc__p_wxPaperSize,
43086 _swigc__p_wxPoint,
43087 _swigc__p_wxPyApp,
43088 _swigc__p_wxPyCommandEvent,
43089 _swigc__p_wxPyControl,
43090 _swigc__p_wxPyEvent,
43091 _swigc__p_wxPyImageHandler,
43092 _swigc__p_wxPyListCtrl,
43093 _swigc__p_wxPySizer,
43094 _swigc__p_wxPyTreeCtrl,
43095 _swigc__p_wxPyTreeItemData,
43096 _swigc__p_wxPyValidator,
43097 _swigc__p_wxQueryNewPaletteEvent,
43098 _swigc__p_wxRadioBox,
43099 _swigc__p_wxRadioButton,
43100 _swigc__p_wxRect,
43101 _swigc__p_wxScrollBar,
43102 _swigc__p_wxScrollEvent,
43103 _swigc__p_wxScrollWinEvent,
43104 _swigc__p_wxSetCursorEvent,
43105 _swigc__p_wxShowEvent,
43106 _swigc__p_wxSimpleHelpProvider,
43107 _swigc__p_wxSize,
43108 _swigc__p_wxSizeEvent,
43109 _swigc__p_wxSizer,
43110 _swigc__p_wxSizerItem,
43111 _swigc__p_wxSlider,
43112 _swigc__p_wxSpinButton,
43113 _swigc__p_wxSpinCtrl,
43114 _swigc__p_wxSpinEvent,
43115 _swigc__p_wxStaticBitmap,
43116 _swigc__p_wxStaticBox,
43117 _swigc__p_wxStaticBoxSizer,
43118 _swigc__p_wxStaticLine,
43119 _swigc__p_wxStaticText,
43120 _swigc__p_wxStdDialogButtonSizer,
43121 _swigc__p_wxString,
43122 _swigc__p_wxSysColourChangedEvent,
43123 _swigc__p_wxTIFFHandler,
43124 _swigc__p_wxTextAttr,
43125 _swigc__p_wxTextCtrl,
43126 _swigc__p_wxTextUrlEvent,
43127 _swigc__p_wxToggleButton,
43128 _swigc__p_wxToolBar,
43129 _swigc__p_wxToolBarBase,
43130 _swigc__p_wxToolBarToolBase,
43131 _swigc__p_wxToolbook,
43132 _swigc__p_wxToolbookEvent,
43133 _swigc__p_wxTreeCtrl,
43134 _swigc__p_wxTreeEvent,
43135 _swigc__p_wxTreeItemId,
43136 _swigc__p_wxTreebook,
43137 _swigc__p_wxTreebookEvent,
43138 _swigc__p_wxUpdateUIEvent,
43139 _swigc__p_wxValidator,
43140 _swigc__p_wxVisualAttributes,
43141 _swigc__p_wxWindow,
43142 _swigc__p_wxWindowCreateEvent,
43143 _swigc__p_wxWindowDestroyEvent,
43144 _swigc__p_wxXPMHandler,
43145 };
43146
43147
43148 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43149
43150 static swig_const_info swig_const_table[] = {
43151 {0, 0, 0, 0.0, 0, 0}};
43152
43153 #ifdef __cplusplus
43154 }
43155 #endif
43156 /* -----------------------------------------------------------------------------
43157 * Type initialization:
43158 * This problem is tough by the requirement that no dynamic
43159 * memory is used. Also, since swig_type_info structures store pointers to
43160 * swig_cast_info structures and swig_cast_info structures store pointers back
43161 * to swig_type_info structures, we need some lookup code at initialization.
43162 * The idea is that swig generates all the structures that are needed.
43163 * The runtime then collects these partially filled structures.
43164 * The SWIG_InitializeModule function takes these initial arrays out of
43165 * swig_module, and does all the lookup, filling in the swig_module.types
43166 * array with the correct data and linking the correct swig_cast_info
43167 * structures together.
43168 *
43169 * The generated swig_type_info structures are assigned staticly to an initial
43170 * array. We just loop though that array, and handle each type individually.
43171 * First we lookup if this type has been already loaded, and if so, use the
43172 * loaded structure instead of the generated one. Then we have to fill in the
43173 * cast linked list. The cast data is initially stored in something like a
43174 * two-dimensional array. Each row corresponds to a type (there are the same
43175 * number of rows as there are in the swig_type_initial array). Each entry in
43176 * a column is one of the swig_cast_info structures for that type.
43177 * The cast_initial array is actually an array of arrays, because each row has
43178 * a variable number of columns. So to actually build the cast linked list,
43179 * we find the array of casts associated with the type, and loop through it
43180 * adding the casts to the list. The one last trick we need to do is making
43181 * sure the type pointer in the swig_cast_info struct is correct.
43182 *
43183 * First off, we lookup the cast->type name to see if it is already loaded.
43184 * There are three cases to handle:
43185 * 1) If the cast->type has already been loaded AND the type we are adding
43186 * casting info to has not been loaded (it is in this module), THEN we
43187 * replace the cast->type pointer with the type pointer that has already
43188 * been loaded.
43189 * 2) If BOTH types (the one we are adding casting info to, and the
43190 * cast->type) are loaded, THEN the cast info has already been loaded by
43191 * the previous module so we just ignore it.
43192 * 3) Finally, if cast->type has not already been loaded, then we add that
43193 * swig_cast_info to the linked list (because the cast->type) pointer will
43194 * be correct.
43195 * ----------------------------------------------------------------------------- */
43196
43197 #ifdef __cplusplus
43198 extern "C" {
43199 #if 0
43200 } /* c-mode */
43201 #endif
43202 #endif
43203
43204 #if 0
43205 #define SWIGRUNTIME_DEBUG
43206 #endif
43207
43208 SWIGRUNTIME void
43209 SWIG_InitializeModule(void *clientdata) {
43210 size_t i;
43211 swig_module_info *module_head;
43212 static int init_run = 0;
43213
43214 clientdata = clientdata;
43215
43216 if (init_run) return;
43217 init_run = 1;
43218
43219 /* Initialize the swig_module */
43220 swig_module.type_initial = swig_type_initial;
43221 swig_module.cast_initial = swig_cast_initial;
43222
43223 /* Try and load any already created modules */
43224 module_head = SWIG_GetModule(clientdata);
43225 if (module_head) {
43226 swig_module.next = module_head->next;
43227 module_head->next = &swig_module;
43228 } else {
43229 /* This is the first module loaded */
43230 swig_module.next = &swig_module;
43231 SWIG_SetModule(clientdata, &swig_module);
43232 }
43233
43234 /* Now work on filling in swig_module.types */
43235 #ifdef SWIGRUNTIME_DEBUG
43236 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43237 #endif
43238 for (i = 0; i < swig_module.size; ++i) {
43239 swig_type_info *type = 0;
43240 swig_type_info *ret;
43241 swig_cast_info *cast;
43242
43243 #ifdef SWIGRUNTIME_DEBUG
43244 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43245 #endif
43246
43247 /* if there is another module already loaded */
43248 if (swig_module.next != &swig_module) {
43249 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
43250 }
43251 if (type) {
43252 /* Overwrite clientdata field */
43253 #ifdef SWIGRUNTIME_DEBUG
43254 printf("SWIG_InitializeModule: found type %s\n", type->name);
43255 #endif
43256 if (swig_module.type_initial[i]->clientdata) {
43257 type->clientdata = swig_module.type_initial[i]->clientdata;
43258 #ifdef SWIGRUNTIME_DEBUG
43259 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43260 #endif
43261 }
43262 } else {
43263 type = swig_module.type_initial[i];
43264 }
43265
43266 /* Insert casting types */
43267 cast = swig_module.cast_initial[i];
43268 while (cast->type) {
43269 /* Don't need to add information already in the list */
43270 ret = 0;
43271 #ifdef SWIGRUNTIME_DEBUG
43272 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43273 #endif
43274 if (swig_module.next != &swig_module) {
43275 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43276 #ifdef SWIGRUNTIME_DEBUG
43277 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43278 #endif
43279 }
43280 if (ret) {
43281 if (type == swig_module.type_initial[i]) {
43282 #ifdef SWIGRUNTIME_DEBUG
43283 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43284 #endif
43285 cast->type = ret;
43286 ret = 0;
43287 } else {
43288 /* Check for casting already in the list */
43289 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43290 #ifdef SWIGRUNTIME_DEBUG
43291 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43292 #endif
43293 if (!ocast) ret = 0;
43294 }
43295 }
43296
43297 if (!ret) {
43298 #ifdef SWIGRUNTIME_DEBUG
43299 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43300 #endif
43301 if (type->cast) {
43302 type->cast->prev = cast;
43303 cast->next = type->cast;
43304 }
43305 type->cast = cast;
43306 }
43307 cast++;
43308 }
43309 /* Set entry in modules->types array equal to the type */
43310 swig_module.types[i] = type;
43311 }
43312 swig_module.types[i] = 0;
43313
43314 #ifdef SWIGRUNTIME_DEBUG
43315 printf("**** SWIG_InitializeModule: Cast List ******\n");
43316 for (i = 0; i < swig_module.size; ++i) {
43317 int j = 0;
43318 swig_cast_info *cast = swig_module.cast_initial[i];
43319 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43320 while (cast->type) {
43321 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43322 cast++;
43323 ++j;
43324 }
43325 printf("---- Total casts: %d\n",j);
43326 }
43327 printf("**** SWIG_InitializeModule: Cast List ******\n");
43328 #endif
43329 }
43330
43331 /* This function will propagate the clientdata field of type to
43332 * any new swig_type_info structures that have been added into the list
43333 * of equivalent types. It is like calling
43334 * SWIG_TypeClientData(type, clientdata) a second time.
43335 */
43336 SWIGRUNTIME void
43337 SWIG_PropagateClientData(void) {
43338 size_t i;
43339 swig_cast_info *equiv;
43340 static int init_run = 0;
43341
43342 if (init_run) return;
43343 init_run = 1;
43344
43345 for (i = 0; i < swig_module.size; i++) {
43346 if (swig_module.types[i]->clientdata) {
43347 equiv = swig_module.types[i]->cast;
43348 while (equiv) {
43349 if (!equiv->converter) {
43350 if (equiv->type && !equiv->type->clientdata)
43351 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43352 }
43353 equiv = equiv->next;
43354 }
43355 }
43356 }
43357 }
43358
43359 #ifdef __cplusplus
43360 #if 0
43361 {
43362 /* c-mode */
43363 #endif
43364 }
43365 #endif
43366
43367
43368
43369 #ifdef __cplusplus
43370 extern "C" {
43371 #endif
43372
43373 /* Python-specific SWIG API */
43374 #define SWIG_newvarlink() SWIG_Python_newvarlink()
43375 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43376 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43377
43378 /* -----------------------------------------------------------------------------
43379 * global variable support code.
43380 * ----------------------------------------------------------------------------- */
43381
43382 typedef struct swig_globalvar {
43383 char *name; /* Name of global variable */
43384 PyObject *(*get_attr)(void); /* Return the current value */
43385 int (*set_attr)(PyObject *); /* Set the value */
43386 struct swig_globalvar *next;
43387 } swig_globalvar;
43388
43389 typedef struct swig_varlinkobject {
43390 PyObject_HEAD
43391 swig_globalvar *vars;
43392 } swig_varlinkobject;
43393
43394 SWIGINTERN PyObject *
43395 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43396 return PyString_FromString("<Swig global variables>");
43397 }
43398
43399 SWIGINTERN PyObject *
43400 swig_varlink_str(swig_varlinkobject *v) {
43401 PyObject *str = PyString_FromString("(");
43402 swig_globalvar *var;
43403 for (var = v->vars; var; var=var->next) {
43404 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43405 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43406 }
43407 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43408 return str;
43409 }
43410
43411 SWIGINTERN int
43412 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43413 PyObject *str = swig_varlink_str(v);
43414 fprintf(fp,"Swig global variables ");
43415 fprintf(fp,"%s\n", PyString_AsString(str));
43416 Py_DECREF(str);
43417 return 0;
43418 }
43419
43420 SWIGINTERN void
43421 swig_varlink_dealloc(swig_varlinkobject *v) {
43422 swig_globalvar *var = v->vars;
43423 while (var) {
43424 swig_globalvar *n = var->next;
43425 free(var->name);
43426 free(var);
43427 var = n;
43428 }
43429 }
43430
43431 SWIGINTERN PyObject *
43432 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43433 PyObject *res = NULL;
43434 swig_globalvar *var = v->vars;
43435 while (var) {
43436 if (strcmp(var->name,n) == 0) {
43437 res = (*var->get_attr)();
43438 break;
43439 }
43440 var = var->next;
43441 }
43442 if (res == NULL && !PyErr_Occurred()) {
43443 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43444 }
43445 return res;
43446 }
43447
43448 SWIGINTERN int
43449 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43450 int res = 1;
43451 swig_globalvar *var = v->vars;
43452 while (var) {
43453 if (strcmp(var->name,n) == 0) {
43454 res = (*var->set_attr)(p);
43455 break;
43456 }
43457 var = var->next;
43458 }
43459 if (res == 1 && !PyErr_Occurred()) {
43460 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43461 }
43462 return res;
43463 }
43464
43465 SWIGINTERN PyTypeObject*
43466 swig_varlink_type(void) {
43467 static char varlink__doc__[] = "Swig var link object";
43468 static PyTypeObject varlink_type;
43469 static int type_init = 0;
43470 if (!type_init) {
43471 const PyTypeObject tmp
43472 = {
43473 PyObject_HEAD_INIT(NULL)
43474 0, /* Number of items in variable part (ob_size) */
43475 (char *)"swigvarlink", /* Type name (tp_name) */
43476 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43477 0, /* Itemsize (tp_itemsize) */
43478 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43479 (printfunc) swig_varlink_print, /* Print (tp_print) */
43480 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43481 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43482 0, /* tp_compare */
43483 (reprfunc) swig_varlink_repr, /* tp_repr */
43484 0, /* tp_as_number */
43485 0, /* tp_as_sequence */
43486 0, /* tp_as_mapping */
43487 0, /* tp_hash */
43488 0, /* tp_call */
43489 (reprfunc)swig_varlink_str, /* tp_str */
43490 0, /* tp_getattro */
43491 0, /* tp_setattro */
43492 0, /* tp_as_buffer */
43493 0, /* tp_flags */
43494 varlink__doc__, /* tp_doc */
43495 0, /* tp_traverse */
43496 0, /* tp_clear */
43497 0, /* tp_richcompare */
43498 0, /* tp_weaklistoffset */
43499 #if PY_VERSION_HEX >= 0x02020000
43500 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43501 #endif
43502 #if PY_VERSION_HEX >= 0x02030000
43503 0, /* tp_del */
43504 #endif
43505 #ifdef COUNT_ALLOCS
43506 0,0,0,0 /* tp_alloc -> tp_next */
43507 #endif
43508 };
43509 varlink_type = tmp;
43510 varlink_type.ob_type = &PyType_Type;
43511 type_init = 1;
43512 }
43513 return &varlink_type;
43514 }
43515
43516 /* Create a variable linking object for use later */
43517 SWIGINTERN PyObject *
43518 SWIG_Python_newvarlink(void) {
43519 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43520 if (result) {
43521 result->vars = 0;
43522 }
43523 return ((PyObject*) result);
43524 }
43525
43526 SWIGINTERN void
43527 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43528 swig_varlinkobject *v = (swig_varlinkobject *) p;
43529 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43530 if (gv) {
43531 size_t size = strlen(name)+1;
43532 gv->name = (char *)malloc(size);
43533 if (gv->name) {
43534 strncpy(gv->name,name,size);
43535 gv->get_attr = get_attr;
43536 gv->set_attr = set_attr;
43537 gv->next = v->vars;
43538 }
43539 }
43540 v->vars = gv;
43541 }
43542
43543 SWIGINTERN PyObject *
43544 SWIG_globals() {
43545 static PyObject *_SWIG_globals = 0;
43546 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43547 return _SWIG_globals;
43548 }
43549
43550 /* -----------------------------------------------------------------------------
43551 * constants/methods manipulation
43552 * ----------------------------------------------------------------------------- */
43553
43554 /* Install Constants */
43555 SWIGINTERN void
43556 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43557 PyObject *obj = 0;
43558 size_t i;
43559 for (i = 0; constants[i].type; ++i) {
43560 switch(constants[i].type) {
43561 case SWIG_PY_POINTER:
43562 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
43563 break;
43564 case SWIG_PY_BINARY:
43565 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
43566 break;
43567 default:
43568 obj = 0;
43569 break;
43570 }
43571 if (obj) {
43572 PyDict_SetItemString(d, constants[i].name, obj);
43573 Py_DECREF(obj);
43574 }
43575 }
43576 }
43577
43578 /* -----------------------------------------------------------------------------*/
43579 /* Fix SwigMethods to carry the callback ptrs when needed */
43580 /* -----------------------------------------------------------------------------*/
43581
43582 SWIGINTERN void
43583 SWIG_Python_FixMethods(PyMethodDef *methods,
43584 swig_const_info *const_table,
43585 swig_type_info **types,
43586 swig_type_info **types_initial) {
43587 size_t i;
43588 for (i = 0; methods[i].ml_name; ++i) {
43589 char *c = methods[i].ml_doc;
43590 if (c && (c = strstr(c, "swig_ptr: "))) {
43591 int j;
43592 swig_const_info *ci = 0;
43593 char *name = c + 10;
43594 for (j = 0; const_table[j].type; ++j) {
43595 if (strncmp(const_table[j].name, name,
43596 strlen(const_table[j].name)) == 0) {
43597 ci = &(const_table[j]);
43598 break;
43599 }
43600 }
43601 if (ci) {
43602 size_t shift = (ci->ptype) - types;
43603 swig_type_info *ty = types_initial[shift];
43604 size_t ldoc = (c - methods[i].ml_doc);
43605 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
43606 char *ndoc = (char*)malloc(ldoc + lptr + 10);
43607 if (ndoc) {
43608 char *buff = ndoc;
43609 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
43610 if (ptr) {
43611 strncpy(buff, methods[i].ml_doc, ldoc);
43612 buff += ldoc;
43613 strncpy(buff, "swig_ptr: ", 10);
43614 buff += 10;
43615 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
43616 methods[i].ml_doc = ndoc;
43617 }
43618 }
43619 }
43620 }
43621 }
43622 }
43623
43624 #ifdef __cplusplus
43625 }
43626 #endif
43627
43628 /* -----------------------------------------------------------------------------*
43629 * Partial Init method
43630 * -----------------------------------------------------------------------------*/
43631
43632 #ifdef __cplusplus
43633 extern "C"
43634 #endif
43635 SWIGEXPORT void SWIG_init(void) {
43636 PyObject *m, *d;
43637
43638 /* Fix SwigMethods to carry the callback ptrs when needed */
43639 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
43640
43641 m = Py_InitModule((char *) SWIG_name, SwigMethods);
43642 d = PyModule_GetDict(m);
43643
43644 SWIG_InitializeModule(0);
43645 SWIG_InstallConstants(d,swig_const_table);
43646
43647
43648 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
43649 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
43650 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
43651 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
43652 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
43653 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
43654 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
43655 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
43656 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
43657 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
43658 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
43659 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
43660 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
43661 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
43662 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
43663 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
43664 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
43665 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
43666 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
43667 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
43668 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
43669 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
43670 SWIG_Python_SetConstant(d, "GA_PROGRESSBAR",SWIG_From_int(static_cast< int >(wxGA_PROGRESSBAR)));
43671 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
43672 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
43673 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
43674 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
43675 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
43676 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
43677 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
43678 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
43679 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
43680 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
43681 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
43682 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
43683 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
43684 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
43685 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
43686 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
43687 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
43688 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
43689 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
43690 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
43691 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
43692 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
43693 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
43694 SWIG_Python_SetConstant(d, "TE_LINEWRAP",SWIG_From_int(static_cast< int >(wxTE_LINEWRAP)));
43695 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
43696 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
43697 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
43698 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
43699 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
43700 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
43701 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
43702 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
43703 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
43704 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
43705 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
43706 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
43707 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
43708 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
43709 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
43710 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
43711 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
43712 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
43713 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
43714 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
43715 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
43716 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
43717 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
43718 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
43719 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
43720 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
43721 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
43722 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
43723 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
43724 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
43725 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
43726 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
43727 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
43728 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
43729 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
43730 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
43731 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
43732 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
43733 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
43734 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
43735 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
43736 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
43737 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
43738 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
43739 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
43740 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
43741 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
43742 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
43743 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
43744 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
43745 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
43746 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
43747 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
43748 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
43749 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
43750 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
43751 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
43752 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
43753 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
43754 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
43755 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
43756 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
43757 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
43758 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
43759 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
43760 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
43761 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
43762 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
43763 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
43764 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
43765 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
43766 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
43767 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
43768 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
43769 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
43770 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
43771 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
43772 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
43773 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
43774 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
43775 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
43776 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
43777 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
43778 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
43779 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
43780 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
43781 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
43782 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
43783 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
43784 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
43785 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
43786 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
43787 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
43788 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
43789 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
43790 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
43791 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
43792 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
43793 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
43794 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
43795 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
43796 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
43797 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
43798 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
43799 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
43800 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
43801 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
43802 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
43803 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
43804 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
43805 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
43806 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
43807 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
43808 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
43809 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
43810 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
43811 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
43812 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
43813 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
43814 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
43815 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
43816 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
43817 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
43818 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
43819 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
43820 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
43821 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
43822 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
43823 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
43824 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
43825 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
43826 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
43827 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
43828 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
43829 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
43830 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
43831 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
43832 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
43833 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
43834 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
43835 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
43836 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
43837 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
43838 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
43839 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
43840 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
43841 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
43842 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
43843 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
43844 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
43845 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
43846 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
43847 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
43848 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
43849 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
43850 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
43851 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
43852 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
43853 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
43854 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
43855 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
43856 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
43857 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
43858 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
43859 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
43860 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
43861 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
43862 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
43863 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
43864 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
43865 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
43866 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
43867 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
43868 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
43869 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
43870 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
43871 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
43872 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
43873 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
43874 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
43875 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
43876 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
43877 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
43878 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
43879 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
43880 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
43881 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
43882 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
43883 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
43884 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
43885 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
43886 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
43887 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
43888 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
43889 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
43890 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
43891 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
43892 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
43893 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
43894 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
43895 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
43896
43897 // Map renamed classes back to their common name for OOR
43898 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
43899
43900 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
43901 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
43902 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
43903 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
43904 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
43905 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
43906 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
43907 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
43908 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
43909 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
43910 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
43911 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
43912 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
43913 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
43914 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
43915 SWIG_Python_SetConstant(d, "TR_MAC_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_MAC_BUTTONS)));
43916 SWIG_Python_SetConstant(d, "TR_AQUA_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_AQUA_BUTTONS)));
43917 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
43918 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
43919 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
43920 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
43921 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
43922 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
43923 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
43924 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
43925 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
43926 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
43927 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
43928 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
43929 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
43930 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
43931 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
43932 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
43933 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
43934 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
43935 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
43936 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
43937 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
43938 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
43939 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
43940 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
43941 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
43942 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
43943 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
43944 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
43945 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
43946 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
43947 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
43948 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
43949 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
43950 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
43951 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
43952 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
43953 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
43954 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
43955 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
43956 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
43957
43958 // Map renamed classes back to their common name for OOR
43959 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
43960 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
43961
43962 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
43963 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
43964 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
43965 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
43966 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
43967 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
43968 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
43969 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
43970 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
43971 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
43972
43973 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
43974
43975 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
43976 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
43977 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
43978 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
43979 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
43980 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
43981 }
43982