]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
Add support for generating classes for menus
[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_wxClipboardTextEvent swig_types[28]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492 #define SWIGTYPE_p_wxColour swig_types[30]
2493 #define SWIGTYPE_p_wxComboBox swig_types[31]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[32]
2495 #define SWIGTYPE_p_wxContextHelp swig_types[33]
2496 #define SWIGTYPE_p_wxContextHelpButton swig_types[34]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[35]
2498 #define SWIGTYPE_p_wxControl swig_types[36]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[37]
2500 #define SWIGTYPE_p_wxCursor swig_types[38]
2501 #define SWIGTYPE_p_wxDC swig_types[39]
2502 #define SWIGTYPE_p_wxDateEvent swig_types[40]
2503 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[41]
2504 #define SWIGTYPE_p_wxDateTime swig_types[42]
2505 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[43]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2510 #define SWIGTYPE_p_wxEvent swig_types[48]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
2512 #define SWIGTYPE_p_wxFSFile swig_types[50]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[51]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[53]
2516 #define SWIGTYPE_p_wxFont swig_types[54]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2518 #define SWIGTYPE_p_wxGIFHandler swig_types[56]
2519 #define SWIGTYPE_p_wxGauge swig_types[57]
2520 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[58]
2521 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
2522 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2523 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2524 #define SWIGTYPE_p_wxHelpEvent swig_types[62]
2525 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
2526 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[64]
2527 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[65]
2528 #define SWIGTYPE_p_wxICOHandler swig_types[66]
2529 #define SWIGTYPE_p_wxIcon swig_types[67]
2530 #define SWIGTYPE_p_wxIconizeEvent swig_types[68]
2531 #define SWIGTYPE_p_wxIdleEvent swig_types[69]
2532 #define SWIGTYPE_p_wxImage swig_types[70]
2533 #define SWIGTYPE_p_wxImageHandler swig_types[71]
2534 #define SWIGTYPE_p_wxImageList swig_types[72]
2535 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[73]
2536 #define SWIGTYPE_p_wxInitDialogEvent swig_types[74]
2537 #define SWIGTYPE_p_wxItemContainer swig_types[75]
2538 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2539 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2540 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
2541 #define SWIGTYPE_p_wxListBox swig_types[79]
2542 #define SWIGTYPE_p_wxListEvent swig_types[80]
2543 #define SWIGTYPE_p_wxListItem swig_types[81]
2544 #define SWIGTYPE_p_wxListItemAttr swig_types[82]
2545 #define SWIGTYPE_p_wxListView swig_types[83]
2546 #define SWIGTYPE_p_wxListbook swig_types[84]
2547 #define SWIGTYPE_p_wxListbookEvent swig_types[85]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[86]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[87]
2550 #define SWIGTYPE_p_wxMenu swig_types[88]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[89]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[91]
2554 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[92]
2555 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2556 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[95]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[96]
2559 #define SWIGTYPE_p_wxNotebook swig_types[97]
2560 #define SWIGTYPE_p_wxNotebookEvent swig_types[98]
2561 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2562 #define SWIGTYPE_p_wxObject swig_types[100]
2563 #define SWIGTYPE_p_wxPCXHandler swig_types[101]
2564 #define SWIGTYPE_p_wxPNGHandler swig_types[102]
2565 #define SWIGTYPE_p_wxPNMHandler swig_types[103]
2566 #define SWIGTYPE_p_wxPaintEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[105]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[106]
2569 #define SWIGTYPE_p_wxPoint swig_types[107]
2570 #define SWIGTYPE_p_wxPyApp swig_types[108]
2571 #define SWIGTYPE_p_wxPyCommandEvent swig_types[109]
2572 #define SWIGTYPE_p_wxPyControl swig_types[110]
2573 #define SWIGTYPE_p_wxPyEvent swig_types[111]
2574 #define SWIGTYPE_p_wxPyImageHandler swig_types[112]
2575 #define SWIGTYPE_p_wxPyListCtrl swig_types[113]
2576 #define SWIGTYPE_p_wxPySizer swig_types[114]
2577 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[115]
2578 #define SWIGTYPE_p_wxPyTreeItemData swig_types[116]
2579 #define SWIGTYPE_p_wxPyValidator swig_types[117]
2580 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[118]
2581 #define SWIGTYPE_p_wxRadioBox swig_types[119]
2582 #define SWIGTYPE_p_wxRadioButton swig_types[120]
2583 #define SWIGTYPE_p_wxRect swig_types[121]
2584 #define SWIGTYPE_p_wxScrollBar swig_types[122]
2585 #define SWIGTYPE_p_wxScrollEvent swig_types[123]
2586 #define SWIGTYPE_p_wxScrollWinEvent swig_types[124]
2587 #define SWIGTYPE_p_wxSetCursorEvent swig_types[125]
2588 #define SWIGTYPE_p_wxShowEvent swig_types[126]
2589 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[127]
2590 #define SWIGTYPE_p_wxSize swig_types[128]
2591 #define SWIGTYPE_p_wxSizeEvent swig_types[129]
2592 #define SWIGTYPE_p_wxSizer swig_types[130]
2593 #define SWIGTYPE_p_wxSizerItem swig_types[131]
2594 #define SWIGTYPE_p_wxSlider swig_types[132]
2595 #define SWIGTYPE_p_wxSpinButton swig_types[133]
2596 #define SWIGTYPE_p_wxSpinCtrl swig_types[134]
2597 #define SWIGTYPE_p_wxSpinEvent swig_types[135]
2598 #define SWIGTYPE_p_wxStaticBitmap swig_types[136]
2599 #define SWIGTYPE_p_wxStaticBox swig_types[137]
2600 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[138]
2601 #define SWIGTYPE_p_wxStaticLine swig_types[139]
2602 #define SWIGTYPE_p_wxStaticText swig_types[140]
2603 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[141]
2604 #define SWIGTYPE_p_wxString swig_types[142]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[143]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[144]
2607 #define SWIGTYPE_p_wxTextAttr swig_types[145]
2608 #define SWIGTYPE_p_wxTextCtrl swig_types[146]
2609 #define SWIGTYPE_p_wxTextUrlEvent swig_types[147]
2610 #define SWIGTYPE_p_wxToggleButton swig_types[148]
2611 #define SWIGTYPE_p_wxToolBar swig_types[149]
2612 #define SWIGTYPE_p_wxToolBarBase swig_types[150]
2613 #define SWIGTYPE_p_wxToolBarToolBase swig_types[151]
2614 #define SWIGTYPE_p_wxToolbook swig_types[152]
2615 #define SWIGTYPE_p_wxToolbookEvent swig_types[153]
2616 #define SWIGTYPE_p_wxTreeCtrl swig_types[154]
2617 #define SWIGTYPE_p_wxTreeEvent swig_types[155]
2618 #define SWIGTYPE_p_wxTreeItemId swig_types[156]
2619 #define SWIGTYPE_p_wxTreebook swig_types[157]
2620 #define SWIGTYPE_p_wxTreebookEvent swig_types[158]
2621 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[159]
2622 #define SWIGTYPE_p_wxValidator swig_types[160]
2623 #define SWIGTYPE_p_wxVisualAttributes swig_types[161]
2624 #define SWIGTYPE_p_wxWindow swig_types[162]
2625 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[163]
2626 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[164]
2627 #define SWIGTYPE_p_wxXPMHandler swig_types[165]
2628 static swig_type_info *swig_types[167];
2629 static swig_module_info swig_module = {swig_types, 166, 0, 0, 0, 0};
2630 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2631 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2632
2633 /* -------- TYPES TABLE (END) -------- */
2634
2635 #if (PY_VERSION_HEX <= 0x02000000)
2636 # if !defined(SWIG_PYTHON_CLASSIC)
2637 # error "This python version requires to use swig with the '-classic' option"
2638 # endif
2639 #endif
2640 #if (PY_VERSION_HEX <= 0x02020000)
2641 # error "This python version requires to use swig with the '-nomodern' option"
2642 #endif
2643 #if (PY_VERSION_HEX <= 0x02020000)
2644 # error "This python version requires to use swig with the '-nomodernargs' option"
2645 #endif
2646 #ifndef METH_O
2647 # error "This python version requires to use swig with the '-nofastunpack' option"
2648 #endif
2649
2650 /*-----------------------------------------------
2651 @(target):= _controls_.so
2652 ------------------------------------------------*/
2653 #define SWIG_init init_controls_
2654
2655 #define SWIG_name "_controls_"
2656
2657 #define SWIGVERSION 0x010329
2658
2659
2660 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2661 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2662
2663
2664 #include <stdexcept>
2665
2666
2667 namespace swig {
2668 class PyObject_ptr {
2669 protected:
2670 PyObject *_obj;
2671
2672 public:
2673 PyObject_ptr() :_obj(0)
2674 {
2675 }
2676
2677 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2678 {
2679 Py_XINCREF(_obj);
2680 }
2681
2682 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2683 {
2684 if (initial_ref) Py_XINCREF(_obj);
2685 }
2686
2687 PyObject_ptr & operator=(const PyObject_ptr& item)
2688 {
2689 Py_XINCREF(item._obj);
2690 Py_XDECREF(_obj);
2691 _obj = item._obj;
2692 return *this;
2693 }
2694
2695 ~PyObject_ptr()
2696 {
2697 Py_XDECREF(_obj);
2698 }
2699
2700 operator PyObject *() const
2701 {
2702 return _obj;
2703 }
2704
2705 PyObject *operator->() const
2706 {
2707 return _obj;
2708 }
2709 };
2710 }
2711
2712
2713 namespace swig {
2714 struct PyObject_var : PyObject_ptr {
2715 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2716
2717 PyObject_var & operator = (PyObject* obj)
2718 {
2719 Py_XDECREF(_obj);
2720 _obj = obj;
2721 return *this;
2722 }
2723 };
2724 }
2725
2726
2727 #include "wx/wxPython/wxPython.h"
2728 #include "wx/wxPython/pyclasses.h"
2729
2730 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2731 static const wxString wxPyEmptyString(wxEmptyString);
2732 static const wxString wxPyControlNameStr(wxControlNameStr);
2733
2734 const wxArrayString wxPyEmptyStringArray;
2735
2736 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2737
2738 #define SWIG_From_long PyInt_FromLong
2739
2740
2741 SWIGINTERNINLINE PyObject *
2742 SWIG_From_int (int value)
2743 {
2744 return SWIG_From_long (value);
2745 }
2746
2747
2748 #include <limits.h>
2749 #ifndef LLONG_MIN
2750 # define LLONG_MIN LONG_LONG_MIN
2751 #endif
2752 #ifndef LLONG_MAX
2753 # define LLONG_MAX LONG_LONG_MAX
2754 #endif
2755 #ifndef ULLONG_MAX
2756 # define ULLONG_MAX ULONG_LONG_MAX
2757 #endif
2758
2759
2760 SWIGINTERN int
2761 SWIG_AsVal_long (PyObject* obj, long* val)
2762 {
2763 if (PyNumber_Check(obj)) {
2764 if (val) *val = PyInt_AsLong(obj);
2765 return SWIG_OK;
2766 }
2767 return SWIG_TypeError;
2768 }
2769
2770
2771 SWIGINTERN int
2772 SWIG_AsVal_int (PyObject * obj, int *val)
2773 {
2774 long v;
2775 int res = SWIG_AsVal_long (obj, &v);
2776 if (SWIG_IsOK(res)) {
2777 if ((v < INT_MIN || v > INT_MAX)) {
2778 return SWIG_OverflowError;
2779 } else {
2780 if (val) *val = static_cast< int >(v);
2781 }
2782 }
2783 return res;
2784 }
2785
2786 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_bool (PyObject *obj, bool *val)
2790 {
2791 if (obj == Py_True) {
2792 if (val) *val = true;
2793 return SWIG_OK;
2794 } else if (obj == Py_False) {
2795 if (val) *val = false;
2796 return SWIG_OK;
2797 } else {
2798 long v = 0;
2799 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2800 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2801 return res;
2802 }
2803 }
2804
2805 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2806 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2807 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2808 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2809 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2810 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2811
2812 #include <wx/checklst.h>
2813
2814 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2815 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2816 if (clientData)
2817 {
2818 wxPyClientData* data = new wxPyClientData(clientData);
2819 self->Insert(item, pos, data);
2820 }
2821 else
2822 self->Insert(item, pos);
2823 }
2824
2825 SWIGINTERN int
2826 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2827 {
2828 long v = 0;
2829 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2830 return SWIG_TypeError;
2831 }
2832 else if (val)
2833 *val = (unsigned long)v;
2834 return SWIG_OK;
2835 }
2836
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2840 {
2841 unsigned long v;
2842 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2843 if (SWIG_IsOK(res)) {
2844 if ((v > UINT_MAX)) {
2845 return SWIG_OverflowError;
2846 } else {
2847 if (val) *val = static_cast< unsigned int >(v);
2848 }
2849 }
2850 return res;
2851 }
2852
2853 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2854 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2855 wxArrayInt lst;
2856 self->GetSelections(lst);
2857 PyObject *tup = PyTuple_New(lst.GetCount());
2858 for (size_t i=0; i<lst.GetCount(); i++)
2859 {
2860 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2861 }
2862 wxPyEndBlockThreads(blocked);
2863 return tup;
2864 }
2865 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2866 #ifdef __WXMSW__
2867 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2868 self->GetItem(item)->SetTextColour(c);
2869 #endif
2870 }
2871 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2872 #ifdef __WXMSW__
2873 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2874 self->GetItem(item)->SetBackgroundColour(c);
2875 #endif
2876 }
2877 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2878 #ifdef __WXMSW__
2879 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2880 self->GetItem(item)->SetFont(f);
2881 #endif
2882 }
2883 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2884 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2885 self->AppendText(text);
2886 }
2887 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2888 return self->GetValue().Mid(from, to - from);
2889 }
2890 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2891 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2892 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2893 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2894 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2895
2896 SWIGINTERNINLINE PyObject*
2897 SWIG_From_unsigned_SS_long (unsigned long value)
2898 {
2899 return (value > LONG_MAX) ?
2900 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2901 }
2902
2903
2904 SWIGINTERNINLINE PyObject *
2905 SWIG_From_size_t (size_t value)
2906 {
2907 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2908 }
2909
2910
2911 SWIGINTERNINLINE PyObject *
2912 SWIG_From_unsigned_SS_int (unsigned int value)
2913 {
2914 return SWIG_From_unsigned_SS_long (value);
2915 }
2916
2917
2918 #include <wx/slider.h>
2919
2920
2921 static const wxString wxPySliderNameStr(wxSliderNameStr);
2922 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2923
2924 #if !wxUSE_TOGGLEBTN
2925 // implement dummy items for platforms that don't have this class
2926
2927 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2928
2929 class wxToggleButton : public wxControl
2930 {
2931 public:
2932 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2933 const wxPoint&, const wxSize&, long,
2934 const wxValidator&, const wxString&)
2935 { wxPyRaiseNotImplemented(); }
2936
2937 wxToggleButton()
2938 { wxPyRaiseNotImplemented(); }
2939 };
2940 #endif
2941
2942 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2943
2944 SWIGINTERNINLINE int
2945 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2946 {
2947 unsigned long v;
2948 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2949 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2950 return res;
2951 }
2952
2953 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2954 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2955 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2956 if (udata) {
2957 Py_INCREF(udata->m_obj);
2958 return udata->m_obj;
2959 } else {
2960 Py_INCREF(Py_None);
2961 return Py_None;
2962 }
2963 }
2964 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2965 self->SetClientData(new wxPyUserData(clientData));
2966 }
2967 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){
2968 wxPyUserData* udata = NULL;
2969 if (clientData && clientData != Py_None)
2970 udata = new wxPyUserData(clientData);
2971 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2972 shortHelp, longHelp, udata);
2973 }
2974 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){
2975 wxPyUserData* udata = NULL;
2976 if (clientData && clientData != Py_None)
2977 udata = new wxPyUserData(clientData);
2978 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2979 shortHelp, longHelp, udata);
2980 }
2981 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2982 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2983 if (udata) {
2984 Py_INCREF(udata->m_obj);
2985 return udata->m_obj;
2986 } else {
2987 Py_INCREF(Py_None);
2988 return Py_None;
2989 }
2990 }
2991 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2992 self->SetToolClientData(id, new wxPyUserData(clientData));
2993 }
2994
2995 #include <wx/listctrl.h>
2996
2997 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2998 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2999 // Python aware sorting function for wxPyListCtrl
3000 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3001 int retval = 0;
3002 PyObject* func = (PyObject*)funcPtr;
3003 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3004
3005 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3006 PyObject* result = PyEval_CallObject(func, args);
3007 Py_DECREF(args);
3008 if (result) {
3009 retval = PyInt_AsLong(result);
3010 Py_DECREF(result);
3011 }
3012
3013 wxPyEndBlockThreads(blocked);
3014 return retval;
3015 }
3016
3017 // C++ Version of a Python aware class
3018 class wxPyListCtrl : public wxListCtrl {
3019 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3020 public:
3021 wxPyListCtrl() : wxListCtrl() {}
3022 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3023 const wxPoint& pos,
3024 const wxSize& size,
3025 long style,
3026 const wxValidator& validator,
3027 const wxString& name) :
3028 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3029
3030 bool Create(wxWindow* parent, wxWindowID id,
3031 const wxPoint& pos,
3032 const wxSize& size,
3033 long style,
3034 const wxValidator& validator,
3035 const wxString& name) {
3036 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3037 }
3038
3039 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3040 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3041
3042 // use the virtual version to avoid a confusing assert in the base class
3043 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3044 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3045
3046 PYPRIVATE;
3047 };
3048
3049 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3050
3051 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3052 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3053 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3054 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3055
3056
3057 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3058 wxListItem item;
3059 item.SetMask( wxLIST_MASK_STATE |
3060 wxLIST_MASK_TEXT |
3061 wxLIST_MASK_IMAGE |
3062 wxLIST_MASK_DATA |
3063 wxLIST_SET_ITEM |
3064 wxLIST_MASK_WIDTH |
3065 wxLIST_MASK_FORMAT
3066 );
3067 if (self->GetColumn(col, item))
3068 return new wxListItem(item);
3069 else
3070 return NULL;
3071 }
3072 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3073 wxListItem* info = new wxListItem;
3074 info->m_itemId = itemId;
3075 info->m_col = col;
3076 info->m_mask = 0xFFFF;
3077 self->GetItem(*info);
3078 return info;
3079 }
3080 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3081 wxPoint pos;
3082 self->GetItemPosition(item, pos);
3083 return pos;
3084 }
3085 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3086 wxRect rect;
3087 self->GetItemRect(item, rect, code);
3088 return rect;
3089 }
3090 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3091 if (!PyCallable_Check(func))
3092 return false;
3093 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3094 }
3095 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3096
3097
3098
3099 return (wxWindow*)self->m_mainWin;
3100
3101 }
3102
3103 #include <wx/treectrl.h>
3104 #include "wx/wxPython/pytree.h"
3105
3106 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3107 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3108 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3109 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3110 // C++ version of Python aware wxTreeCtrl
3111 class wxPyTreeCtrl : public wxTreeCtrl {
3112 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3113 public:
3114 wxPyTreeCtrl() : wxTreeCtrl() {}
3115 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3116 const wxPoint& pos,
3117 const wxSize& size,
3118 long style,
3119 const wxValidator& validator,
3120 const wxString& name) :
3121 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3122
3123 bool Create(wxWindow *parent, wxWindowID id,
3124 const wxPoint& pos,
3125 const wxSize& size,
3126 long style,
3127 const wxValidator& validator,
3128 const wxString& name) {
3129 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3130 }
3131
3132
3133 int OnCompareItems(const wxTreeItemId& item1,
3134 const wxTreeItemId& item2) {
3135 int rval = 0;
3136 bool found;
3137 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3138 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3139 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3140 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3141 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3142 Py_DECREF(o1);
3143 Py_DECREF(o2);
3144 }
3145 wxPyEndBlockThreads(blocked);
3146 if (! found)
3147 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3148 return rval;
3149 }
3150 PYPRIVATE;
3151 };
3152
3153 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3154
3155
3156 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3157 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3158 if (data == NULL) {
3159 data = new wxPyTreeItemData();
3160 data->SetId(item); // set the id
3161 self->SetItemData(item, data);
3162 }
3163 return data;
3164 }
3165 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3166 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3167 if (data == NULL) {
3168 data = new wxPyTreeItemData();
3169 data->SetId(item); // set the id
3170 self->SetItemData(item, data);
3171 }
3172 return data->GetData();
3173 }
3174 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 }
3178 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData(obj);
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 } else
3185 data->SetData(obj);
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3188 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3189 PyObject* rval = PyList_New(0);
3190 wxArrayTreeItemIds array;
3191 size_t num, x;
3192 num = self->GetSelections(array);
3193 for (x=0; x < num; x++) {
3194 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3195 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3196 PyList_Append(rval, item);
3197 Py_DECREF(item);
3198 }
3199 wxPyEndBlockThreads(blocked);
3200 return rval;
3201 }
3202 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3203 void* cookie = 0;
3204 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3205 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3206 PyObject* tup = PyTuple_New(2);
3207 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3208 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3209 wxPyEndBlockThreads(blocked);
3210 return tup;
3211 }
3212 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3213 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3214 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3215 PyObject* tup = PyTuple_New(2);
3216 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3217 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3218 wxPyEndBlockThreads(blocked);
3219 return tup;
3220 }
3221 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3222 wxRect rect;
3223 if (self->GetBoundingRect(item, rect, textOnly)) {
3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3225 wxRect* r = new wxRect(rect);
3226 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3227 wxPyEndBlockThreads(blocked);
3228 return val;
3229 }
3230 else
3231 RETURN_NONE();
3232 }
3233 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3234
3235 SWIGINTERNINLINE PyObject*
3236 SWIG_From_bool (bool value)
3237 {
3238 return PyBool_FromLong(value ? 1 : 0);
3239 }
3240
3241 // C++ version of Python aware wxControl
3242 class wxPyControl : public wxControl
3243 {
3244 DECLARE_DYNAMIC_CLASS(wxPyControl)
3245 public:
3246 wxPyControl() : wxControl() {}
3247 wxPyControl(wxWindow* parent, const wxWindowID id,
3248 const wxPoint& pos = wxDefaultPosition,
3249 const wxSize& size = wxDefaultSize,
3250 long style = 0,
3251 const wxValidator& validator=wxDefaultValidator,
3252 const wxString& name = wxPyControlNameStr)
3253 : wxControl(parent, id, pos, size, style, validator, name) {}
3254
3255 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3256
3257 bool DoEraseBackground(wxDC* dc) {
3258 #ifdef __WXMSW__
3259 return wxWindow::DoEraseBackground(dc->GetHDC());
3260 #else
3261 dc->SetBackground(wxBrush(GetBackgroundColour()));
3262 dc->Clear();
3263 return true;
3264 #endif
3265 }
3266
3267 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3268 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3269 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3270 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3271
3272 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3273 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3274 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3275
3276 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3277 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3278
3279 DEC_PYCALLBACK__(InitDialog);
3280 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3281 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3282 DEC_PYCALLBACK_BOOL_(Validate);
3283
3284 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3285 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3286 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3287
3288 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3289 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3290
3291 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3292 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3293
3294 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3295
3296 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3297
3298 PYPRIVATE;
3299 };
3300
3301 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3302
3303 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3304 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3305 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3306 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3307
3308 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3309 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3310 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3311
3312 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3313 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3314
3315 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3316 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3317 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3318 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3319
3320 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3321 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3322 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3323
3324 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3325 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3326
3327 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3328 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3329
3330 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3331
3332 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3333
3334
3335
3336 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3337
3338 #include <wx/generic/dragimgg.h>
3339
3340 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3341 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3342 wxDateTime rv;
3343 self->GetRange(&rv, NULL);
3344 return rv;
3345 }
3346 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3347 wxDateTime rv;
3348 self->GetRange(NULL, &rv);
3349 return rv;
3350 }
3351 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3352 #ifdef __cplusplus
3353 extern "C" {
3354 #endif
3355 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3356 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3357 return 1;
3358 }
3359
3360
3361 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3362 PyObject *pyobj = 0;
3363
3364 {
3365 #if wxUSE_UNICODE
3366 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3367 #else
3368 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3369 #endif
3370 }
3371 return pyobj;
3372 }
3373
3374
3375 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3376 PyObject *resultobj = 0;
3377 wxWindow *arg1 = (wxWindow *) 0 ;
3378 int arg2 = (int) -1 ;
3379 wxString const &arg3_defvalue = wxPyEmptyString ;
3380 wxString *arg3 = (wxString *) &arg3_defvalue ;
3381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3383 wxSize const &arg5_defvalue = wxDefaultSize ;
3384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3385 long arg6 = (long) 0 ;
3386 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3387 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3388 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3389 wxString *arg8 = (wxString *) &arg8_defvalue ;
3390 wxButton *result = 0 ;
3391 void *argp1 = 0 ;
3392 int res1 = 0 ;
3393 int val2 ;
3394 int ecode2 = 0 ;
3395 bool temp3 = false ;
3396 wxPoint temp4 ;
3397 wxSize temp5 ;
3398 long val6 ;
3399 int ecode6 = 0 ;
3400 void *argp7 = 0 ;
3401 int res7 = 0 ;
3402 bool temp8 = false ;
3403 PyObject * obj0 = 0 ;
3404 PyObject * obj1 = 0 ;
3405 PyObject * obj2 = 0 ;
3406 PyObject * obj3 = 0 ;
3407 PyObject * obj4 = 0 ;
3408 PyObject * obj5 = 0 ;
3409 PyObject * obj6 = 0 ;
3410 PyObject * obj7 = 0 ;
3411 char * kwnames[] = {
3412 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3413 };
3414
3415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3417 if (!SWIG_IsOK(res1)) {
3418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3419 }
3420 arg1 = reinterpret_cast< wxWindow * >(argp1);
3421 if (obj1) {
3422 ecode2 = SWIG_AsVal_int(obj1, &val2);
3423 if (!SWIG_IsOK(ecode2)) {
3424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3425 }
3426 arg2 = static_cast< int >(val2);
3427 }
3428 if (obj2) {
3429 {
3430 arg3 = wxString_in_helper(obj2);
3431 if (arg3 == NULL) SWIG_fail;
3432 temp3 = true;
3433 }
3434 }
3435 if (obj3) {
3436 {
3437 arg4 = &temp4;
3438 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3439 }
3440 }
3441 if (obj4) {
3442 {
3443 arg5 = &temp5;
3444 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3445 }
3446 }
3447 if (obj5) {
3448 ecode6 = SWIG_AsVal_long(obj5, &val6);
3449 if (!SWIG_IsOK(ecode6)) {
3450 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3451 }
3452 arg6 = static_cast< long >(val6);
3453 }
3454 if (obj6) {
3455 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3456 if (!SWIG_IsOK(res7)) {
3457 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3458 }
3459 if (!argp7) {
3460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3461 }
3462 arg7 = reinterpret_cast< wxValidator * >(argp7);
3463 }
3464 if (obj7) {
3465 {
3466 arg8 = wxString_in_helper(obj7);
3467 if (arg8 == NULL) SWIG_fail;
3468 temp8 = true;
3469 }
3470 }
3471 {
3472 if (!wxPyCheckForApp()) SWIG_fail;
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3479 {
3480 if (temp3)
3481 delete arg3;
3482 }
3483 {
3484 if (temp8)
3485 delete arg8;
3486 }
3487 return resultobj;
3488 fail:
3489 {
3490 if (temp3)
3491 delete arg3;
3492 }
3493 {
3494 if (temp8)
3495 delete arg8;
3496 }
3497 return NULL;
3498 }
3499
3500
3501 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3502 PyObject *resultobj = 0;
3503 wxButton *result = 0 ;
3504
3505 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3506 {
3507 if (!wxPyCheckForApp()) SWIG_fail;
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 result = (wxButton *)new wxButton();
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj = 0;
3522 wxButton *arg1 = (wxButton *) 0 ;
3523 wxWindow *arg2 = (wxWindow *) 0 ;
3524 int arg3 = (int) -1 ;
3525 wxString const &arg4_defvalue = wxPyEmptyString ;
3526 wxString *arg4 = (wxString *) &arg4_defvalue ;
3527 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3528 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3529 wxSize const &arg6_defvalue = wxDefaultSize ;
3530 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3531 long arg7 = (long) 0 ;
3532 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3533 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3534 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3535 wxString *arg9 = (wxString *) &arg9_defvalue ;
3536 bool result;
3537 void *argp1 = 0 ;
3538 int res1 = 0 ;
3539 void *argp2 = 0 ;
3540 int res2 = 0 ;
3541 int val3 ;
3542 int ecode3 = 0 ;
3543 bool temp4 = false ;
3544 wxPoint temp5 ;
3545 wxSize temp6 ;
3546 long val7 ;
3547 int ecode7 = 0 ;
3548 void *argp8 = 0 ;
3549 int res8 = 0 ;
3550 bool temp9 = false ;
3551 PyObject * obj0 = 0 ;
3552 PyObject * obj1 = 0 ;
3553 PyObject * obj2 = 0 ;
3554 PyObject * obj3 = 0 ;
3555 PyObject * obj4 = 0 ;
3556 PyObject * obj5 = 0 ;
3557 PyObject * obj6 = 0 ;
3558 PyObject * obj7 = 0 ;
3559 PyObject * obj8 = 0 ;
3560 char * kwnames[] = {
3561 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3562 };
3563
3564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3566 if (!SWIG_IsOK(res1)) {
3567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3568 }
3569 arg1 = reinterpret_cast< wxButton * >(argp1);
3570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3571 if (!SWIG_IsOK(res2)) {
3572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3573 }
3574 arg2 = reinterpret_cast< wxWindow * >(argp2);
3575 if (obj2) {
3576 ecode3 = SWIG_AsVal_int(obj2, &val3);
3577 if (!SWIG_IsOK(ecode3)) {
3578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3579 }
3580 arg3 = static_cast< int >(val3);
3581 }
3582 if (obj3) {
3583 {
3584 arg4 = wxString_in_helper(obj3);
3585 if (arg4 == NULL) SWIG_fail;
3586 temp4 = true;
3587 }
3588 }
3589 if (obj4) {
3590 {
3591 arg5 = &temp5;
3592 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3593 }
3594 }
3595 if (obj5) {
3596 {
3597 arg6 = &temp6;
3598 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3599 }
3600 }
3601 if (obj6) {
3602 ecode7 = SWIG_AsVal_long(obj6, &val7);
3603 if (!SWIG_IsOK(ecode7)) {
3604 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3605 }
3606 arg7 = static_cast< long >(val7);
3607 }
3608 if (obj7) {
3609 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3610 if (!SWIG_IsOK(res8)) {
3611 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3612 }
3613 if (!argp8) {
3614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3615 }
3616 arg8 = reinterpret_cast< wxValidator * >(argp8);
3617 }
3618 if (obj8) {
3619 {
3620 arg9 = wxString_in_helper(obj8);
3621 if (arg9 == NULL) SWIG_fail;
3622 temp9 = true;
3623 }
3624 }
3625 {
3626 PyThreadState* __tstate = wxPyBeginAllowThreads();
3627 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3628 wxPyEndAllowThreads(__tstate);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 }
3631 {
3632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3633 }
3634 {
3635 if (temp4)
3636 delete arg4;
3637 }
3638 {
3639 if (temp9)
3640 delete arg9;
3641 }
3642 return resultobj;
3643 fail:
3644 {
3645 if (temp4)
3646 delete arg4;
3647 }
3648 {
3649 if (temp9)
3650 delete arg9;
3651 }
3652 return NULL;
3653 }
3654
3655
3656 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3657 PyObject *resultobj = 0;
3658 wxButton *arg1 = (wxButton *) 0 ;
3659 void *argp1 = 0 ;
3660 int res1 = 0 ;
3661 PyObject *swig_obj[1] ;
3662
3663 if (!args) SWIG_fail;
3664 swig_obj[0] = args;
3665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3666 if (!SWIG_IsOK(res1)) {
3667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3668 }
3669 arg1 = reinterpret_cast< wxButton * >(argp1);
3670 {
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 (arg1)->SetDefault();
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 resultobj = SWIG_Py_Void();
3677 return resultobj;
3678 fail:
3679 return NULL;
3680 }
3681
3682
3683 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3684 PyObject *resultobj = 0;
3685 wxSize result;
3686
3687 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3688 {
3689 PyThreadState* __tstate = wxPyBeginAllowThreads();
3690 result = wxButton::GetDefaultSize();
3691 wxPyEndAllowThreads(__tstate);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 }
3694 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3695 return resultobj;
3696 fail:
3697 return NULL;
3698 }
3699
3700
3701 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3702 PyObject *resultobj = 0;
3703 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3704 SwigValueWrapper<wxVisualAttributes > result;
3705 int val1 ;
3706 int ecode1 = 0 ;
3707 PyObject * obj0 = 0 ;
3708 char * kwnames[] = {
3709 (char *) "variant", NULL
3710 };
3711
3712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3713 if (obj0) {
3714 ecode1 = SWIG_AsVal_int(obj0, &val1);
3715 if (!SWIG_IsOK(ecode1)) {
3716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3717 }
3718 arg1 = static_cast< wxWindowVariant >(val1);
3719 }
3720 {
3721 if (!wxPyCheckForApp()) SWIG_fail;
3722 PyThreadState* __tstate = wxPyBeginAllowThreads();
3723 result = wxButton::GetClassDefaultAttributes(arg1);
3724 wxPyEndAllowThreads(__tstate);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3728 return resultobj;
3729 fail:
3730 return NULL;
3731 }
3732
3733
3734 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3735 PyObject *obj;
3736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3737 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3738 return SWIG_Py_Void();
3739 }
3740
3741 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3742 return SWIG_Python_InitShadowInstance(args);
3743 }
3744
3745 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3746 PyObject *resultobj = 0;
3747 wxWindow *arg1 = (wxWindow *) 0 ;
3748 int arg2 = (int) -1 ;
3749 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3750 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3751 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3752 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3753 wxSize const &arg5_defvalue = wxDefaultSize ;
3754 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3755 long arg6 = (long) wxBU_AUTODRAW ;
3756 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3757 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3758 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3759 wxString *arg8 = (wxString *) &arg8_defvalue ;
3760 wxBitmapButton *result = 0 ;
3761 void *argp1 = 0 ;
3762 int res1 = 0 ;
3763 int val2 ;
3764 int ecode2 = 0 ;
3765 void *argp3 = 0 ;
3766 int res3 = 0 ;
3767 wxPoint temp4 ;
3768 wxSize temp5 ;
3769 long val6 ;
3770 int ecode6 = 0 ;
3771 void *argp7 = 0 ;
3772 int res7 = 0 ;
3773 bool temp8 = false ;
3774 PyObject * obj0 = 0 ;
3775 PyObject * obj1 = 0 ;
3776 PyObject * obj2 = 0 ;
3777 PyObject * obj3 = 0 ;
3778 PyObject * obj4 = 0 ;
3779 PyObject * obj5 = 0 ;
3780 PyObject * obj6 = 0 ;
3781 PyObject * obj7 = 0 ;
3782 char * kwnames[] = {
3783 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3784 };
3785
3786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3788 if (!SWIG_IsOK(res1)) {
3789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3790 }
3791 arg1 = reinterpret_cast< wxWindow * >(argp1);
3792 if (obj1) {
3793 ecode2 = SWIG_AsVal_int(obj1, &val2);
3794 if (!SWIG_IsOK(ecode2)) {
3795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3796 }
3797 arg2 = static_cast< int >(val2);
3798 }
3799 if (obj2) {
3800 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3801 if (!SWIG_IsOK(res3)) {
3802 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3803 }
3804 if (!argp3) {
3805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3806 }
3807 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3808 }
3809 if (obj3) {
3810 {
3811 arg4 = &temp4;
3812 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3813 }
3814 }
3815 if (obj4) {
3816 {
3817 arg5 = &temp5;
3818 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3819 }
3820 }
3821 if (obj5) {
3822 ecode6 = SWIG_AsVal_long(obj5, &val6);
3823 if (!SWIG_IsOK(ecode6)) {
3824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3825 }
3826 arg6 = static_cast< long >(val6);
3827 }
3828 if (obj6) {
3829 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3830 if (!SWIG_IsOK(res7)) {
3831 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3832 }
3833 if (!argp7) {
3834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3835 }
3836 arg7 = reinterpret_cast< wxValidator * >(argp7);
3837 }
3838 if (obj7) {
3839 {
3840 arg8 = wxString_in_helper(obj7);
3841 if (arg8 == NULL) SWIG_fail;
3842 temp8 = true;
3843 }
3844 }
3845 {
3846 if (!wxPyCheckForApp()) SWIG_fail;
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3853 {
3854 if (temp8)
3855 delete arg8;
3856 }
3857 return resultobj;
3858 fail:
3859 {
3860 if (temp8)
3861 delete arg8;
3862 }
3863 return NULL;
3864 }
3865
3866
3867 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3868 PyObject *resultobj = 0;
3869 wxBitmapButton *result = 0 ;
3870
3871 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3872 {
3873 if (!wxPyCheckForApp()) SWIG_fail;
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = (wxBitmapButton *)new wxBitmapButton();
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3880 return resultobj;
3881 fail:
3882 return NULL;
3883 }
3884
3885
3886 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj = 0;
3888 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3889 wxWindow *arg2 = (wxWindow *) 0 ;
3890 int arg3 = (int) -1 ;
3891 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3892 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3895 wxSize const &arg6_defvalue = wxDefaultSize ;
3896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3897 long arg7 = (long) wxBU_AUTODRAW ;
3898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3900 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3901 wxString *arg9 = (wxString *) &arg9_defvalue ;
3902 bool result;
3903 void *argp1 = 0 ;
3904 int res1 = 0 ;
3905 void *argp2 = 0 ;
3906 int res2 = 0 ;
3907 int val3 ;
3908 int ecode3 = 0 ;
3909 void *argp4 = 0 ;
3910 int res4 = 0 ;
3911 wxPoint temp5 ;
3912 wxSize temp6 ;
3913 long val7 ;
3914 int ecode7 = 0 ;
3915 void *argp8 = 0 ;
3916 int res8 = 0 ;
3917 bool temp9 = false ;
3918 PyObject * obj0 = 0 ;
3919 PyObject * obj1 = 0 ;
3920 PyObject * obj2 = 0 ;
3921 PyObject * obj3 = 0 ;
3922 PyObject * obj4 = 0 ;
3923 PyObject * obj5 = 0 ;
3924 PyObject * obj6 = 0 ;
3925 PyObject * obj7 = 0 ;
3926 PyObject * obj8 = 0 ;
3927 char * kwnames[] = {
3928 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3929 };
3930
3931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3933 if (!SWIG_IsOK(res1)) {
3934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3935 }
3936 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3938 if (!SWIG_IsOK(res2)) {
3939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3940 }
3941 arg2 = reinterpret_cast< wxWindow * >(argp2);
3942 if (obj2) {
3943 ecode3 = SWIG_AsVal_int(obj2, &val3);
3944 if (!SWIG_IsOK(ecode3)) {
3945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3946 }
3947 arg3 = static_cast< int >(val3);
3948 }
3949 if (obj3) {
3950 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3951 if (!SWIG_IsOK(res4)) {
3952 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3953 }
3954 if (!argp4) {
3955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3956 }
3957 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3958 }
3959 if (obj4) {
3960 {
3961 arg5 = &temp5;
3962 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3963 }
3964 }
3965 if (obj5) {
3966 {
3967 arg6 = &temp6;
3968 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3969 }
3970 }
3971 if (obj6) {
3972 ecode7 = SWIG_AsVal_long(obj6, &val7);
3973 if (!SWIG_IsOK(ecode7)) {
3974 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3975 }
3976 arg7 = static_cast< long >(val7);
3977 }
3978 if (obj7) {
3979 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3980 if (!SWIG_IsOK(res8)) {
3981 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3982 }
3983 if (!argp8) {
3984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3985 }
3986 arg8 = reinterpret_cast< wxValidator * >(argp8);
3987 }
3988 if (obj8) {
3989 {
3990 arg9 = wxString_in_helper(obj8);
3991 if (arg9 == NULL) SWIG_fail;
3992 temp9 = true;
3993 }
3994 }
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 {
4002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4003 }
4004 {
4005 if (temp9)
4006 delete arg9;
4007 }
4008 return resultobj;
4009 fail:
4010 {
4011 if (temp9)
4012 delete arg9;
4013 }
4014 return NULL;
4015 }
4016
4017
4018 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4019 PyObject *resultobj = 0;
4020 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4021 wxBitmap result;
4022 void *argp1 = 0 ;
4023 int res1 = 0 ;
4024 PyObject *swig_obj[1] ;
4025
4026 if (!args) SWIG_fail;
4027 swig_obj[0] = args;
4028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4029 if (!SWIG_IsOK(res1)) {
4030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4031 }
4032 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 result = (arg1)->GetBitmapLabel();
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4047 PyObject *resultobj = 0;
4048 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4049 wxBitmap result;
4050 void *argp1 = 0 ;
4051 int res1 = 0 ;
4052 PyObject *swig_obj[1] ;
4053
4054 if (!args) SWIG_fail;
4055 swig_obj[0] = args;
4056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4059 }
4060 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 result = (arg1)->GetBitmapDisabled();
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4075 PyObject *resultobj = 0;
4076 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4077 wxBitmap result;
4078 void *argp1 = 0 ;
4079 int res1 = 0 ;
4080 PyObject *swig_obj[1] ;
4081
4082 if (!args) SWIG_fail;
4083 swig_obj[0] = args;
4084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4085 if (!SWIG_IsOK(res1)) {
4086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4087 }
4088 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (arg1)->GetBitmapFocus();
4092 wxPyEndAllowThreads(__tstate);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 }
4095 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4103 PyObject *resultobj = 0;
4104 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4105 wxBitmap result;
4106 void *argp1 = 0 ;
4107 int res1 = 0 ;
4108 PyObject *swig_obj[1] ;
4109
4110 if (!args) SWIG_fail;
4111 swig_obj[0] = args;
4112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4113 if (!SWIG_IsOK(res1)) {
4114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4115 }
4116 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4117 {
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
4119 result = (arg1)->GetBitmapSelected();
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4124 return resultobj;
4125 fail:
4126 return NULL;
4127 }
4128
4129
4130 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4131 PyObject *resultobj = 0;
4132 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4133 wxBitmap result;
4134 void *argp1 = 0 ;
4135 int res1 = 0 ;
4136 PyObject *swig_obj[1] ;
4137
4138 if (!args) SWIG_fail;
4139 swig_obj[0] = args;
4140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4141 if (!SWIG_IsOK(res1)) {
4142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4143 }
4144 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4145 {
4146 PyThreadState* __tstate = wxPyBeginAllowThreads();
4147 result = (arg1)->GetBitmapHover();
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4152 return resultobj;
4153 fail:
4154 return NULL;
4155 }
4156
4157
4158 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4159 PyObject *resultobj = 0;
4160 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4161 wxBitmap *arg2 = 0 ;
4162 void *argp1 = 0 ;
4163 int res1 = 0 ;
4164 void *argp2 = 0 ;
4165 int res2 = 0 ;
4166 PyObject * obj0 = 0 ;
4167 PyObject * obj1 = 0 ;
4168 char * kwnames[] = {
4169 (char *) "self",(char *) "bitmap", NULL
4170 };
4171
4172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4174 if (!SWIG_IsOK(res1)) {
4175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4176 }
4177 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4179 if (!SWIG_IsOK(res2)) {
4180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4181 }
4182 if (!argp2) {
4183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4184 }
4185 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_Py_Void();
4193 return resultobj;
4194 fail:
4195 return NULL;
4196 }
4197
4198
4199 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj = 0;
4201 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4202 wxBitmap *arg2 = 0 ;
4203 void *argp1 = 0 ;
4204 int res1 = 0 ;
4205 void *argp2 = 0 ;
4206 int res2 = 0 ;
4207 PyObject * obj0 = 0 ;
4208 PyObject * obj1 = 0 ;
4209 char * kwnames[] = {
4210 (char *) "self",(char *) "bitmap", NULL
4211 };
4212
4213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4215 if (!SWIG_IsOK(res1)) {
4216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4217 }
4218 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4220 if (!SWIG_IsOK(res2)) {
4221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4222 }
4223 if (!argp2) {
4224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4225 }
4226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 resultobj = SWIG_Py_Void();
4234 return resultobj;
4235 fail:
4236 return NULL;
4237 }
4238
4239
4240 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4241 PyObject *resultobj = 0;
4242 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4243 wxBitmap *arg2 = 0 ;
4244 void *argp1 = 0 ;
4245 int res1 = 0 ;
4246 void *argp2 = 0 ;
4247 int res2 = 0 ;
4248 PyObject * obj0 = 0 ;
4249 PyObject * obj1 = 0 ;
4250 char * kwnames[] = {
4251 (char *) "self",(char *) "bitmap", NULL
4252 };
4253
4254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4256 if (!SWIG_IsOK(res1)) {
4257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4258 }
4259 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4261 if (!SWIG_IsOK(res2)) {
4262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4263 }
4264 if (!argp2) {
4265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4266 }
4267 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4268 {
4269 PyThreadState* __tstate = wxPyBeginAllowThreads();
4270 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = SWIG_Py_Void();
4275 return resultobj;
4276 fail:
4277 return NULL;
4278 }
4279
4280
4281 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4282 PyObject *resultobj = 0;
4283 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4284 wxBitmap *arg2 = 0 ;
4285 void *argp1 = 0 ;
4286 int res1 = 0 ;
4287 void *argp2 = 0 ;
4288 int res2 = 0 ;
4289 PyObject * obj0 = 0 ;
4290 PyObject * obj1 = 0 ;
4291 char * kwnames[] = {
4292 (char *) "self",(char *) "bitmap", NULL
4293 };
4294
4295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4297 if (!SWIG_IsOK(res1)) {
4298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4299 }
4300 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4301 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4302 if (!SWIG_IsOK(res2)) {
4303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4304 }
4305 if (!argp2) {
4306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4307 }
4308 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_Py_Void();
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj = 0;
4324 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4325 wxBitmap *arg2 = 0 ;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 void *argp2 = 0 ;
4329 int res2 = 0 ;
4330 PyObject * obj0 = 0 ;
4331 PyObject * obj1 = 0 ;
4332 char * kwnames[] = {
4333 (char *) "self",(char *) "hover", NULL
4334 };
4335
4336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4338 if (!SWIG_IsOK(res1)) {
4339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4340 }
4341 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4343 if (!SWIG_IsOK(res2)) {
4344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4345 }
4346 if (!argp2) {
4347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4348 }
4349 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4350 {
4351 PyThreadState* __tstate = wxPyBeginAllowThreads();
4352 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4353 wxPyEndAllowThreads(__tstate);
4354 if (PyErr_Occurred()) SWIG_fail;
4355 }
4356 resultobj = SWIG_Py_Void();
4357 return resultobj;
4358 fail:
4359 return NULL;
4360 }
4361
4362
4363 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4364 PyObject *resultobj = 0;
4365 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4366 int arg2 ;
4367 int arg3 ;
4368 void *argp1 = 0 ;
4369 int res1 = 0 ;
4370 int val2 ;
4371 int ecode2 = 0 ;
4372 int val3 ;
4373 int ecode3 = 0 ;
4374 PyObject * obj0 = 0 ;
4375 PyObject * obj1 = 0 ;
4376 PyObject * obj2 = 0 ;
4377 char * kwnames[] = {
4378 (char *) "self",(char *) "x",(char *) "y", NULL
4379 };
4380
4381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4383 if (!SWIG_IsOK(res1)) {
4384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4385 }
4386 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4387 ecode2 = SWIG_AsVal_int(obj1, &val2);
4388 if (!SWIG_IsOK(ecode2)) {
4389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4390 }
4391 arg2 = static_cast< int >(val2);
4392 ecode3 = SWIG_AsVal_int(obj2, &val3);
4393 if (!SWIG_IsOK(ecode3)) {
4394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4395 }
4396 arg3 = static_cast< int >(val3);
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 (arg1)->SetMargins(arg2,arg3);
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 resultobj = SWIG_Py_Void();
4404 return resultobj;
4405 fail:
4406 return NULL;
4407 }
4408
4409
4410 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4411 PyObject *resultobj = 0;
4412 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4413 int result;
4414 void *argp1 = 0 ;
4415 int res1 = 0 ;
4416 PyObject *swig_obj[1] ;
4417
4418 if (!args) SWIG_fail;
4419 swig_obj[0] = args;
4420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4421 if (!SWIG_IsOK(res1)) {
4422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4423 }
4424 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_From_int(static_cast< int >(result));
4432 return resultobj;
4433 fail:
4434 return NULL;
4435 }
4436
4437
4438 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4439 PyObject *resultobj = 0;
4440 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4441 int result;
4442 void *argp1 = 0 ;
4443 int res1 = 0 ;
4444 PyObject *swig_obj[1] ;
4445
4446 if (!args) SWIG_fail;
4447 swig_obj[0] = args;
4448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4449 if (!SWIG_IsOK(res1)) {
4450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4451 }
4452 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_From_int(static_cast< int >(result));
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4467 PyObject *obj;
4468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4469 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4470 return SWIG_Py_Void();
4471 }
4472
4473 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4474 return SWIG_Python_InitShadowInstance(args);
4475 }
4476
4477 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4478 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4479 return 1;
4480 }
4481
4482
4483 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4484 PyObject *pyobj = 0;
4485
4486 {
4487 #if wxUSE_UNICODE
4488 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4489 #else
4490 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4491 #endif
4492 }
4493 return pyobj;
4494 }
4495
4496
4497 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4498 PyObject *resultobj = 0;
4499 wxWindow *arg1 = (wxWindow *) 0 ;
4500 int arg2 = (int) -1 ;
4501 wxString const &arg3_defvalue = wxPyEmptyString ;
4502 wxString *arg3 = (wxString *) &arg3_defvalue ;
4503 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4504 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4505 wxSize const &arg5_defvalue = wxDefaultSize ;
4506 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4507 long arg6 = (long) 0 ;
4508 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4509 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4510 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4511 wxString *arg8 = (wxString *) &arg8_defvalue ;
4512 wxCheckBox *result = 0 ;
4513 void *argp1 = 0 ;
4514 int res1 = 0 ;
4515 int val2 ;
4516 int ecode2 = 0 ;
4517 bool temp3 = false ;
4518 wxPoint temp4 ;
4519 wxSize temp5 ;
4520 long val6 ;
4521 int ecode6 = 0 ;
4522 void *argp7 = 0 ;
4523 int res7 = 0 ;
4524 bool temp8 = false ;
4525 PyObject * obj0 = 0 ;
4526 PyObject * obj1 = 0 ;
4527 PyObject * obj2 = 0 ;
4528 PyObject * obj3 = 0 ;
4529 PyObject * obj4 = 0 ;
4530 PyObject * obj5 = 0 ;
4531 PyObject * obj6 = 0 ;
4532 PyObject * obj7 = 0 ;
4533 char * kwnames[] = {
4534 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4535 };
4536
4537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4539 if (!SWIG_IsOK(res1)) {
4540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4541 }
4542 arg1 = reinterpret_cast< wxWindow * >(argp1);
4543 if (obj1) {
4544 ecode2 = SWIG_AsVal_int(obj1, &val2);
4545 if (!SWIG_IsOK(ecode2)) {
4546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4547 }
4548 arg2 = static_cast< int >(val2);
4549 }
4550 if (obj2) {
4551 {
4552 arg3 = wxString_in_helper(obj2);
4553 if (arg3 == NULL) SWIG_fail;
4554 temp3 = true;
4555 }
4556 }
4557 if (obj3) {
4558 {
4559 arg4 = &temp4;
4560 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4561 }
4562 }
4563 if (obj4) {
4564 {
4565 arg5 = &temp5;
4566 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4567 }
4568 }
4569 if (obj5) {
4570 ecode6 = SWIG_AsVal_long(obj5, &val6);
4571 if (!SWIG_IsOK(ecode6)) {
4572 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4573 }
4574 arg6 = static_cast< long >(val6);
4575 }
4576 if (obj6) {
4577 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4578 if (!SWIG_IsOK(res7)) {
4579 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4580 }
4581 if (!argp7) {
4582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4583 }
4584 arg7 = reinterpret_cast< wxValidator * >(argp7);
4585 }
4586 if (obj7) {
4587 {
4588 arg8 = wxString_in_helper(obj7);
4589 if (arg8 == NULL) SWIG_fail;
4590 temp8 = true;
4591 }
4592 }
4593 {
4594 if (!wxPyCheckForApp()) SWIG_fail;
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
4596 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4601 {
4602 if (temp3)
4603 delete arg3;
4604 }
4605 {
4606 if (temp8)
4607 delete arg8;
4608 }
4609 return resultobj;
4610 fail:
4611 {
4612 if (temp3)
4613 delete arg3;
4614 }
4615 {
4616 if (temp8)
4617 delete arg8;
4618 }
4619 return NULL;
4620 }
4621
4622
4623 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4624 PyObject *resultobj = 0;
4625 wxCheckBox *result = 0 ;
4626
4627 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4628 {
4629 if (!wxPyCheckForApp()) SWIG_fail;
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (wxCheckBox *)new wxCheckBox();
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj = 0;
4644 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4645 wxWindow *arg2 = (wxWindow *) 0 ;
4646 int arg3 = (int) -1 ;
4647 wxString const &arg4_defvalue = wxPyEmptyString ;
4648 wxString *arg4 = (wxString *) &arg4_defvalue ;
4649 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4650 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4651 wxSize const &arg6_defvalue = wxDefaultSize ;
4652 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4653 long arg7 = (long) 0 ;
4654 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4655 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4656 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4657 wxString *arg9 = (wxString *) &arg9_defvalue ;
4658 bool result;
4659 void *argp1 = 0 ;
4660 int res1 = 0 ;
4661 void *argp2 = 0 ;
4662 int res2 = 0 ;
4663 int val3 ;
4664 int ecode3 = 0 ;
4665 bool temp4 = false ;
4666 wxPoint temp5 ;
4667 wxSize temp6 ;
4668 long val7 ;
4669 int ecode7 = 0 ;
4670 void *argp8 = 0 ;
4671 int res8 = 0 ;
4672 bool temp9 = false ;
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 PyObject * obj2 = 0 ;
4676 PyObject * obj3 = 0 ;
4677 PyObject * obj4 = 0 ;
4678 PyObject * obj5 = 0 ;
4679 PyObject * obj6 = 0 ;
4680 PyObject * obj7 = 0 ;
4681 PyObject * obj8 = 0 ;
4682 char * kwnames[] = {
4683 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4684 };
4685
4686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4690 }
4691 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4692 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4693 if (!SWIG_IsOK(res2)) {
4694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4695 }
4696 arg2 = reinterpret_cast< wxWindow * >(argp2);
4697 if (obj2) {
4698 ecode3 = SWIG_AsVal_int(obj2, &val3);
4699 if (!SWIG_IsOK(ecode3)) {
4700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4701 }
4702 arg3 = static_cast< int >(val3);
4703 }
4704 if (obj3) {
4705 {
4706 arg4 = wxString_in_helper(obj3);
4707 if (arg4 == NULL) SWIG_fail;
4708 temp4 = true;
4709 }
4710 }
4711 if (obj4) {
4712 {
4713 arg5 = &temp5;
4714 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4715 }
4716 }
4717 if (obj5) {
4718 {
4719 arg6 = &temp6;
4720 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4721 }
4722 }
4723 if (obj6) {
4724 ecode7 = SWIG_AsVal_long(obj6, &val7);
4725 if (!SWIG_IsOK(ecode7)) {
4726 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4727 }
4728 arg7 = static_cast< long >(val7);
4729 }
4730 if (obj7) {
4731 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4732 if (!SWIG_IsOK(res8)) {
4733 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4734 }
4735 if (!argp8) {
4736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4737 }
4738 arg8 = reinterpret_cast< wxValidator * >(argp8);
4739 }
4740 if (obj8) {
4741 {
4742 arg9 = wxString_in_helper(obj8);
4743 if (arg9 == NULL) SWIG_fail;
4744 temp9 = true;
4745 }
4746 }
4747 {
4748 PyThreadState* __tstate = wxPyBeginAllowThreads();
4749 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4750 wxPyEndAllowThreads(__tstate);
4751 if (PyErr_Occurred()) SWIG_fail;
4752 }
4753 {
4754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4755 }
4756 {
4757 if (temp4)
4758 delete arg4;
4759 }
4760 {
4761 if (temp9)
4762 delete arg9;
4763 }
4764 return resultobj;
4765 fail:
4766 {
4767 if (temp4)
4768 delete arg4;
4769 }
4770 {
4771 if (temp9)
4772 delete arg9;
4773 }
4774 return NULL;
4775 }
4776
4777
4778 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4779 PyObject *resultobj = 0;
4780 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4781 bool result;
4782 void *argp1 = 0 ;
4783 int res1 = 0 ;
4784 PyObject *swig_obj[1] ;
4785
4786 if (!args) SWIG_fail;
4787 swig_obj[0] = args;
4788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4789 if (!SWIG_IsOK(res1)) {
4790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4791 }
4792 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4793 {
4794 PyThreadState* __tstate = wxPyBeginAllowThreads();
4795 result = (bool)(arg1)->GetValue();
4796 wxPyEndAllowThreads(__tstate);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 }
4799 {
4800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4801 }
4802 return resultobj;
4803 fail:
4804 return NULL;
4805 }
4806
4807
4808 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4809 PyObject *resultobj = 0;
4810 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4811 bool result;
4812 void *argp1 = 0 ;
4813 int res1 = 0 ;
4814 PyObject *swig_obj[1] ;
4815
4816 if (!args) SWIG_fail;
4817 swig_obj[0] = args;
4818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4819 if (!SWIG_IsOK(res1)) {
4820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4821 }
4822 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = (bool)(arg1)->IsChecked();
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 {
4830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4831 }
4832 return resultobj;
4833 fail:
4834 return NULL;
4835 }
4836
4837
4838 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4839 PyObject *resultobj = 0;
4840 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4841 bool arg2 ;
4842 void *argp1 = 0 ;
4843 int res1 = 0 ;
4844 bool val2 ;
4845 int ecode2 = 0 ;
4846 PyObject * obj0 = 0 ;
4847 PyObject * obj1 = 0 ;
4848 char * kwnames[] = {
4849 (char *) "self",(char *) "state", NULL
4850 };
4851
4852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4856 }
4857 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4858 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4859 if (!SWIG_IsOK(ecode2)) {
4860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4861 }
4862 arg2 = static_cast< bool >(val2);
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 (arg1)->SetValue(arg2);
4866 wxPyEndAllowThreads(__tstate);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 resultobj = SWIG_Py_Void();
4870 return resultobj;
4871 fail:
4872 return NULL;
4873 }
4874
4875
4876 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4877 PyObject *resultobj = 0;
4878 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4879 wxCheckBoxState result;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 PyObject *swig_obj[1] ;
4883
4884 if (!args) SWIG_fail;
4885 swig_obj[0] = args;
4886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4889 }
4890 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = SWIG_From_int(static_cast< int >(result));
4898 return resultobj;
4899 fail:
4900 return NULL;
4901 }
4902
4903
4904 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4905 PyObject *resultobj = 0;
4906 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4907 wxCheckBoxState arg2 ;
4908 void *argp1 = 0 ;
4909 int res1 = 0 ;
4910 int val2 ;
4911 int ecode2 = 0 ;
4912 PyObject * obj0 = 0 ;
4913 PyObject * obj1 = 0 ;
4914 char * kwnames[] = {
4915 (char *) "self",(char *) "state", NULL
4916 };
4917
4918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4920 if (!SWIG_IsOK(res1)) {
4921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4922 }
4923 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4924 ecode2 = SWIG_AsVal_int(obj1, &val2);
4925 if (!SWIG_IsOK(ecode2)) {
4926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4927 }
4928 arg2 = static_cast< wxCheckBoxState >(val2);
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 (arg1)->Set3StateValue(arg2);
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 resultobj = SWIG_Py_Void();
4936 return resultobj;
4937 fail:
4938 return NULL;
4939 }
4940
4941
4942 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4943 PyObject *resultobj = 0;
4944 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4945 bool result;
4946 void *argp1 = 0 ;
4947 int res1 = 0 ;
4948 PyObject *swig_obj[1] ;
4949
4950 if (!args) SWIG_fail;
4951 swig_obj[0] = args;
4952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4953 if (!SWIG_IsOK(res1)) {
4954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4955 }
4956 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4957 {
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 {
4964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4965 }
4966 return resultobj;
4967 fail:
4968 return NULL;
4969 }
4970
4971
4972 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4973 PyObject *resultobj = 0;
4974 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4975 bool result;
4976 void *argp1 = 0 ;
4977 int res1 = 0 ;
4978 PyObject *swig_obj[1] ;
4979
4980 if (!args) SWIG_fail;
4981 swig_obj[0] = args;
4982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4983 if (!SWIG_IsOK(res1)) {
4984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4985 }
4986 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4990 wxPyEndAllowThreads(__tstate);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 }
4993 {
4994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4995 }
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj = 0;
5004 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5005 SwigValueWrapper<wxVisualAttributes > result;
5006 int val1 ;
5007 int ecode1 = 0 ;
5008 PyObject * obj0 = 0 ;
5009 char * kwnames[] = {
5010 (char *) "variant", NULL
5011 };
5012
5013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5014 if (obj0) {
5015 ecode1 = SWIG_AsVal_int(obj0, &val1);
5016 if (!SWIG_IsOK(ecode1)) {
5017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5018 }
5019 arg1 = static_cast< wxWindowVariant >(val1);
5020 }
5021 {
5022 if (!wxPyCheckForApp()) SWIG_fail;
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5036 PyObject *obj;
5037 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5038 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5039 return SWIG_Py_Void();
5040 }
5041
5042 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5043 return SWIG_Python_InitShadowInstance(args);
5044 }
5045
5046 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5047 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5048 return 1;
5049 }
5050
5051
5052 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5053 PyObject *pyobj = 0;
5054
5055 {
5056 #if wxUSE_UNICODE
5057 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5058 #else
5059 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5060 #endif
5061 }
5062 return pyobj;
5063 }
5064
5065
5066 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5067 PyObject *resultobj = 0;
5068 wxWindow *arg1 = (wxWindow *) 0 ;
5069 int arg2 = (int) -1 ;
5070 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5071 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5072 wxSize const &arg4_defvalue = wxDefaultSize ;
5073 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5074 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5075 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5076 long arg6 = (long) 0 ;
5077 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5078 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5079 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5080 wxString *arg8 = (wxString *) &arg8_defvalue ;
5081 wxChoice *result = 0 ;
5082 void *argp1 = 0 ;
5083 int res1 = 0 ;
5084 int val2 ;
5085 int ecode2 = 0 ;
5086 wxPoint temp3 ;
5087 wxSize temp4 ;
5088 bool temp5 = false ;
5089 long val6 ;
5090 int ecode6 = 0 ;
5091 void *argp7 = 0 ;
5092 int res7 = 0 ;
5093 bool temp8 = false ;
5094 PyObject * obj0 = 0 ;
5095 PyObject * obj1 = 0 ;
5096 PyObject * obj2 = 0 ;
5097 PyObject * obj3 = 0 ;
5098 PyObject * obj4 = 0 ;
5099 PyObject * obj5 = 0 ;
5100 PyObject * obj6 = 0 ;
5101 PyObject * obj7 = 0 ;
5102 char * kwnames[] = {
5103 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5104 };
5105
5106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5108 if (!SWIG_IsOK(res1)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5110 }
5111 arg1 = reinterpret_cast< wxWindow * >(argp1);
5112 if (obj1) {
5113 ecode2 = SWIG_AsVal_int(obj1, &val2);
5114 if (!SWIG_IsOK(ecode2)) {
5115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5116 }
5117 arg2 = static_cast< int >(val2);
5118 }
5119 if (obj2) {
5120 {
5121 arg3 = &temp3;
5122 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5123 }
5124 }
5125 if (obj3) {
5126 {
5127 arg4 = &temp4;
5128 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5129 }
5130 }
5131 if (obj4) {
5132 {
5133 if (! PySequence_Check(obj4)) {
5134 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5135 SWIG_fail;
5136 }
5137 arg5 = new wxArrayString;
5138 temp5 = true;
5139 int i, len=PySequence_Length(obj4);
5140 for (i=0; i<len; i++) {
5141 PyObject* item = PySequence_GetItem(obj4, i);
5142 wxString* s = wxString_in_helper(item);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 arg5->Add(*s);
5145 delete s;
5146 Py_DECREF(item);
5147 }
5148 }
5149 }
5150 if (obj5) {
5151 ecode6 = SWIG_AsVal_long(obj5, &val6);
5152 if (!SWIG_IsOK(ecode6)) {
5153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5154 }
5155 arg6 = static_cast< long >(val6);
5156 }
5157 if (obj6) {
5158 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5159 if (!SWIG_IsOK(res7)) {
5160 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5161 }
5162 if (!argp7) {
5163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5164 }
5165 arg7 = reinterpret_cast< wxValidator * >(argp7);
5166 }
5167 if (obj7) {
5168 {
5169 arg8 = wxString_in_helper(obj7);
5170 if (arg8 == NULL) SWIG_fail;
5171 temp8 = true;
5172 }
5173 }
5174 {
5175 if (!wxPyCheckForApp()) SWIG_fail;
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5182 {
5183 if (temp5) delete arg5;
5184 }
5185 {
5186 if (temp8)
5187 delete arg8;
5188 }
5189 return resultobj;
5190 fail:
5191 {
5192 if (temp5) delete arg5;
5193 }
5194 {
5195 if (temp8)
5196 delete arg8;
5197 }
5198 return NULL;
5199 }
5200
5201
5202 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5203 PyObject *resultobj = 0;
5204 wxChoice *result = 0 ;
5205
5206 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5207 {
5208 if (!wxPyCheckForApp()) SWIG_fail;
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (wxChoice *)new wxChoice();
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5215 return resultobj;
5216 fail:
5217 return NULL;
5218 }
5219
5220
5221 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5222 PyObject *resultobj = 0;
5223 wxChoice *arg1 = (wxChoice *) 0 ;
5224 wxWindow *arg2 = (wxWindow *) 0 ;
5225 int arg3 = (int) -1 ;
5226 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5227 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5228 wxSize const &arg5_defvalue = wxDefaultSize ;
5229 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5230 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5231 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5232 long arg7 = (long) 0 ;
5233 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5234 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5235 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5236 wxString *arg9 = (wxString *) &arg9_defvalue ;
5237 bool result;
5238 void *argp1 = 0 ;
5239 int res1 = 0 ;
5240 void *argp2 = 0 ;
5241 int res2 = 0 ;
5242 int val3 ;
5243 int ecode3 = 0 ;
5244 wxPoint temp4 ;
5245 wxSize temp5 ;
5246 bool temp6 = false ;
5247 long val7 ;
5248 int ecode7 = 0 ;
5249 void *argp8 = 0 ;
5250 int res8 = 0 ;
5251 bool temp9 = false ;
5252 PyObject * obj0 = 0 ;
5253 PyObject * obj1 = 0 ;
5254 PyObject * obj2 = 0 ;
5255 PyObject * obj3 = 0 ;
5256 PyObject * obj4 = 0 ;
5257 PyObject * obj5 = 0 ;
5258 PyObject * obj6 = 0 ;
5259 PyObject * obj7 = 0 ;
5260 PyObject * obj8 = 0 ;
5261 char * kwnames[] = {
5262 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5263 };
5264
5265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5267 if (!SWIG_IsOK(res1)) {
5268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5269 }
5270 arg1 = reinterpret_cast< wxChoice * >(argp1);
5271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5272 if (!SWIG_IsOK(res2)) {
5273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5274 }
5275 arg2 = reinterpret_cast< wxWindow * >(argp2);
5276 if (obj2) {
5277 ecode3 = SWIG_AsVal_int(obj2, &val3);
5278 if (!SWIG_IsOK(ecode3)) {
5279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5280 }
5281 arg3 = static_cast< int >(val3);
5282 }
5283 if (obj3) {
5284 {
5285 arg4 = &temp4;
5286 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5287 }
5288 }
5289 if (obj4) {
5290 {
5291 arg5 = &temp5;
5292 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5293 }
5294 }
5295 if (obj5) {
5296 {
5297 if (! PySequence_Check(obj5)) {
5298 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5299 SWIG_fail;
5300 }
5301 arg6 = new wxArrayString;
5302 temp6 = true;
5303 int i, len=PySequence_Length(obj5);
5304 for (i=0; i<len; i++) {
5305 PyObject* item = PySequence_GetItem(obj5, i);
5306 wxString* s = wxString_in_helper(item);
5307 if (PyErr_Occurred()) SWIG_fail;
5308 arg6->Add(*s);
5309 delete s;
5310 Py_DECREF(item);
5311 }
5312 }
5313 }
5314 if (obj6) {
5315 ecode7 = SWIG_AsVal_long(obj6, &val7);
5316 if (!SWIG_IsOK(ecode7)) {
5317 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5318 }
5319 arg7 = static_cast< long >(val7);
5320 }
5321 if (obj7) {
5322 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5323 if (!SWIG_IsOK(res8)) {
5324 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5325 }
5326 if (!argp8) {
5327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5328 }
5329 arg8 = reinterpret_cast< wxValidator * >(argp8);
5330 }
5331 if (obj8) {
5332 {
5333 arg9 = wxString_in_helper(obj8);
5334 if (arg9 == NULL) SWIG_fail;
5335 temp9 = true;
5336 }
5337 }
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 {
5345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5346 }
5347 {
5348 if (temp6) delete arg6;
5349 }
5350 {
5351 if (temp9)
5352 delete arg9;
5353 }
5354 return resultobj;
5355 fail:
5356 {
5357 if (temp6) delete arg6;
5358 }
5359 {
5360 if (temp9)
5361 delete arg9;
5362 }
5363 return NULL;
5364 }
5365
5366
5367 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5368 PyObject *resultobj = 0;
5369 wxChoice *arg1 = (wxChoice *) 0 ;
5370 int result;
5371 void *argp1 = 0 ;
5372 int res1 = 0 ;
5373 PyObject *swig_obj[1] ;
5374
5375 if (!args) SWIG_fail;
5376 swig_obj[0] = args;
5377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5378 if (!SWIG_IsOK(res1)) {
5379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5380 }
5381 arg1 = reinterpret_cast< wxChoice * >(argp1);
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 }
5388 resultobj = SWIG_From_int(static_cast< int >(result));
5389 return resultobj;
5390 fail:
5391 return NULL;
5392 }
5393
5394
5395 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5396 PyObject *resultobj = 0;
5397 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5398 SwigValueWrapper<wxVisualAttributes > result;
5399 int val1 ;
5400 int ecode1 = 0 ;
5401 PyObject * obj0 = 0 ;
5402 char * kwnames[] = {
5403 (char *) "variant", NULL
5404 };
5405
5406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5407 if (obj0) {
5408 ecode1 = SWIG_AsVal_int(obj0, &val1);
5409 if (!SWIG_IsOK(ecode1)) {
5410 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5411 }
5412 arg1 = static_cast< wxWindowVariant >(val1);
5413 }
5414 {
5415 if (!wxPyCheckForApp()) SWIG_fail;
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = wxChoice::GetClassDefaultAttributes(arg1);
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5422 return resultobj;
5423 fail:
5424 return NULL;
5425 }
5426
5427
5428 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5429 PyObject *obj;
5430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5431 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5432 return SWIG_Py_Void();
5433 }
5434
5435 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5436 return SWIG_Python_InitShadowInstance(args);
5437 }
5438
5439 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5440 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5441 return 1;
5442 }
5443
5444
5445 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5446 PyObject *pyobj = 0;
5447
5448 {
5449 #if wxUSE_UNICODE
5450 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5451 #else
5452 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5453 #endif
5454 }
5455 return pyobj;
5456 }
5457
5458
5459 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5460 PyObject *resultobj = 0;
5461 wxWindow *arg1 = (wxWindow *) 0 ;
5462 int arg2 = (int) -1 ;
5463 wxString const &arg3_defvalue = wxPyEmptyString ;
5464 wxString *arg3 = (wxString *) &arg3_defvalue ;
5465 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5466 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5467 wxSize const &arg5_defvalue = wxDefaultSize ;
5468 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5469 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5470 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5471 long arg7 = (long) 0 ;
5472 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5473 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5474 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5475 wxString *arg9 = (wxString *) &arg9_defvalue ;
5476 wxComboBox *result = 0 ;
5477 void *argp1 = 0 ;
5478 int res1 = 0 ;
5479 int val2 ;
5480 int ecode2 = 0 ;
5481 bool temp3 = false ;
5482 wxPoint temp4 ;
5483 wxSize temp5 ;
5484 bool temp6 = false ;
5485 long val7 ;
5486 int ecode7 = 0 ;
5487 void *argp8 = 0 ;
5488 int res8 = 0 ;
5489 bool temp9 = false ;
5490 PyObject * obj0 = 0 ;
5491 PyObject * obj1 = 0 ;
5492 PyObject * obj2 = 0 ;
5493 PyObject * obj3 = 0 ;
5494 PyObject * obj4 = 0 ;
5495 PyObject * obj5 = 0 ;
5496 PyObject * obj6 = 0 ;
5497 PyObject * obj7 = 0 ;
5498 PyObject * obj8 = 0 ;
5499 char * kwnames[] = {
5500 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5501 };
5502
5503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5505 if (!SWIG_IsOK(res1)) {
5506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5507 }
5508 arg1 = reinterpret_cast< wxWindow * >(argp1);
5509 if (obj1) {
5510 ecode2 = SWIG_AsVal_int(obj1, &val2);
5511 if (!SWIG_IsOK(ecode2)) {
5512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5513 }
5514 arg2 = static_cast< int >(val2);
5515 }
5516 if (obj2) {
5517 {
5518 arg3 = wxString_in_helper(obj2);
5519 if (arg3 == NULL) SWIG_fail;
5520 temp3 = true;
5521 }
5522 }
5523 if (obj3) {
5524 {
5525 arg4 = &temp4;
5526 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5527 }
5528 }
5529 if (obj4) {
5530 {
5531 arg5 = &temp5;
5532 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5533 }
5534 }
5535 if (obj5) {
5536 {
5537 if (! PySequence_Check(obj5)) {
5538 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5539 SWIG_fail;
5540 }
5541 arg6 = new wxArrayString;
5542 temp6 = true;
5543 int i, len=PySequence_Length(obj5);
5544 for (i=0; i<len; i++) {
5545 PyObject* item = PySequence_GetItem(obj5, i);
5546 wxString* s = wxString_in_helper(item);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 arg6->Add(*s);
5549 delete s;
5550 Py_DECREF(item);
5551 }
5552 }
5553 }
5554 if (obj6) {
5555 ecode7 = SWIG_AsVal_long(obj6, &val7);
5556 if (!SWIG_IsOK(ecode7)) {
5557 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5558 }
5559 arg7 = static_cast< long >(val7);
5560 }
5561 if (obj7) {
5562 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5563 if (!SWIG_IsOK(res8)) {
5564 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5565 }
5566 if (!argp8) {
5567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5568 }
5569 arg8 = reinterpret_cast< wxValidator * >(argp8);
5570 }
5571 if (obj8) {
5572 {
5573 arg9 = wxString_in_helper(obj8);
5574 if (arg9 == NULL) SWIG_fail;
5575 temp9 = true;
5576 }
5577 }
5578 {
5579 if (!wxPyCheckForApp()) SWIG_fail;
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 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);
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5586 {
5587 if (temp3)
5588 delete arg3;
5589 }
5590 {
5591 if (temp6) delete arg6;
5592 }
5593 {
5594 if (temp9)
5595 delete arg9;
5596 }
5597 return resultobj;
5598 fail:
5599 {
5600 if (temp3)
5601 delete arg3;
5602 }
5603 {
5604 if (temp6) delete arg6;
5605 }
5606 {
5607 if (temp9)
5608 delete arg9;
5609 }
5610 return NULL;
5611 }
5612
5613
5614 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5615 PyObject *resultobj = 0;
5616 wxComboBox *result = 0 ;
5617
5618 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5619 {
5620 if (!wxPyCheckForApp()) SWIG_fail;
5621 PyThreadState* __tstate = wxPyBeginAllowThreads();
5622 result = (wxComboBox *)new wxComboBox();
5623 wxPyEndAllowThreads(__tstate);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 }
5626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5627 return resultobj;
5628 fail:
5629 return NULL;
5630 }
5631
5632
5633 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5634 PyObject *resultobj = 0;
5635 wxComboBox *arg1 = (wxComboBox *) 0 ;
5636 wxWindow *arg2 = (wxWindow *) 0 ;
5637 int arg3 = (int) -1 ;
5638 wxString const &arg4_defvalue = wxPyEmptyString ;
5639 wxString *arg4 = (wxString *) &arg4_defvalue ;
5640 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5641 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5642 wxSize const &arg6_defvalue = wxDefaultSize ;
5643 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5644 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5645 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5646 long arg8 = (long) 0 ;
5647 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5648 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5649 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5650 wxString *arg10 = (wxString *) &arg10_defvalue ;
5651 bool result;
5652 void *argp1 = 0 ;
5653 int res1 = 0 ;
5654 void *argp2 = 0 ;
5655 int res2 = 0 ;
5656 int val3 ;
5657 int ecode3 = 0 ;
5658 bool temp4 = false ;
5659 wxPoint temp5 ;
5660 wxSize temp6 ;
5661 bool temp7 = false ;
5662 long val8 ;
5663 int ecode8 = 0 ;
5664 void *argp9 = 0 ;
5665 int res9 = 0 ;
5666 bool temp10 = false ;
5667 PyObject * obj0 = 0 ;
5668 PyObject * obj1 = 0 ;
5669 PyObject * obj2 = 0 ;
5670 PyObject * obj3 = 0 ;
5671 PyObject * obj4 = 0 ;
5672 PyObject * obj5 = 0 ;
5673 PyObject * obj6 = 0 ;
5674 PyObject * obj7 = 0 ;
5675 PyObject * obj8 = 0 ;
5676 PyObject * obj9 = 0 ;
5677 char * kwnames[] = {
5678 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5679 };
5680
5681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5683 if (!SWIG_IsOK(res1)) {
5684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5685 }
5686 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5688 if (!SWIG_IsOK(res2)) {
5689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5690 }
5691 arg2 = reinterpret_cast< wxWindow * >(argp2);
5692 if (obj2) {
5693 ecode3 = SWIG_AsVal_int(obj2, &val3);
5694 if (!SWIG_IsOK(ecode3)) {
5695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5696 }
5697 arg3 = static_cast< int >(val3);
5698 }
5699 if (obj3) {
5700 {
5701 arg4 = wxString_in_helper(obj3);
5702 if (arg4 == NULL) SWIG_fail;
5703 temp4 = true;
5704 }
5705 }
5706 if (obj4) {
5707 {
5708 arg5 = &temp5;
5709 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5710 }
5711 }
5712 if (obj5) {
5713 {
5714 arg6 = &temp6;
5715 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5716 }
5717 }
5718 if (obj6) {
5719 {
5720 if (! PySequence_Check(obj6)) {
5721 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5722 SWIG_fail;
5723 }
5724 arg7 = new wxArrayString;
5725 temp7 = true;
5726 int i, len=PySequence_Length(obj6);
5727 for (i=0; i<len; i++) {
5728 PyObject* item = PySequence_GetItem(obj6, i);
5729 wxString* s = wxString_in_helper(item);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 arg7->Add(*s);
5732 delete s;
5733 Py_DECREF(item);
5734 }
5735 }
5736 }
5737 if (obj7) {
5738 ecode8 = SWIG_AsVal_long(obj7, &val8);
5739 if (!SWIG_IsOK(ecode8)) {
5740 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5741 }
5742 arg8 = static_cast< long >(val8);
5743 }
5744 if (obj8) {
5745 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5746 if (!SWIG_IsOK(res9)) {
5747 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5748 }
5749 if (!argp9) {
5750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5751 }
5752 arg9 = reinterpret_cast< wxValidator * >(argp9);
5753 }
5754 if (obj9) {
5755 {
5756 arg10 = wxString_in_helper(obj9);
5757 if (arg10 == NULL) SWIG_fail;
5758 temp10 = true;
5759 }
5760 }
5761 {
5762 PyThreadState* __tstate = wxPyBeginAllowThreads();
5763 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);
5764 wxPyEndAllowThreads(__tstate);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 {
5768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5769 }
5770 {
5771 if (temp4)
5772 delete arg4;
5773 }
5774 {
5775 if (temp7) delete arg7;
5776 }
5777 {
5778 if (temp10)
5779 delete arg10;
5780 }
5781 return resultobj;
5782 fail:
5783 {
5784 if (temp4)
5785 delete arg4;
5786 }
5787 {
5788 if (temp7) delete arg7;
5789 }
5790 {
5791 if (temp10)
5792 delete arg10;
5793 }
5794 return NULL;
5795 }
5796
5797
5798 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5799 PyObject *resultobj = 0;
5800 wxComboBox *arg1 = (wxComboBox *) 0 ;
5801 wxString result;
5802 void *argp1 = 0 ;
5803 int res1 = 0 ;
5804 PyObject *swig_obj[1] ;
5805
5806 if (!args) SWIG_fail;
5807 swig_obj[0] = args;
5808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5809 if (!SWIG_IsOK(res1)) {
5810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5811 }
5812 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
5815 result = ((wxComboBox const *)arg1)->GetValue();
5816 wxPyEndAllowThreads(__tstate);
5817 if (PyErr_Occurred()) SWIG_fail;
5818 }
5819 {
5820 #if wxUSE_UNICODE
5821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5822 #else
5823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5824 #endif
5825 }
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj = 0;
5834 wxComboBox *arg1 = (wxComboBox *) 0 ;
5835 wxString *arg2 = 0 ;
5836 void *argp1 = 0 ;
5837 int res1 = 0 ;
5838 bool temp2 = false ;
5839 PyObject * obj0 = 0 ;
5840 PyObject * obj1 = 0 ;
5841 char * kwnames[] = {
5842 (char *) "self",(char *) "value", NULL
5843 };
5844
5845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5847 if (!SWIG_IsOK(res1)) {
5848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5849 }
5850 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5851 {
5852 arg2 = wxString_in_helper(obj1);
5853 if (arg2 == NULL) SWIG_fail;
5854 temp2 = true;
5855 }
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 (arg1)->SetValue((wxString const &)*arg2);
5859 wxPyEndAllowThreads(__tstate);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 resultobj = SWIG_Py_Void();
5863 {
5864 if (temp2)
5865 delete arg2;
5866 }
5867 return resultobj;
5868 fail:
5869 {
5870 if (temp2)
5871 delete arg2;
5872 }
5873 return NULL;
5874 }
5875
5876
5877 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5878 PyObject *resultobj = 0;
5879 wxComboBox *arg1 = (wxComboBox *) 0 ;
5880 void *argp1 = 0 ;
5881 int res1 = 0 ;
5882 PyObject *swig_obj[1] ;
5883
5884 if (!args) SWIG_fail;
5885 swig_obj[0] = args;
5886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5887 if (!SWIG_IsOK(res1)) {
5888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5889 }
5890 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 (arg1)->Copy();
5894 wxPyEndAllowThreads(__tstate);
5895 if (PyErr_Occurred()) SWIG_fail;
5896 }
5897 resultobj = SWIG_Py_Void();
5898 return resultobj;
5899 fail:
5900 return NULL;
5901 }
5902
5903
5904 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5905 PyObject *resultobj = 0;
5906 wxComboBox *arg1 = (wxComboBox *) 0 ;
5907 void *argp1 = 0 ;
5908 int res1 = 0 ;
5909 PyObject *swig_obj[1] ;
5910
5911 if (!args) SWIG_fail;
5912 swig_obj[0] = args;
5913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5914 if (!SWIG_IsOK(res1)) {
5915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5916 }
5917 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5918 {
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 (arg1)->Cut();
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 resultobj = SWIG_Py_Void();
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5932 PyObject *resultobj = 0;
5933 wxComboBox *arg1 = (wxComboBox *) 0 ;
5934 void *argp1 = 0 ;
5935 int res1 = 0 ;
5936 PyObject *swig_obj[1] ;
5937
5938 if (!args) SWIG_fail;
5939 swig_obj[0] = args;
5940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5941 if (!SWIG_IsOK(res1)) {
5942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5943 }
5944 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 (arg1)->Paste();
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 resultobj = SWIG_Py_Void();
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj = 0;
5960 wxComboBox *arg1 = (wxComboBox *) 0 ;
5961 long arg2 ;
5962 void *argp1 = 0 ;
5963 int res1 = 0 ;
5964 long val2 ;
5965 int ecode2 = 0 ;
5966 PyObject * obj0 = 0 ;
5967 PyObject * obj1 = 0 ;
5968 char * kwnames[] = {
5969 (char *) "self",(char *) "pos", NULL
5970 };
5971
5972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5976 }
5977 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5978 ecode2 = SWIG_AsVal_long(obj1, &val2);
5979 if (!SWIG_IsOK(ecode2)) {
5980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5981 }
5982 arg2 = static_cast< long >(val2);
5983 {
5984 PyThreadState* __tstate = wxPyBeginAllowThreads();
5985 (arg1)->SetInsertionPoint(arg2);
5986 wxPyEndAllowThreads(__tstate);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 }
5989 resultobj = SWIG_Py_Void();
5990 return resultobj;
5991 fail:
5992 return NULL;
5993 }
5994
5995
5996 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5997 PyObject *resultobj = 0;
5998 wxComboBox *arg1 = (wxComboBox *) 0 ;
5999 long result;
6000 void *argp1 = 0 ;
6001 int res1 = 0 ;
6002 PyObject *swig_obj[1] ;
6003
6004 if (!args) SWIG_fail;
6005 swig_obj[0] = args;
6006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6007 if (!SWIG_IsOK(res1)) {
6008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6009 }
6010 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6014 wxPyEndAllowThreads(__tstate);
6015 if (PyErr_Occurred()) SWIG_fail;
6016 }
6017 resultobj = SWIG_From_long(static_cast< long >(result));
6018 return resultobj;
6019 fail:
6020 return NULL;
6021 }
6022
6023
6024 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6025 PyObject *resultobj = 0;
6026 wxComboBox *arg1 = (wxComboBox *) 0 ;
6027 long result;
6028 void *argp1 = 0 ;
6029 int res1 = 0 ;
6030 PyObject *swig_obj[1] ;
6031
6032 if (!args) SWIG_fail;
6033 swig_obj[0] = args;
6034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6035 if (!SWIG_IsOK(res1)) {
6036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6037 }
6038 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6039 {
6040 PyThreadState* __tstate = wxPyBeginAllowThreads();
6041 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 resultobj = SWIG_From_long(static_cast< long >(result));
6046 return resultobj;
6047 fail:
6048 return NULL;
6049 }
6050
6051
6052 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6053 PyObject *resultobj = 0;
6054 wxComboBox *arg1 = (wxComboBox *) 0 ;
6055 long arg2 ;
6056 long arg3 ;
6057 wxString *arg4 = 0 ;
6058 void *argp1 = 0 ;
6059 int res1 = 0 ;
6060 long val2 ;
6061 int ecode2 = 0 ;
6062 long val3 ;
6063 int ecode3 = 0 ;
6064 bool temp4 = false ;
6065 PyObject * obj0 = 0 ;
6066 PyObject * obj1 = 0 ;
6067 PyObject * obj2 = 0 ;
6068 PyObject * obj3 = 0 ;
6069 char * kwnames[] = {
6070 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6071 };
6072
6073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6075 if (!SWIG_IsOK(res1)) {
6076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6077 }
6078 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6079 ecode2 = SWIG_AsVal_long(obj1, &val2);
6080 if (!SWIG_IsOK(ecode2)) {
6081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6082 }
6083 arg2 = static_cast< long >(val2);
6084 ecode3 = SWIG_AsVal_long(obj2, &val3);
6085 if (!SWIG_IsOK(ecode3)) {
6086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6087 }
6088 arg3 = static_cast< long >(val3);
6089 {
6090 arg4 = wxString_in_helper(obj3);
6091 if (arg4 == NULL) SWIG_fail;
6092 temp4 = true;
6093 }
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) SWIG_fail;
6099 }
6100 resultobj = SWIG_Py_Void();
6101 {
6102 if (temp4)
6103 delete arg4;
6104 }
6105 return resultobj;
6106 fail:
6107 {
6108 if (temp4)
6109 delete arg4;
6110 }
6111 return NULL;
6112 }
6113
6114
6115 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6116 PyObject *resultobj = 0;
6117 wxComboBox *arg1 = (wxComboBox *) 0 ;
6118 long arg2 ;
6119 long arg3 ;
6120 void *argp1 = 0 ;
6121 int res1 = 0 ;
6122 long val2 ;
6123 int ecode2 = 0 ;
6124 long val3 ;
6125 int ecode3 = 0 ;
6126 PyObject * obj0 = 0 ;
6127 PyObject * obj1 = 0 ;
6128 PyObject * obj2 = 0 ;
6129 char * kwnames[] = {
6130 (char *) "self",(char *) "from",(char *) "to", NULL
6131 };
6132
6133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6135 if (!SWIG_IsOK(res1)) {
6136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6137 }
6138 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6139 ecode2 = SWIG_AsVal_long(obj1, &val2);
6140 if (!SWIG_IsOK(ecode2)) {
6141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6142 }
6143 arg2 = static_cast< long >(val2);
6144 ecode3 = SWIG_AsVal_long(obj2, &val3);
6145 if (!SWIG_IsOK(ecode3)) {
6146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6147 }
6148 arg3 = static_cast< long >(val3);
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 (arg1)->SetSelection(arg2,arg3);
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_Py_Void();
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6163 PyObject *resultobj = 0;
6164 wxComboBox *arg1 = (wxComboBox *) 0 ;
6165 long *arg2 = (long *) 0 ;
6166 long *arg3 = (long *) 0 ;
6167 void *argp1 = 0 ;
6168 int res1 = 0 ;
6169 long temp2 ;
6170 int res2 = SWIG_TMPOBJ ;
6171 long temp3 ;
6172 int res3 = SWIG_TMPOBJ ;
6173 PyObject *swig_obj[1] ;
6174
6175 arg2 = &temp2;
6176 arg3 = &temp3;
6177 if (!args) SWIG_fail;
6178 swig_obj[0] = args;
6179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6180 if (!SWIG_IsOK(res1)) {
6181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6182 }
6183 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 (arg1)->GetSelection(arg2,arg3);
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 resultobj = SWIG_Py_Void();
6191 if (SWIG_IsTmpObj(res2)) {
6192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6193 } else {
6194 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6196 }
6197 if (SWIG_IsTmpObj(res3)) {
6198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6199 } else {
6200 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6202 }
6203 return resultobj;
6204 fail:
6205 return NULL;
6206 }
6207
6208
6209 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6210 PyObject *resultobj = 0;
6211 wxComboBox *arg1 = (wxComboBox *) 0 ;
6212 int result;
6213 void *argp1 = 0 ;
6214 int res1 = 0 ;
6215 PyObject *swig_obj[1] ;
6216
6217 if (!args) SWIG_fail;
6218 swig_obj[0] = args;
6219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6220 if (!SWIG_IsOK(res1)) {
6221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6222 }
6223 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6224 {
6225 PyThreadState* __tstate = wxPyBeginAllowThreads();
6226 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_From_int(static_cast< int >(result));
6231 return resultobj;
6232 fail:
6233 return NULL;
6234 }
6235
6236
6237 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6238 PyObject *resultobj = 0;
6239 wxComboBox *arg1 = (wxComboBox *) 0 ;
6240 wxString *arg2 = 0 ;
6241 bool result;
6242 void *argp1 = 0 ;
6243 int res1 = 0 ;
6244 bool temp2 = false ;
6245 PyObject * obj0 = 0 ;
6246 PyObject * obj1 = 0 ;
6247 char * kwnames[] = {
6248 (char *) "self",(char *) "string", NULL
6249 };
6250
6251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6255 }
6256 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6257 {
6258 arg2 = wxString_in_helper(obj1);
6259 if (arg2 == NULL) SWIG_fail;
6260 temp2 = true;
6261 }
6262 {
6263 PyThreadState* __tstate = wxPyBeginAllowThreads();
6264 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6265 wxPyEndAllowThreads(__tstate);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 {
6269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6270 }
6271 {
6272 if (temp2)
6273 delete arg2;
6274 }
6275 return resultobj;
6276 fail:
6277 {
6278 if (temp2)
6279 delete arg2;
6280 }
6281 return NULL;
6282 }
6283
6284
6285 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6286 PyObject *resultobj = 0;
6287 wxComboBox *arg1 = (wxComboBox *) 0 ;
6288 int arg2 ;
6289 wxString *arg3 = 0 ;
6290 void *argp1 = 0 ;
6291 int res1 = 0 ;
6292 int val2 ;
6293 int ecode2 = 0 ;
6294 bool temp3 = false ;
6295 PyObject * obj0 = 0 ;
6296 PyObject * obj1 = 0 ;
6297 PyObject * obj2 = 0 ;
6298 char * kwnames[] = {
6299 (char *) "self",(char *) "n",(char *) "string", NULL
6300 };
6301
6302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6304 if (!SWIG_IsOK(res1)) {
6305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6306 }
6307 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6308 ecode2 = SWIG_AsVal_int(obj1, &val2);
6309 if (!SWIG_IsOK(ecode2)) {
6310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6311 }
6312 arg2 = static_cast< int >(val2);
6313 {
6314 arg3 = wxString_in_helper(obj2);
6315 if (arg3 == NULL) SWIG_fail;
6316 temp3 = true;
6317 }
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 (arg1)->SetString(arg2,(wxString const &)*arg3);
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_Py_Void();
6325 {
6326 if (temp3)
6327 delete arg3;
6328 }
6329 return resultobj;
6330 fail:
6331 {
6332 if (temp3)
6333 delete arg3;
6334 }
6335 return NULL;
6336 }
6337
6338
6339 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj = 0;
6341 wxComboBox *arg1 = (wxComboBox *) 0 ;
6342 bool arg2 ;
6343 void *argp1 = 0 ;
6344 int res1 = 0 ;
6345 bool val2 ;
6346 int ecode2 = 0 ;
6347 PyObject * obj0 = 0 ;
6348 PyObject * obj1 = 0 ;
6349 char * kwnames[] = {
6350 (char *) "self",(char *) "editable", NULL
6351 };
6352
6353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6355 if (!SWIG_IsOK(res1)) {
6356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6357 }
6358 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6359 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6360 if (!SWIG_IsOK(ecode2)) {
6361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6362 }
6363 arg2 = static_cast< bool >(val2);
6364 {
6365 PyThreadState* __tstate = wxPyBeginAllowThreads();
6366 (arg1)->SetEditable(arg2);
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_Py_Void();
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6378 PyObject *resultobj = 0;
6379 wxComboBox *arg1 = (wxComboBox *) 0 ;
6380 void *argp1 = 0 ;
6381 int res1 = 0 ;
6382 PyObject *swig_obj[1] ;
6383
6384 if (!args) SWIG_fail;
6385 swig_obj[0] = args;
6386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6387 if (!SWIG_IsOK(res1)) {
6388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6389 }
6390 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 (arg1)->SetInsertionPointEnd();
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 resultobj = SWIG_Py_Void();
6398 return resultobj;
6399 fail:
6400 return NULL;
6401 }
6402
6403
6404 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6405 PyObject *resultobj = 0;
6406 wxComboBox *arg1 = (wxComboBox *) 0 ;
6407 long arg2 ;
6408 long arg3 ;
6409 void *argp1 = 0 ;
6410 int res1 = 0 ;
6411 long val2 ;
6412 int ecode2 = 0 ;
6413 long val3 ;
6414 int ecode3 = 0 ;
6415 PyObject * obj0 = 0 ;
6416 PyObject * obj1 = 0 ;
6417 PyObject * obj2 = 0 ;
6418 char * kwnames[] = {
6419 (char *) "self",(char *) "from",(char *) "to", NULL
6420 };
6421
6422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6424 if (!SWIG_IsOK(res1)) {
6425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6426 }
6427 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6428 ecode2 = SWIG_AsVal_long(obj1, &val2);
6429 if (!SWIG_IsOK(ecode2)) {
6430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6431 }
6432 arg2 = static_cast< long >(val2);
6433 ecode3 = SWIG_AsVal_long(obj2, &val3);
6434 if (!SWIG_IsOK(ecode3)) {
6435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6436 }
6437 arg3 = static_cast< long >(val3);
6438 {
6439 PyThreadState* __tstate = wxPyBeginAllowThreads();
6440 (arg1)->Remove(arg2,arg3);
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 resultobj = SWIG_Py_Void();
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6452 PyObject *resultobj = 0;
6453 wxComboBox *arg1 = (wxComboBox *) 0 ;
6454 bool result;
6455 void *argp1 = 0 ;
6456 int res1 = 0 ;
6457 PyObject *swig_obj[1] ;
6458
6459 if (!args) SWIG_fail;
6460 swig_obj[0] = args;
6461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6462 if (!SWIG_IsOK(res1)) {
6463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6464 }
6465 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6466 {
6467 PyThreadState* __tstate = wxPyBeginAllowThreads();
6468 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 }
6472 {
6473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6474 }
6475 return resultobj;
6476 fail:
6477 return NULL;
6478 }
6479
6480
6481 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6482 PyObject *resultobj = 0;
6483 wxComboBox *arg1 = (wxComboBox *) 0 ;
6484 void *argp1 = 0 ;
6485 int res1 = 0 ;
6486 PyObject *swig_obj[1] ;
6487
6488 if (!args) SWIG_fail;
6489 swig_obj[0] = args;
6490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6491 if (!SWIG_IsOK(res1)) {
6492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6493 }
6494 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6495 {
6496 PyThreadState* __tstate = wxPyBeginAllowThreads();
6497 (arg1)->Undo();
6498 wxPyEndAllowThreads(__tstate);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 resultobj = SWIG_Py_Void();
6502 return resultobj;
6503 fail:
6504 return NULL;
6505 }
6506
6507
6508 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6509 PyObject *resultobj = 0;
6510 wxComboBox *arg1 = (wxComboBox *) 0 ;
6511 void *argp1 = 0 ;
6512 int res1 = 0 ;
6513 PyObject *swig_obj[1] ;
6514
6515 if (!args) SWIG_fail;
6516 swig_obj[0] = args;
6517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6518 if (!SWIG_IsOK(res1)) {
6519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6520 }
6521 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6522 {
6523 PyThreadState* __tstate = wxPyBeginAllowThreads();
6524 (arg1)->Redo();
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 resultobj = SWIG_Py_Void();
6529 return resultobj;
6530 fail:
6531 return NULL;
6532 }
6533
6534
6535 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6536 PyObject *resultobj = 0;
6537 wxComboBox *arg1 = (wxComboBox *) 0 ;
6538 void *argp1 = 0 ;
6539 int res1 = 0 ;
6540 PyObject *swig_obj[1] ;
6541
6542 if (!args) SWIG_fail;
6543 swig_obj[0] = args;
6544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6545 if (!SWIG_IsOK(res1)) {
6546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6547 }
6548 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 (arg1)->SelectAll();
6552 wxPyEndAllowThreads(__tstate);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_Py_Void();
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6563 PyObject *resultobj = 0;
6564 wxComboBox *arg1 = (wxComboBox *) 0 ;
6565 bool result;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 PyObject *swig_obj[1] ;
6569
6570 if (!args) SWIG_fail;
6571 swig_obj[0] = args;
6572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6573 if (!SWIG_IsOK(res1)) {
6574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6575 }
6576 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6580 wxPyEndAllowThreads(__tstate);
6581 if (PyErr_Occurred()) SWIG_fail;
6582 }
6583 {
6584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6585 }
6586 return resultobj;
6587 fail:
6588 return NULL;
6589 }
6590
6591
6592 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6593 PyObject *resultobj = 0;
6594 wxComboBox *arg1 = (wxComboBox *) 0 ;
6595 bool result;
6596 void *argp1 = 0 ;
6597 int res1 = 0 ;
6598 PyObject *swig_obj[1] ;
6599
6600 if (!args) SWIG_fail;
6601 swig_obj[0] = args;
6602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6603 if (!SWIG_IsOK(res1)) {
6604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6605 }
6606 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 result = (bool)((wxComboBox const *)arg1)->CanCut();
6610 wxPyEndAllowThreads(__tstate);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 {
6614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6615 }
6616 return resultobj;
6617 fail:
6618 return NULL;
6619 }
6620
6621
6622 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6623 PyObject *resultobj = 0;
6624 wxComboBox *arg1 = (wxComboBox *) 0 ;
6625 bool result;
6626 void *argp1 = 0 ;
6627 int res1 = 0 ;
6628 PyObject *swig_obj[1] ;
6629
6630 if (!args) SWIG_fail;
6631 swig_obj[0] = args;
6632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6633 if (!SWIG_IsOK(res1)) {
6634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6635 }
6636 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6637 {
6638 PyThreadState* __tstate = wxPyBeginAllowThreads();
6639 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6640 wxPyEndAllowThreads(__tstate);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 {
6644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6645 }
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6653 PyObject *resultobj = 0;
6654 wxComboBox *arg1 = (wxComboBox *) 0 ;
6655 bool result;
6656 void *argp1 = 0 ;
6657 int res1 = 0 ;
6658 PyObject *swig_obj[1] ;
6659
6660 if (!args) SWIG_fail;
6661 swig_obj[0] = args;
6662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6663 if (!SWIG_IsOK(res1)) {
6664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6665 }
6666 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6667 {
6668 PyThreadState* __tstate = wxPyBeginAllowThreads();
6669 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6670 wxPyEndAllowThreads(__tstate);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 {
6674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6675 }
6676 return resultobj;
6677 fail:
6678 return NULL;
6679 }
6680
6681
6682 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6683 PyObject *resultobj = 0;
6684 wxComboBox *arg1 = (wxComboBox *) 0 ;
6685 bool result;
6686 void *argp1 = 0 ;
6687 int res1 = 0 ;
6688 PyObject *swig_obj[1] ;
6689
6690 if (!args) SWIG_fail;
6691 swig_obj[0] = args;
6692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6693 if (!SWIG_IsOK(res1)) {
6694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6695 }
6696 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6697 {
6698 PyThreadState* __tstate = wxPyBeginAllowThreads();
6699 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6700 wxPyEndAllowThreads(__tstate);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 {
6704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6705 }
6706 return resultobj;
6707 fail:
6708 return NULL;
6709 }
6710
6711
6712 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj = 0;
6714 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6715 SwigValueWrapper<wxVisualAttributes > result;
6716 int val1 ;
6717 int ecode1 = 0 ;
6718 PyObject * obj0 = 0 ;
6719 char * kwnames[] = {
6720 (char *) "variant", NULL
6721 };
6722
6723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6724 if (obj0) {
6725 ecode1 = SWIG_AsVal_int(obj0, &val1);
6726 if (!SWIG_IsOK(ecode1)) {
6727 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6728 }
6729 arg1 = static_cast< wxWindowVariant >(val1);
6730 }
6731 {
6732 if (!wxPyCheckForApp()) SWIG_fail;
6733 PyThreadState* __tstate = wxPyBeginAllowThreads();
6734 result = wxComboBox::GetClassDefaultAttributes(arg1);
6735 wxPyEndAllowThreads(__tstate);
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6739 return resultobj;
6740 fail:
6741 return NULL;
6742 }
6743
6744
6745 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6746 PyObject *obj;
6747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6748 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6749 return SWIG_Py_Void();
6750 }
6751
6752 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6753 return SWIG_Python_InitShadowInstance(args);
6754 }
6755
6756 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6757 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6758 return 1;
6759 }
6760
6761
6762 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6763 PyObject *pyobj = 0;
6764
6765 {
6766 #if wxUSE_UNICODE
6767 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6768 #else
6769 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6770 #endif
6771 }
6772 return pyobj;
6773 }
6774
6775
6776 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj = 0;
6778 wxWindow *arg1 = (wxWindow *) 0 ;
6779 int arg2 = (int) -1 ;
6780 int arg3 = (int) 100 ;
6781 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6782 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6783 wxSize const &arg5_defvalue = wxDefaultSize ;
6784 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6785 long arg6 = (long) wxGA_HORIZONTAL ;
6786 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6787 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6788 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6789 wxString *arg8 = (wxString *) &arg8_defvalue ;
6790 wxGauge *result = 0 ;
6791 void *argp1 = 0 ;
6792 int res1 = 0 ;
6793 int val2 ;
6794 int ecode2 = 0 ;
6795 int val3 ;
6796 int ecode3 = 0 ;
6797 wxPoint temp4 ;
6798 wxSize temp5 ;
6799 long val6 ;
6800 int ecode6 = 0 ;
6801 void *argp7 = 0 ;
6802 int res7 = 0 ;
6803 bool temp8 = false ;
6804 PyObject * obj0 = 0 ;
6805 PyObject * obj1 = 0 ;
6806 PyObject * obj2 = 0 ;
6807 PyObject * obj3 = 0 ;
6808 PyObject * obj4 = 0 ;
6809 PyObject * obj5 = 0 ;
6810 PyObject * obj6 = 0 ;
6811 PyObject * obj7 = 0 ;
6812 char * kwnames[] = {
6813 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6814 };
6815
6816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6818 if (!SWIG_IsOK(res1)) {
6819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6820 }
6821 arg1 = reinterpret_cast< wxWindow * >(argp1);
6822 if (obj1) {
6823 ecode2 = SWIG_AsVal_int(obj1, &val2);
6824 if (!SWIG_IsOK(ecode2)) {
6825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6826 }
6827 arg2 = static_cast< int >(val2);
6828 }
6829 if (obj2) {
6830 ecode3 = SWIG_AsVal_int(obj2, &val3);
6831 if (!SWIG_IsOK(ecode3)) {
6832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6833 }
6834 arg3 = static_cast< int >(val3);
6835 }
6836 if (obj3) {
6837 {
6838 arg4 = &temp4;
6839 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6840 }
6841 }
6842 if (obj4) {
6843 {
6844 arg5 = &temp5;
6845 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6846 }
6847 }
6848 if (obj5) {
6849 ecode6 = SWIG_AsVal_long(obj5, &val6);
6850 if (!SWIG_IsOK(ecode6)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6852 }
6853 arg6 = static_cast< long >(val6);
6854 }
6855 if (obj6) {
6856 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6857 if (!SWIG_IsOK(res7)) {
6858 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6859 }
6860 if (!argp7) {
6861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6862 }
6863 arg7 = reinterpret_cast< wxValidator * >(argp7);
6864 }
6865 if (obj7) {
6866 {
6867 arg8 = wxString_in_helper(obj7);
6868 if (arg8 == NULL) SWIG_fail;
6869 temp8 = true;
6870 }
6871 }
6872 {
6873 if (!wxPyCheckForApp()) SWIG_fail;
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6880 {
6881 if (temp8)
6882 delete arg8;
6883 }
6884 return resultobj;
6885 fail:
6886 {
6887 if (temp8)
6888 delete arg8;
6889 }
6890 return NULL;
6891 }
6892
6893
6894 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6895 PyObject *resultobj = 0;
6896 wxGauge *result = 0 ;
6897
6898 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6899 {
6900 if (!wxPyCheckForApp()) SWIG_fail;
6901 PyThreadState* __tstate = wxPyBeginAllowThreads();
6902 result = (wxGauge *)new wxGauge();
6903 wxPyEndAllowThreads(__tstate);
6904 if (PyErr_Occurred()) SWIG_fail;
6905 }
6906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6907 return resultobj;
6908 fail:
6909 return NULL;
6910 }
6911
6912
6913 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6914 PyObject *resultobj = 0;
6915 wxGauge *arg1 = (wxGauge *) 0 ;
6916 wxWindow *arg2 = (wxWindow *) 0 ;
6917 int arg3 = (int) -1 ;
6918 int arg4 = (int) 100 ;
6919 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6920 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6921 wxSize const &arg6_defvalue = wxDefaultSize ;
6922 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6923 long arg7 = (long) wxGA_HORIZONTAL ;
6924 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6925 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6926 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6927 wxString *arg9 = (wxString *) &arg9_defvalue ;
6928 bool result;
6929 void *argp1 = 0 ;
6930 int res1 = 0 ;
6931 void *argp2 = 0 ;
6932 int res2 = 0 ;
6933 int val3 ;
6934 int ecode3 = 0 ;
6935 int val4 ;
6936 int ecode4 = 0 ;
6937 wxPoint temp5 ;
6938 wxSize temp6 ;
6939 long val7 ;
6940 int ecode7 = 0 ;
6941 void *argp8 = 0 ;
6942 int res8 = 0 ;
6943 bool temp9 = false ;
6944 PyObject * obj0 = 0 ;
6945 PyObject * obj1 = 0 ;
6946 PyObject * obj2 = 0 ;
6947 PyObject * obj3 = 0 ;
6948 PyObject * obj4 = 0 ;
6949 PyObject * obj5 = 0 ;
6950 PyObject * obj6 = 0 ;
6951 PyObject * obj7 = 0 ;
6952 PyObject * obj8 = 0 ;
6953 char * kwnames[] = {
6954 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6955 };
6956
6957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6959 if (!SWIG_IsOK(res1)) {
6960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6961 }
6962 arg1 = reinterpret_cast< wxGauge * >(argp1);
6963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6964 if (!SWIG_IsOK(res2)) {
6965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6966 }
6967 arg2 = reinterpret_cast< wxWindow * >(argp2);
6968 if (obj2) {
6969 ecode3 = SWIG_AsVal_int(obj2, &val3);
6970 if (!SWIG_IsOK(ecode3)) {
6971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6972 }
6973 arg3 = static_cast< int >(val3);
6974 }
6975 if (obj3) {
6976 ecode4 = SWIG_AsVal_int(obj3, &val4);
6977 if (!SWIG_IsOK(ecode4)) {
6978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6979 }
6980 arg4 = static_cast< int >(val4);
6981 }
6982 if (obj4) {
6983 {
6984 arg5 = &temp5;
6985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6986 }
6987 }
6988 if (obj5) {
6989 {
6990 arg6 = &temp6;
6991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6992 }
6993 }
6994 if (obj6) {
6995 ecode7 = SWIG_AsVal_long(obj6, &val7);
6996 if (!SWIG_IsOK(ecode7)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6998 }
6999 arg7 = static_cast< long >(val7);
7000 }
7001 if (obj7) {
7002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7003 if (!SWIG_IsOK(res8)) {
7004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7005 }
7006 if (!argp8) {
7007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7008 }
7009 arg8 = reinterpret_cast< wxValidator * >(argp8);
7010 }
7011 if (obj8) {
7012 {
7013 arg9 = wxString_in_helper(obj8);
7014 if (arg9 == NULL) SWIG_fail;
7015 temp9 = true;
7016 }
7017 }
7018 {
7019 PyThreadState* __tstate = wxPyBeginAllowThreads();
7020 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7021 wxPyEndAllowThreads(__tstate);
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 {
7025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7026 }
7027 {
7028 if (temp9)
7029 delete arg9;
7030 }
7031 return resultobj;
7032 fail:
7033 {
7034 if (temp9)
7035 delete arg9;
7036 }
7037 return NULL;
7038 }
7039
7040
7041 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj = 0;
7043 wxGauge *arg1 = (wxGauge *) 0 ;
7044 int arg2 ;
7045 void *argp1 = 0 ;
7046 int res1 = 0 ;
7047 int val2 ;
7048 int ecode2 = 0 ;
7049 PyObject * obj0 = 0 ;
7050 PyObject * obj1 = 0 ;
7051 char * kwnames[] = {
7052 (char *) "self",(char *) "range", NULL
7053 };
7054
7055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7057 if (!SWIG_IsOK(res1)) {
7058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7059 }
7060 arg1 = reinterpret_cast< wxGauge * >(argp1);
7061 ecode2 = SWIG_AsVal_int(obj1, &val2);
7062 if (!SWIG_IsOK(ecode2)) {
7063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7064 }
7065 arg2 = static_cast< int >(val2);
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 (arg1)->SetRange(arg2);
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 resultobj = SWIG_Py_Void();
7073 return resultobj;
7074 fail:
7075 return NULL;
7076 }
7077
7078
7079 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7080 PyObject *resultobj = 0;
7081 wxGauge *arg1 = (wxGauge *) 0 ;
7082 int result;
7083 void *argp1 = 0 ;
7084 int res1 = 0 ;
7085 PyObject *swig_obj[1] ;
7086
7087 if (!args) SWIG_fail;
7088 swig_obj[0] = args;
7089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7090 if (!SWIG_IsOK(res1)) {
7091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7092 }
7093 arg1 = reinterpret_cast< wxGauge * >(argp1);
7094 {
7095 PyThreadState* __tstate = wxPyBeginAllowThreads();
7096 result = (int)((wxGauge const *)arg1)->GetRange();
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 resultobj = SWIG_From_int(static_cast< int >(result));
7101 return resultobj;
7102 fail:
7103 return NULL;
7104 }
7105
7106
7107 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7108 PyObject *resultobj = 0;
7109 wxGauge *arg1 = (wxGauge *) 0 ;
7110 int arg2 ;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 int val2 ;
7114 int ecode2 = 0 ;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 char * kwnames[] = {
7118 (char *) "self",(char *) "pos", NULL
7119 };
7120
7121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7123 if (!SWIG_IsOK(res1)) {
7124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7125 }
7126 arg1 = reinterpret_cast< wxGauge * >(argp1);
7127 ecode2 = SWIG_AsVal_int(obj1, &val2);
7128 if (!SWIG_IsOK(ecode2)) {
7129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7130 }
7131 arg2 = static_cast< int >(val2);
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 (arg1)->SetValue(arg2);
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 resultobj = SWIG_Py_Void();
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7146 PyObject *resultobj = 0;
7147 wxGauge *arg1 = (wxGauge *) 0 ;
7148 int result;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 PyObject *swig_obj[1] ;
7152
7153 if (!args) SWIG_fail;
7154 swig_obj[0] = args;
7155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7156 if (!SWIG_IsOK(res1)) {
7157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7158 }
7159 arg1 = reinterpret_cast< wxGauge * >(argp1);
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 result = (int)((wxGauge const *)arg1)->GetValue();
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_From_int(static_cast< int >(result));
7167 return resultobj;
7168 fail:
7169 return NULL;
7170 }
7171
7172
7173 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7174 PyObject *resultobj = 0;
7175 wxGauge *arg1 = (wxGauge *) 0 ;
7176 bool result;
7177 void *argp1 = 0 ;
7178 int res1 = 0 ;
7179 PyObject *swig_obj[1] ;
7180
7181 if (!args) SWIG_fail;
7182 swig_obj[0] = args;
7183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7184 if (!SWIG_IsOK(res1)) {
7185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7186 }
7187 arg1 = reinterpret_cast< wxGauge * >(argp1);
7188 {
7189 PyThreadState* __tstate = wxPyBeginAllowThreads();
7190 result = (bool)((wxGauge const *)arg1)->IsVertical();
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 {
7195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7196 }
7197 return resultobj;
7198 fail:
7199 return NULL;
7200 }
7201
7202
7203 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj = 0;
7205 wxGauge *arg1 = (wxGauge *) 0 ;
7206 int arg2 ;
7207 void *argp1 = 0 ;
7208 int res1 = 0 ;
7209 int val2 ;
7210 int ecode2 = 0 ;
7211 PyObject * obj0 = 0 ;
7212 PyObject * obj1 = 0 ;
7213 char * kwnames[] = {
7214 (char *) "self",(char *) "w", NULL
7215 };
7216
7217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7219 if (!SWIG_IsOK(res1)) {
7220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7221 }
7222 arg1 = reinterpret_cast< wxGauge * >(argp1);
7223 ecode2 = SWIG_AsVal_int(obj1, &val2);
7224 if (!SWIG_IsOK(ecode2)) {
7225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7226 }
7227 arg2 = static_cast< int >(val2);
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 (arg1)->SetShadowWidth(arg2);
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 resultobj = SWIG_Py_Void();
7235 return resultobj;
7236 fail:
7237 return NULL;
7238 }
7239
7240
7241 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7242 PyObject *resultobj = 0;
7243 wxGauge *arg1 = (wxGauge *) 0 ;
7244 int result;
7245 void *argp1 = 0 ;
7246 int res1 = 0 ;
7247 PyObject *swig_obj[1] ;
7248
7249 if (!args) SWIG_fail;
7250 swig_obj[0] = args;
7251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7252 if (!SWIG_IsOK(res1)) {
7253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7254 }
7255 arg1 = reinterpret_cast< wxGauge * >(argp1);
7256 {
7257 PyThreadState* __tstate = wxPyBeginAllowThreads();
7258 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 resultobj = SWIG_From_int(static_cast< int >(result));
7263 return resultobj;
7264 fail:
7265 return NULL;
7266 }
7267
7268
7269 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7270 PyObject *resultobj = 0;
7271 wxGauge *arg1 = (wxGauge *) 0 ;
7272 int arg2 ;
7273 void *argp1 = 0 ;
7274 int res1 = 0 ;
7275 int val2 ;
7276 int ecode2 = 0 ;
7277 PyObject * obj0 = 0 ;
7278 PyObject * obj1 = 0 ;
7279 char * kwnames[] = {
7280 (char *) "self",(char *) "w", NULL
7281 };
7282
7283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7287 }
7288 arg1 = reinterpret_cast< wxGauge * >(argp1);
7289 ecode2 = SWIG_AsVal_int(obj1, &val2);
7290 if (!SWIG_IsOK(ecode2)) {
7291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7292 }
7293 arg2 = static_cast< int >(val2);
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 (arg1)->SetBezelFace(arg2);
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 resultobj = SWIG_Py_Void();
7301 return resultobj;
7302 fail:
7303 return NULL;
7304 }
7305
7306
7307 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7308 PyObject *resultobj = 0;
7309 wxGauge *arg1 = (wxGauge *) 0 ;
7310 int result;
7311 void *argp1 = 0 ;
7312 int res1 = 0 ;
7313 PyObject *swig_obj[1] ;
7314
7315 if (!args) SWIG_fail;
7316 swig_obj[0] = args;
7317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7318 if (!SWIG_IsOK(res1)) {
7319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7320 }
7321 arg1 = reinterpret_cast< wxGauge * >(argp1);
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7325 wxPyEndAllowThreads(__tstate);
7326 if (PyErr_Occurred()) SWIG_fail;
7327 }
7328 resultobj = SWIG_From_int(static_cast< int >(result));
7329 return resultobj;
7330 fail:
7331 return NULL;
7332 }
7333
7334
7335 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7336 PyObject *resultobj = 0;
7337 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7338 SwigValueWrapper<wxVisualAttributes > result;
7339 int val1 ;
7340 int ecode1 = 0 ;
7341 PyObject * obj0 = 0 ;
7342 char * kwnames[] = {
7343 (char *) "variant", NULL
7344 };
7345
7346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7347 if (obj0) {
7348 ecode1 = SWIG_AsVal_int(obj0, &val1);
7349 if (!SWIG_IsOK(ecode1)) {
7350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7351 }
7352 arg1 = static_cast< wxWindowVariant >(val1);
7353 }
7354 {
7355 if (!wxPyCheckForApp()) SWIG_fail;
7356 PyThreadState* __tstate = wxPyBeginAllowThreads();
7357 result = wxGauge::GetClassDefaultAttributes(arg1);
7358 wxPyEndAllowThreads(__tstate);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7362 return resultobj;
7363 fail:
7364 return NULL;
7365 }
7366
7367
7368 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7369 PyObject *obj;
7370 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7371 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7372 return SWIG_Py_Void();
7373 }
7374
7375 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7376 return SWIG_Python_InitShadowInstance(args);
7377 }
7378
7379 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7380 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7381 return 1;
7382 }
7383
7384
7385 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7386 PyObject *pyobj = 0;
7387
7388 {
7389 #if wxUSE_UNICODE
7390 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7391 #else
7392 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7393 #endif
7394 }
7395 return pyobj;
7396 }
7397
7398
7399 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7400 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7401 return 1;
7402 }
7403
7404
7405 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7406 PyObject *pyobj = 0;
7407
7408 {
7409 #if wxUSE_UNICODE
7410 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7411 #else
7412 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7413 #endif
7414 }
7415 return pyobj;
7416 }
7417
7418
7419 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7420 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7421 return 1;
7422 }
7423
7424
7425 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7426 PyObject *pyobj = 0;
7427
7428 {
7429 #if wxUSE_UNICODE
7430 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7431 #else
7432 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7433 #endif
7434 }
7435 return pyobj;
7436 }
7437
7438
7439 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7440 PyObject *resultobj = 0;
7441 wxWindow *arg1 = (wxWindow *) 0 ;
7442 int arg2 = (int) -1 ;
7443 wxString const &arg3_defvalue = wxPyEmptyString ;
7444 wxString *arg3 = (wxString *) &arg3_defvalue ;
7445 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7446 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7447 wxSize const &arg5_defvalue = wxDefaultSize ;
7448 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7449 long arg6 = (long) 0 ;
7450 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7451 wxString *arg7 = (wxString *) &arg7_defvalue ;
7452 wxStaticBox *result = 0 ;
7453 void *argp1 = 0 ;
7454 int res1 = 0 ;
7455 int val2 ;
7456 int ecode2 = 0 ;
7457 bool temp3 = false ;
7458 wxPoint temp4 ;
7459 wxSize temp5 ;
7460 long val6 ;
7461 int ecode6 = 0 ;
7462 bool temp7 = false ;
7463 PyObject * obj0 = 0 ;
7464 PyObject * obj1 = 0 ;
7465 PyObject * obj2 = 0 ;
7466 PyObject * obj3 = 0 ;
7467 PyObject * obj4 = 0 ;
7468 PyObject * obj5 = 0 ;
7469 PyObject * obj6 = 0 ;
7470 char * kwnames[] = {
7471 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7472 };
7473
7474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7476 if (!SWIG_IsOK(res1)) {
7477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7478 }
7479 arg1 = reinterpret_cast< wxWindow * >(argp1);
7480 if (obj1) {
7481 ecode2 = SWIG_AsVal_int(obj1, &val2);
7482 if (!SWIG_IsOK(ecode2)) {
7483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7484 }
7485 arg2 = static_cast< int >(val2);
7486 }
7487 if (obj2) {
7488 {
7489 arg3 = wxString_in_helper(obj2);
7490 if (arg3 == NULL) SWIG_fail;
7491 temp3 = true;
7492 }
7493 }
7494 if (obj3) {
7495 {
7496 arg4 = &temp4;
7497 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7498 }
7499 }
7500 if (obj4) {
7501 {
7502 arg5 = &temp5;
7503 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7504 }
7505 }
7506 if (obj5) {
7507 ecode6 = SWIG_AsVal_long(obj5, &val6);
7508 if (!SWIG_IsOK(ecode6)) {
7509 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7510 }
7511 arg6 = static_cast< long >(val6);
7512 }
7513 if (obj6) {
7514 {
7515 arg7 = wxString_in_helper(obj6);
7516 if (arg7 == NULL) SWIG_fail;
7517 temp7 = true;
7518 }
7519 }
7520 {
7521 if (!wxPyCheckForApp()) SWIG_fail;
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7528 {
7529 if (temp3)
7530 delete arg3;
7531 }
7532 {
7533 if (temp7)
7534 delete arg7;
7535 }
7536 return resultobj;
7537 fail:
7538 {
7539 if (temp3)
7540 delete arg3;
7541 }
7542 {
7543 if (temp7)
7544 delete arg7;
7545 }
7546 return NULL;
7547 }
7548
7549
7550 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7551 PyObject *resultobj = 0;
7552 wxStaticBox *result = 0 ;
7553
7554 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7555 {
7556 if (!wxPyCheckForApp()) SWIG_fail;
7557 PyThreadState* __tstate = wxPyBeginAllowThreads();
7558 result = (wxStaticBox *)new wxStaticBox();
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj = 0;
7571 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7572 wxWindow *arg2 = (wxWindow *) 0 ;
7573 int arg3 = (int) -1 ;
7574 wxString const &arg4_defvalue = wxPyEmptyString ;
7575 wxString *arg4 = (wxString *) &arg4_defvalue ;
7576 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7577 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7578 wxSize const &arg6_defvalue = wxDefaultSize ;
7579 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7580 long arg7 = (long) 0 ;
7581 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7582 wxString *arg8 = (wxString *) &arg8_defvalue ;
7583 bool result;
7584 void *argp1 = 0 ;
7585 int res1 = 0 ;
7586 void *argp2 = 0 ;
7587 int res2 = 0 ;
7588 int val3 ;
7589 int ecode3 = 0 ;
7590 bool temp4 = false ;
7591 wxPoint temp5 ;
7592 wxSize temp6 ;
7593 long val7 ;
7594 int ecode7 = 0 ;
7595 bool temp8 = false ;
7596 PyObject * obj0 = 0 ;
7597 PyObject * obj1 = 0 ;
7598 PyObject * obj2 = 0 ;
7599 PyObject * obj3 = 0 ;
7600 PyObject * obj4 = 0 ;
7601 PyObject * obj5 = 0 ;
7602 PyObject * obj6 = 0 ;
7603 PyObject * obj7 = 0 ;
7604 char * kwnames[] = {
7605 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7606 };
7607
7608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7612 }
7613 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7615 if (!SWIG_IsOK(res2)) {
7616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7617 }
7618 arg2 = reinterpret_cast< wxWindow * >(argp2);
7619 if (obj2) {
7620 ecode3 = SWIG_AsVal_int(obj2, &val3);
7621 if (!SWIG_IsOK(ecode3)) {
7622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7623 }
7624 arg3 = static_cast< int >(val3);
7625 }
7626 if (obj3) {
7627 {
7628 arg4 = wxString_in_helper(obj3);
7629 if (arg4 == NULL) SWIG_fail;
7630 temp4 = true;
7631 }
7632 }
7633 if (obj4) {
7634 {
7635 arg5 = &temp5;
7636 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7637 }
7638 }
7639 if (obj5) {
7640 {
7641 arg6 = &temp6;
7642 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7643 }
7644 }
7645 if (obj6) {
7646 ecode7 = SWIG_AsVal_long(obj6, &val7);
7647 if (!SWIG_IsOK(ecode7)) {
7648 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7649 }
7650 arg7 = static_cast< long >(val7);
7651 }
7652 if (obj7) {
7653 {
7654 arg8 = wxString_in_helper(obj7);
7655 if (arg8 == NULL) SWIG_fail;
7656 temp8 = true;
7657 }
7658 }
7659 {
7660 PyThreadState* __tstate = wxPyBeginAllowThreads();
7661 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 {
7666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7667 }
7668 {
7669 if (temp4)
7670 delete arg4;
7671 }
7672 {
7673 if (temp8)
7674 delete arg8;
7675 }
7676 return resultobj;
7677 fail:
7678 {
7679 if (temp4)
7680 delete arg4;
7681 }
7682 {
7683 if (temp8)
7684 delete arg8;
7685 }
7686 return NULL;
7687 }
7688
7689
7690 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj = 0;
7692 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7693 SwigValueWrapper<wxVisualAttributes > result;
7694 int val1 ;
7695 int ecode1 = 0 ;
7696 PyObject * obj0 = 0 ;
7697 char * kwnames[] = {
7698 (char *) "variant", NULL
7699 };
7700
7701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7702 if (obj0) {
7703 ecode1 = SWIG_AsVal_int(obj0, &val1);
7704 if (!SWIG_IsOK(ecode1)) {
7705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7706 }
7707 arg1 = static_cast< wxWindowVariant >(val1);
7708 }
7709 {
7710 if (!wxPyCheckForApp()) SWIG_fail;
7711 PyThreadState* __tstate = wxPyBeginAllowThreads();
7712 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7713 wxPyEndAllowThreads(__tstate);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7724 PyObject *obj;
7725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7726 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7727 return SWIG_Py_Void();
7728 }
7729
7730 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7731 return SWIG_Python_InitShadowInstance(args);
7732 }
7733
7734 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7735 PyObject *resultobj = 0;
7736 wxWindow *arg1 = (wxWindow *) 0 ;
7737 int arg2 = (int) -1 ;
7738 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7739 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7740 wxSize const &arg4_defvalue = wxDefaultSize ;
7741 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7742 long arg5 = (long) wxLI_HORIZONTAL ;
7743 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7744 wxString *arg6 = (wxString *) &arg6_defvalue ;
7745 wxStaticLine *result = 0 ;
7746 void *argp1 = 0 ;
7747 int res1 = 0 ;
7748 int val2 ;
7749 int ecode2 = 0 ;
7750 wxPoint temp3 ;
7751 wxSize temp4 ;
7752 long val5 ;
7753 int ecode5 = 0 ;
7754 bool temp6 = false ;
7755 PyObject * obj0 = 0 ;
7756 PyObject * obj1 = 0 ;
7757 PyObject * obj2 = 0 ;
7758 PyObject * obj3 = 0 ;
7759 PyObject * obj4 = 0 ;
7760 PyObject * obj5 = 0 ;
7761 char * kwnames[] = {
7762 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7763 };
7764
7765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7767 if (!SWIG_IsOK(res1)) {
7768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7769 }
7770 arg1 = reinterpret_cast< wxWindow * >(argp1);
7771 if (obj1) {
7772 ecode2 = SWIG_AsVal_int(obj1, &val2);
7773 if (!SWIG_IsOK(ecode2)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7775 }
7776 arg2 = static_cast< int >(val2);
7777 }
7778 if (obj2) {
7779 {
7780 arg3 = &temp3;
7781 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7782 }
7783 }
7784 if (obj3) {
7785 {
7786 arg4 = &temp4;
7787 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7788 }
7789 }
7790 if (obj4) {
7791 ecode5 = SWIG_AsVal_long(obj4, &val5);
7792 if (!SWIG_IsOK(ecode5)) {
7793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7794 }
7795 arg5 = static_cast< long >(val5);
7796 }
7797 if (obj5) {
7798 {
7799 arg6 = wxString_in_helper(obj5);
7800 if (arg6 == NULL) SWIG_fail;
7801 temp6 = true;
7802 }
7803 }
7804 {
7805 if (!wxPyCheckForApp()) SWIG_fail;
7806 PyThreadState* __tstate = wxPyBeginAllowThreads();
7807 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7808 wxPyEndAllowThreads(__tstate);
7809 if (PyErr_Occurred()) SWIG_fail;
7810 }
7811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7812 {
7813 if (temp6)
7814 delete arg6;
7815 }
7816 return resultobj;
7817 fail:
7818 {
7819 if (temp6)
7820 delete arg6;
7821 }
7822 return NULL;
7823 }
7824
7825
7826 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7827 PyObject *resultobj = 0;
7828 wxStaticLine *result = 0 ;
7829
7830 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7831 {
7832 if (!wxPyCheckForApp()) SWIG_fail;
7833 PyThreadState* __tstate = wxPyBeginAllowThreads();
7834 result = (wxStaticLine *)new wxStaticLine();
7835 wxPyEndAllowThreads(__tstate);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7839 return resultobj;
7840 fail:
7841 return NULL;
7842 }
7843
7844
7845 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj = 0;
7847 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7848 wxWindow *arg2 = (wxWindow *) 0 ;
7849 int arg3 = (int) -1 ;
7850 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7851 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7852 wxSize const &arg5_defvalue = wxDefaultSize ;
7853 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7854 long arg6 = (long) wxLI_HORIZONTAL ;
7855 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7856 wxString *arg7 = (wxString *) &arg7_defvalue ;
7857 bool result;
7858 void *argp1 = 0 ;
7859 int res1 = 0 ;
7860 void *argp2 = 0 ;
7861 int res2 = 0 ;
7862 int val3 ;
7863 int ecode3 = 0 ;
7864 wxPoint temp4 ;
7865 wxSize temp5 ;
7866 long val6 ;
7867 int ecode6 = 0 ;
7868 bool temp7 = false ;
7869 PyObject * obj0 = 0 ;
7870 PyObject * obj1 = 0 ;
7871 PyObject * obj2 = 0 ;
7872 PyObject * obj3 = 0 ;
7873 PyObject * obj4 = 0 ;
7874 PyObject * obj5 = 0 ;
7875 PyObject * obj6 = 0 ;
7876 char * kwnames[] = {
7877 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7878 };
7879
7880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7882 if (!SWIG_IsOK(res1)) {
7883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7884 }
7885 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7887 if (!SWIG_IsOK(res2)) {
7888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7889 }
7890 arg2 = reinterpret_cast< wxWindow * >(argp2);
7891 if (obj2) {
7892 ecode3 = SWIG_AsVal_int(obj2, &val3);
7893 if (!SWIG_IsOK(ecode3)) {
7894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7895 }
7896 arg3 = static_cast< int >(val3);
7897 }
7898 if (obj3) {
7899 {
7900 arg4 = &temp4;
7901 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7902 }
7903 }
7904 if (obj4) {
7905 {
7906 arg5 = &temp5;
7907 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7908 }
7909 }
7910 if (obj5) {
7911 ecode6 = SWIG_AsVal_long(obj5, &val6);
7912 if (!SWIG_IsOK(ecode6)) {
7913 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7914 }
7915 arg6 = static_cast< long >(val6);
7916 }
7917 if (obj6) {
7918 {
7919 arg7 = wxString_in_helper(obj6);
7920 if (arg7 == NULL) SWIG_fail;
7921 temp7 = true;
7922 }
7923 }
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7927 wxPyEndAllowThreads(__tstate);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 {
7931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7932 }
7933 {
7934 if (temp7)
7935 delete arg7;
7936 }
7937 return resultobj;
7938 fail:
7939 {
7940 if (temp7)
7941 delete arg7;
7942 }
7943 return NULL;
7944 }
7945
7946
7947 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7948 PyObject *resultobj = 0;
7949 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7950 bool result;
7951 void *argp1 = 0 ;
7952 int res1 = 0 ;
7953 PyObject *swig_obj[1] ;
7954
7955 if (!args) SWIG_fail;
7956 swig_obj[0] = args;
7957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7958 if (!SWIG_IsOK(res1)) {
7959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7960 }
7961 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 {
7969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7970 }
7971 return resultobj;
7972 fail:
7973 return NULL;
7974 }
7975
7976
7977 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7978 PyObject *resultobj = 0;
7979 int result;
7980
7981 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (int)wxStaticLine::GetDefaultSize();
7985 wxPyEndAllowThreads(__tstate);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 resultobj = SWIG_From_int(static_cast< int >(result));
7989 return resultobj;
7990 fail:
7991 return NULL;
7992 }
7993
7994
7995 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7996 PyObject *resultobj = 0;
7997 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7998 SwigValueWrapper<wxVisualAttributes > result;
7999 int val1 ;
8000 int ecode1 = 0 ;
8001 PyObject * obj0 = 0 ;
8002 char * kwnames[] = {
8003 (char *) "variant", NULL
8004 };
8005
8006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8007 if (obj0) {
8008 ecode1 = SWIG_AsVal_int(obj0, &val1);
8009 if (!SWIG_IsOK(ecode1)) {
8010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8011 }
8012 arg1 = static_cast< wxWindowVariant >(val1);
8013 }
8014 {
8015 if (!wxPyCheckForApp()) SWIG_fail;
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8022 return resultobj;
8023 fail:
8024 return NULL;
8025 }
8026
8027
8028 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8029 PyObject *obj;
8030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8031 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8032 return SWIG_Py_Void();
8033 }
8034
8035 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8036 return SWIG_Python_InitShadowInstance(args);
8037 }
8038
8039 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8040 PyObject *resultobj = 0;
8041 wxWindow *arg1 = (wxWindow *) 0 ;
8042 int arg2 = (int) -1 ;
8043 wxString const &arg3_defvalue = wxPyEmptyString ;
8044 wxString *arg3 = (wxString *) &arg3_defvalue ;
8045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8047 wxSize const &arg5_defvalue = wxDefaultSize ;
8048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8049 long arg6 = (long) 0 ;
8050 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8051 wxString *arg7 = (wxString *) &arg7_defvalue ;
8052 wxStaticText *result = 0 ;
8053 void *argp1 = 0 ;
8054 int res1 = 0 ;
8055 int val2 ;
8056 int ecode2 = 0 ;
8057 bool temp3 = false ;
8058 wxPoint temp4 ;
8059 wxSize temp5 ;
8060 long val6 ;
8061 int ecode6 = 0 ;
8062 bool temp7 = false ;
8063 PyObject * obj0 = 0 ;
8064 PyObject * obj1 = 0 ;
8065 PyObject * obj2 = 0 ;
8066 PyObject * obj3 = 0 ;
8067 PyObject * obj4 = 0 ;
8068 PyObject * obj5 = 0 ;
8069 PyObject * obj6 = 0 ;
8070 char * kwnames[] = {
8071 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8072 };
8073
8074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8076 if (!SWIG_IsOK(res1)) {
8077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8078 }
8079 arg1 = reinterpret_cast< wxWindow * >(argp1);
8080 if (obj1) {
8081 ecode2 = SWIG_AsVal_int(obj1, &val2);
8082 if (!SWIG_IsOK(ecode2)) {
8083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8084 }
8085 arg2 = static_cast< int >(val2);
8086 }
8087 if (obj2) {
8088 {
8089 arg3 = wxString_in_helper(obj2);
8090 if (arg3 == NULL) SWIG_fail;
8091 temp3 = true;
8092 }
8093 }
8094 if (obj3) {
8095 {
8096 arg4 = &temp4;
8097 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8098 }
8099 }
8100 if (obj4) {
8101 {
8102 arg5 = &temp5;
8103 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8104 }
8105 }
8106 if (obj5) {
8107 ecode6 = SWIG_AsVal_long(obj5, &val6);
8108 if (!SWIG_IsOK(ecode6)) {
8109 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8110 }
8111 arg6 = static_cast< long >(val6);
8112 }
8113 if (obj6) {
8114 {
8115 arg7 = wxString_in_helper(obj6);
8116 if (arg7 == NULL) SWIG_fail;
8117 temp7 = true;
8118 }
8119 }
8120 {
8121 if (!wxPyCheckForApp()) SWIG_fail;
8122 PyThreadState* __tstate = wxPyBeginAllowThreads();
8123 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8128 {
8129 if (temp3)
8130 delete arg3;
8131 }
8132 {
8133 if (temp7)
8134 delete arg7;
8135 }
8136 return resultobj;
8137 fail:
8138 {
8139 if (temp3)
8140 delete arg3;
8141 }
8142 {
8143 if (temp7)
8144 delete arg7;
8145 }
8146 return NULL;
8147 }
8148
8149
8150 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8151 PyObject *resultobj = 0;
8152 wxStaticText *result = 0 ;
8153
8154 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8155 {
8156 if (!wxPyCheckForApp()) SWIG_fail;
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 result = (wxStaticText *)new wxStaticText();
8159 wxPyEndAllowThreads(__tstate);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8163 return resultobj;
8164 fail:
8165 return NULL;
8166 }
8167
8168
8169 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8170 PyObject *resultobj = 0;
8171 wxStaticText *arg1 = (wxStaticText *) 0 ;
8172 wxWindow *arg2 = (wxWindow *) 0 ;
8173 int arg3 = (int) -1 ;
8174 wxString const &arg4_defvalue = wxPyEmptyString ;
8175 wxString *arg4 = (wxString *) &arg4_defvalue ;
8176 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8177 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8178 wxSize const &arg6_defvalue = wxDefaultSize ;
8179 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8180 long arg7 = (long) 0 ;
8181 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8182 wxString *arg8 = (wxString *) &arg8_defvalue ;
8183 bool result;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 void *argp2 = 0 ;
8187 int res2 = 0 ;
8188 int val3 ;
8189 int ecode3 = 0 ;
8190 bool temp4 = false ;
8191 wxPoint temp5 ;
8192 wxSize temp6 ;
8193 long val7 ;
8194 int ecode7 = 0 ;
8195 bool temp8 = false ;
8196 PyObject * obj0 = 0 ;
8197 PyObject * obj1 = 0 ;
8198 PyObject * obj2 = 0 ;
8199 PyObject * obj3 = 0 ;
8200 PyObject * obj4 = 0 ;
8201 PyObject * obj5 = 0 ;
8202 PyObject * obj6 = 0 ;
8203 PyObject * obj7 = 0 ;
8204 char * kwnames[] = {
8205 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8206 };
8207
8208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8210 if (!SWIG_IsOK(res1)) {
8211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8212 }
8213 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8215 if (!SWIG_IsOK(res2)) {
8216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8217 }
8218 arg2 = reinterpret_cast< wxWindow * >(argp2);
8219 if (obj2) {
8220 ecode3 = SWIG_AsVal_int(obj2, &val3);
8221 if (!SWIG_IsOK(ecode3)) {
8222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8223 }
8224 arg3 = static_cast< int >(val3);
8225 }
8226 if (obj3) {
8227 {
8228 arg4 = wxString_in_helper(obj3);
8229 if (arg4 == NULL) SWIG_fail;
8230 temp4 = true;
8231 }
8232 }
8233 if (obj4) {
8234 {
8235 arg5 = &temp5;
8236 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8237 }
8238 }
8239 if (obj5) {
8240 {
8241 arg6 = &temp6;
8242 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8243 }
8244 }
8245 if (obj6) {
8246 ecode7 = SWIG_AsVal_long(obj6, &val7);
8247 if (!SWIG_IsOK(ecode7)) {
8248 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8249 }
8250 arg7 = static_cast< long >(val7);
8251 }
8252 if (obj7) {
8253 {
8254 arg8 = wxString_in_helper(obj7);
8255 if (arg8 == NULL) SWIG_fail;
8256 temp8 = true;
8257 }
8258 }
8259 {
8260 PyThreadState* __tstate = wxPyBeginAllowThreads();
8261 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8262 wxPyEndAllowThreads(__tstate);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 {
8266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8267 }
8268 {
8269 if (temp4)
8270 delete arg4;
8271 }
8272 {
8273 if (temp8)
8274 delete arg8;
8275 }
8276 return resultobj;
8277 fail:
8278 {
8279 if (temp4)
8280 delete arg4;
8281 }
8282 {
8283 if (temp8)
8284 delete arg8;
8285 }
8286 return NULL;
8287 }
8288
8289
8290 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8291 PyObject *resultobj = 0;
8292 wxStaticText *arg1 = (wxStaticText *) 0 ;
8293 int arg2 ;
8294 void *argp1 = 0 ;
8295 int res1 = 0 ;
8296 int val2 ;
8297 int ecode2 = 0 ;
8298 PyObject * obj0 = 0 ;
8299 PyObject * obj1 = 0 ;
8300 char * kwnames[] = {
8301 (char *) "self",(char *) "width", NULL
8302 };
8303
8304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8306 if (!SWIG_IsOK(res1)) {
8307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8308 }
8309 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8310 ecode2 = SWIG_AsVal_int(obj1, &val2);
8311 if (!SWIG_IsOK(ecode2)) {
8312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8313 }
8314 arg2 = static_cast< int >(val2);
8315 {
8316 PyThreadState* __tstate = wxPyBeginAllowThreads();
8317 (arg1)->Wrap(arg2);
8318 wxPyEndAllowThreads(__tstate);
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 resultobj = SWIG_Py_Void();
8322 return resultobj;
8323 fail:
8324 return NULL;
8325 }
8326
8327
8328 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8329 PyObject *resultobj = 0;
8330 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8331 SwigValueWrapper<wxVisualAttributes > result;
8332 int val1 ;
8333 int ecode1 = 0 ;
8334 PyObject * obj0 = 0 ;
8335 char * kwnames[] = {
8336 (char *) "variant", NULL
8337 };
8338
8339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8340 if (obj0) {
8341 ecode1 = SWIG_AsVal_int(obj0, &val1);
8342 if (!SWIG_IsOK(ecode1)) {
8343 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8344 }
8345 arg1 = static_cast< wxWindowVariant >(val1);
8346 }
8347 {
8348 if (!wxPyCheckForApp()) SWIG_fail;
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 result = wxStaticText::GetClassDefaultAttributes(arg1);
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8355 return resultobj;
8356 fail:
8357 return NULL;
8358 }
8359
8360
8361 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8362 PyObject *obj;
8363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8364 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8365 return SWIG_Py_Void();
8366 }
8367
8368 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8369 return SWIG_Python_InitShadowInstance(args);
8370 }
8371
8372 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8373 PyObject *resultobj = 0;
8374 wxWindow *arg1 = (wxWindow *) 0 ;
8375 int arg2 = (int) -1 ;
8376 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8377 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8378 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8379 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8380 wxSize const &arg5_defvalue = wxDefaultSize ;
8381 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8382 long arg6 = (long) 0 ;
8383 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8384 wxString *arg7 = (wxString *) &arg7_defvalue ;
8385 wxStaticBitmap *result = 0 ;
8386 void *argp1 = 0 ;
8387 int res1 = 0 ;
8388 int val2 ;
8389 int ecode2 = 0 ;
8390 void *argp3 = 0 ;
8391 int res3 = 0 ;
8392 wxPoint temp4 ;
8393 wxSize temp5 ;
8394 long val6 ;
8395 int ecode6 = 0 ;
8396 bool temp7 = false ;
8397 PyObject * obj0 = 0 ;
8398 PyObject * obj1 = 0 ;
8399 PyObject * obj2 = 0 ;
8400 PyObject * obj3 = 0 ;
8401 PyObject * obj4 = 0 ;
8402 PyObject * obj5 = 0 ;
8403 PyObject * obj6 = 0 ;
8404 char * kwnames[] = {
8405 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8406 };
8407
8408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8410 if (!SWIG_IsOK(res1)) {
8411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8412 }
8413 arg1 = reinterpret_cast< wxWindow * >(argp1);
8414 if (obj1) {
8415 ecode2 = SWIG_AsVal_int(obj1, &val2);
8416 if (!SWIG_IsOK(ecode2)) {
8417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8418 }
8419 arg2 = static_cast< int >(val2);
8420 }
8421 if (obj2) {
8422 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8423 if (!SWIG_IsOK(res3)) {
8424 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8425 }
8426 if (!argp3) {
8427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8428 }
8429 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8430 }
8431 if (obj3) {
8432 {
8433 arg4 = &temp4;
8434 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8435 }
8436 }
8437 if (obj4) {
8438 {
8439 arg5 = &temp5;
8440 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8441 }
8442 }
8443 if (obj5) {
8444 ecode6 = SWIG_AsVal_long(obj5, &val6);
8445 if (!SWIG_IsOK(ecode6)) {
8446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8447 }
8448 arg6 = static_cast< long >(val6);
8449 }
8450 if (obj6) {
8451 {
8452 arg7 = wxString_in_helper(obj6);
8453 if (arg7 == NULL) SWIG_fail;
8454 temp7 = true;
8455 }
8456 }
8457 {
8458 if (!wxPyCheckForApp()) SWIG_fail;
8459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8460 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8461 wxPyEndAllowThreads(__tstate);
8462 if (PyErr_Occurred()) SWIG_fail;
8463 }
8464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8465 {
8466 if (temp7)
8467 delete arg7;
8468 }
8469 return resultobj;
8470 fail:
8471 {
8472 if (temp7)
8473 delete arg7;
8474 }
8475 return NULL;
8476 }
8477
8478
8479 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8480 PyObject *resultobj = 0;
8481 wxStaticBitmap *result = 0 ;
8482
8483 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8484 {
8485 if (!wxPyCheckForApp()) SWIG_fail;
8486 PyThreadState* __tstate = wxPyBeginAllowThreads();
8487 result = (wxStaticBitmap *)new wxStaticBitmap();
8488 wxPyEndAllowThreads(__tstate);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8492 return resultobj;
8493 fail:
8494 return NULL;
8495 }
8496
8497
8498 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8499 PyObject *resultobj = 0;
8500 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8501 wxWindow *arg2 = (wxWindow *) 0 ;
8502 int arg3 = (int) -1 ;
8503 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8504 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8505 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8506 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8507 wxSize const &arg6_defvalue = wxDefaultSize ;
8508 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8509 long arg7 = (long) 0 ;
8510 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8511 wxString *arg8 = (wxString *) &arg8_defvalue ;
8512 bool result;
8513 void *argp1 = 0 ;
8514 int res1 = 0 ;
8515 void *argp2 = 0 ;
8516 int res2 = 0 ;
8517 int val3 ;
8518 int ecode3 = 0 ;
8519 void *argp4 = 0 ;
8520 int res4 = 0 ;
8521 wxPoint temp5 ;
8522 wxSize temp6 ;
8523 long val7 ;
8524 int ecode7 = 0 ;
8525 bool temp8 = false ;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 PyObject * obj2 = 0 ;
8529 PyObject * obj3 = 0 ;
8530 PyObject * obj4 = 0 ;
8531 PyObject * obj5 = 0 ;
8532 PyObject * obj6 = 0 ;
8533 PyObject * obj7 = 0 ;
8534 char * kwnames[] = {
8535 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8536 };
8537
8538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8540 if (!SWIG_IsOK(res1)) {
8541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8542 }
8543 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8545 if (!SWIG_IsOK(res2)) {
8546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8547 }
8548 arg2 = reinterpret_cast< wxWindow * >(argp2);
8549 if (obj2) {
8550 ecode3 = SWIG_AsVal_int(obj2, &val3);
8551 if (!SWIG_IsOK(ecode3)) {
8552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8553 }
8554 arg3 = static_cast< int >(val3);
8555 }
8556 if (obj3) {
8557 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8558 if (!SWIG_IsOK(res4)) {
8559 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8560 }
8561 if (!argp4) {
8562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8563 }
8564 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8565 }
8566 if (obj4) {
8567 {
8568 arg5 = &temp5;
8569 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8570 }
8571 }
8572 if (obj5) {
8573 {
8574 arg6 = &temp6;
8575 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8576 }
8577 }
8578 if (obj6) {
8579 ecode7 = SWIG_AsVal_long(obj6, &val7);
8580 if (!SWIG_IsOK(ecode7)) {
8581 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8582 }
8583 arg7 = static_cast< long >(val7);
8584 }
8585 if (obj7) {
8586 {
8587 arg8 = wxString_in_helper(obj7);
8588 if (arg8 == NULL) SWIG_fail;
8589 temp8 = true;
8590 }
8591 }
8592 {
8593 PyThreadState* __tstate = wxPyBeginAllowThreads();
8594 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 {
8599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8600 }
8601 {
8602 if (temp8)
8603 delete arg8;
8604 }
8605 return resultobj;
8606 fail:
8607 {
8608 if (temp8)
8609 delete arg8;
8610 }
8611 return NULL;
8612 }
8613
8614
8615 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8616 PyObject *resultobj = 0;
8617 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8618 wxBitmap result;
8619 void *argp1 = 0 ;
8620 int res1 = 0 ;
8621 PyObject *swig_obj[1] ;
8622
8623 if (!args) SWIG_fail;
8624 swig_obj[0] = args;
8625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8626 if (!SWIG_IsOK(res1)) {
8627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8628 }
8629 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8630 {
8631 PyThreadState* __tstate = wxPyBeginAllowThreads();
8632 result = (arg1)->GetBitmap();
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj = 0;
8645 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8646 wxBitmap *arg2 = 0 ;
8647 void *argp1 = 0 ;
8648 int res1 = 0 ;
8649 void *argp2 = 0 ;
8650 int res2 = 0 ;
8651 PyObject * obj0 = 0 ;
8652 PyObject * obj1 = 0 ;
8653 char * kwnames[] = {
8654 (char *) "self",(char *) "bitmap", NULL
8655 };
8656
8657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8659 if (!SWIG_IsOK(res1)) {
8660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8661 }
8662 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8664 if (!SWIG_IsOK(res2)) {
8665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8666 }
8667 if (!argp2) {
8668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8669 }
8670 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8671 {
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 resultobj = SWIG_Py_Void();
8678 return resultobj;
8679 fail:
8680 return NULL;
8681 }
8682
8683
8684 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8685 PyObject *resultobj = 0;
8686 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8687 wxIcon *arg2 = 0 ;
8688 void *argp1 = 0 ;
8689 int res1 = 0 ;
8690 void *argp2 = 0 ;
8691 int res2 = 0 ;
8692 PyObject * obj0 = 0 ;
8693 PyObject * obj1 = 0 ;
8694 char * kwnames[] = {
8695 (char *) "self",(char *) "icon", NULL
8696 };
8697
8698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8700 if (!SWIG_IsOK(res1)) {
8701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8702 }
8703 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8705 if (!SWIG_IsOK(res2)) {
8706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8707 }
8708 if (!argp2) {
8709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8710 }
8711 arg2 = reinterpret_cast< wxIcon * >(argp2);
8712 {
8713 PyThreadState* __tstate = wxPyBeginAllowThreads();
8714 (arg1)->SetIcon((wxIcon const &)*arg2);
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 resultobj = SWIG_Py_Void();
8719 return resultobj;
8720 fail:
8721 return NULL;
8722 }
8723
8724
8725 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj = 0;
8727 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8728 SwigValueWrapper<wxVisualAttributes > result;
8729 int val1 ;
8730 int ecode1 = 0 ;
8731 PyObject * obj0 = 0 ;
8732 char * kwnames[] = {
8733 (char *) "variant", NULL
8734 };
8735
8736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8737 if (obj0) {
8738 ecode1 = SWIG_AsVal_int(obj0, &val1);
8739 if (!SWIG_IsOK(ecode1)) {
8740 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8741 }
8742 arg1 = static_cast< wxWindowVariant >(val1);
8743 }
8744 {
8745 if (!wxPyCheckForApp()) SWIG_fail;
8746 PyThreadState* __tstate = wxPyBeginAllowThreads();
8747 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8752 return resultobj;
8753 fail:
8754 return NULL;
8755 }
8756
8757
8758 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8759 PyObject *obj;
8760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8761 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8762 return SWIG_Py_Void();
8763 }
8764
8765 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8766 return SWIG_Python_InitShadowInstance(args);
8767 }
8768
8769 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8770 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8771 return 1;
8772 }
8773
8774
8775 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8776 PyObject *pyobj = 0;
8777
8778 {
8779 #if wxUSE_UNICODE
8780 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8781 #else
8782 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8783 #endif
8784 }
8785 return pyobj;
8786 }
8787
8788
8789 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8790 PyObject *resultobj = 0;
8791 wxWindow *arg1 = (wxWindow *) 0 ;
8792 int arg2 = (int) -1 ;
8793 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8794 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8795 wxSize const &arg4_defvalue = wxDefaultSize ;
8796 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8797 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8798 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8799 long arg6 = (long) 0 ;
8800 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8801 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8802 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8803 wxString *arg8 = (wxString *) &arg8_defvalue ;
8804 wxListBox *result = 0 ;
8805 void *argp1 = 0 ;
8806 int res1 = 0 ;
8807 int val2 ;
8808 int ecode2 = 0 ;
8809 wxPoint temp3 ;
8810 wxSize temp4 ;
8811 bool temp5 = false ;
8812 long val6 ;
8813 int ecode6 = 0 ;
8814 void *argp7 = 0 ;
8815 int res7 = 0 ;
8816 bool temp8 = false ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 PyObject * obj2 = 0 ;
8820 PyObject * obj3 = 0 ;
8821 PyObject * obj4 = 0 ;
8822 PyObject * obj5 = 0 ;
8823 PyObject * obj6 = 0 ;
8824 PyObject * obj7 = 0 ;
8825 char * kwnames[] = {
8826 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8827 };
8828
8829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8833 }
8834 arg1 = reinterpret_cast< wxWindow * >(argp1);
8835 if (obj1) {
8836 ecode2 = SWIG_AsVal_int(obj1, &val2);
8837 if (!SWIG_IsOK(ecode2)) {
8838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8839 }
8840 arg2 = static_cast< int >(val2);
8841 }
8842 if (obj2) {
8843 {
8844 arg3 = &temp3;
8845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8846 }
8847 }
8848 if (obj3) {
8849 {
8850 arg4 = &temp4;
8851 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8852 }
8853 }
8854 if (obj4) {
8855 {
8856 if (! PySequence_Check(obj4)) {
8857 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8858 SWIG_fail;
8859 }
8860 arg5 = new wxArrayString;
8861 temp5 = true;
8862 int i, len=PySequence_Length(obj4);
8863 for (i=0; i<len; i++) {
8864 PyObject* item = PySequence_GetItem(obj4, i);
8865 wxString* s = wxString_in_helper(item);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 arg5->Add(*s);
8868 delete s;
8869 Py_DECREF(item);
8870 }
8871 }
8872 }
8873 if (obj5) {
8874 ecode6 = SWIG_AsVal_long(obj5, &val6);
8875 if (!SWIG_IsOK(ecode6)) {
8876 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8877 }
8878 arg6 = static_cast< long >(val6);
8879 }
8880 if (obj6) {
8881 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8882 if (!SWIG_IsOK(res7)) {
8883 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8884 }
8885 if (!argp7) {
8886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8887 }
8888 arg7 = reinterpret_cast< wxValidator * >(argp7);
8889 }
8890 if (obj7) {
8891 {
8892 arg8 = wxString_in_helper(obj7);
8893 if (arg8 == NULL) SWIG_fail;
8894 temp8 = true;
8895 }
8896 }
8897 {
8898 if (!wxPyCheckForApp()) SWIG_fail;
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8905 {
8906 if (temp5) delete arg5;
8907 }
8908 {
8909 if (temp8)
8910 delete arg8;
8911 }
8912 return resultobj;
8913 fail:
8914 {
8915 if (temp5) delete arg5;
8916 }
8917 {
8918 if (temp8)
8919 delete arg8;
8920 }
8921 return NULL;
8922 }
8923
8924
8925 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8926 PyObject *resultobj = 0;
8927 wxListBox *result = 0 ;
8928
8929 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8930 {
8931 if (!wxPyCheckForApp()) SWIG_fail;
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 result = (wxListBox *)new wxListBox();
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj = 0;
8946 wxListBox *arg1 = (wxListBox *) 0 ;
8947 wxWindow *arg2 = (wxWindow *) 0 ;
8948 int arg3 = (int) -1 ;
8949 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8950 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8951 wxSize const &arg5_defvalue = wxDefaultSize ;
8952 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8953 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8954 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8955 long arg7 = (long) 0 ;
8956 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8957 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8958 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8959 wxString *arg9 = (wxString *) &arg9_defvalue ;
8960 bool result;
8961 void *argp1 = 0 ;
8962 int res1 = 0 ;
8963 void *argp2 = 0 ;
8964 int res2 = 0 ;
8965 int val3 ;
8966 int ecode3 = 0 ;
8967 wxPoint temp4 ;
8968 wxSize temp5 ;
8969 bool temp6 = false ;
8970 long val7 ;
8971 int ecode7 = 0 ;
8972 void *argp8 = 0 ;
8973 int res8 = 0 ;
8974 bool temp9 = false ;
8975 PyObject * obj0 = 0 ;
8976 PyObject * obj1 = 0 ;
8977 PyObject * obj2 = 0 ;
8978 PyObject * obj3 = 0 ;
8979 PyObject * obj4 = 0 ;
8980 PyObject * obj5 = 0 ;
8981 PyObject * obj6 = 0 ;
8982 PyObject * obj7 = 0 ;
8983 PyObject * obj8 = 0 ;
8984 char * kwnames[] = {
8985 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8986 };
8987
8988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8990 if (!SWIG_IsOK(res1)) {
8991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8992 }
8993 arg1 = reinterpret_cast< wxListBox * >(argp1);
8994 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8995 if (!SWIG_IsOK(res2)) {
8996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8997 }
8998 arg2 = reinterpret_cast< wxWindow * >(argp2);
8999 if (obj2) {
9000 ecode3 = SWIG_AsVal_int(obj2, &val3);
9001 if (!SWIG_IsOK(ecode3)) {
9002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9003 }
9004 arg3 = static_cast< int >(val3);
9005 }
9006 if (obj3) {
9007 {
9008 arg4 = &temp4;
9009 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9010 }
9011 }
9012 if (obj4) {
9013 {
9014 arg5 = &temp5;
9015 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9016 }
9017 }
9018 if (obj5) {
9019 {
9020 if (! PySequence_Check(obj5)) {
9021 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9022 SWIG_fail;
9023 }
9024 arg6 = new wxArrayString;
9025 temp6 = true;
9026 int i, len=PySequence_Length(obj5);
9027 for (i=0; i<len; i++) {
9028 PyObject* item = PySequence_GetItem(obj5, i);
9029 wxString* s = wxString_in_helper(item);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 arg6->Add(*s);
9032 delete s;
9033 Py_DECREF(item);
9034 }
9035 }
9036 }
9037 if (obj6) {
9038 ecode7 = SWIG_AsVal_long(obj6, &val7);
9039 if (!SWIG_IsOK(ecode7)) {
9040 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9041 }
9042 arg7 = static_cast< long >(val7);
9043 }
9044 if (obj7) {
9045 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9046 if (!SWIG_IsOK(res8)) {
9047 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9048 }
9049 if (!argp8) {
9050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9051 }
9052 arg8 = reinterpret_cast< wxValidator * >(argp8);
9053 }
9054 if (obj8) {
9055 {
9056 arg9 = wxString_in_helper(obj8);
9057 if (arg9 == NULL) SWIG_fail;
9058 temp9 = true;
9059 }
9060 }
9061 {
9062 PyThreadState* __tstate = wxPyBeginAllowThreads();
9063 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 {
9068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9069 }
9070 {
9071 if (temp6) delete arg6;
9072 }
9073 {
9074 if (temp9)
9075 delete arg9;
9076 }
9077 return resultobj;
9078 fail:
9079 {
9080 if (temp6) delete arg6;
9081 }
9082 {
9083 if (temp9)
9084 delete arg9;
9085 }
9086 return NULL;
9087 }
9088
9089
9090 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj = 0;
9092 wxListBox *arg1 = (wxListBox *) 0 ;
9093 wxString *arg2 = 0 ;
9094 int arg3 ;
9095 PyObject *arg4 = (PyObject *) NULL ;
9096 void *argp1 = 0 ;
9097 int res1 = 0 ;
9098 bool temp2 = false ;
9099 int val3 ;
9100 int ecode3 = 0 ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 PyObject * obj2 = 0 ;
9104 PyObject * obj3 = 0 ;
9105 char * kwnames[] = {
9106 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9107 };
9108
9109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9111 if (!SWIG_IsOK(res1)) {
9112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9113 }
9114 arg1 = reinterpret_cast< wxListBox * >(argp1);
9115 {
9116 arg2 = wxString_in_helper(obj1);
9117 if (arg2 == NULL) SWIG_fail;
9118 temp2 = true;
9119 }
9120 ecode3 = SWIG_AsVal_int(obj2, &val3);
9121 if (!SWIG_IsOK(ecode3)) {
9122 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9123 }
9124 arg3 = static_cast< int >(val3);
9125 if (obj3) {
9126 arg4 = obj3;
9127 }
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 resultobj = SWIG_Py_Void();
9135 {
9136 if (temp2)
9137 delete arg2;
9138 }
9139 return resultobj;
9140 fail:
9141 {
9142 if (temp2)
9143 delete arg2;
9144 }
9145 return NULL;
9146 }
9147
9148
9149 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9150 PyObject *resultobj = 0;
9151 wxListBox *arg1 = (wxListBox *) 0 ;
9152 wxArrayString *arg2 = 0 ;
9153 unsigned int arg3 ;
9154 void *argp1 = 0 ;
9155 int res1 = 0 ;
9156 bool temp2 = false ;
9157 unsigned int val3 ;
9158 int ecode3 = 0 ;
9159 PyObject * obj0 = 0 ;
9160 PyObject * obj1 = 0 ;
9161 PyObject * obj2 = 0 ;
9162 char * kwnames[] = {
9163 (char *) "self",(char *) "items",(char *) "pos", NULL
9164 };
9165
9166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9168 if (!SWIG_IsOK(res1)) {
9169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9170 }
9171 arg1 = reinterpret_cast< wxListBox * >(argp1);
9172 {
9173 if (! PySequence_Check(obj1)) {
9174 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9175 SWIG_fail;
9176 }
9177 arg2 = new wxArrayString;
9178 temp2 = true;
9179 int i, len=PySequence_Length(obj1);
9180 for (i=0; i<len; i++) {
9181 PyObject* item = PySequence_GetItem(obj1, i);
9182 wxString* s = wxString_in_helper(item);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 arg2->Add(*s);
9185 delete s;
9186 Py_DECREF(item);
9187 }
9188 }
9189 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9190 if (!SWIG_IsOK(ecode3)) {
9191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9192 }
9193 arg3 = static_cast< unsigned int >(val3);
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 resultobj = SWIG_Py_Void();
9201 {
9202 if (temp2) delete arg2;
9203 }
9204 return resultobj;
9205 fail:
9206 {
9207 if (temp2) delete arg2;
9208 }
9209 return NULL;
9210 }
9211
9212
9213 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj = 0;
9215 wxListBox *arg1 = (wxListBox *) 0 ;
9216 wxArrayString *arg2 = 0 ;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 bool temp2 = false ;
9220 PyObject * obj0 = 0 ;
9221 PyObject * obj1 = 0 ;
9222 char * kwnames[] = {
9223 (char *) "self",(char *) "items", NULL
9224 };
9225
9226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9228 if (!SWIG_IsOK(res1)) {
9229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9230 }
9231 arg1 = reinterpret_cast< wxListBox * >(argp1);
9232 {
9233 if (! PySequence_Check(obj1)) {
9234 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9235 SWIG_fail;
9236 }
9237 arg2 = new wxArrayString;
9238 temp2 = true;
9239 int i, len=PySequence_Length(obj1);
9240 for (i=0; i<len; i++) {
9241 PyObject* item = PySequence_GetItem(obj1, i);
9242 wxString* s = wxString_in_helper(item);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 arg2->Add(*s);
9245 delete s;
9246 Py_DECREF(item);
9247 }
9248 }
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 (arg1)->Set((wxArrayString const &)*arg2);
9252 wxPyEndAllowThreads(__tstate);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 }
9255 resultobj = SWIG_Py_Void();
9256 {
9257 if (temp2) delete arg2;
9258 }
9259 return resultobj;
9260 fail:
9261 {
9262 if (temp2) delete arg2;
9263 }
9264 return NULL;
9265 }
9266
9267
9268 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj = 0;
9270 wxListBox *arg1 = (wxListBox *) 0 ;
9271 int arg2 ;
9272 bool result;
9273 void *argp1 = 0 ;
9274 int res1 = 0 ;
9275 int val2 ;
9276 int ecode2 = 0 ;
9277 PyObject * obj0 = 0 ;
9278 PyObject * obj1 = 0 ;
9279 char * kwnames[] = {
9280 (char *) "self",(char *) "n", NULL
9281 };
9282
9283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9285 if (!SWIG_IsOK(res1)) {
9286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9287 }
9288 arg1 = reinterpret_cast< wxListBox * >(argp1);
9289 ecode2 = SWIG_AsVal_int(obj1, &val2);
9290 if (!SWIG_IsOK(ecode2)) {
9291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9292 }
9293 arg2 = static_cast< int >(val2);
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 {
9301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9302 }
9303 return resultobj;
9304 fail:
9305 return NULL;
9306 }
9307
9308
9309 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9310 PyObject *resultobj = 0;
9311 wxListBox *arg1 = (wxListBox *) 0 ;
9312 int arg2 ;
9313 bool arg3 = (bool) true ;
9314 void *argp1 = 0 ;
9315 int res1 = 0 ;
9316 int val2 ;
9317 int ecode2 = 0 ;
9318 bool val3 ;
9319 int ecode3 = 0 ;
9320 PyObject * obj0 = 0 ;
9321 PyObject * obj1 = 0 ;
9322 PyObject * obj2 = 0 ;
9323 char * kwnames[] = {
9324 (char *) "self",(char *) "n",(char *) "select", NULL
9325 };
9326
9327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9329 if (!SWIG_IsOK(res1)) {
9330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9331 }
9332 arg1 = reinterpret_cast< wxListBox * >(argp1);
9333 ecode2 = SWIG_AsVal_int(obj1, &val2);
9334 if (!SWIG_IsOK(ecode2)) {
9335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9336 }
9337 arg2 = static_cast< int >(val2);
9338 if (obj2) {
9339 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9340 if (!SWIG_IsOK(ecode3)) {
9341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9342 }
9343 arg3 = static_cast< bool >(val3);
9344 }
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 (arg1)->SetSelection(arg2,arg3);
9348 wxPyEndAllowThreads(__tstate);
9349 if (PyErr_Occurred()) SWIG_fail;
9350 }
9351 resultobj = SWIG_Py_Void();
9352 return resultobj;
9353 fail:
9354 return NULL;
9355 }
9356
9357
9358 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9359 PyObject *resultobj = 0;
9360 wxListBox *arg1 = (wxListBox *) 0 ;
9361 int arg2 ;
9362 void *argp1 = 0 ;
9363 int res1 = 0 ;
9364 int val2 ;
9365 int ecode2 = 0 ;
9366 PyObject * obj0 = 0 ;
9367 PyObject * obj1 = 0 ;
9368 char * kwnames[] = {
9369 (char *) "self",(char *) "n", NULL
9370 };
9371
9372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9374 if (!SWIG_IsOK(res1)) {
9375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9376 }
9377 arg1 = reinterpret_cast< wxListBox * >(argp1);
9378 ecode2 = SWIG_AsVal_int(obj1, &val2);
9379 if (!SWIG_IsOK(ecode2)) {
9380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9381 }
9382 arg2 = static_cast< int >(val2);
9383 {
9384 PyThreadState* __tstate = wxPyBeginAllowThreads();
9385 (arg1)->Select(arg2);
9386 wxPyEndAllowThreads(__tstate);
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 resultobj = SWIG_Py_Void();
9390 return resultobj;
9391 fail:
9392 return NULL;
9393 }
9394
9395
9396 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9397 PyObject *resultobj = 0;
9398 wxListBox *arg1 = (wxListBox *) 0 ;
9399 int arg2 ;
9400 void *argp1 = 0 ;
9401 int res1 = 0 ;
9402 int val2 ;
9403 int ecode2 = 0 ;
9404 PyObject * obj0 = 0 ;
9405 PyObject * obj1 = 0 ;
9406 char * kwnames[] = {
9407 (char *) "self",(char *) "n", NULL
9408 };
9409
9410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9412 if (!SWIG_IsOK(res1)) {
9413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9414 }
9415 arg1 = reinterpret_cast< wxListBox * >(argp1);
9416 ecode2 = SWIG_AsVal_int(obj1, &val2);
9417 if (!SWIG_IsOK(ecode2)) {
9418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9419 }
9420 arg2 = static_cast< int >(val2);
9421 {
9422 PyThreadState* __tstate = wxPyBeginAllowThreads();
9423 (arg1)->Deselect(arg2);
9424 wxPyEndAllowThreads(__tstate);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 }
9427 resultobj = SWIG_Py_Void();
9428 return resultobj;
9429 fail:
9430 return NULL;
9431 }
9432
9433
9434 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9435 PyObject *resultobj = 0;
9436 wxListBox *arg1 = (wxListBox *) 0 ;
9437 int arg2 = (int) -1 ;
9438 void *argp1 = 0 ;
9439 int res1 = 0 ;
9440 int val2 ;
9441 int ecode2 = 0 ;
9442 PyObject * obj0 = 0 ;
9443 PyObject * obj1 = 0 ;
9444 char * kwnames[] = {
9445 (char *) "self",(char *) "itemToLeaveSelected", NULL
9446 };
9447
9448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9450 if (!SWIG_IsOK(res1)) {
9451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9452 }
9453 arg1 = reinterpret_cast< wxListBox * >(argp1);
9454 if (obj1) {
9455 ecode2 = SWIG_AsVal_int(obj1, &val2);
9456 if (!SWIG_IsOK(ecode2)) {
9457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9458 }
9459 arg2 = static_cast< int >(val2);
9460 }
9461 {
9462 PyThreadState* __tstate = wxPyBeginAllowThreads();
9463 (arg1)->DeselectAll(arg2);
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 resultobj = SWIG_Py_Void();
9468 return resultobj;
9469 fail:
9470 return NULL;
9471 }
9472
9473
9474 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9475 PyObject *resultobj = 0;
9476 wxListBox *arg1 = (wxListBox *) 0 ;
9477 wxString *arg2 = 0 ;
9478 bool arg3 = (bool) true ;
9479 bool result;
9480 void *argp1 = 0 ;
9481 int res1 = 0 ;
9482 bool temp2 = false ;
9483 bool val3 ;
9484 int ecode3 = 0 ;
9485 PyObject * obj0 = 0 ;
9486 PyObject * obj1 = 0 ;
9487 PyObject * obj2 = 0 ;
9488 char * kwnames[] = {
9489 (char *) "self",(char *) "s",(char *) "select", NULL
9490 };
9491
9492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9494 if (!SWIG_IsOK(res1)) {
9495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9496 }
9497 arg1 = reinterpret_cast< wxListBox * >(argp1);
9498 {
9499 arg2 = wxString_in_helper(obj1);
9500 if (arg2 == NULL) SWIG_fail;
9501 temp2 = true;
9502 }
9503 if (obj2) {
9504 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9505 if (!SWIG_IsOK(ecode3)) {
9506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9507 }
9508 arg3 = static_cast< bool >(val3);
9509 }
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 {
9517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9518 }
9519 {
9520 if (temp2)
9521 delete arg2;
9522 }
9523 return resultobj;
9524 fail:
9525 {
9526 if (temp2)
9527 delete arg2;
9528 }
9529 return NULL;
9530 }
9531
9532
9533 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9534 PyObject *resultobj = 0;
9535 wxListBox *arg1 = (wxListBox *) 0 ;
9536 PyObject *result = 0 ;
9537 void *argp1 = 0 ;
9538 int res1 = 0 ;
9539 PyObject *swig_obj[1] ;
9540
9541 if (!args) SWIG_fail;
9542 swig_obj[0] = args;
9543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9544 if (!SWIG_IsOK(res1)) {
9545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9546 }
9547 arg1 = reinterpret_cast< wxListBox * >(argp1);
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 result = (PyObject *)wxListBox_GetSelections(arg1);
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 }
9554 resultobj = result;
9555 return resultobj;
9556 fail:
9557 return NULL;
9558 }
9559
9560
9561 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj = 0;
9563 wxListBox *arg1 = (wxListBox *) 0 ;
9564 int arg2 ;
9565 void *argp1 = 0 ;
9566 int res1 = 0 ;
9567 int val2 ;
9568 int ecode2 = 0 ;
9569 PyObject * obj0 = 0 ;
9570 PyObject * obj1 = 0 ;
9571 char * kwnames[] = {
9572 (char *) "self",(char *) "n", NULL
9573 };
9574
9575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9577 if (!SWIG_IsOK(res1)) {
9578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9579 }
9580 arg1 = reinterpret_cast< wxListBox * >(argp1);
9581 ecode2 = SWIG_AsVal_int(obj1, &val2);
9582 if (!SWIG_IsOK(ecode2)) {
9583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9584 }
9585 arg2 = static_cast< int >(val2);
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 (arg1)->SetFirstItem(arg2);
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_Py_Void();
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj = 0;
9601 wxListBox *arg1 = (wxListBox *) 0 ;
9602 wxString *arg2 = 0 ;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 bool temp2 = false ;
9606 PyObject * obj0 = 0 ;
9607 PyObject * obj1 = 0 ;
9608 char * kwnames[] = {
9609 (char *) "self",(char *) "s", NULL
9610 };
9611
9612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9614 if (!SWIG_IsOK(res1)) {
9615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9616 }
9617 arg1 = reinterpret_cast< wxListBox * >(argp1);
9618 {
9619 arg2 = wxString_in_helper(obj1);
9620 if (arg2 == NULL) SWIG_fail;
9621 temp2 = true;
9622 }
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 (arg1)->SetFirstItem((wxString const &)*arg2);
9626 wxPyEndAllowThreads(__tstate);
9627 if (PyErr_Occurred()) SWIG_fail;
9628 }
9629 resultobj = SWIG_Py_Void();
9630 {
9631 if (temp2)
9632 delete arg2;
9633 }
9634 return resultobj;
9635 fail:
9636 {
9637 if (temp2)
9638 delete arg2;
9639 }
9640 return NULL;
9641 }
9642
9643
9644 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj = 0;
9646 wxListBox *arg1 = (wxListBox *) 0 ;
9647 int arg2 ;
9648 void *argp1 = 0 ;
9649 int res1 = 0 ;
9650 int val2 ;
9651 int ecode2 = 0 ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 char * kwnames[] = {
9655 (char *) "self",(char *) "n", NULL
9656 };
9657
9658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9660 if (!SWIG_IsOK(res1)) {
9661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9662 }
9663 arg1 = reinterpret_cast< wxListBox * >(argp1);
9664 ecode2 = SWIG_AsVal_int(obj1, &val2);
9665 if (!SWIG_IsOK(ecode2)) {
9666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9667 }
9668 arg2 = static_cast< int >(val2);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 (arg1)->EnsureVisible(arg2);
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 resultobj = SWIG_Py_Void();
9676 return resultobj;
9677 fail:
9678 return NULL;
9679 }
9680
9681
9682 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9683 PyObject *resultobj = 0;
9684 wxListBox *arg1 = (wxListBox *) 0 ;
9685 wxString *arg2 = 0 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 bool temp2 = false ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char * kwnames[] = {
9692 (char *) "self",(char *) "s", NULL
9693 };
9694
9695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9697 if (!SWIG_IsOK(res1)) {
9698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9699 }
9700 arg1 = reinterpret_cast< wxListBox * >(argp1);
9701 {
9702 arg2 = wxString_in_helper(obj1);
9703 if (arg2 == NULL) SWIG_fail;
9704 temp2 = true;
9705 }
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_Py_Void();
9713 {
9714 if (temp2)
9715 delete arg2;
9716 }
9717 return resultobj;
9718 fail:
9719 {
9720 if (temp2)
9721 delete arg2;
9722 }
9723 return NULL;
9724 }
9725
9726
9727 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9728 PyObject *resultobj = 0;
9729 wxListBox *arg1 = (wxListBox *) 0 ;
9730 bool result;
9731 void *argp1 = 0 ;
9732 int res1 = 0 ;
9733 PyObject *swig_obj[1] ;
9734
9735 if (!args) SWIG_fail;
9736 swig_obj[0] = args;
9737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9738 if (!SWIG_IsOK(res1)) {
9739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9740 }
9741 arg1 = reinterpret_cast< wxListBox * >(argp1);
9742 {
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 result = (bool)((wxListBox const *)arg1)->IsSorted();
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 {
9749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9750 }
9751 return resultobj;
9752 fail:
9753 return NULL;
9754 }
9755
9756
9757 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9758 PyObject *resultobj = 0;
9759 wxListBox *arg1 = (wxListBox *) 0 ;
9760 wxPoint *arg2 = 0 ;
9761 int result;
9762 void *argp1 = 0 ;
9763 int res1 = 0 ;
9764 wxPoint temp2 ;
9765 PyObject * obj0 = 0 ;
9766 PyObject * obj1 = 0 ;
9767 char * kwnames[] = {
9768 (char *) "self",(char *) "pt", NULL
9769 };
9770
9771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9773 if (!SWIG_IsOK(res1)) {
9774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9775 }
9776 arg1 = reinterpret_cast< wxListBox * >(argp1);
9777 {
9778 arg2 = &temp2;
9779 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9780 }
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_From_int(static_cast< int >(result));
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj = 0;
9796 wxListBox *arg1 = (wxListBox *) 0 ;
9797 int arg2 ;
9798 wxColour *arg3 = 0 ;
9799 void *argp1 = 0 ;
9800 int res1 = 0 ;
9801 int val2 ;
9802 int ecode2 = 0 ;
9803 wxColour temp3 ;
9804 PyObject * obj0 = 0 ;
9805 PyObject * obj1 = 0 ;
9806 PyObject * obj2 = 0 ;
9807 char * kwnames[] = {
9808 (char *) "self",(char *) "item",(char *) "c", NULL
9809 };
9810
9811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9813 if (!SWIG_IsOK(res1)) {
9814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9815 }
9816 arg1 = reinterpret_cast< wxListBox * >(argp1);
9817 ecode2 = SWIG_AsVal_int(obj1, &val2);
9818 if (!SWIG_IsOK(ecode2)) {
9819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9820 }
9821 arg2 = static_cast< int >(val2);
9822 {
9823 arg3 = &temp3;
9824 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9825 }
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9829 wxPyEndAllowThreads(__tstate);
9830 if (PyErr_Occurred()) SWIG_fail;
9831 }
9832 resultobj = SWIG_Py_Void();
9833 return resultobj;
9834 fail:
9835 return NULL;
9836 }
9837
9838
9839 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9840 PyObject *resultobj = 0;
9841 wxListBox *arg1 = (wxListBox *) 0 ;
9842 int arg2 ;
9843 wxColour *arg3 = 0 ;
9844 void *argp1 = 0 ;
9845 int res1 = 0 ;
9846 int val2 ;
9847 int ecode2 = 0 ;
9848 wxColour temp3 ;
9849 PyObject * obj0 = 0 ;
9850 PyObject * obj1 = 0 ;
9851 PyObject * obj2 = 0 ;
9852 char * kwnames[] = {
9853 (char *) "self",(char *) "item",(char *) "c", NULL
9854 };
9855
9856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9858 if (!SWIG_IsOK(res1)) {
9859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9860 }
9861 arg1 = reinterpret_cast< wxListBox * >(argp1);
9862 ecode2 = SWIG_AsVal_int(obj1, &val2);
9863 if (!SWIG_IsOK(ecode2)) {
9864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9865 }
9866 arg2 = static_cast< int >(val2);
9867 {
9868 arg3 = &temp3;
9869 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9870 }
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 resultobj = SWIG_Py_Void();
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9885 PyObject *resultobj = 0;
9886 wxListBox *arg1 = (wxListBox *) 0 ;
9887 int arg2 ;
9888 wxFont *arg3 = 0 ;
9889 void *argp1 = 0 ;
9890 int res1 = 0 ;
9891 int val2 ;
9892 int ecode2 = 0 ;
9893 void *argp3 = 0 ;
9894 int res3 = 0 ;
9895 PyObject * obj0 = 0 ;
9896 PyObject * obj1 = 0 ;
9897 PyObject * obj2 = 0 ;
9898 char * kwnames[] = {
9899 (char *) "self",(char *) "item",(char *) "f", NULL
9900 };
9901
9902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9904 if (!SWIG_IsOK(res1)) {
9905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9906 }
9907 arg1 = reinterpret_cast< wxListBox * >(argp1);
9908 ecode2 = SWIG_AsVal_int(obj1, &val2);
9909 if (!SWIG_IsOK(ecode2)) {
9910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9911 }
9912 arg2 = static_cast< int >(val2);
9913 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9914 if (!SWIG_IsOK(res3)) {
9915 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9916 }
9917 if (!argp3) {
9918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9919 }
9920 arg3 = reinterpret_cast< wxFont * >(argp3);
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_Py_Void();
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj = 0;
9936 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9937 SwigValueWrapper<wxVisualAttributes > result;
9938 int val1 ;
9939 int ecode1 = 0 ;
9940 PyObject * obj0 = 0 ;
9941 char * kwnames[] = {
9942 (char *) "variant", NULL
9943 };
9944
9945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9946 if (obj0) {
9947 ecode1 = SWIG_AsVal_int(obj0, &val1);
9948 if (!SWIG_IsOK(ecode1)) {
9949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9950 }
9951 arg1 = static_cast< wxWindowVariant >(val1);
9952 }
9953 {
9954 if (!wxPyCheckForApp()) SWIG_fail;
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 result = wxListBox::GetClassDefaultAttributes(arg1);
9957 wxPyEndAllowThreads(__tstate);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 }
9960 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9961 return resultobj;
9962 fail:
9963 return NULL;
9964 }
9965
9966
9967 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9968 PyObject *obj;
9969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9970 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9971 return SWIG_Py_Void();
9972 }
9973
9974 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9975 return SWIG_Python_InitShadowInstance(args);
9976 }
9977
9978 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9979 PyObject *resultobj = 0;
9980 wxWindow *arg1 = (wxWindow *) 0 ;
9981 int arg2 = (int) -1 ;
9982 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9983 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9984 wxSize const &arg4_defvalue = wxDefaultSize ;
9985 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9986 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9987 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9988 long arg6 = (long) 0 ;
9989 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9990 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9991 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9992 wxString *arg8 = (wxString *) &arg8_defvalue ;
9993 wxCheckListBox *result = 0 ;
9994 void *argp1 = 0 ;
9995 int res1 = 0 ;
9996 int val2 ;
9997 int ecode2 = 0 ;
9998 wxPoint temp3 ;
9999 wxSize temp4 ;
10000 bool temp5 = false ;
10001 long val6 ;
10002 int ecode6 = 0 ;
10003 void *argp7 = 0 ;
10004 int res7 = 0 ;
10005 bool temp8 = false ;
10006 PyObject * obj0 = 0 ;
10007 PyObject * obj1 = 0 ;
10008 PyObject * obj2 = 0 ;
10009 PyObject * obj3 = 0 ;
10010 PyObject * obj4 = 0 ;
10011 PyObject * obj5 = 0 ;
10012 PyObject * obj6 = 0 ;
10013 PyObject * obj7 = 0 ;
10014 char * kwnames[] = {
10015 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10016 };
10017
10018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10020 if (!SWIG_IsOK(res1)) {
10021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10022 }
10023 arg1 = reinterpret_cast< wxWindow * >(argp1);
10024 if (obj1) {
10025 ecode2 = SWIG_AsVal_int(obj1, &val2);
10026 if (!SWIG_IsOK(ecode2)) {
10027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10028 }
10029 arg2 = static_cast< int >(val2);
10030 }
10031 if (obj2) {
10032 {
10033 arg3 = &temp3;
10034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10035 }
10036 }
10037 if (obj3) {
10038 {
10039 arg4 = &temp4;
10040 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10041 }
10042 }
10043 if (obj4) {
10044 {
10045 if (! PySequence_Check(obj4)) {
10046 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10047 SWIG_fail;
10048 }
10049 arg5 = new wxArrayString;
10050 temp5 = true;
10051 int i, len=PySequence_Length(obj4);
10052 for (i=0; i<len; i++) {
10053 PyObject* item = PySequence_GetItem(obj4, i);
10054 wxString* s = wxString_in_helper(item);
10055 if (PyErr_Occurred()) SWIG_fail;
10056 arg5->Add(*s);
10057 delete s;
10058 Py_DECREF(item);
10059 }
10060 }
10061 }
10062 if (obj5) {
10063 ecode6 = SWIG_AsVal_long(obj5, &val6);
10064 if (!SWIG_IsOK(ecode6)) {
10065 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10066 }
10067 arg6 = static_cast< long >(val6);
10068 }
10069 if (obj6) {
10070 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10071 if (!SWIG_IsOK(res7)) {
10072 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10073 }
10074 if (!argp7) {
10075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10076 }
10077 arg7 = reinterpret_cast< wxValidator * >(argp7);
10078 }
10079 if (obj7) {
10080 {
10081 arg8 = wxString_in_helper(obj7);
10082 if (arg8 == NULL) SWIG_fail;
10083 temp8 = true;
10084 }
10085 }
10086 {
10087 if (!wxPyCheckForApp()) SWIG_fail;
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
10089 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10094 {
10095 if (temp5) delete arg5;
10096 }
10097 {
10098 if (temp8)
10099 delete arg8;
10100 }
10101 return resultobj;
10102 fail:
10103 {
10104 if (temp5) delete arg5;
10105 }
10106 {
10107 if (temp8)
10108 delete arg8;
10109 }
10110 return NULL;
10111 }
10112
10113
10114 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10115 PyObject *resultobj = 0;
10116 wxCheckListBox *result = 0 ;
10117
10118 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10119 {
10120 if (!wxPyCheckForApp()) SWIG_fail;
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 result = (wxCheckListBox *)new wxCheckListBox();
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10127 return resultobj;
10128 fail:
10129 return NULL;
10130 }
10131
10132
10133 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj = 0;
10135 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10136 wxWindow *arg2 = (wxWindow *) 0 ;
10137 int arg3 = (int) -1 ;
10138 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10139 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10140 wxSize const &arg5_defvalue = wxDefaultSize ;
10141 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10142 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10143 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10144 long arg7 = (long) 0 ;
10145 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10146 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10147 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10148 wxString *arg9 = (wxString *) &arg9_defvalue ;
10149 bool result;
10150 void *argp1 = 0 ;
10151 int res1 = 0 ;
10152 void *argp2 = 0 ;
10153 int res2 = 0 ;
10154 int val3 ;
10155 int ecode3 = 0 ;
10156 wxPoint temp4 ;
10157 wxSize temp5 ;
10158 bool temp6 = false ;
10159 long val7 ;
10160 int ecode7 = 0 ;
10161 void *argp8 = 0 ;
10162 int res8 = 0 ;
10163 bool temp9 = false ;
10164 PyObject * obj0 = 0 ;
10165 PyObject * obj1 = 0 ;
10166 PyObject * obj2 = 0 ;
10167 PyObject * obj3 = 0 ;
10168 PyObject * obj4 = 0 ;
10169 PyObject * obj5 = 0 ;
10170 PyObject * obj6 = 0 ;
10171 PyObject * obj7 = 0 ;
10172 PyObject * obj8 = 0 ;
10173 char * kwnames[] = {
10174 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10175 };
10176
10177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10179 if (!SWIG_IsOK(res1)) {
10180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10181 }
10182 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10183 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10184 if (!SWIG_IsOK(res2)) {
10185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10186 }
10187 arg2 = reinterpret_cast< wxWindow * >(argp2);
10188 if (obj2) {
10189 ecode3 = SWIG_AsVal_int(obj2, &val3);
10190 if (!SWIG_IsOK(ecode3)) {
10191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10192 }
10193 arg3 = static_cast< int >(val3);
10194 }
10195 if (obj3) {
10196 {
10197 arg4 = &temp4;
10198 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10199 }
10200 }
10201 if (obj4) {
10202 {
10203 arg5 = &temp5;
10204 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10205 }
10206 }
10207 if (obj5) {
10208 {
10209 if (! PySequence_Check(obj5)) {
10210 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10211 SWIG_fail;
10212 }
10213 arg6 = new wxArrayString;
10214 temp6 = true;
10215 int i, len=PySequence_Length(obj5);
10216 for (i=0; i<len; i++) {
10217 PyObject* item = PySequence_GetItem(obj5, i);
10218 wxString* s = wxString_in_helper(item);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 arg6->Add(*s);
10221 delete s;
10222 Py_DECREF(item);
10223 }
10224 }
10225 }
10226 if (obj6) {
10227 ecode7 = SWIG_AsVal_long(obj6, &val7);
10228 if (!SWIG_IsOK(ecode7)) {
10229 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10230 }
10231 arg7 = static_cast< long >(val7);
10232 }
10233 if (obj7) {
10234 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10235 if (!SWIG_IsOK(res8)) {
10236 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10237 }
10238 if (!argp8) {
10239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10240 }
10241 arg8 = reinterpret_cast< wxValidator * >(argp8);
10242 }
10243 if (obj8) {
10244 {
10245 arg9 = wxString_in_helper(obj8);
10246 if (arg9 == NULL) SWIG_fail;
10247 temp9 = true;
10248 }
10249 }
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 {
10257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10258 }
10259 {
10260 if (temp6) delete arg6;
10261 }
10262 {
10263 if (temp9)
10264 delete arg9;
10265 }
10266 return resultobj;
10267 fail:
10268 {
10269 if (temp6) delete arg6;
10270 }
10271 {
10272 if (temp9)
10273 delete arg9;
10274 }
10275 return NULL;
10276 }
10277
10278
10279 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10282 unsigned int arg2 ;
10283 bool result;
10284 void *argp1 = 0 ;
10285 int res1 = 0 ;
10286 unsigned int val2 ;
10287 int ecode2 = 0 ;
10288 PyObject * obj0 = 0 ;
10289 PyObject * obj1 = 0 ;
10290 char * kwnames[] = {
10291 (char *) "self",(char *) "index", NULL
10292 };
10293
10294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10296 if (!SWIG_IsOK(res1)) {
10297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10298 }
10299 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10300 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10301 if (!SWIG_IsOK(ecode2)) {
10302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10303 }
10304 arg2 = static_cast< unsigned int >(val2);
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (bool)(arg1)->IsChecked(arg2);
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 {
10312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10313 }
10314 return resultobj;
10315 fail:
10316 return NULL;
10317 }
10318
10319
10320 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj = 0;
10322 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10323 unsigned int arg2 ;
10324 int arg3 = (int) true ;
10325 void *argp1 = 0 ;
10326 int res1 = 0 ;
10327 unsigned int val2 ;
10328 int ecode2 = 0 ;
10329 int val3 ;
10330 int ecode3 = 0 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333 PyObject * obj2 = 0 ;
10334 char * kwnames[] = {
10335 (char *) "self",(char *) "index",(char *) "check", NULL
10336 };
10337
10338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10340 if (!SWIG_IsOK(res1)) {
10341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10342 }
10343 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10344 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10345 if (!SWIG_IsOK(ecode2)) {
10346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10347 }
10348 arg2 = static_cast< unsigned int >(val2);
10349 if (obj2) {
10350 ecode3 = SWIG_AsVal_int(obj2, &val3);
10351 if (!SWIG_IsOK(ecode3)) {
10352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10353 }
10354 arg3 = static_cast< int >(val3);
10355 }
10356 {
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
10358 (arg1)->Check(arg2,arg3);
10359 wxPyEndAllowThreads(__tstate);
10360 if (PyErr_Occurred()) SWIG_fail;
10361 }
10362 resultobj = SWIG_Py_Void();
10363 return resultobj;
10364 fail:
10365 return NULL;
10366 }
10367
10368
10369 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10370 PyObject *resultobj = 0;
10371 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10372 int result;
10373 void *argp1 = 0 ;
10374 int res1 = 0 ;
10375 PyObject *swig_obj[1] ;
10376
10377 if (!args) SWIG_fail;
10378 swig_obj[0] = args;
10379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10380 if (!SWIG_IsOK(res1)) {
10381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10382 }
10383 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10384 {
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 result = (int)(arg1)->GetItemHeight();
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = SWIG_From_int(static_cast< int >(result));
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10398 PyObject *obj;
10399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10400 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10401 return SWIG_Py_Void();
10402 }
10403
10404 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10405 return SWIG_Python_InitShadowInstance(args);
10406 }
10407
10408 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10409 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10410 return 1;
10411 }
10412
10413
10414 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10415 PyObject *pyobj = 0;
10416
10417 {
10418 #if wxUSE_UNICODE
10419 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10420 #else
10421 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10422 #endif
10423 }
10424 return pyobj;
10425 }
10426
10427
10428 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj = 0;
10430 wxColour const &arg1_defvalue = wxNullColour ;
10431 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10432 wxColour const &arg2_defvalue = wxNullColour ;
10433 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10434 wxFont const &arg3_defvalue = wxNullFont ;
10435 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10436 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10437 wxTextAttr *result = 0 ;
10438 wxColour temp1 ;
10439 wxColour temp2 ;
10440 void *argp3 = 0 ;
10441 int res3 = 0 ;
10442 int val4 ;
10443 int ecode4 = 0 ;
10444 PyObject * obj0 = 0 ;
10445 PyObject * obj1 = 0 ;
10446 PyObject * obj2 = 0 ;
10447 PyObject * obj3 = 0 ;
10448 char * kwnames[] = {
10449 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10450 };
10451
10452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10453 if (obj0) {
10454 {
10455 arg1 = &temp1;
10456 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10457 }
10458 }
10459 if (obj1) {
10460 {
10461 arg2 = &temp2;
10462 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10463 }
10464 }
10465 if (obj2) {
10466 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10467 if (!SWIG_IsOK(res3)) {
10468 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10469 }
10470 if (!argp3) {
10471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10472 }
10473 arg3 = reinterpret_cast< wxFont * >(argp3);
10474 }
10475 if (obj3) {
10476 ecode4 = SWIG_AsVal_int(obj3, &val4);
10477 if (!SWIG_IsOK(ecode4)) {
10478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10479 }
10480 arg4 = static_cast< wxTextAttrAlignment >(val4);
10481 }
10482 {
10483 PyThreadState* __tstate = wxPyBeginAllowThreads();
10484 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10485 wxPyEndAllowThreads(__tstate);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10489 return resultobj;
10490 fail:
10491 return NULL;
10492 }
10493
10494
10495 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10496 PyObject *resultobj = 0;
10497 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10498 void *argp1 = 0 ;
10499 int res1 = 0 ;
10500 PyObject *swig_obj[1] ;
10501
10502 if (!args) SWIG_fail;
10503 swig_obj[0] = args;
10504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10505 if (!SWIG_IsOK(res1)) {
10506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10507 }
10508 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10509 {
10510 PyThreadState* __tstate = wxPyBeginAllowThreads();
10511 delete arg1;
10512
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 resultobj = SWIG_Py_Void();
10517 return resultobj;
10518 fail:
10519 return NULL;
10520 }
10521
10522
10523 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10524 PyObject *resultobj = 0;
10525 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10526 void *argp1 = 0 ;
10527 int res1 = 0 ;
10528 PyObject *swig_obj[1] ;
10529
10530 if (!args) SWIG_fail;
10531 swig_obj[0] = args;
10532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10533 if (!SWIG_IsOK(res1)) {
10534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10535 }
10536 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10537 {
10538 PyThreadState* __tstate = wxPyBeginAllowThreads();
10539 (arg1)->Init();
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 resultobj = SWIG_Py_Void();
10544 return resultobj;
10545 fail:
10546 return NULL;
10547 }
10548
10549
10550 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10551 PyObject *resultobj = 0;
10552 wxTextAttr *arg1 = 0 ;
10553 wxTextAttr *arg2 = 0 ;
10554 wxTextAttr result;
10555 void *argp1 = 0 ;
10556 int res1 = 0 ;
10557 void *argp2 = 0 ;
10558 int res2 = 0 ;
10559 PyObject * obj0 = 0 ;
10560 PyObject * obj1 = 0 ;
10561 char * kwnames[] = {
10562 (char *) "base",(char *) "overlay", NULL
10563 };
10564
10565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10567 if (!SWIG_IsOK(res1)) {
10568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10569 }
10570 if (!argp1) {
10571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10572 }
10573 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10575 if (!SWIG_IsOK(res2)) {
10576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10577 }
10578 if (!argp2) {
10579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10580 }
10581 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10589 return resultobj;
10590 fail:
10591 return NULL;
10592 }
10593
10594
10595 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj = 0;
10597 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10598 wxColour *arg2 = 0 ;
10599 void *argp1 = 0 ;
10600 int res1 = 0 ;
10601 wxColour temp2 ;
10602 PyObject * obj0 = 0 ;
10603 PyObject * obj1 = 0 ;
10604 char * kwnames[] = {
10605 (char *) "self",(char *) "colText", NULL
10606 };
10607
10608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10610 if (!SWIG_IsOK(res1)) {
10611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10612 }
10613 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10614 {
10615 arg2 = &temp2;
10616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10617 }
10618 {
10619 PyThreadState* __tstate = wxPyBeginAllowThreads();
10620 (arg1)->SetTextColour((wxColour const &)*arg2);
10621 wxPyEndAllowThreads(__tstate);
10622 if (PyErr_Occurred()) SWIG_fail;
10623 }
10624 resultobj = SWIG_Py_Void();
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj = 0;
10633 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10634 wxColour *arg2 = 0 ;
10635 void *argp1 = 0 ;
10636 int res1 = 0 ;
10637 wxColour temp2 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char * kwnames[] = {
10641 (char *) "self",(char *) "colBack", NULL
10642 };
10643
10644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10646 if (!SWIG_IsOK(res1)) {
10647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10648 }
10649 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10650 {
10651 arg2 = &temp2;
10652 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_Py_Void();
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10670 wxFont *arg2 = 0 ;
10671 long arg3 = (long) wxTEXT_ATTR_FONT ;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 void *argp2 = 0 ;
10675 int res2 = 0 ;
10676 long val3 ;
10677 int ecode3 = 0 ;
10678 PyObject * obj0 = 0 ;
10679 PyObject * obj1 = 0 ;
10680 PyObject * obj2 = 0 ;
10681 char * kwnames[] = {
10682 (char *) "self",(char *) "font",(char *) "flags", NULL
10683 };
10684
10685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10687 if (!SWIG_IsOK(res1)) {
10688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10689 }
10690 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10692 if (!SWIG_IsOK(res2)) {
10693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10694 }
10695 if (!argp2) {
10696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10697 }
10698 arg2 = reinterpret_cast< wxFont * >(argp2);
10699 if (obj2) {
10700 ecode3 = SWIG_AsVal_long(obj2, &val3);
10701 if (!SWIG_IsOK(ecode3)) {
10702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10703 }
10704 arg3 = static_cast< long >(val3);
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 resultobj = SWIG_Py_Void();
10713 return resultobj;
10714 fail:
10715 return NULL;
10716 }
10717
10718
10719 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj = 0;
10721 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10722 wxTextAttrAlignment arg2 ;
10723 void *argp1 = 0 ;
10724 int res1 = 0 ;
10725 int val2 ;
10726 int ecode2 = 0 ;
10727 PyObject * obj0 = 0 ;
10728 PyObject * obj1 = 0 ;
10729 char * kwnames[] = {
10730 (char *) "self",(char *) "alignment", NULL
10731 };
10732
10733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10735 if (!SWIG_IsOK(res1)) {
10736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10737 }
10738 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10739 ecode2 = SWIG_AsVal_int(obj1, &val2);
10740 if (!SWIG_IsOK(ecode2)) {
10741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10742 }
10743 arg2 = static_cast< wxTextAttrAlignment >(val2);
10744 {
10745 PyThreadState* __tstate = wxPyBeginAllowThreads();
10746 (arg1)->SetAlignment(arg2);
10747 wxPyEndAllowThreads(__tstate);
10748 if (PyErr_Occurred()) SWIG_fail;
10749 }
10750 resultobj = SWIG_Py_Void();
10751 return resultobj;
10752 fail:
10753 return NULL;
10754 }
10755
10756
10757 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10758 PyObject *resultobj = 0;
10759 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10760 wxArrayInt *arg2 = 0 ;
10761 void *argp1 = 0 ;
10762 int res1 = 0 ;
10763 bool temp2 = false ;
10764 PyObject * obj0 = 0 ;
10765 PyObject * obj1 = 0 ;
10766 char * kwnames[] = {
10767 (char *) "self",(char *) "tabs", NULL
10768 };
10769
10770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",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_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10774 }
10775 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10776 {
10777 if (! PySequence_Check(obj1)) {
10778 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10779 SWIG_fail;
10780 }
10781 arg2 = new wxArrayInt;
10782 temp2 = true;
10783 int i, len=PySequence_Length(obj1);
10784 for (i=0; i<len; i++) {
10785 PyObject* item = PySequence_GetItem(obj1, i);
10786 PyObject* number = PyNumber_Int(item);
10787 arg2->Add(PyInt_AS_LONG(number));
10788 Py_DECREF(item);
10789 Py_DECREF(number);
10790 }
10791 }
10792 {
10793 PyThreadState* __tstate = wxPyBeginAllowThreads();
10794 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10795 wxPyEndAllowThreads(__tstate);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 }
10798 resultobj = SWIG_Py_Void();
10799 {
10800 if (temp2) delete arg2;
10801 }
10802 return resultobj;
10803 fail:
10804 {
10805 if (temp2) delete arg2;
10806 }
10807 return NULL;
10808 }
10809
10810
10811 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10812 PyObject *resultobj = 0;
10813 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10814 int arg2 ;
10815 int arg3 = (int) 0 ;
10816 void *argp1 = 0 ;
10817 int res1 = 0 ;
10818 int val2 ;
10819 int ecode2 = 0 ;
10820 int val3 ;
10821 int ecode3 = 0 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 PyObject * obj2 = 0 ;
10825 char * kwnames[] = {
10826 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10827 };
10828
10829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10831 if (!SWIG_IsOK(res1)) {
10832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10833 }
10834 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10835 ecode2 = SWIG_AsVal_int(obj1, &val2);
10836 if (!SWIG_IsOK(ecode2)) {
10837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10838 }
10839 arg2 = static_cast< int >(val2);
10840 if (obj2) {
10841 ecode3 = SWIG_AsVal_int(obj2, &val3);
10842 if (!SWIG_IsOK(ecode3)) {
10843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10844 }
10845 arg3 = static_cast< int >(val3);
10846 }
10847 {
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 (arg1)->SetLeftIndent(arg2,arg3);
10850 wxPyEndAllowThreads(__tstate);
10851 if (PyErr_Occurred()) SWIG_fail;
10852 }
10853 resultobj = SWIG_Py_Void();
10854 return resultobj;
10855 fail:
10856 return NULL;
10857 }
10858
10859
10860 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10861 PyObject *resultobj = 0;
10862 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10863 int arg2 ;
10864 void *argp1 = 0 ;
10865 int res1 = 0 ;
10866 int val2 ;
10867 int ecode2 = 0 ;
10868 PyObject * obj0 = 0 ;
10869 PyObject * obj1 = 0 ;
10870 char * kwnames[] = {
10871 (char *) "self",(char *) "indent", NULL
10872 };
10873
10874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10876 if (!SWIG_IsOK(res1)) {
10877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10878 }
10879 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10880 ecode2 = SWIG_AsVal_int(obj1, &val2);
10881 if (!SWIG_IsOK(ecode2)) {
10882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10883 }
10884 arg2 = static_cast< int >(val2);
10885 {
10886 PyThreadState* __tstate = wxPyBeginAllowThreads();
10887 (arg1)->SetRightIndent(arg2);
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 resultobj = SWIG_Py_Void();
10892 return resultobj;
10893 fail:
10894 return NULL;
10895 }
10896
10897
10898 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10899 PyObject *resultobj = 0;
10900 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10901 long arg2 ;
10902 void *argp1 = 0 ;
10903 int res1 = 0 ;
10904 long val2 ;
10905 int ecode2 = 0 ;
10906 PyObject * obj0 = 0 ;
10907 PyObject * obj1 = 0 ;
10908 char * kwnames[] = {
10909 (char *) "self",(char *) "flags", NULL
10910 };
10911
10912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10914 if (!SWIG_IsOK(res1)) {
10915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10916 }
10917 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10918 ecode2 = SWIG_AsVal_long(obj1, &val2);
10919 if (!SWIG_IsOK(ecode2)) {
10920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10921 }
10922 arg2 = static_cast< long >(val2);
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 (arg1)->SetFlags(arg2);
10926 wxPyEndAllowThreads(__tstate);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 resultobj = SWIG_Py_Void();
10930 return resultobj;
10931 fail:
10932 return NULL;
10933 }
10934
10935
10936 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10937 PyObject *resultobj = 0;
10938 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10939 bool result;
10940 void *argp1 = 0 ;
10941 int res1 = 0 ;
10942 PyObject *swig_obj[1] ;
10943
10944 if (!args) SWIG_fail;
10945 swig_obj[0] = args;
10946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10947 if (!SWIG_IsOK(res1)) {
10948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10949 }
10950 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10951 {
10952 PyThreadState* __tstate = wxPyBeginAllowThreads();
10953 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10954 wxPyEndAllowThreads(__tstate);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 }
10957 {
10958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10959 }
10960 return resultobj;
10961 fail:
10962 return NULL;
10963 }
10964
10965
10966 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10967 PyObject *resultobj = 0;
10968 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10969 bool result;
10970 void *argp1 = 0 ;
10971 int res1 = 0 ;
10972 PyObject *swig_obj[1] ;
10973
10974 if (!args) SWIG_fail;
10975 swig_obj[0] = args;
10976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10979 }
10980 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 {
10988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10989 }
10990 return resultobj;
10991 fail:
10992 return NULL;
10993 }
10994
10995
10996 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10997 PyObject *resultobj = 0;
10998 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10999 bool result;
11000 void *argp1 = 0 ;
11001 int res1 = 0 ;
11002 PyObject *swig_obj[1] ;
11003
11004 if (!args) SWIG_fail;
11005 swig_obj[0] = args;
11006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11007 if (!SWIG_IsOK(res1)) {
11008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11009 }
11010 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11011 {
11012 PyThreadState* __tstate = wxPyBeginAllowThreads();
11013 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11014 wxPyEndAllowThreads(__tstate);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 {
11018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11019 }
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11027 PyObject *resultobj = 0;
11028 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11029 bool result;
11030 void *argp1 = 0 ;
11031 int res1 = 0 ;
11032 PyObject *swig_obj[1] ;
11033
11034 if (!args) SWIG_fail;
11035 swig_obj[0] = args;
11036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11037 if (!SWIG_IsOK(res1)) {
11038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11039 }
11040 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 {
11048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11049 }
11050 return resultobj;
11051 fail:
11052 return NULL;
11053 }
11054
11055
11056 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11057 PyObject *resultobj = 0;
11058 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11059 bool result;
11060 void *argp1 = 0 ;
11061 int res1 = 0 ;
11062 PyObject *swig_obj[1] ;
11063
11064 if (!args) SWIG_fail;
11065 swig_obj[0] = args;
11066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11069 }
11070 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11079 }
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11087 PyObject *resultobj = 0;
11088 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11089 bool result;
11090 void *argp1 = 0 ;
11091 int res1 = 0 ;
11092 PyObject *swig_obj[1] ;
11093
11094 if (!args) SWIG_fail;
11095 swig_obj[0] = args;
11096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11097 if (!SWIG_IsOK(res1)) {
11098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11099 }
11100 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11101 {
11102 PyThreadState* __tstate = wxPyBeginAllowThreads();
11103 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11109 }
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117 PyObject *resultobj = 0;
11118 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11119 bool result;
11120 void *argp1 = 0 ;
11121 int res1 = 0 ;
11122 PyObject *swig_obj[1] ;
11123
11124 if (!args) SWIG_fail;
11125 swig_obj[0] = args;
11126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11129 }
11130 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 }
11137 {
11138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11139 }
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj = 0;
11148 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11149 long arg2 ;
11150 bool result;
11151 void *argp1 = 0 ;
11152 int res1 = 0 ;
11153 long val2 ;
11154 int ecode2 = 0 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char * kwnames[] = {
11158 (char *) "self",(char *) "flag", NULL
11159 };
11160
11161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11163 if (!SWIG_IsOK(res1)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11165 }
11166 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11167 ecode2 = SWIG_AsVal_long(obj1, &val2);
11168 if (!SWIG_IsOK(ecode2)) {
11169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11170 }
11171 arg2 = static_cast< long >(val2);
11172 {
11173 PyThreadState* __tstate = wxPyBeginAllowThreads();
11174 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 {
11179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11180 }
11181 return resultobj;
11182 fail:
11183 return NULL;
11184 }
11185
11186
11187 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11188 PyObject *resultobj = 0;
11189 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11190 wxColour *result = 0 ;
11191 void *argp1 = 0 ;
11192 int res1 = 0 ;
11193 PyObject *swig_obj[1] ;
11194
11195 if (!args) SWIG_fail;
11196 swig_obj[0] = args;
11197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11198 if (!SWIG_IsOK(res1)) {
11199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11200 }
11201 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11202 {
11203 PyThreadState* __tstate = wxPyBeginAllowThreads();
11204 {
11205 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11206 result = (wxColour *) &_result_ref;
11207 }
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11212 return resultobj;
11213 fail:
11214 return NULL;
11215 }
11216
11217
11218 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11219 PyObject *resultobj = 0;
11220 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11221 wxColour *result = 0 ;
11222 void *argp1 = 0 ;
11223 int res1 = 0 ;
11224 PyObject *swig_obj[1] ;
11225
11226 if (!args) SWIG_fail;
11227 swig_obj[0] = args;
11228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11229 if (!SWIG_IsOK(res1)) {
11230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11231 }
11232 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 {
11236 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11237 result = (wxColour *) &_result_ref;
11238 }
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11243 return resultobj;
11244 fail:
11245 return NULL;
11246 }
11247
11248
11249 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11250 PyObject *resultobj = 0;
11251 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11252 wxFont *result = 0 ;
11253 void *argp1 = 0 ;
11254 int res1 = 0 ;
11255 PyObject *swig_obj[1] ;
11256
11257 if (!args) SWIG_fail;
11258 swig_obj[0] = args;
11259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11260 if (!SWIG_IsOK(res1)) {
11261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11262 }
11263 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 {
11267 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11268 result = (wxFont *) &_result_ref;
11269 }
11270 wxPyEndAllowThreads(__tstate);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 {
11274 wxFont* resultptr = new wxFont(*result);
11275 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11276 }
11277 return resultobj;
11278 fail:
11279 return NULL;
11280 }
11281
11282
11283 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11284 PyObject *resultobj = 0;
11285 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11286 wxTextAttrAlignment result;
11287 void *argp1 = 0 ;
11288 int res1 = 0 ;
11289 PyObject *swig_obj[1] ;
11290
11291 if (!args) SWIG_fail;
11292 swig_obj[0] = args;
11293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11294 if (!SWIG_IsOK(res1)) {
11295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11296 }
11297 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11298 {
11299 PyThreadState* __tstate = wxPyBeginAllowThreads();
11300 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11301 wxPyEndAllowThreads(__tstate);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 }
11304 resultobj = SWIG_From_int(static_cast< int >(result));
11305 return resultobj;
11306 fail:
11307 return NULL;
11308 }
11309
11310
11311 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11312 PyObject *resultobj = 0;
11313 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11314 wxArrayInt *result = 0 ;
11315 void *argp1 = 0 ;
11316 int res1 = 0 ;
11317 PyObject *swig_obj[1] ;
11318
11319 if (!args) SWIG_fail;
11320 swig_obj[0] = args;
11321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11322 if (!SWIG_IsOK(res1)) {
11323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11324 }
11325 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11326 {
11327 PyThreadState* __tstate = wxPyBeginAllowThreads();
11328 {
11329 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11330 result = (wxArrayInt *) &_result_ref;
11331 }
11332 wxPyEndAllowThreads(__tstate);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 }
11335 {
11336 resultobj = PyList_New(0);
11337 size_t idx;
11338 for (idx = 0; idx < result->GetCount(); idx += 1) {
11339 PyObject* val = PyInt_FromLong( result->Item(idx) );
11340 PyList_Append(resultobj, val);
11341 Py_DECREF(val);
11342 }
11343 }
11344 return resultobj;
11345 fail:
11346 return NULL;
11347 }
11348
11349
11350 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11351 PyObject *resultobj = 0;
11352 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11353 long result;
11354 void *argp1 = 0 ;
11355 int res1 = 0 ;
11356 PyObject *swig_obj[1] ;
11357
11358 if (!args) SWIG_fail;
11359 swig_obj[0] = args;
11360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11361 if (!SWIG_IsOK(res1)) {
11362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11363 }
11364 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 resultobj = SWIG_From_long(static_cast< long >(result));
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11379 PyObject *resultobj = 0;
11380 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11381 long result;
11382 void *argp1 = 0 ;
11383 int res1 = 0 ;
11384 PyObject *swig_obj[1] ;
11385
11386 if (!args) SWIG_fail;
11387 swig_obj[0] = args;
11388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11389 if (!SWIG_IsOK(res1)) {
11390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11391 }
11392 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 resultobj = SWIG_From_long(static_cast< long >(result));
11400 return resultobj;
11401 fail:
11402 return NULL;
11403 }
11404
11405
11406 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11407 PyObject *resultobj = 0;
11408 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11409 long result;
11410 void *argp1 = 0 ;
11411 int res1 = 0 ;
11412 PyObject *swig_obj[1] ;
11413
11414 if (!args) SWIG_fail;
11415 swig_obj[0] = args;
11416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11417 if (!SWIG_IsOK(res1)) {
11418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11419 }
11420 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11421 {
11422 PyThreadState* __tstate = wxPyBeginAllowThreads();
11423 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 resultobj = SWIG_From_long(static_cast< long >(result));
11428 return resultobj;
11429 fail:
11430 return NULL;
11431 }
11432
11433
11434 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11435 PyObject *resultobj = 0;
11436 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11437 long result;
11438 void *argp1 = 0 ;
11439 int res1 = 0 ;
11440 PyObject *swig_obj[1] ;
11441
11442 if (!args) SWIG_fail;
11443 swig_obj[0] = args;
11444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11445 if (!SWIG_IsOK(res1)) {
11446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11447 }
11448 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11449 {
11450 PyThreadState* __tstate = wxPyBeginAllowThreads();
11451 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11452 wxPyEndAllowThreads(__tstate);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 }
11455 resultobj = SWIG_From_long(static_cast< long >(result));
11456 return resultobj;
11457 fail:
11458 return NULL;
11459 }
11460
11461
11462 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11463 PyObject *resultobj = 0;
11464 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11465 bool result;
11466 void *argp1 = 0 ;
11467 int res1 = 0 ;
11468 PyObject *swig_obj[1] ;
11469
11470 if (!args) SWIG_fail;
11471 swig_obj[0] = args;
11472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11473 if (!SWIG_IsOK(res1)) {
11474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11475 }
11476 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11480 wxPyEndAllowThreads(__tstate);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 {
11484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11485 }
11486 return resultobj;
11487 fail:
11488 return NULL;
11489 }
11490
11491
11492 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11493 PyObject *resultobj = 0;
11494 wxTextAttr *arg1 = 0 ;
11495 wxTextAttr *arg2 = 0 ;
11496 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11497 wxTextAttr result;
11498 void *argp1 = 0 ;
11499 int res1 = 0 ;
11500 void *argp2 = 0 ;
11501 int res2 = 0 ;
11502 void *argp3 = 0 ;
11503 int res3 = 0 ;
11504 PyObject * obj0 = 0 ;
11505 PyObject * obj1 = 0 ;
11506 PyObject * obj2 = 0 ;
11507 char * kwnames[] = {
11508 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11509 };
11510
11511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11512 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11513 if (!SWIG_IsOK(res1)) {
11514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11515 }
11516 if (!argp1) {
11517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11518 }
11519 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11521 if (!SWIG_IsOK(res2)) {
11522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11523 }
11524 if (!argp2) {
11525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11526 }
11527 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11528 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11529 if (!SWIG_IsOK(res3)) {
11530 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11531 }
11532 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11540 return resultobj;
11541 fail:
11542 return NULL;
11543 }
11544
11545
11546 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11547 PyObject *obj;
11548 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11549 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11550 return SWIG_Py_Void();
11551 }
11552
11553 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11554 return SWIG_Python_InitShadowInstance(args);
11555 }
11556
11557 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11558 PyObject *resultobj = 0;
11559 wxWindow *arg1 = (wxWindow *) 0 ;
11560 int arg2 = (int) -1 ;
11561 wxString const &arg3_defvalue = wxPyEmptyString ;
11562 wxString *arg3 = (wxString *) &arg3_defvalue ;
11563 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11564 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11565 wxSize const &arg5_defvalue = wxDefaultSize ;
11566 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11567 long arg6 = (long) 0 ;
11568 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11569 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11570 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11571 wxString *arg8 = (wxString *) &arg8_defvalue ;
11572 wxTextCtrl *result = 0 ;
11573 void *argp1 = 0 ;
11574 int res1 = 0 ;
11575 int val2 ;
11576 int ecode2 = 0 ;
11577 bool temp3 = false ;
11578 wxPoint temp4 ;
11579 wxSize temp5 ;
11580 long val6 ;
11581 int ecode6 = 0 ;
11582 void *argp7 = 0 ;
11583 int res7 = 0 ;
11584 bool temp8 = false ;
11585 PyObject * obj0 = 0 ;
11586 PyObject * obj1 = 0 ;
11587 PyObject * obj2 = 0 ;
11588 PyObject * obj3 = 0 ;
11589 PyObject * obj4 = 0 ;
11590 PyObject * obj5 = 0 ;
11591 PyObject * obj6 = 0 ;
11592 PyObject * obj7 = 0 ;
11593 char * kwnames[] = {
11594 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11595 };
11596
11597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11599 if (!SWIG_IsOK(res1)) {
11600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11601 }
11602 arg1 = reinterpret_cast< wxWindow * >(argp1);
11603 if (obj1) {
11604 ecode2 = SWIG_AsVal_int(obj1, &val2);
11605 if (!SWIG_IsOK(ecode2)) {
11606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11607 }
11608 arg2 = static_cast< int >(val2);
11609 }
11610 if (obj2) {
11611 {
11612 arg3 = wxString_in_helper(obj2);
11613 if (arg3 == NULL) SWIG_fail;
11614 temp3 = true;
11615 }
11616 }
11617 if (obj3) {
11618 {
11619 arg4 = &temp4;
11620 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11621 }
11622 }
11623 if (obj4) {
11624 {
11625 arg5 = &temp5;
11626 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11627 }
11628 }
11629 if (obj5) {
11630 ecode6 = SWIG_AsVal_long(obj5, &val6);
11631 if (!SWIG_IsOK(ecode6)) {
11632 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11633 }
11634 arg6 = static_cast< long >(val6);
11635 }
11636 if (obj6) {
11637 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11638 if (!SWIG_IsOK(res7)) {
11639 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11640 }
11641 if (!argp7) {
11642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11643 }
11644 arg7 = reinterpret_cast< wxValidator * >(argp7);
11645 }
11646 if (obj7) {
11647 {
11648 arg8 = wxString_in_helper(obj7);
11649 if (arg8 == NULL) SWIG_fail;
11650 temp8 = true;
11651 }
11652 }
11653 {
11654 if (!wxPyCheckForApp()) SWIG_fail;
11655 PyThreadState* __tstate = wxPyBeginAllowThreads();
11656 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11661 {
11662 if (temp3)
11663 delete arg3;
11664 }
11665 {
11666 if (temp8)
11667 delete arg8;
11668 }
11669 return resultobj;
11670 fail:
11671 {
11672 if (temp3)
11673 delete arg3;
11674 }
11675 {
11676 if (temp8)
11677 delete arg8;
11678 }
11679 return NULL;
11680 }
11681
11682
11683 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684 PyObject *resultobj = 0;
11685 wxTextCtrl *result = 0 ;
11686
11687 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11688 {
11689 if (!wxPyCheckForApp()) SWIG_fail;
11690 PyThreadState* __tstate = wxPyBeginAllowThreads();
11691 result = (wxTextCtrl *)new wxTextCtrl();
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11696 return resultobj;
11697 fail:
11698 return NULL;
11699 }
11700
11701
11702 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj = 0;
11704 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11705 wxWindow *arg2 = (wxWindow *) 0 ;
11706 int arg3 = (int) -1 ;
11707 wxString const &arg4_defvalue = wxPyEmptyString ;
11708 wxString *arg4 = (wxString *) &arg4_defvalue ;
11709 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11710 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11711 wxSize const &arg6_defvalue = wxDefaultSize ;
11712 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11713 long arg7 = (long) 0 ;
11714 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11715 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11716 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11717 wxString *arg9 = (wxString *) &arg9_defvalue ;
11718 bool result;
11719 void *argp1 = 0 ;
11720 int res1 = 0 ;
11721 void *argp2 = 0 ;
11722 int res2 = 0 ;
11723 int val3 ;
11724 int ecode3 = 0 ;
11725 bool temp4 = false ;
11726 wxPoint temp5 ;
11727 wxSize temp6 ;
11728 long val7 ;
11729 int ecode7 = 0 ;
11730 void *argp8 = 0 ;
11731 int res8 = 0 ;
11732 bool temp9 = false ;
11733 PyObject * obj0 = 0 ;
11734 PyObject * obj1 = 0 ;
11735 PyObject * obj2 = 0 ;
11736 PyObject * obj3 = 0 ;
11737 PyObject * obj4 = 0 ;
11738 PyObject * obj5 = 0 ;
11739 PyObject * obj6 = 0 ;
11740 PyObject * obj7 = 0 ;
11741 PyObject * obj8 = 0 ;
11742 char * kwnames[] = {
11743 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11744 };
11745
11746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11748 if (!SWIG_IsOK(res1)) {
11749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11750 }
11751 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11752 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11753 if (!SWIG_IsOK(res2)) {
11754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11755 }
11756 arg2 = reinterpret_cast< wxWindow * >(argp2);
11757 if (obj2) {
11758 ecode3 = SWIG_AsVal_int(obj2, &val3);
11759 if (!SWIG_IsOK(ecode3)) {
11760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11761 }
11762 arg3 = static_cast< int >(val3);
11763 }
11764 if (obj3) {
11765 {
11766 arg4 = wxString_in_helper(obj3);
11767 if (arg4 == NULL) SWIG_fail;
11768 temp4 = true;
11769 }
11770 }
11771 if (obj4) {
11772 {
11773 arg5 = &temp5;
11774 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11775 }
11776 }
11777 if (obj5) {
11778 {
11779 arg6 = &temp6;
11780 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11781 }
11782 }
11783 if (obj6) {
11784 ecode7 = SWIG_AsVal_long(obj6, &val7);
11785 if (!SWIG_IsOK(ecode7)) {
11786 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11787 }
11788 arg7 = static_cast< long >(val7);
11789 }
11790 if (obj7) {
11791 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11792 if (!SWIG_IsOK(res8)) {
11793 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11794 }
11795 if (!argp8) {
11796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11797 }
11798 arg8 = reinterpret_cast< wxValidator * >(argp8);
11799 }
11800 if (obj8) {
11801 {
11802 arg9 = wxString_in_helper(obj8);
11803 if (arg9 == NULL) SWIG_fail;
11804 temp9 = true;
11805 }
11806 }
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 {
11814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11815 }
11816 {
11817 if (temp4)
11818 delete arg4;
11819 }
11820 {
11821 if (temp9)
11822 delete arg9;
11823 }
11824 return resultobj;
11825 fail:
11826 {
11827 if (temp4)
11828 delete arg4;
11829 }
11830 {
11831 if (temp9)
11832 delete arg9;
11833 }
11834 return NULL;
11835 }
11836
11837
11838 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11839 PyObject *resultobj = 0;
11840 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11841 wxString result;
11842 void *argp1 = 0 ;
11843 int res1 = 0 ;
11844 PyObject *swig_obj[1] ;
11845
11846 if (!args) SWIG_fail;
11847 swig_obj[0] = args;
11848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11849 if (!SWIG_IsOK(res1)) {
11850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11851 }
11852 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11853 {
11854 PyThreadState* __tstate = wxPyBeginAllowThreads();
11855 result = ((wxTextCtrl const *)arg1)->GetValue();
11856 wxPyEndAllowThreads(__tstate);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 }
11859 {
11860 #if wxUSE_UNICODE
11861 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11862 #else
11863 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11864 #endif
11865 }
11866 return resultobj;
11867 fail:
11868 return NULL;
11869 }
11870
11871
11872 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11873 PyObject *resultobj = 0;
11874 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11875 wxString *arg2 = 0 ;
11876 void *argp1 = 0 ;
11877 int res1 = 0 ;
11878 bool temp2 = false ;
11879 PyObject * obj0 = 0 ;
11880 PyObject * obj1 = 0 ;
11881 char * kwnames[] = {
11882 (char *) "self",(char *) "value", NULL
11883 };
11884
11885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11887 if (!SWIG_IsOK(res1)) {
11888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11889 }
11890 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11891 {
11892 arg2 = wxString_in_helper(obj1);
11893 if (arg2 == NULL) SWIG_fail;
11894 temp2 = true;
11895 }
11896 {
11897 PyThreadState* __tstate = wxPyBeginAllowThreads();
11898 (arg1)->SetValue((wxString const &)*arg2);
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 }
11902 resultobj = SWIG_Py_Void();
11903 {
11904 if (temp2)
11905 delete arg2;
11906 }
11907 return resultobj;
11908 fail:
11909 {
11910 if (temp2)
11911 delete arg2;
11912 }
11913 return NULL;
11914 }
11915
11916
11917 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11918 PyObject *resultobj = 0;
11919 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11920 long arg2 ;
11921 long arg3 ;
11922 wxString result;
11923 void *argp1 = 0 ;
11924 int res1 = 0 ;
11925 long val2 ;
11926 int ecode2 = 0 ;
11927 long val3 ;
11928 int ecode3 = 0 ;
11929 PyObject * obj0 = 0 ;
11930 PyObject * obj1 = 0 ;
11931 PyObject * obj2 = 0 ;
11932 char * kwnames[] = {
11933 (char *) "self",(char *) "from",(char *) "to", NULL
11934 };
11935
11936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11938 if (!SWIG_IsOK(res1)) {
11939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11940 }
11941 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11942 ecode2 = SWIG_AsVal_long(obj1, &val2);
11943 if (!SWIG_IsOK(ecode2)) {
11944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11945 }
11946 arg2 = static_cast< long >(val2);
11947 ecode3 = SWIG_AsVal_long(obj2, &val3);
11948 if (!SWIG_IsOK(ecode3)) {
11949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11950 }
11951 arg3 = static_cast< long >(val3);
11952 {
11953 PyThreadState* __tstate = wxPyBeginAllowThreads();
11954 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11955 wxPyEndAllowThreads(__tstate);
11956 if (PyErr_Occurred()) SWIG_fail;
11957 }
11958 {
11959 #if wxUSE_UNICODE
11960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11961 #else
11962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11963 #endif
11964 }
11965 return resultobj;
11966 fail:
11967 return NULL;
11968 }
11969
11970
11971 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11972 PyObject *resultobj = 0;
11973 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11974 long arg2 ;
11975 int result;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 long val2 ;
11979 int ecode2 = 0 ;
11980 PyObject * obj0 = 0 ;
11981 PyObject * obj1 = 0 ;
11982 char * kwnames[] = {
11983 (char *) "self",(char *) "lineNo", NULL
11984 };
11985
11986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11990 }
11991 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11992 ecode2 = SWIG_AsVal_long(obj1, &val2);
11993 if (!SWIG_IsOK(ecode2)) {
11994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11995 }
11996 arg2 = static_cast< long >(val2);
11997 {
11998 PyThreadState* __tstate = wxPyBeginAllowThreads();
11999 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12000 wxPyEndAllowThreads(__tstate);
12001 if (PyErr_Occurred()) SWIG_fail;
12002 }
12003 resultobj = SWIG_From_int(static_cast< int >(result));
12004 return resultobj;
12005 fail:
12006 return NULL;
12007 }
12008
12009
12010 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12011 PyObject *resultobj = 0;
12012 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12013 long arg2 ;
12014 wxString result;
12015 void *argp1 = 0 ;
12016 int res1 = 0 ;
12017 long val2 ;
12018 int ecode2 = 0 ;
12019 PyObject * obj0 = 0 ;
12020 PyObject * obj1 = 0 ;
12021 char * kwnames[] = {
12022 (char *) "self",(char *) "lineNo", NULL
12023 };
12024
12025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12027 if (!SWIG_IsOK(res1)) {
12028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12029 }
12030 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12031 ecode2 = SWIG_AsVal_long(obj1, &val2);
12032 if (!SWIG_IsOK(ecode2)) {
12033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12034 }
12035 arg2 = static_cast< long >(val2);
12036 {
12037 PyThreadState* __tstate = wxPyBeginAllowThreads();
12038 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 {
12043 #if wxUSE_UNICODE
12044 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12045 #else
12046 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12047 #endif
12048 }
12049 return resultobj;
12050 fail:
12051 return NULL;
12052 }
12053
12054
12055 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12056 PyObject *resultobj = 0;
12057 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12058 int result;
12059 void *argp1 = 0 ;
12060 int res1 = 0 ;
12061 PyObject *swig_obj[1] ;
12062
12063 if (!args) SWIG_fail;
12064 swig_obj[0] = args;
12065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12066 if (!SWIG_IsOK(res1)) {
12067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12068 }
12069 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12070 {
12071 PyThreadState* __tstate = wxPyBeginAllowThreads();
12072 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12073 wxPyEndAllowThreads(__tstate);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 resultobj = SWIG_From_int(static_cast< int >(result));
12077 return resultobj;
12078 fail:
12079 return NULL;
12080 }
12081
12082
12083 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12084 PyObject *resultobj = 0;
12085 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12086 bool result;
12087 void *argp1 = 0 ;
12088 int res1 = 0 ;
12089 PyObject *swig_obj[1] ;
12090
12091 if (!args) SWIG_fail;
12092 swig_obj[0] = args;
12093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12094 if (!SWIG_IsOK(res1)) {
12095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12096 }
12097 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12098 {
12099 PyThreadState* __tstate = wxPyBeginAllowThreads();
12100 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12101 wxPyEndAllowThreads(__tstate);
12102 if (PyErr_Occurred()) SWIG_fail;
12103 }
12104 {
12105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12106 }
12107 return resultobj;
12108 fail:
12109 return NULL;
12110 }
12111
12112
12113 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12114 PyObject *resultobj = 0;
12115 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12116 bool result;
12117 void *argp1 = 0 ;
12118 int res1 = 0 ;
12119 PyObject *swig_obj[1] ;
12120
12121 if (!args) SWIG_fail;
12122 swig_obj[0] = args;
12123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12124 if (!SWIG_IsOK(res1)) {
12125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12126 }
12127 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 {
12135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12136 }
12137 return resultobj;
12138 fail:
12139 return NULL;
12140 }
12141
12142
12143 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12144 PyObject *resultobj = 0;
12145 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12146 bool result;
12147 void *argp1 = 0 ;
12148 int res1 = 0 ;
12149 PyObject *swig_obj[1] ;
12150
12151 if (!args) SWIG_fail;
12152 swig_obj[0] = args;
12153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12154 if (!SWIG_IsOK(res1)) {
12155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12156 }
12157 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 {
12165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12166 }
12167 return resultobj;
12168 fail:
12169 return NULL;
12170 }
12171
12172
12173 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12174 PyObject *resultobj = 0;
12175 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12176 bool result;
12177 void *argp1 = 0 ;
12178 int res1 = 0 ;
12179 PyObject *swig_obj[1] ;
12180
12181 if (!args) SWIG_fail;
12182 swig_obj[0] = args;
12183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12184 if (!SWIG_IsOK(res1)) {
12185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12186 }
12187 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 {
12195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12196 }
12197 return resultobj;
12198 fail:
12199 return NULL;
12200 }
12201
12202
12203 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12204 PyObject *resultobj = 0;
12205 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12206 long *arg2 = (long *) 0 ;
12207 long *arg3 = (long *) 0 ;
12208 void *argp1 = 0 ;
12209 int res1 = 0 ;
12210 long temp2 ;
12211 int res2 = SWIG_TMPOBJ ;
12212 long temp3 ;
12213 int res3 = SWIG_TMPOBJ ;
12214 PyObject *swig_obj[1] ;
12215
12216 arg2 = &temp2;
12217 arg3 = &temp3;
12218 if (!args) SWIG_fail;
12219 swig_obj[0] = args;
12220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12221 if (!SWIG_IsOK(res1)) {
12222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12223 }
12224 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12228 wxPyEndAllowThreads(__tstate);
12229 if (PyErr_Occurred()) SWIG_fail;
12230 }
12231 resultobj = SWIG_Py_Void();
12232 if (SWIG_IsTmpObj(res2)) {
12233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12234 } else {
12235 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12237 }
12238 if (SWIG_IsTmpObj(res3)) {
12239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12240 } else {
12241 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12243 }
12244 return resultobj;
12245 fail:
12246 return NULL;
12247 }
12248
12249
12250 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12251 PyObject *resultobj = 0;
12252 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12253 wxString result;
12254 void *argp1 = 0 ;
12255 int res1 = 0 ;
12256 PyObject *swig_obj[1] ;
12257
12258 if (!args) SWIG_fail;
12259 swig_obj[0] = args;
12260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12261 if (!SWIG_IsOK(res1)) {
12262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12263 }
12264 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12265 {
12266 PyThreadState* __tstate = wxPyBeginAllowThreads();
12267 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12268 wxPyEndAllowThreads(__tstate);
12269 if (PyErr_Occurred()) SWIG_fail;
12270 }
12271 {
12272 #if wxUSE_UNICODE
12273 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12274 #else
12275 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12276 #endif
12277 }
12278 return resultobj;
12279 fail:
12280 return NULL;
12281 }
12282
12283
12284 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12285 PyObject *resultobj = 0;
12286 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12287 void *argp1 = 0 ;
12288 int res1 = 0 ;
12289 PyObject *swig_obj[1] ;
12290
12291 if (!args) SWIG_fail;
12292 swig_obj[0] = args;
12293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12294 if (!SWIG_IsOK(res1)) {
12295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12296 }
12297 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12298 {
12299 PyThreadState* __tstate = wxPyBeginAllowThreads();
12300 (arg1)->Clear();
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 resultobj = SWIG_Py_Void();
12305 return resultobj;
12306 fail:
12307 return NULL;
12308 }
12309
12310
12311 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12312 PyObject *resultobj = 0;
12313 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12314 long arg2 ;
12315 long arg3 ;
12316 wxString *arg4 = 0 ;
12317 void *argp1 = 0 ;
12318 int res1 = 0 ;
12319 long val2 ;
12320 int ecode2 = 0 ;
12321 long val3 ;
12322 int ecode3 = 0 ;
12323 bool temp4 = false ;
12324 PyObject * obj0 = 0 ;
12325 PyObject * obj1 = 0 ;
12326 PyObject * obj2 = 0 ;
12327 PyObject * obj3 = 0 ;
12328 char * kwnames[] = {
12329 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12330 };
12331
12332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12334 if (!SWIG_IsOK(res1)) {
12335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12336 }
12337 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12338 ecode2 = SWIG_AsVal_long(obj1, &val2);
12339 if (!SWIG_IsOK(ecode2)) {
12340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12341 }
12342 arg2 = static_cast< long >(val2);
12343 ecode3 = SWIG_AsVal_long(obj2, &val3);
12344 if (!SWIG_IsOK(ecode3)) {
12345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12346 }
12347 arg3 = static_cast< long >(val3);
12348 {
12349 arg4 = wxString_in_helper(obj3);
12350 if (arg4 == NULL) SWIG_fail;
12351 temp4 = true;
12352 }
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 resultobj = SWIG_Py_Void();
12360 {
12361 if (temp4)
12362 delete arg4;
12363 }
12364 return resultobj;
12365 fail:
12366 {
12367 if (temp4)
12368 delete arg4;
12369 }
12370 return NULL;
12371 }
12372
12373
12374 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12375 PyObject *resultobj = 0;
12376 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12377 long arg2 ;
12378 long arg3 ;
12379 void *argp1 = 0 ;
12380 int res1 = 0 ;
12381 long val2 ;
12382 int ecode2 = 0 ;
12383 long val3 ;
12384 int ecode3 = 0 ;
12385 PyObject * obj0 = 0 ;
12386 PyObject * obj1 = 0 ;
12387 PyObject * obj2 = 0 ;
12388 char * kwnames[] = {
12389 (char *) "self",(char *) "from",(char *) "to", NULL
12390 };
12391
12392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12394 if (!SWIG_IsOK(res1)) {
12395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12396 }
12397 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12398 ecode2 = SWIG_AsVal_long(obj1, &val2);
12399 if (!SWIG_IsOK(ecode2)) {
12400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12401 }
12402 arg2 = static_cast< long >(val2);
12403 ecode3 = SWIG_AsVal_long(obj2, &val3);
12404 if (!SWIG_IsOK(ecode3)) {
12405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12406 }
12407 arg3 = static_cast< long >(val3);
12408 {
12409 PyThreadState* __tstate = wxPyBeginAllowThreads();
12410 (arg1)->Remove(arg2,arg3);
12411 wxPyEndAllowThreads(__tstate);
12412 if (PyErr_Occurred()) SWIG_fail;
12413 }
12414 resultobj = SWIG_Py_Void();
12415 return resultobj;
12416 fail:
12417 return NULL;
12418 }
12419
12420
12421 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12422 PyObject *resultobj = 0;
12423 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12424 wxString *arg2 = 0 ;
12425 bool result;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 bool temp2 = false ;
12429 PyObject * obj0 = 0 ;
12430 PyObject * obj1 = 0 ;
12431 char * kwnames[] = {
12432 (char *) "self",(char *) "file", NULL
12433 };
12434
12435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12437 if (!SWIG_IsOK(res1)) {
12438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12439 }
12440 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12441 {
12442 arg2 = wxString_in_helper(obj1);
12443 if (arg2 == NULL) SWIG_fail;
12444 temp2 = true;
12445 }
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 {
12453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12454 }
12455 {
12456 if (temp2)
12457 delete arg2;
12458 }
12459 return resultobj;
12460 fail:
12461 {
12462 if (temp2)
12463 delete arg2;
12464 }
12465 return NULL;
12466 }
12467
12468
12469 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12470 PyObject *resultobj = 0;
12471 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12472 wxString const &arg2_defvalue = wxPyEmptyString ;
12473 wxString *arg2 = (wxString *) &arg2_defvalue ;
12474 bool result;
12475 void *argp1 = 0 ;
12476 int res1 = 0 ;
12477 bool temp2 = false ;
12478 PyObject * obj0 = 0 ;
12479 PyObject * obj1 = 0 ;
12480 char * kwnames[] = {
12481 (char *) "self",(char *) "file", NULL
12482 };
12483
12484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",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_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12488 }
12489 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12490 if (obj1) {
12491 {
12492 arg2 = wxString_in_helper(obj1);
12493 if (arg2 == NULL) SWIG_fail;
12494 temp2 = true;
12495 }
12496 }
12497 {
12498 PyThreadState* __tstate = wxPyBeginAllowThreads();
12499 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 {
12504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12505 }
12506 {
12507 if (temp2)
12508 delete arg2;
12509 }
12510 return resultobj;
12511 fail:
12512 {
12513 if (temp2)
12514 delete arg2;
12515 }
12516 return NULL;
12517 }
12518
12519
12520 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12521 PyObject *resultobj = 0;
12522 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 PyObject *swig_obj[1] ;
12526
12527 if (!args) SWIG_fail;
12528 swig_obj[0] = args;
12529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12532 }
12533 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->MarkDirty();
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 resultobj = SWIG_Py_Void();
12541 return resultobj;
12542 fail:
12543 return NULL;
12544 }
12545
12546
12547 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12548 PyObject *resultobj = 0;
12549 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12550 void *argp1 = 0 ;
12551 int res1 = 0 ;
12552 PyObject *swig_obj[1] ;
12553
12554 if (!args) SWIG_fail;
12555 swig_obj[0] = args;
12556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12557 if (!SWIG_IsOK(res1)) {
12558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12559 }
12560 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12561 {
12562 PyThreadState* __tstate = wxPyBeginAllowThreads();
12563 (arg1)->DiscardEdits();
12564 wxPyEndAllowThreads(__tstate);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 resultobj = SWIG_Py_Void();
12568 return resultobj;
12569 fail:
12570 return NULL;
12571 }
12572
12573
12574 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12575 PyObject *resultobj = 0;
12576 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12577 unsigned long arg2 ;
12578 void *argp1 = 0 ;
12579 int res1 = 0 ;
12580 unsigned long val2 ;
12581 int ecode2 = 0 ;
12582 PyObject * obj0 = 0 ;
12583 PyObject * obj1 = 0 ;
12584 char * kwnames[] = {
12585 (char *) "self",(char *) "len", NULL
12586 };
12587
12588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12590 if (!SWIG_IsOK(res1)) {
12591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12592 }
12593 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12594 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12595 if (!SWIG_IsOK(ecode2)) {
12596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12597 }
12598 arg2 = static_cast< unsigned long >(val2);
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 (arg1)->SetMaxLength(arg2);
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 resultobj = SWIG_Py_Void();
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12613 PyObject *resultobj = 0;
12614 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12615 wxString *arg2 = 0 ;
12616 void *argp1 = 0 ;
12617 int res1 = 0 ;
12618 bool temp2 = false ;
12619 PyObject * obj0 = 0 ;
12620 PyObject * obj1 = 0 ;
12621 char * kwnames[] = {
12622 (char *) "self",(char *) "text", NULL
12623 };
12624
12625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12627 if (!SWIG_IsOK(res1)) {
12628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12629 }
12630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12631 {
12632 arg2 = wxString_in_helper(obj1);
12633 if (arg2 == NULL) SWIG_fail;
12634 temp2 = true;
12635 }
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 (arg1)->WriteText((wxString const &)*arg2);
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) SWIG_fail;
12641 }
12642 resultobj = SWIG_Py_Void();
12643 {
12644 if (temp2)
12645 delete arg2;
12646 }
12647 return resultobj;
12648 fail:
12649 {
12650 if (temp2)
12651 delete arg2;
12652 }
12653 return NULL;
12654 }
12655
12656
12657 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj = 0;
12659 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12660 wxString *arg2 = 0 ;
12661 void *argp1 = 0 ;
12662 int res1 = 0 ;
12663 bool temp2 = false ;
12664 PyObject * obj0 = 0 ;
12665 PyObject * obj1 = 0 ;
12666 char * kwnames[] = {
12667 (char *) "self",(char *) "text", NULL
12668 };
12669
12670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12672 if (!SWIG_IsOK(res1)) {
12673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12674 }
12675 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12676 {
12677 arg2 = wxString_in_helper(obj1);
12678 if (arg2 == NULL) SWIG_fail;
12679 temp2 = true;
12680 }
12681 {
12682 PyThreadState* __tstate = wxPyBeginAllowThreads();
12683 (arg1)->AppendText((wxString const &)*arg2);
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 resultobj = SWIG_Py_Void();
12688 {
12689 if (temp2)
12690 delete arg2;
12691 }
12692 return resultobj;
12693 fail:
12694 {
12695 if (temp2)
12696 delete arg2;
12697 }
12698 return NULL;
12699 }
12700
12701
12702 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12703 PyObject *resultobj = 0;
12704 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12705 wxKeyEvent *arg2 = 0 ;
12706 bool result;
12707 void *argp1 = 0 ;
12708 int res1 = 0 ;
12709 void *argp2 = 0 ;
12710 int res2 = 0 ;
12711 PyObject * obj0 = 0 ;
12712 PyObject * obj1 = 0 ;
12713 char * kwnames[] = {
12714 (char *) "self",(char *) "event", NULL
12715 };
12716
12717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12719 if (!SWIG_IsOK(res1)) {
12720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12721 }
12722 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12724 if (!SWIG_IsOK(res2)) {
12725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12726 }
12727 if (!argp2) {
12728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12729 }
12730 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 {
12738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12739 }
12740 return resultobj;
12741 fail:
12742 return NULL;
12743 }
12744
12745
12746 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12747 PyObject *resultobj = 0;
12748 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12749 long arg2 ;
12750 long arg3 ;
12751 wxTextAttr *arg4 = 0 ;
12752 bool result;
12753 void *argp1 = 0 ;
12754 int res1 = 0 ;
12755 long val2 ;
12756 int ecode2 = 0 ;
12757 long val3 ;
12758 int ecode3 = 0 ;
12759 void *argp4 = 0 ;
12760 int res4 = 0 ;
12761 PyObject * obj0 = 0 ;
12762 PyObject * obj1 = 0 ;
12763 PyObject * obj2 = 0 ;
12764 PyObject * obj3 = 0 ;
12765 char * kwnames[] = {
12766 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12767 };
12768
12769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12771 if (!SWIG_IsOK(res1)) {
12772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12773 }
12774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12775 ecode2 = SWIG_AsVal_long(obj1, &val2);
12776 if (!SWIG_IsOK(ecode2)) {
12777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12778 }
12779 arg2 = static_cast< long >(val2);
12780 ecode3 = SWIG_AsVal_long(obj2, &val3);
12781 if (!SWIG_IsOK(ecode3)) {
12782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12783 }
12784 arg3 = static_cast< long >(val3);
12785 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12786 if (!SWIG_IsOK(res4)) {
12787 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12788 }
12789 if (!argp4) {
12790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12791 }
12792 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 {
12800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12801 }
12802 return resultobj;
12803 fail:
12804 return NULL;
12805 }
12806
12807
12808 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12809 PyObject *resultobj = 0;
12810 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12811 long arg2 ;
12812 wxTextAttr *arg3 = 0 ;
12813 bool result;
12814 void *argp1 = 0 ;
12815 int res1 = 0 ;
12816 long val2 ;
12817 int ecode2 = 0 ;
12818 void *argp3 = 0 ;
12819 int res3 = 0 ;
12820 PyObject * obj0 = 0 ;
12821 PyObject * obj1 = 0 ;
12822 PyObject * obj2 = 0 ;
12823 char * kwnames[] = {
12824 (char *) "self",(char *) "position",(char *) "style", NULL
12825 };
12826
12827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12829 if (!SWIG_IsOK(res1)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12831 }
12832 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12833 ecode2 = SWIG_AsVal_long(obj1, &val2);
12834 if (!SWIG_IsOK(ecode2)) {
12835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12836 }
12837 arg2 = static_cast< long >(val2);
12838 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12839 if (!SWIG_IsOK(res3)) {
12840 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12841 }
12842 if (!argp3) {
12843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12844 }
12845 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12846 {
12847 PyThreadState* __tstate = wxPyBeginAllowThreads();
12848 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12849 wxPyEndAllowThreads(__tstate);
12850 if (PyErr_Occurred()) SWIG_fail;
12851 }
12852 {
12853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12854 }
12855 return resultobj;
12856 fail:
12857 return NULL;
12858 }
12859
12860
12861 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12862 PyObject *resultobj = 0;
12863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12864 wxTextAttr *arg2 = 0 ;
12865 bool result;
12866 void *argp1 = 0 ;
12867 int res1 = 0 ;
12868 void *argp2 = 0 ;
12869 int res2 = 0 ;
12870 PyObject * obj0 = 0 ;
12871 PyObject * obj1 = 0 ;
12872 char * kwnames[] = {
12873 (char *) "self",(char *) "style", NULL
12874 };
12875
12876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12878 if (!SWIG_IsOK(res1)) {
12879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12880 }
12881 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12883 if (!SWIG_IsOK(res2)) {
12884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12885 }
12886 if (!argp2) {
12887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12888 }
12889 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12893 wxPyEndAllowThreads(__tstate);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 }
12896 {
12897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12898 }
12899 return resultobj;
12900 fail:
12901 return NULL;
12902 }
12903
12904
12905 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12906 PyObject *resultobj = 0;
12907 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12908 wxTextAttr *result = 0 ;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 PyObject *swig_obj[1] ;
12912
12913 if (!args) SWIG_fail;
12914 swig_obj[0] = args;
12915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12916 if (!SWIG_IsOK(res1)) {
12917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12918 }
12919 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12920 {
12921 PyThreadState* __tstate = wxPyBeginAllowThreads();
12922 {
12923 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12924 result = (wxTextAttr *) &_result_ref;
12925 }
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12930 return resultobj;
12931 fail:
12932 return NULL;
12933 }
12934
12935
12936 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12937 PyObject *resultobj = 0;
12938 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12939 long arg2 ;
12940 long arg3 ;
12941 long result;
12942 void *argp1 = 0 ;
12943 int res1 = 0 ;
12944 long val2 ;
12945 int ecode2 = 0 ;
12946 long val3 ;
12947 int ecode3 = 0 ;
12948 PyObject * obj0 = 0 ;
12949 PyObject * obj1 = 0 ;
12950 PyObject * obj2 = 0 ;
12951 char * kwnames[] = {
12952 (char *) "self",(char *) "x",(char *) "y", NULL
12953 };
12954
12955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12957 if (!SWIG_IsOK(res1)) {
12958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12959 }
12960 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12961 ecode2 = SWIG_AsVal_long(obj1, &val2);
12962 if (!SWIG_IsOK(ecode2)) {
12963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12964 }
12965 arg2 = static_cast< long >(val2);
12966 ecode3 = SWIG_AsVal_long(obj2, &val3);
12967 if (!SWIG_IsOK(ecode3)) {
12968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12969 }
12970 arg3 = static_cast< long >(val3);
12971 {
12972 PyThreadState* __tstate = wxPyBeginAllowThreads();
12973 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12974 wxPyEndAllowThreads(__tstate);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 }
12977 resultobj = SWIG_From_long(static_cast< long >(result));
12978 return resultobj;
12979 fail:
12980 return NULL;
12981 }
12982
12983
12984 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12985 PyObject *resultobj = 0;
12986 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12987 long arg2 ;
12988 long *arg3 = (long *) 0 ;
12989 long *arg4 = (long *) 0 ;
12990 void *argp1 = 0 ;
12991 int res1 = 0 ;
12992 long val2 ;
12993 int ecode2 = 0 ;
12994 long temp3 ;
12995 int res3 = SWIG_TMPOBJ ;
12996 long temp4 ;
12997 int res4 = SWIG_TMPOBJ ;
12998 PyObject * obj0 = 0 ;
12999 PyObject * obj1 = 0 ;
13000 char * kwnames[] = {
13001 (char *) "self",(char *) "pos", NULL
13002 };
13003
13004 arg3 = &temp3;
13005 arg4 = &temp4;
13006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13008 if (!SWIG_IsOK(res1)) {
13009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13010 }
13011 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13012 ecode2 = SWIG_AsVal_long(obj1, &val2);
13013 if (!SWIG_IsOK(ecode2)) {
13014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13015 }
13016 arg2 = static_cast< long >(val2);
13017 {
13018 PyThreadState* __tstate = wxPyBeginAllowThreads();
13019 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13020 wxPyEndAllowThreads(__tstate);
13021 if (PyErr_Occurred()) SWIG_fail;
13022 }
13023 resultobj = SWIG_Py_Void();
13024 if (SWIG_IsTmpObj(res3)) {
13025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13026 } else {
13027 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13029 }
13030 if (SWIG_IsTmpObj(res4)) {
13031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13032 } else {
13033 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13035 }
13036 return resultobj;
13037 fail:
13038 return NULL;
13039 }
13040
13041
13042 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj = 0;
13044 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13045 long arg2 ;
13046 void *argp1 = 0 ;
13047 int res1 = 0 ;
13048 long val2 ;
13049 int ecode2 = 0 ;
13050 PyObject * obj0 = 0 ;
13051 PyObject * obj1 = 0 ;
13052 char * kwnames[] = {
13053 (char *) "self",(char *) "pos", NULL
13054 };
13055
13056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13058 if (!SWIG_IsOK(res1)) {
13059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13060 }
13061 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13062 ecode2 = SWIG_AsVal_long(obj1, &val2);
13063 if (!SWIG_IsOK(ecode2)) {
13064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13065 }
13066 arg2 = static_cast< long >(val2);
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 (arg1)->ShowPosition(arg2);
13070 wxPyEndAllowThreads(__tstate);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 resultobj = SWIG_Py_Void();
13074 return resultobj;
13075 fail:
13076 return NULL;
13077 }
13078
13079
13080 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13081 PyObject *resultobj = 0;
13082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13083 wxPoint *arg2 = 0 ;
13084 long *arg3 = (long *) 0 ;
13085 long *arg4 = (long *) 0 ;
13086 wxTextCtrlHitTestResult result;
13087 void *argp1 = 0 ;
13088 int res1 = 0 ;
13089 wxPoint temp2 ;
13090 long temp3 ;
13091 int res3 = SWIG_TMPOBJ ;
13092 long temp4 ;
13093 int res4 = SWIG_TMPOBJ ;
13094 PyObject * obj0 = 0 ;
13095 PyObject * obj1 = 0 ;
13096 char * kwnames[] = {
13097 (char *) "self",(char *) "pt", NULL
13098 };
13099
13100 arg3 = &temp3;
13101 arg4 = &temp4;
13102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13104 if (!SWIG_IsOK(res1)) {
13105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13106 }
13107 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13108 {
13109 arg2 = &temp2;
13110 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13111 }
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 resultobj = SWIG_From_int(static_cast< int >(result));
13119 if (SWIG_IsTmpObj(res3)) {
13120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13121 } else {
13122 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13124 }
13125 if (SWIG_IsTmpObj(res4)) {
13126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13127 } else {
13128 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13130 }
13131 return resultobj;
13132 fail:
13133 return NULL;
13134 }
13135
13136
13137 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13138 PyObject *resultobj = 0;
13139 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13140 wxPoint *arg2 = 0 ;
13141 long *arg3 = (long *) 0 ;
13142 wxTextCtrlHitTestResult result;
13143 void *argp1 = 0 ;
13144 int res1 = 0 ;
13145 wxPoint temp2 ;
13146 long temp3 ;
13147 int res3 = SWIG_TMPOBJ ;
13148 PyObject * obj0 = 0 ;
13149 PyObject * obj1 = 0 ;
13150 char * kwnames[] = {
13151 (char *) "self",(char *) "pt", NULL
13152 };
13153
13154 arg3 = &temp3;
13155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13157 if (!SWIG_IsOK(res1)) {
13158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13159 }
13160 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13161 {
13162 arg2 = &temp2;
13163 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13164 }
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 resultobj = SWIG_From_int(static_cast< int >(result));
13172 if (SWIG_IsTmpObj(res3)) {
13173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13174 } else {
13175 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13177 }
13178 return resultobj;
13179 fail:
13180 return NULL;
13181 }
13182
13183
13184 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13185 PyObject *resultobj = 0;
13186 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13187 void *argp1 = 0 ;
13188 int res1 = 0 ;
13189 PyObject *swig_obj[1] ;
13190
13191 if (!args) SWIG_fail;
13192 swig_obj[0] = args;
13193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13194 if (!SWIG_IsOK(res1)) {
13195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13196 }
13197 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 (arg1)->Copy();
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 resultobj = SWIG_Py_Void();
13205 return resultobj;
13206 fail:
13207 return NULL;
13208 }
13209
13210
13211 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13212 PyObject *resultobj = 0;
13213 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13214 void *argp1 = 0 ;
13215 int res1 = 0 ;
13216 PyObject *swig_obj[1] ;
13217
13218 if (!args) SWIG_fail;
13219 swig_obj[0] = args;
13220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13221 if (!SWIG_IsOK(res1)) {
13222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13223 }
13224 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 (arg1)->Cut();
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = SWIG_Py_Void();
13232 return resultobj;
13233 fail:
13234 return NULL;
13235 }
13236
13237
13238 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13239 PyObject *resultobj = 0;
13240 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13241 void *argp1 = 0 ;
13242 int res1 = 0 ;
13243 PyObject *swig_obj[1] ;
13244
13245 if (!args) SWIG_fail;
13246 swig_obj[0] = args;
13247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13248 if (!SWIG_IsOK(res1)) {
13249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13250 }
13251 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 (arg1)->Paste();
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_Py_Void();
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13266 PyObject *resultobj = 0;
13267 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13268 bool result;
13269 void *argp1 = 0 ;
13270 int res1 = 0 ;
13271 PyObject *swig_obj[1] ;
13272
13273 if (!args) SWIG_fail;
13274 swig_obj[0] = args;
13275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13276 if (!SWIG_IsOK(res1)) {
13277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13278 }
13279 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13283 wxPyEndAllowThreads(__tstate);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 {
13287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13288 }
13289 return resultobj;
13290 fail:
13291 return NULL;
13292 }
13293
13294
13295 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13296 PyObject *resultobj = 0;
13297 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13298 bool result;
13299 void *argp1 = 0 ;
13300 int res1 = 0 ;
13301 PyObject *swig_obj[1] ;
13302
13303 if (!args) SWIG_fail;
13304 swig_obj[0] = args;
13305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13306 if (!SWIG_IsOK(res1)) {
13307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13308 }
13309 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13310 {
13311 PyThreadState* __tstate = wxPyBeginAllowThreads();
13312 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13313 wxPyEndAllowThreads(__tstate);
13314 if (PyErr_Occurred()) SWIG_fail;
13315 }
13316 {
13317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13318 }
13319 return resultobj;
13320 fail:
13321 return NULL;
13322 }
13323
13324
13325 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13326 PyObject *resultobj = 0;
13327 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13328 bool result;
13329 void *argp1 = 0 ;
13330 int res1 = 0 ;
13331 PyObject *swig_obj[1] ;
13332
13333 if (!args) SWIG_fail;
13334 swig_obj[0] = args;
13335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13336 if (!SWIG_IsOK(res1)) {
13337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13338 }
13339 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 {
13347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13348 }
13349 return resultobj;
13350 fail:
13351 return NULL;
13352 }
13353
13354
13355 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13356 PyObject *resultobj = 0;
13357 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13358 void *argp1 = 0 ;
13359 int res1 = 0 ;
13360 PyObject *swig_obj[1] ;
13361
13362 if (!args) SWIG_fail;
13363 swig_obj[0] = args;
13364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13365 if (!SWIG_IsOK(res1)) {
13366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13367 }
13368 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 (arg1)->Undo();
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 resultobj = SWIG_Py_Void();
13376 return resultobj;
13377 fail:
13378 return NULL;
13379 }
13380
13381
13382 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *resultobj = 0;
13384 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13385 void *argp1 = 0 ;
13386 int res1 = 0 ;
13387 PyObject *swig_obj[1] ;
13388
13389 if (!args) SWIG_fail;
13390 swig_obj[0] = args;
13391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13392 if (!SWIG_IsOK(res1)) {
13393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13394 }
13395 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13396 {
13397 PyThreadState* __tstate = wxPyBeginAllowThreads();
13398 (arg1)->Redo();
13399 wxPyEndAllowThreads(__tstate);
13400 if (PyErr_Occurred()) SWIG_fail;
13401 }
13402 resultobj = SWIG_Py_Void();
13403 return resultobj;
13404 fail:
13405 return NULL;
13406 }
13407
13408
13409 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13410 PyObject *resultobj = 0;
13411 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13412 bool result;
13413 void *argp1 = 0 ;
13414 int res1 = 0 ;
13415 PyObject *swig_obj[1] ;
13416
13417 if (!args) SWIG_fail;
13418 swig_obj[0] = args;
13419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13420 if (!SWIG_IsOK(res1)) {
13421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13422 }
13423 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 {
13431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13432 }
13433 return resultobj;
13434 fail:
13435 return NULL;
13436 }
13437
13438
13439 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13440 PyObject *resultobj = 0;
13441 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13442 bool result;
13443 void *argp1 = 0 ;
13444 int res1 = 0 ;
13445 PyObject *swig_obj[1] ;
13446
13447 if (!args) SWIG_fail;
13448 swig_obj[0] = args;
13449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13450 if (!SWIG_IsOK(res1)) {
13451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13452 }
13453 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13454 {
13455 PyThreadState* __tstate = wxPyBeginAllowThreads();
13456 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13457 wxPyEndAllowThreads(__tstate);
13458 if (PyErr_Occurred()) SWIG_fail;
13459 }
13460 {
13461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13462 }
13463 return resultobj;
13464 fail:
13465 return NULL;
13466 }
13467
13468
13469 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13470 PyObject *resultobj = 0;
13471 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13472 long arg2 ;
13473 void *argp1 = 0 ;
13474 int res1 = 0 ;
13475 long val2 ;
13476 int ecode2 = 0 ;
13477 PyObject * obj0 = 0 ;
13478 PyObject * obj1 = 0 ;
13479 char * kwnames[] = {
13480 (char *) "self",(char *) "pos", NULL
13481 };
13482
13483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13485 if (!SWIG_IsOK(res1)) {
13486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13487 }
13488 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13489 ecode2 = SWIG_AsVal_long(obj1, &val2);
13490 if (!SWIG_IsOK(ecode2)) {
13491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13492 }
13493 arg2 = static_cast< long >(val2);
13494 {
13495 PyThreadState* __tstate = wxPyBeginAllowThreads();
13496 (arg1)->SetInsertionPoint(arg2);
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 resultobj = SWIG_Py_Void();
13501 return resultobj;
13502 fail:
13503 return NULL;
13504 }
13505
13506
13507 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13508 PyObject *resultobj = 0;
13509 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13510 void *argp1 = 0 ;
13511 int res1 = 0 ;
13512 PyObject *swig_obj[1] ;
13513
13514 if (!args) SWIG_fail;
13515 swig_obj[0] = args;
13516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13517 if (!SWIG_IsOK(res1)) {
13518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13519 }
13520 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13521 {
13522 PyThreadState* __tstate = wxPyBeginAllowThreads();
13523 (arg1)->SetInsertionPointEnd();
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 resultobj = SWIG_Py_Void();
13528 return resultobj;
13529 fail:
13530 return NULL;
13531 }
13532
13533
13534 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13535 PyObject *resultobj = 0;
13536 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13537 long result;
13538 void *argp1 = 0 ;
13539 int res1 = 0 ;
13540 PyObject *swig_obj[1] ;
13541
13542 if (!args) SWIG_fail;
13543 swig_obj[0] = args;
13544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13545 if (!SWIG_IsOK(res1)) {
13546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13547 }
13548 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13549 {
13550 PyThreadState* __tstate = wxPyBeginAllowThreads();
13551 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_From_long(static_cast< long >(result));
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13563 PyObject *resultobj = 0;
13564 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13565 long result;
13566 void *argp1 = 0 ;
13567 int res1 = 0 ;
13568 PyObject *swig_obj[1] ;
13569
13570 if (!args) SWIG_fail;
13571 swig_obj[0] = args;
13572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13573 if (!SWIG_IsOK(res1)) {
13574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13575 }
13576 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13577 {
13578 PyThreadState* __tstate = wxPyBeginAllowThreads();
13579 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 resultobj = SWIG_From_long(static_cast< long >(result));
13584 return resultobj;
13585 fail:
13586 return NULL;
13587 }
13588
13589
13590 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13591 PyObject *resultobj = 0;
13592 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13593 long arg2 ;
13594 long arg3 ;
13595 void *argp1 = 0 ;
13596 int res1 = 0 ;
13597 long val2 ;
13598 int ecode2 = 0 ;
13599 long val3 ;
13600 int ecode3 = 0 ;
13601 PyObject * obj0 = 0 ;
13602 PyObject * obj1 = 0 ;
13603 PyObject * obj2 = 0 ;
13604 char * kwnames[] = {
13605 (char *) "self",(char *) "from",(char *) "to", NULL
13606 };
13607
13608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13610 if (!SWIG_IsOK(res1)) {
13611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13612 }
13613 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13614 ecode2 = SWIG_AsVal_long(obj1, &val2);
13615 if (!SWIG_IsOK(ecode2)) {
13616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13617 }
13618 arg2 = static_cast< long >(val2);
13619 ecode3 = SWIG_AsVal_long(obj2, &val3);
13620 if (!SWIG_IsOK(ecode3)) {
13621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13622 }
13623 arg3 = static_cast< long >(val3);
13624 {
13625 PyThreadState* __tstate = wxPyBeginAllowThreads();
13626 (arg1)->SetSelection(arg2,arg3);
13627 wxPyEndAllowThreads(__tstate);
13628 if (PyErr_Occurred()) SWIG_fail;
13629 }
13630 resultobj = SWIG_Py_Void();
13631 return resultobj;
13632 fail:
13633 return NULL;
13634 }
13635
13636
13637 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13638 PyObject *resultobj = 0;
13639 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13640 void *argp1 = 0 ;
13641 int res1 = 0 ;
13642 PyObject *swig_obj[1] ;
13643
13644 if (!args) SWIG_fail;
13645 swig_obj[0] = args;
13646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13647 if (!SWIG_IsOK(res1)) {
13648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13649 }
13650 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13651 {
13652 PyThreadState* __tstate = wxPyBeginAllowThreads();
13653 (arg1)->SelectAll();
13654 wxPyEndAllowThreads(__tstate);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 resultobj = SWIG_Py_Void();
13658 return resultobj;
13659 fail:
13660 return NULL;
13661 }
13662
13663
13664 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13665 PyObject *resultobj = 0;
13666 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13667 bool arg2 ;
13668 void *argp1 = 0 ;
13669 int res1 = 0 ;
13670 bool val2 ;
13671 int ecode2 = 0 ;
13672 PyObject * obj0 = 0 ;
13673 PyObject * obj1 = 0 ;
13674 char * kwnames[] = {
13675 (char *) "self",(char *) "editable", NULL
13676 };
13677
13678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13680 if (!SWIG_IsOK(res1)) {
13681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13682 }
13683 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13684 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13685 if (!SWIG_IsOK(ecode2)) {
13686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13687 }
13688 arg2 = static_cast< bool >(val2);
13689 {
13690 PyThreadState* __tstate = wxPyBeginAllowThreads();
13691 (arg1)->SetEditable(arg2);
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 resultobj = SWIG_Py_Void();
13696 return resultobj;
13697 fail:
13698 return NULL;
13699 }
13700
13701
13702 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13703 PyObject *resultobj = 0;
13704 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13705 wxString *arg2 = 0 ;
13706 void *argp1 = 0 ;
13707 int res1 = 0 ;
13708 bool temp2 = false ;
13709 PyObject * obj0 = 0 ;
13710 PyObject * obj1 = 0 ;
13711 char * kwnames[] = {
13712 (char *) "self",(char *) "text", NULL
13713 };
13714
13715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13717 if (!SWIG_IsOK(res1)) {
13718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13719 }
13720 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13721 {
13722 arg2 = wxString_in_helper(obj1);
13723 if (arg2 == NULL) SWIG_fail;
13724 temp2 = true;
13725 }
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13729 wxPyEndAllowThreads(__tstate);
13730 if (PyErr_Occurred()) SWIG_fail;
13731 }
13732 resultobj = SWIG_Py_Void();
13733 {
13734 if (temp2)
13735 delete arg2;
13736 }
13737 return resultobj;
13738 fail:
13739 {
13740 if (temp2)
13741 delete arg2;
13742 }
13743 return NULL;
13744 }
13745
13746
13747 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13748 PyObject *resultobj = 0;
13749 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13750 long arg2 ;
13751 long arg3 ;
13752 wxString result;
13753 void *argp1 = 0 ;
13754 int res1 = 0 ;
13755 long val2 ;
13756 int ecode2 = 0 ;
13757 long val3 ;
13758 int ecode3 = 0 ;
13759 PyObject * obj0 = 0 ;
13760 PyObject * obj1 = 0 ;
13761 PyObject * obj2 = 0 ;
13762 char * kwnames[] = {
13763 (char *) "self",(char *) "from",(char *) "to", NULL
13764 };
13765
13766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13768 if (!SWIG_IsOK(res1)) {
13769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13770 }
13771 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13772 ecode2 = SWIG_AsVal_long(obj1, &val2);
13773 if (!SWIG_IsOK(ecode2)) {
13774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13775 }
13776 arg2 = static_cast< long >(val2);
13777 ecode3 = SWIG_AsVal_long(obj2, &val3);
13778 if (!SWIG_IsOK(ecode3)) {
13779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13780 }
13781 arg3 = static_cast< long >(val3);
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13785 wxPyEndAllowThreads(__tstate);
13786 if (PyErr_Occurred()) SWIG_fail;
13787 }
13788 {
13789 #if wxUSE_UNICODE
13790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13791 #else
13792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13793 #endif
13794 }
13795 return resultobj;
13796 fail:
13797 return NULL;
13798 }
13799
13800
13801 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13802 PyObject *resultobj = 0;
13803 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13804 SwigValueWrapper<wxVisualAttributes > result;
13805 int val1 ;
13806 int ecode1 = 0 ;
13807 PyObject * obj0 = 0 ;
13808 char * kwnames[] = {
13809 (char *) "variant", NULL
13810 };
13811
13812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13813 if (obj0) {
13814 ecode1 = SWIG_AsVal_int(obj0, &val1);
13815 if (!SWIG_IsOK(ecode1)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13817 }
13818 arg1 = static_cast< wxWindowVariant >(val1);
13819 }
13820 {
13821 if (!wxPyCheckForApp()) SWIG_fail;
13822 PyThreadState* __tstate = wxPyBeginAllowThreads();
13823 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13828 return resultobj;
13829 fail:
13830 return NULL;
13831 }
13832
13833
13834 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13835 PyObject *obj;
13836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13837 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13838 return SWIG_Py_Void();
13839 }
13840
13841 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13842 return SWIG_Python_InitShadowInstance(args);
13843 }
13844
13845 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj = 0;
13847 int arg1 ;
13848 wxMouseEvent *arg2 = 0 ;
13849 long arg3 ;
13850 long arg4 ;
13851 wxTextUrlEvent *result = 0 ;
13852 int val1 ;
13853 int ecode1 = 0 ;
13854 void *argp2 = 0 ;
13855 int res2 = 0 ;
13856 long val3 ;
13857 int ecode3 = 0 ;
13858 long val4 ;
13859 int ecode4 = 0 ;
13860 PyObject * obj0 = 0 ;
13861 PyObject * obj1 = 0 ;
13862 PyObject * obj2 = 0 ;
13863 PyObject * obj3 = 0 ;
13864 char * kwnames[] = {
13865 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13866 };
13867
13868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13869 ecode1 = SWIG_AsVal_int(obj0, &val1);
13870 if (!SWIG_IsOK(ecode1)) {
13871 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13872 }
13873 arg1 = static_cast< int >(val1);
13874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13875 if (!SWIG_IsOK(res2)) {
13876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13877 }
13878 if (!argp2) {
13879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13880 }
13881 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13882 ecode3 = SWIG_AsVal_long(obj2, &val3);
13883 if (!SWIG_IsOK(ecode3)) {
13884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13885 }
13886 arg3 = static_cast< long >(val3);
13887 ecode4 = SWIG_AsVal_long(obj3, &val4);
13888 if (!SWIG_IsOK(ecode4)) {
13889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13890 }
13891 arg4 = static_cast< long >(val4);
13892 {
13893 PyThreadState* __tstate = wxPyBeginAllowThreads();
13894 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13899 return resultobj;
13900 fail:
13901 return NULL;
13902 }
13903
13904
13905 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13906 PyObject *resultobj = 0;
13907 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13908 wxMouseEvent *result = 0 ;
13909 void *argp1 = 0 ;
13910 int res1 = 0 ;
13911 PyObject *swig_obj[1] ;
13912
13913 if (!args) SWIG_fail;
13914 swig_obj[0] = args;
13915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13916 if (!SWIG_IsOK(res1)) {
13917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13918 }
13919 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13920 {
13921 PyThreadState* __tstate = wxPyBeginAllowThreads();
13922 {
13923 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13924 result = (wxMouseEvent *) &_result_ref;
13925 }
13926 wxPyEndAllowThreads(__tstate);
13927 if (PyErr_Occurred()) SWIG_fail;
13928 }
13929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13930 return resultobj;
13931 fail:
13932 return NULL;
13933 }
13934
13935
13936 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13937 PyObject *resultobj = 0;
13938 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13939 long result;
13940 void *argp1 = 0 ;
13941 int res1 = 0 ;
13942 PyObject *swig_obj[1] ;
13943
13944 if (!args) SWIG_fail;
13945 swig_obj[0] = args;
13946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13947 if (!SWIG_IsOK(res1)) {
13948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13949 }
13950 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13951 {
13952 PyThreadState* __tstate = wxPyBeginAllowThreads();
13953 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = SWIG_From_long(static_cast< long >(result));
13958 return resultobj;
13959 fail:
13960 return NULL;
13961 }
13962
13963
13964 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13965 PyObject *resultobj = 0;
13966 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13967 long result;
13968 void *argp1 = 0 ;
13969 int res1 = 0 ;
13970 PyObject *swig_obj[1] ;
13971
13972 if (!args) SWIG_fail;
13973 swig_obj[0] = args;
13974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13975 if (!SWIG_IsOK(res1)) {
13976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13977 }
13978 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13982 wxPyEndAllowThreads(__tstate);
13983 if (PyErr_Occurred()) SWIG_fail;
13984 }
13985 resultobj = SWIG_From_long(static_cast< long >(result));
13986 return resultobj;
13987 fail:
13988 return NULL;
13989 }
13990
13991
13992 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13993 PyObject *obj;
13994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13995 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13996 return SWIG_Py_Void();
13997 }
13998
13999 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14000 return SWIG_Python_InitShadowInstance(args);
14001 }
14002
14003 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14004 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14005 return 1;
14006 }
14007
14008
14009 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14010 PyObject *pyobj = 0;
14011
14012 {
14013 #if wxUSE_UNICODE
14014 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14015 #else
14016 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14017 #endif
14018 }
14019 return pyobj;
14020 }
14021
14022
14023 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14024 PyObject *resultobj = 0;
14025 wxWindow *arg1 = (wxWindow *) 0 ;
14026 int arg2 = (int) -1 ;
14027 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14028 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14029 wxSize const &arg4_defvalue = wxDefaultSize ;
14030 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14031 long arg5 = (long) wxSB_HORIZONTAL ;
14032 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14033 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14034 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14035 wxString *arg7 = (wxString *) &arg7_defvalue ;
14036 wxScrollBar *result = 0 ;
14037 void *argp1 = 0 ;
14038 int res1 = 0 ;
14039 int val2 ;
14040 int ecode2 = 0 ;
14041 wxPoint temp3 ;
14042 wxSize temp4 ;
14043 long val5 ;
14044 int ecode5 = 0 ;
14045 void *argp6 = 0 ;
14046 int res6 = 0 ;
14047 bool temp7 = false ;
14048 PyObject * obj0 = 0 ;
14049 PyObject * obj1 = 0 ;
14050 PyObject * obj2 = 0 ;
14051 PyObject * obj3 = 0 ;
14052 PyObject * obj4 = 0 ;
14053 PyObject * obj5 = 0 ;
14054 PyObject * obj6 = 0 ;
14055 char * kwnames[] = {
14056 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14057 };
14058
14059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14061 if (!SWIG_IsOK(res1)) {
14062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14063 }
14064 arg1 = reinterpret_cast< wxWindow * >(argp1);
14065 if (obj1) {
14066 ecode2 = SWIG_AsVal_int(obj1, &val2);
14067 if (!SWIG_IsOK(ecode2)) {
14068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14069 }
14070 arg2 = static_cast< int >(val2);
14071 }
14072 if (obj2) {
14073 {
14074 arg3 = &temp3;
14075 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14076 }
14077 }
14078 if (obj3) {
14079 {
14080 arg4 = &temp4;
14081 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14082 }
14083 }
14084 if (obj4) {
14085 ecode5 = SWIG_AsVal_long(obj4, &val5);
14086 if (!SWIG_IsOK(ecode5)) {
14087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14088 }
14089 arg5 = static_cast< long >(val5);
14090 }
14091 if (obj5) {
14092 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14093 if (!SWIG_IsOK(res6)) {
14094 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14095 }
14096 if (!argp6) {
14097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14098 }
14099 arg6 = reinterpret_cast< wxValidator * >(argp6);
14100 }
14101 if (obj6) {
14102 {
14103 arg7 = wxString_in_helper(obj6);
14104 if (arg7 == NULL) SWIG_fail;
14105 temp7 = true;
14106 }
14107 }
14108 {
14109 if (!wxPyCheckForApp()) SWIG_fail;
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14116 {
14117 if (temp7)
14118 delete arg7;
14119 }
14120 return resultobj;
14121 fail:
14122 {
14123 if (temp7)
14124 delete arg7;
14125 }
14126 return NULL;
14127 }
14128
14129
14130 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14131 PyObject *resultobj = 0;
14132 wxScrollBar *result = 0 ;
14133
14134 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14135 {
14136 if (!wxPyCheckForApp()) SWIG_fail;
14137 PyThreadState* __tstate = wxPyBeginAllowThreads();
14138 result = (wxScrollBar *)new wxScrollBar();
14139 wxPyEndAllowThreads(__tstate);
14140 if (PyErr_Occurred()) SWIG_fail;
14141 }
14142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14143 return resultobj;
14144 fail:
14145 return NULL;
14146 }
14147
14148
14149 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14150 PyObject *resultobj = 0;
14151 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14152 wxWindow *arg2 = (wxWindow *) 0 ;
14153 int arg3 = (int) -1 ;
14154 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14155 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14156 wxSize const &arg5_defvalue = wxDefaultSize ;
14157 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14158 long arg6 = (long) wxSB_HORIZONTAL ;
14159 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14160 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14161 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14162 wxString *arg8 = (wxString *) &arg8_defvalue ;
14163 bool result;
14164 void *argp1 = 0 ;
14165 int res1 = 0 ;
14166 void *argp2 = 0 ;
14167 int res2 = 0 ;
14168 int val3 ;
14169 int ecode3 = 0 ;
14170 wxPoint temp4 ;
14171 wxSize temp5 ;
14172 long val6 ;
14173 int ecode6 = 0 ;
14174 void *argp7 = 0 ;
14175 int res7 = 0 ;
14176 bool temp8 = false ;
14177 PyObject * obj0 = 0 ;
14178 PyObject * obj1 = 0 ;
14179 PyObject * obj2 = 0 ;
14180 PyObject * obj3 = 0 ;
14181 PyObject * obj4 = 0 ;
14182 PyObject * obj5 = 0 ;
14183 PyObject * obj6 = 0 ;
14184 PyObject * obj7 = 0 ;
14185 char * kwnames[] = {
14186 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14187 };
14188
14189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14191 if (!SWIG_IsOK(res1)) {
14192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14193 }
14194 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14195 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14196 if (!SWIG_IsOK(res2)) {
14197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14198 }
14199 arg2 = reinterpret_cast< wxWindow * >(argp2);
14200 if (obj2) {
14201 ecode3 = SWIG_AsVal_int(obj2, &val3);
14202 if (!SWIG_IsOK(ecode3)) {
14203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14204 }
14205 arg3 = static_cast< int >(val3);
14206 }
14207 if (obj3) {
14208 {
14209 arg4 = &temp4;
14210 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14211 }
14212 }
14213 if (obj4) {
14214 {
14215 arg5 = &temp5;
14216 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14217 }
14218 }
14219 if (obj5) {
14220 ecode6 = SWIG_AsVal_long(obj5, &val6);
14221 if (!SWIG_IsOK(ecode6)) {
14222 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14223 }
14224 arg6 = static_cast< long >(val6);
14225 }
14226 if (obj6) {
14227 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14228 if (!SWIG_IsOK(res7)) {
14229 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14230 }
14231 if (!argp7) {
14232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14233 }
14234 arg7 = reinterpret_cast< wxValidator * >(argp7);
14235 }
14236 if (obj7) {
14237 {
14238 arg8 = wxString_in_helper(obj7);
14239 if (arg8 == NULL) SWIG_fail;
14240 temp8 = true;
14241 }
14242 }
14243 {
14244 PyThreadState* __tstate = wxPyBeginAllowThreads();
14245 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 {
14250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14251 }
14252 {
14253 if (temp8)
14254 delete arg8;
14255 }
14256 return resultobj;
14257 fail:
14258 {
14259 if (temp8)
14260 delete arg8;
14261 }
14262 return NULL;
14263 }
14264
14265
14266 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14267 PyObject *resultobj = 0;
14268 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14269 int result;
14270 void *argp1 = 0 ;
14271 int res1 = 0 ;
14272 PyObject *swig_obj[1] ;
14273
14274 if (!args) SWIG_fail;
14275 swig_obj[0] = args;
14276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14277 if (!SWIG_IsOK(res1)) {
14278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14279 }
14280 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14281 {
14282 PyThreadState* __tstate = wxPyBeginAllowThreads();
14283 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14284 wxPyEndAllowThreads(__tstate);
14285 if (PyErr_Occurred()) SWIG_fail;
14286 }
14287 resultobj = SWIG_From_int(static_cast< int >(result));
14288 return resultobj;
14289 fail:
14290 return NULL;
14291 }
14292
14293
14294 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14295 PyObject *resultobj = 0;
14296 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14297 int result;
14298 void *argp1 = 0 ;
14299 int res1 = 0 ;
14300 PyObject *swig_obj[1] ;
14301
14302 if (!args) SWIG_fail;
14303 swig_obj[0] = args;
14304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14305 if (!SWIG_IsOK(res1)) {
14306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14307 }
14308 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14309 {
14310 PyThreadState* __tstate = wxPyBeginAllowThreads();
14311 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14312 wxPyEndAllowThreads(__tstate);
14313 if (PyErr_Occurred()) SWIG_fail;
14314 }
14315 resultobj = SWIG_From_int(static_cast< int >(result));
14316 return resultobj;
14317 fail:
14318 return NULL;
14319 }
14320
14321
14322 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14323 PyObject *resultobj = 0;
14324 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14325 int result;
14326 void *argp1 = 0 ;
14327 int res1 = 0 ;
14328 PyObject *swig_obj[1] ;
14329
14330 if (!args) SWIG_fail;
14331 swig_obj[0] = args;
14332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14333 if (!SWIG_IsOK(res1)) {
14334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14335 }
14336 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14340 wxPyEndAllowThreads(__tstate);
14341 if (PyErr_Occurred()) SWIG_fail;
14342 }
14343 resultobj = SWIG_From_int(static_cast< int >(result));
14344 return resultobj;
14345 fail:
14346 return NULL;
14347 }
14348
14349
14350 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14351 PyObject *resultobj = 0;
14352 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14353 int result;
14354 void *argp1 = 0 ;
14355 int res1 = 0 ;
14356 PyObject *swig_obj[1] ;
14357
14358 if (!args) SWIG_fail;
14359 swig_obj[0] = args;
14360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14361 if (!SWIG_IsOK(res1)) {
14362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14363 }
14364 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 result = (int)((wxScrollBar const *)arg1)->GetRange();
14368 wxPyEndAllowThreads(__tstate);
14369 if (PyErr_Occurred()) SWIG_fail;
14370 }
14371 resultobj = SWIG_From_int(static_cast< int >(result));
14372 return resultobj;
14373 fail:
14374 return NULL;
14375 }
14376
14377
14378 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14379 PyObject *resultobj = 0;
14380 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14381 bool result;
14382 void *argp1 = 0 ;
14383 int res1 = 0 ;
14384 PyObject *swig_obj[1] ;
14385
14386 if (!args) SWIG_fail;
14387 swig_obj[0] = args;
14388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14389 if (!SWIG_IsOK(res1)) {
14390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14391 }
14392 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14393 {
14394 PyThreadState* __tstate = wxPyBeginAllowThreads();
14395 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14396 wxPyEndAllowThreads(__tstate);
14397 if (PyErr_Occurred()) SWIG_fail;
14398 }
14399 {
14400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14401 }
14402 return resultobj;
14403 fail:
14404 return NULL;
14405 }
14406
14407
14408 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14409 PyObject *resultobj = 0;
14410 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14411 int arg2 ;
14412 void *argp1 = 0 ;
14413 int res1 = 0 ;
14414 int val2 ;
14415 int ecode2 = 0 ;
14416 PyObject * obj0 = 0 ;
14417 PyObject * obj1 = 0 ;
14418 char * kwnames[] = {
14419 (char *) "self",(char *) "viewStart", NULL
14420 };
14421
14422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14424 if (!SWIG_IsOK(res1)) {
14425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14426 }
14427 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14428 ecode2 = SWIG_AsVal_int(obj1, &val2);
14429 if (!SWIG_IsOK(ecode2)) {
14430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14431 }
14432 arg2 = static_cast< int >(val2);
14433 {
14434 PyThreadState* __tstate = wxPyBeginAllowThreads();
14435 (arg1)->SetThumbPosition(arg2);
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 resultobj = SWIG_Py_Void();
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj = 0;
14448 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14449 SwigValueWrapper<wxVisualAttributes > result;
14450 int val1 ;
14451 int ecode1 = 0 ;
14452 PyObject * obj0 = 0 ;
14453 char * kwnames[] = {
14454 (char *) "variant", NULL
14455 };
14456
14457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14458 if (obj0) {
14459 ecode1 = SWIG_AsVal_int(obj0, &val1);
14460 if (!SWIG_IsOK(ecode1)) {
14461 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14462 }
14463 arg1 = static_cast< wxWindowVariant >(val1);
14464 }
14465 {
14466 if (!wxPyCheckForApp()) SWIG_fail;
14467 PyThreadState* __tstate = wxPyBeginAllowThreads();
14468 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14469 wxPyEndAllowThreads(__tstate);
14470 if (PyErr_Occurred()) SWIG_fail;
14471 }
14472 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14473 return resultobj;
14474 fail:
14475 return NULL;
14476 }
14477
14478
14479 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14480 PyObject *obj;
14481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14482 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14483 return SWIG_Py_Void();
14484 }
14485
14486 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14487 return SWIG_Python_InitShadowInstance(args);
14488 }
14489
14490 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14491 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14492 return 1;
14493 }
14494
14495
14496 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14497 PyObject *pyobj = 0;
14498
14499 {
14500 #if wxUSE_UNICODE
14501 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14502 #else
14503 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14504 #endif
14505 }
14506 return pyobj;
14507 }
14508
14509
14510 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14511 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14512 return 1;
14513 }
14514
14515
14516 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14517 PyObject *pyobj = 0;
14518
14519 {
14520 #if wxUSE_UNICODE
14521 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14522 #else
14523 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14524 #endif
14525 }
14526 return pyobj;
14527 }
14528
14529
14530 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14531 PyObject *resultobj = 0;
14532 wxWindow *arg1 = (wxWindow *) 0 ;
14533 int arg2 = (int) -1 ;
14534 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14535 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14536 wxSize const &arg4_defvalue = wxDefaultSize ;
14537 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14538 long arg5 = (long) wxSP_HORIZONTAL ;
14539 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14540 wxString *arg6 = (wxString *) &arg6_defvalue ;
14541 wxSpinButton *result = 0 ;
14542 void *argp1 = 0 ;
14543 int res1 = 0 ;
14544 int val2 ;
14545 int ecode2 = 0 ;
14546 wxPoint temp3 ;
14547 wxSize temp4 ;
14548 long val5 ;
14549 int ecode5 = 0 ;
14550 bool temp6 = false ;
14551 PyObject * obj0 = 0 ;
14552 PyObject * obj1 = 0 ;
14553 PyObject * obj2 = 0 ;
14554 PyObject * obj3 = 0 ;
14555 PyObject * obj4 = 0 ;
14556 PyObject * obj5 = 0 ;
14557 char * kwnames[] = {
14558 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14559 };
14560
14561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14563 if (!SWIG_IsOK(res1)) {
14564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14565 }
14566 arg1 = reinterpret_cast< wxWindow * >(argp1);
14567 if (obj1) {
14568 ecode2 = SWIG_AsVal_int(obj1, &val2);
14569 if (!SWIG_IsOK(ecode2)) {
14570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14571 }
14572 arg2 = static_cast< int >(val2);
14573 }
14574 if (obj2) {
14575 {
14576 arg3 = &temp3;
14577 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14578 }
14579 }
14580 if (obj3) {
14581 {
14582 arg4 = &temp4;
14583 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14584 }
14585 }
14586 if (obj4) {
14587 ecode5 = SWIG_AsVal_long(obj4, &val5);
14588 if (!SWIG_IsOK(ecode5)) {
14589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14590 }
14591 arg5 = static_cast< long >(val5);
14592 }
14593 if (obj5) {
14594 {
14595 arg6 = wxString_in_helper(obj5);
14596 if (arg6 == NULL) SWIG_fail;
14597 temp6 = true;
14598 }
14599 }
14600 {
14601 if (!wxPyCheckForApp()) SWIG_fail;
14602 PyThreadState* __tstate = wxPyBeginAllowThreads();
14603 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14608 {
14609 if (temp6)
14610 delete arg6;
14611 }
14612 return resultobj;
14613 fail:
14614 {
14615 if (temp6)
14616 delete arg6;
14617 }
14618 return NULL;
14619 }
14620
14621
14622 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14623 PyObject *resultobj = 0;
14624 wxSpinButton *result = 0 ;
14625
14626 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14627 {
14628 if (!wxPyCheckForApp()) SWIG_fail;
14629 PyThreadState* __tstate = wxPyBeginAllowThreads();
14630 result = (wxSpinButton *)new wxSpinButton();
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14635 return resultobj;
14636 fail:
14637 return NULL;
14638 }
14639
14640
14641 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14642 PyObject *resultobj = 0;
14643 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14644 wxWindow *arg2 = (wxWindow *) 0 ;
14645 int arg3 = (int) -1 ;
14646 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14647 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14648 wxSize const &arg5_defvalue = wxDefaultSize ;
14649 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14650 long arg6 = (long) wxSP_HORIZONTAL ;
14651 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14652 wxString *arg7 = (wxString *) &arg7_defvalue ;
14653 bool result;
14654 void *argp1 = 0 ;
14655 int res1 = 0 ;
14656 void *argp2 = 0 ;
14657 int res2 = 0 ;
14658 int val3 ;
14659 int ecode3 = 0 ;
14660 wxPoint temp4 ;
14661 wxSize temp5 ;
14662 long val6 ;
14663 int ecode6 = 0 ;
14664 bool temp7 = false ;
14665 PyObject * obj0 = 0 ;
14666 PyObject * obj1 = 0 ;
14667 PyObject * obj2 = 0 ;
14668 PyObject * obj3 = 0 ;
14669 PyObject * obj4 = 0 ;
14670 PyObject * obj5 = 0 ;
14671 PyObject * obj6 = 0 ;
14672 char * kwnames[] = {
14673 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14674 };
14675
14676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14678 if (!SWIG_IsOK(res1)) {
14679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14680 }
14681 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14683 if (!SWIG_IsOK(res2)) {
14684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14685 }
14686 arg2 = reinterpret_cast< wxWindow * >(argp2);
14687 if (obj2) {
14688 ecode3 = SWIG_AsVal_int(obj2, &val3);
14689 if (!SWIG_IsOK(ecode3)) {
14690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14691 }
14692 arg3 = static_cast< int >(val3);
14693 }
14694 if (obj3) {
14695 {
14696 arg4 = &temp4;
14697 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14698 }
14699 }
14700 if (obj4) {
14701 {
14702 arg5 = &temp5;
14703 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14704 }
14705 }
14706 if (obj5) {
14707 ecode6 = SWIG_AsVal_long(obj5, &val6);
14708 if (!SWIG_IsOK(ecode6)) {
14709 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14710 }
14711 arg6 = static_cast< long >(val6);
14712 }
14713 if (obj6) {
14714 {
14715 arg7 = wxString_in_helper(obj6);
14716 if (arg7 == NULL) SWIG_fail;
14717 temp7 = true;
14718 }
14719 }
14720 {
14721 PyThreadState* __tstate = wxPyBeginAllowThreads();
14722 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14723 wxPyEndAllowThreads(__tstate);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 }
14726 {
14727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14728 }
14729 {
14730 if (temp7)
14731 delete arg7;
14732 }
14733 return resultobj;
14734 fail:
14735 {
14736 if (temp7)
14737 delete arg7;
14738 }
14739 return NULL;
14740 }
14741
14742
14743 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14744 PyObject *resultobj = 0;
14745 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14746 int result;
14747 void *argp1 = 0 ;
14748 int res1 = 0 ;
14749 PyObject *swig_obj[1] ;
14750
14751 if (!args) SWIG_fail;
14752 swig_obj[0] = args;
14753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14754 if (!SWIG_IsOK(res1)) {
14755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14756 }
14757 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14758 {
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 result = (int)((wxSpinButton const *)arg1)->GetValue();
14761 wxPyEndAllowThreads(__tstate);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 resultobj = SWIG_From_int(static_cast< int >(result));
14765 return resultobj;
14766 fail:
14767 return NULL;
14768 }
14769
14770
14771 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14772 PyObject *resultobj = 0;
14773 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14774 int result;
14775 void *argp1 = 0 ;
14776 int res1 = 0 ;
14777 PyObject *swig_obj[1] ;
14778
14779 if (!args) SWIG_fail;
14780 swig_obj[0] = args;
14781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14782 if (!SWIG_IsOK(res1)) {
14783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14784 }
14785 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 result = (int)((wxSpinButton const *)arg1)->GetMin();
14789 wxPyEndAllowThreads(__tstate);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 resultobj = SWIG_From_int(static_cast< int >(result));
14793 return resultobj;
14794 fail:
14795 return NULL;
14796 }
14797
14798
14799 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14800 PyObject *resultobj = 0;
14801 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14802 int result;
14803 void *argp1 = 0 ;
14804 int res1 = 0 ;
14805 PyObject *swig_obj[1] ;
14806
14807 if (!args) SWIG_fail;
14808 swig_obj[0] = args;
14809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14810 if (!SWIG_IsOK(res1)) {
14811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14812 }
14813 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 result = (int)((wxSpinButton const *)arg1)->GetMax();
14817 wxPyEndAllowThreads(__tstate);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 resultobj = SWIG_From_int(static_cast< int >(result));
14821 return resultobj;
14822 fail:
14823 return NULL;
14824 }
14825
14826
14827 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14828 PyObject *resultobj = 0;
14829 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14830 int arg2 ;
14831 void *argp1 = 0 ;
14832 int res1 = 0 ;
14833 int val2 ;
14834 int ecode2 = 0 ;
14835 PyObject * obj0 = 0 ;
14836 PyObject * obj1 = 0 ;
14837 char * kwnames[] = {
14838 (char *) "self",(char *) "val", NULL
14839 };
14840
14841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14843 if (!SWIG_IsOK(res1)) {
14844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14845 }
14846 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14847 ecode2 = SWIG_AsVal_int(obj1, &val2);
14848 if (!SWIG_IsOK(ecode2)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14850 }
14851 arg2 = static_cast< int >(val2);
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 (arg1)->SetValue(arg2);
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = SWIG_Py_Void();
14859 return resultobj;
14860 fail:
14861 return NULL;
14862 }
14863
14864
14865 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj = 0;
14867 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14868 int arg2 ;
14869 void *argp1 = 0 ;
14870 int res1 = 0 ;
14871 int val2 ;
14872 int ecode2 = 0 ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 char * kwnames[] = {
14876 (char *) "self",(char *) "minVal", NULL
14877 };
14878
14879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14883 }
14884 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14885 ecode2 = SWIG_AsVal_int(obj1, &val2);
14886 if (!SWIG_IsOK(ecode2)) {
14887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14888 }
14889 arg2 = static_cast< int >(val2);
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 (arg1)->SetMin(arg2);
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_Py_Void();
14897 return resultobj;
14898 fail:
14899 return NULL;
14900 }
14901
14902
14903 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj = 0;
14905 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14906 int arg2 ;
14907 void *argp1 = 0 ;
14908 int res1 = 0 ;
14909 int val2 ;
14910 int ecode2 = 0 ;
14911 PyObject * obj0 = 0 ;
14912 PyObject * obj1 = 0 ;
14913 char * kwnames[] = {
14914 (char *) "self",(char *) "maxVal", NULL
14915 };
14916
14917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14919 if (!SWIG_IsOK(res1)) {
14920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14921 }
14922 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14923 ecode2 = SWIG_AsVal_int(obj1, &val2);
14924 if (!SWIG_IsOK(ecode2)) {
14925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14926 }
14927 arg2 = static_cast< int >(val2);
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 (arg1)->SetMax(arg2);
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
14934 resultobj = SWIG_Py_Void();
14935 return resultobj;
14936 fail:
14937 return NULL;
14938 }
14939
14940
14941 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj = 0;
14943 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14944 int arg2 ;
14945 int arg3 ;
14946 void *argp1 = 0 ;
14947 int res1 = 0 ;
14948 int val2 ;
14949 int ecode2 = 0 ;
14950 int val3 ;
14951 int ecode3 = 0 ;
14952 PyObject * obj0 = 0 ;
14953 PyObject * obj1 = 0 ;
14954 PyObject * obj2 = 0 ;
14955 char * kwnames[] = {
14956 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14957 };
14958
14959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14961 if (!SWIG_IsOK(res1)) {
14962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14963 }
14964 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14965 ecode2 = SWIG_AsVal_int(obj1, &val2);
14966 if (!SWIG_IsOK(ecode2)) {
14967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14968 }
14969 arg2 = static_cast< int >(val2);
14970 ecode3 = SWIG_AsVal_int(obj2, &val3);
14971 if (!SWIG_IsOK(ecode3)) {
14972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14973 }
14974 arg3 = static_cast< int >(val3);
14975 {
14976 PyThreadState* __tstate = wxPyBeginAllowThreads();
14977 (arg1)->SetRange(arg2,arg3);
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 resultobj = SWIG_Py_Void();
14982 return resultobj;
14983 fail:
14984 return NULL;
14985 }
14986
14987
14988 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14989 PyObject *resultobj = 0;
14990 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14991 bool result;
14992 void *argp1 = 0 ;
14993 int res1 = 0 ;
14994 PyObject *swig_obj[1] ;
14995
14996 if (!args) SWIG_fail;
14997 swig_obj[0] = args;
14998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14999 if (!SWIG_IsOK(res1)) {
15000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15001 }
15002 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15003 {
15004 PyThreadState* __tstate = wxPyBeginAllowThreads();
15005 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15006 wxPyEndAllowThreads(__tstate);
15007 if (PyErr_Occurred()) SWIG_fail;
15008 }
15009 {
15010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15011 }
15012 return resultobj;
15013 fail:
15014 return NULL;
15015 }
15016
15017
15018 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15019 PyObject *resultobj = 0;
15020 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15021 SwigValueWrapper<wxVisualAttributes > result;
15022 int val1 ;
15023 int ecode1 = 0 ;
15024 PyObject * obj0 = 0 ;
15025 char * kwnames[] = {
15026 (char *) "variant", NULL
15027 };
15028
15029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15030 if (obj0) {
15031 ecode1 = SWIG_AsVal_int(obj0, &val1);
15032 if (!SWIG_IsOK(ecode1)) {
15033 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15034 }
15035 arg1 = static_cast< wxWindowVariant >(val1);
15036 }
15037 {
15038 if (!wxPyCheckForApp()) SWIG_fail;
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15052 PyObject *obj;
15053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15054 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15055 return SWIG_Py_Void();
15056 }
15057
15058 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15059 return SWIG_Python_InitShadowInstance(args);
15060 }
15061
15062 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15063 PyObject *resultobj = 0;
15064 wxWindow *arg1 = (wxWindow *) 0 ;
15065 int arg2 = (int) -1 ;
15066 wxString const &arg3_defvalue = wxPyEmptyString ;
15067 wxString *arg3 = (wxString *) &arg3_defvalue ;
15068 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15069 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15070 wxSize const &arg5_defvalue = wxDefaultSize ;
15071 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15072 long arg6 = (long) wxSP_ARROW_KEYS ;
15073 int arg7 = (int) 0 ;
15074 int arg8 = (int) 100 ;
15075 int arg9 = (int) 0 ;
15076 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15077 wxString *arg10 = (wxString *) &arg10_defvalue ;
15078 wxSpinCtrl *result = 0 ;
15079 void *argp1 = 0 ;
15080 int res1 = 0 ;
15081 int val2 ;
15082 int ecode2 = 0 ;
15083 bool temp3 = false ;
15084 wxPoint temp4 ;
15085 wxSize temp5 ;
15086 long val6 ;
15087 int ecode6 = 0 ;
15088 int val7 ;
15089 int ecode7 = 0 ;
15090 int val8 ;
15091 int ecode8 = 0 ;
15092 int val9 ;
15093 int ecode9 = 0 ;
15094 bool temp10 = false ;
15095 PyObject * obj0 = 0 ;
15096 PyObject * obj1 = 0 ;
15097 PyObject * obj2 = 0 ;
15098 PyObject * obj3 = 0 ;
15099 PyObject * obj4 = 0 ;
15100 PyObject * obj5 = 0 ;
15101 PyObject * obj6 = 0 ;
15102 PyObject * obj7 = 0 ;
15103 PyObject * obj8 = 0 ;
15104 PyObject * obj9 = 0 ;
15105 char * kwnames[] = {
15106 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15107 };
15108
15109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15111 if (!SWIG_IsOK(res1)) {
15112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15113 }
15114 arg1 = reinterpret_cast< wxWindow * >(argp1);
15115 if (obj1) {
15116 ecode2 = SWIG_AsVal_int(obj1, &val2);
15117 if (!SWIG_IsOK(ecode2)) {
15118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15119 }
15120 arg2 = static_cast< int >(val2);
15121 }
15122 if (obj2) {
15123 {
15124 arg3 = wxString_in_helper(obj2);
15125 if (arg3 == NULL) SWIG_fail;
15126 temp3 = true;
15127 }
15128 }
15129 if (obj3) {
15130 {
15131 arg4 = &temp4;
15132 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15133 }
15134 }
15135 if (obj4) {
15136 {
15137 arg5 = &temp5;
15138 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15139 }
15140 }
15141 if (obj5) {
15142 ecode6 = SWIG_AsVal_long(obj5, &val6);
15143 if (!SWIG_IsOK(ecode6)) {
15144 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15145 }
15146 arg6 = static_cast< long >(val6);
15147 }
15148 if (obj6) {
15149 ecode7 = SWIG_AsVal_int(obj6, &val7);
15150 if (!SWIG_IsOK(ecode7)) {
15151 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15152 }
15153 arg7 = static_cast< int >(val7);
15154 }
15155 if (obj7) {
15156 ecode8 = SWIG_AsVal_int(obj7, &val8);
15157 if (!SWIG_IsOK(ecode8)) {
15158 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15159 }
15160 arg8 = static_cast< int >(val8);
15161 }
15162 if (obj8) {
15163 ecode9 = SWIG_AsVal_int(obj8, &val9);
15164 if (!SWIG_IsOK(ecode9)) {
15165 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15166 }
15167 arg9 = static_cast< int >(val9);
15168 }
15169 if (obj9) {
15170 {
15171 arg10 = wxString_in_helper(obj9);
15172 if (arg10 == NULL) SWIG_fail;
15173 temp10 = true;
15174 }
15175 }
15176 {
15177 if (!wxPyCheckForApp()) SWIG_fail;
15178 PyThreadState* __tstate = wxPyBeginAllowThreads();
15179 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
15183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15184 {
15185 if (temp3)
15186 delete arg3;
15187 }
15188 {
15189 if (temp10)
15190 delete arg10;
15191 }
15192 return resultobj;
15193 fail:
15194 {
15195 if (temp3)
15196 delete arg3;
15197 }
15198 {
15199 if (temp10)
15200 delete arg10;
15201 }
15202 return NULL;
15203 }
15204
15205
15206 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15207 PyObject *resultobj = 0;
15208 wxSpinCtrl *result = 0 ;
15209
15210 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15211 {
15212 if (!wxPyCheckForApp()) SWIG_fail;
15213 PyThreadState* __tstate = wxPyBeginAllowThreads();
15214 result = (wxSpinCtrl *)new wxSpinCtrl();
15215 wxPyEndAllowThreads(__tstate);
15216 if (PyErr_Occurred()) SWIG_fail;
15217 }
15218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15219 return resultobj;
15220 fail:
15221 return NULL;
15222 }
15223
15224
15225 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj = 0;
15227 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15228 wxWindow *arg2 = (wxWindow *) 0 ;
15229 int arg3 = (int) -1 ;
15230 wxString const &arg4_defvalue = wxPyEmptyString ;
15231 wxString *arg4 = (wxString *) &arg4_defvalue ;
15232 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15233 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15234 wxSize const &arg6_defvalue = wxDefaultSize ;
15235 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15236 long arg7 = (long) wxSP_ARROW_KEYS ;
15237 int arg8 = (int) 0 ;
15238 int arg9 = (int) 100 ;
15239 int arg10 = (int) 0 ;
15240 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15241 wxString *arg11 = (wxString *) &arg11_defvalue ;
15242 bool result;
15243 void *argp1 = 0 ;
15244 int res1 = 0 ;
15245 void *argp2 = 0 ;
15246 int res2 = 0 ;
15247 int val3 ;
15248 int ecode3 = 0 ;
15249 bool temp4 = false ;
15250 wxPoint temp5 ;
15251 wxSize temp6 ;
15252 long val7 ;
15253 int ecode7 = 0 ;
15254 int val8 ;
15255 int ecode8 = 0 ;
15256 int val9 ;
15257 int ecode9 = 0 ;
15258 int val10 ;
15259 int ecode10 = 0 ;
15260 bool temp11 = false ;
15261 PyObject * obj0 = 0 ;
15262 PyObject * obj1 = 0 ;
15263 PyObject * obj2 = 0 ;
15264 PyObject * obj3 = 0 ;
15265 PyObject * obj4 = 0 ;
15266 PyObject * obj5 = 0 ;
15267 PyObject * obj6 = 0 ;
15268 PyObject * obj7 = 0 ;
15269 PyObject * obj8 = 0 ;
15270 PyObject * obj9 = 0 ;
15271 PyObject * obj10 = 0 ;
15272 char * kwnames[] = {
15273 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15274 };
15275
15276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15278 if (!SWIG_IsOK(res1)) {
15279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15280 }
15281 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15282 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15283 if (!SWIG_IsOK(res2)) {
15284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15285 }
15286 arg2 = reinterpret_cast< wxWindow * >(argp2);
15287 if (obj2) {
15288 ecode3 = SWIG_AsVal_int(obj2, &val3);
15289 if (!SWIG_IsOK(ecode3)) {
15290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15291 }
15292 arg3 = static_cast< int >(val3);
15293 }
15294 if (obj3) {
15295 {
15296 arg4 = wxString_in_helper(obj3);
15297 if (arg4 == NULL) SWIG_fail;
15298 temp4 = true;
15299 }
15300 }
15301 if (obj4) {
15302 {
15303 arg5 = &temp5;
15304 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15305 }
15306 }
15307 if (obj5) {
15308 {
15309 arg6 = &temp6;
15310 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15311 }
15312 }
15313 if (obj6) {
15314 ecode7 = SWIG_AsVal_long(obj6, &val7);
15315 if (!SWIG_IsOK(ecode7)) {
15316 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15317 }
15318 arg7 = static_cast< long >(val7);
15319 }
15320 if (obj7) {
15321 ecode8 = SWIG_AsVal_int(obj7, &val8);
15322 if (!SWIG_IsOK(ecode8)) {
15323 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15324 }
15325 arg8 = static_cast< int >(val8);
15326 }
15327 if (obj8) {
15328 ecode9 = SWIG_AsVal_int(obj8, &val9);
15329 if (!SWIG_IsOK(ecode9)) {
15330 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15331 }
15332 arg9 = static_cast< int >(val9);
15333 }
15334 if (obj9) {
15335 ecode10 = SWIG_AsVal_int(obj9, &val10);
15336 if (!SWIG_IsOK(ecode10)) {
15337 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15338 }
15339 arg10 = static_cast< int >(val10);
15340 }
15341 if (obj10) {
15342 {
15343 arg11 = wxString_in_helper(obj10);
15344 if (arg11 == NULL) SWIG_fail;
15345 temp11 = true;
15346 }
15347 }
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
15350 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15351 wxPyEndAllowThreads(__tstate);
15352 if (PyErr_Occurred()) SWIG_fail;
15353 }
15354 {
15355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15356 }
15357 {
15358 if (temp4)
15359 delete arg4;
15360 }
15361 {
15362 if (temp11)
15363 delete arg11;
15364 }
15365 return resultobj;
15366 fail:
15367 {
15368 if (temp4)
15369 delete arg4;
15370 }
15371 {
15372 if (temp11)
15373 delete arg11;
15374 }
15375 return NULL;
15376 }
15377
15378
15379 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15380 PyObject *resultobj = 0;
15381 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15382 int result;
15383 void *argp1 = 0 ;
15384 int res1 = 0 ;
15385 PyObject *swig_obj[1] ;
15386
15387 if (!args) SWIG_fail;
15388 swig_obj[0] = args;
15389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15390 if (!SWIG_IsOK(res1)) {
15391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15392 }
15393 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 resultobj = SWIG_From_int(static_cast< int >(result));
15401 return resultobj;
15402 fail:
15403 return NULL;
15404 }
15405
15406
15407 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15408 PyObject *resultobj = 0;
15409 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15410 int arg2 ;
15411 void *argp1 = 0 ;
15412 int res1 = 0 ;
15413 int val2 ;
15414 int ecode2 = 0 ;
15415 PyObject * obj0 = 0 ;
15416 PyObject * obj1 = 0 ;
15417 char * kwnames[] = {
15418 (char *) "self",(char *) "value", NULL
15419 };
15420
15421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15423 if (!SWIG_IsOK(res1)) {
15424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15425 }
15426 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15427 ecode2 = SWIG_AsVal_int(obj1, &val2);
15428 if (!SWIG_IsOK(ecode2)) {
15429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15430 }
15431 arg2 = static_cast< int >(val2);
15432 {
15433 PyThreadState* __tstate = wxPyBeginAllowThreads();
15434 (arg1)->SetValue(arg2);
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 resultobj = SWIG_Py_Void();
15439 return resultobj;
15440 fail:
15441 return NULL;
15442 }
15443
15444
15445 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15446 PyObject *resultobj = 0;
15447 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15448 wxString *arg2 = 0 ;
15449 void *argp1 = 0 ;
15450 int res1 = 0 ;
15451 bool temp2 = false ;
15452 PyObject * obj0 = 0 ;
15453 PyObject * obj1 = 0 ;
15454 char * kwnames[] = {
15455 (char *) "self",(char *) "text", NULL
15456 };
15457
15458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15460 if (!SWIG_IsOK(res1)) {
15461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15462 }
15463 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15464 {
15465 arg2 = wxString_in_helper(obj1);
15466 if (arg2 == NULL) SWIG_fail;
15467 temp2 = true;
15468 }
15469 {
15470 PyThreadState* __tstate = wxPyBeginAllowThreads();
15471 (arg1)->SetValue((wxString const &)*arg2);
15472 wxPyEndAllowThreads(__tstate);
15473 if (PyErr_Occurred()) SWIG_fail;
15474 }
15475 resultobj = SWIG_Py_Void();
15476 {
15477 if (temp2)
15478 delete arg2;
15479 }
15480 return resultobj;
15481 fail:
15482 {
15483 if (temp2)
15484 delete arg2;
15485 }
15486 return NULL;
15487 }
15488
15489
15490 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15491 PyObject *resultobj = 0;
15492 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15493 int arg2 ;
15494 int arg3 ;
15495 void *argp1 = 0 ;
15496 int res1 = 0 ;
15497 int val2 ;
15498 int ecode2 = 0 ;
15499 int val3 ;
15500 int ecode3 = 0 ;
15501 PyObject * obj0 = 0 ;
15502 PyObject * obj1 = 0 ;
15503 PyObject * obj2 = 0 ;
15504 char * kwnames[] = {
15505 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15506 };
15507
15508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15510 if (!SWIG_IsOK(res1)) {
15511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15512 }
15513 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15514 ecode2 = SWIG_AsVal_int(obj1, &val2);
15515 if (!SWIG_IsOK(ecode2)) {
15516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15517 }
15518 arg2 = static_cast< int >(val2);
15519 ecode3 = SWIG_AsVal_int(obj2, &val3);
15520 if (!SWIG_IsOK(ecode3)) {
15521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15522 }
15523 arg3 = static_cast< int >(val3);
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 (arg1)->SetRange(arg2,arg3);
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 resultobj = SWIG_Py_Void();
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15538 PyObject *resultobj = 0;
15539 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15540 int result;
15541 void *argp1 = 0 ;
15542 int res1 = 0 ;
15543 PyObject *swig_obj[1] ;
15544
15545 if (!args) SWIG_fail;
15546 swig_obj[0] = args;
15547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15548 if (!SWIG_IsOK(res1)) {
15549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15550 }
15551 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15552 {
15553 PyThreadState* __tstate = wxPyBeginAllowThreads();
15554 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15555 wxPyEndAllowThreads(__tstate);
15556 if (PyErr_Occurred()) SWIG_fail;
15557 }
15558 resultobj = SWIG_From_int(static_cast< int >(result));
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15566 PyObject *resultobj = 0;
15567 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15568 int result;
15569 void *argp1 = 0 ;
15570 int res1 = 0 ;
15571 PyObject *swig_obj[1] ;
15572
15573 if (!args) SWIG_fail;
15574 swig_obj[0] = args;
15575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15576 if (!SWIG_IsOK(res1)) {
15577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15578 }
15579 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15580 {
15581 PyThreadState* __tstate = wxPyBeginAllowThreads();
15582 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 resultobj = SWIG_From_int(static_cast< int >(result));
15587 return resultobj;
15588 fail:
15589 return NULL;
15590 }
15591
15592
15593 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15594 PyObject *resultobj = 0;
15595 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15596 long arg2 ;
15597 long arg3 ;
15598 void *argp1 = 0 ;
15599 int res1 = 0 ;
15600 long val2 ;
15601 int ecode2 = 0 ;
15602 long val3 ;
15603 int ecode3 = 0 ;
15604 PyObject * obj0 = 0 ;
15605 PyObject * obj1 = 0 ;
15606 PyObject * obj2 = 0 ;
15607 char * kwnames[] = {
15608 (char *) "self",(char *) "from",(char *) "to", NULL
15609 };
15610
15611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15613 if (!SWIG_IsOK(res1)) {
15614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15615 }
15616 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15617 ecode2 = SWIG_AsVal_long(obj1, &val2);
15618 if (!SWIG_IsOK(ecode2)) {
15619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15620 }
15621 arg2 = static_cast< long >(val2);
15622 ecode3 = SWIG_AsVal_long(obj2, &val3);
15623 if (!SWIG_IsOK(ecode3)) {
15624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15625 }
15626 arg3 = static_cast< long >(val3);
15627 {
15628 PyThreadState* __tstate = wxPyBeginAllowThreads();
15629 (arg1)->SetSelection(arg2,arg3);
15630 wxPyEndAllowThreads(__tstate);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 resultobj = SWIG_Py_Void();
15634 return resultobj;
15635 fail:
15636 return NULL;
15637 }
15638
15639
15640 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15641 PyObject *resultobj = 0;
15642 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15643 SwigValueWrapper<wxVisualAttributes > result;
15644 int val1 ;
15645 int ecode1 = 0 ;
15646 PyObject * obj0 = 0 ;
15647 char * kwnames[] = {
15648 (char *) "variant", NULL
15649 };
15650
15651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15652 if (obj0) {
15653 ecode1 = SWIG_AsVal_int(obj0, &val1);
15654 if (!SWIG_IsOK(ecode1)) {
15655 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15656 }
15657 arg1 = static_cast< wxWindowVariant >(val1);
15658 }
15659 {
15660 if (!wxPyCheckForApp()) SWIG_fail;
15661 PyThreadState* __tstate = wxPyBeginAllowThreads();
15662 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15663 wxPyEndAllowThreads(__tstate);
15664 if (PyErr_Occurred()) SWIG_fail;
15665 }
15666 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15667 return resultobj;
15668 fail:
15669 return NULL;
15670 }
15671
15672
15673 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15674 PyObject *obj;
15675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15676 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15677 return SWIG_Py_Void();
15678 }
15679
15680 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15681 return SWIG_Python_InitShadowInstance(args);
15682 }
15683
15684 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15685 PyObject *resultobj = 0;
15686 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15687 int arg2 = (int) 0 ;
15688 wxSpinEvent *result = 0 ;
15689 int val1 ;
15690 int ecode1 = 0 ;
15691 int val2 ;
15692 int ecode2 = 0 ;
15693 PyObject * obj0 = 0 ;
15694 PyObject * obj1 = 0 ;
15695 char * kwnames[] = {
15696 (char *) "commandType",(char *) "winid", NULL
15697 };
15698
15699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15700 if (obj0) {
15701 ecode1 = SWIG_AsVal_int(obj0, &val1);
15702 if (!SWIG_IsOK(ecode1)) {
15703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15704 }
15705 arg1 = static_cast< wxEventType >(val1);
15706 }
15707 if (obj1) {
15708 ecode2 = SWIG_AsVal_int(obj1, &val2);
15709 if (!SWIG_IsOK(ecode2)) {
15710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15711 }
15712 arg2 = static_cast< int >(val2);
15713 }
15714 {
15715 PyThreadState* __tstate = wxPyBeginAllowThreads();
15716 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15721 return resultobj;
15722 fail:
15723 return NULL;
15724 }
15725
15726
15727 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15728 PyObject *resultobj = 0;
15729 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15730 int result;
15731 void *argp1 = 0 ;
15732 int res1 = 0 ;
15733 PyObject *swig_obj[1] ;
15734
15735 if (!args) SWIG_fail;
15736 swig_obj[0] = args;
15737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15738 if (!SWIG_IsOK(res1)) {
15739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15740 }
15741 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15742 {
15743 PyThreadState* __tstate = wxPyBeginAllowThreads();
15744 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15745 wxPyEndAllowThreads(__tstate);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 resultobj = SWIG_From_int(static_cast< int >(result));
15749 return resultobj;
15750 fail:
15751 return NULL;
15752 }
15753
15754
15755 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15756 PyObject *resultobj = 0;
15757 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15758 int arg2 ;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 int val2 ;
15762 int ecode2 = 0 ;
15763 PyObject * obj0 = 0 ;
15764 PyObject * obj1 = 0 ;
15765 char * kwnames[] = {
15766 (char *) "self",(char *) "pos", NULL
15767 };
15768
15769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15771 if (!SWIG_IsOK(res1)) {
15772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15773 }
15774 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15775 ecode2 = SWIG_AsVal_int(obj1, &val2);
15776 if (!SWIG_IsOK(ecode2)) {
15777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15778 }
15779 arg2 = static_cast< int >(val2);
15780 {
15781 PyThreadState* __tstate = wxPyBeginAllowThreads();
15782 (arg1)->SetPosition(arg2);
15783 wxPyEndAllowThreads(__tstate);
15784 if (PyErr_Occurred()) SWIG_fail;
15785 }
15786 resultobj = SWIG_Py_Void();
15787 return resultobj;
15788 fail:
15789 return NULL;
15790 }
15791
15792
15793 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15794 PyObject *obj;
15795 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15796 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15797 return SWIG_Py_Void();
15798 }
15799
15800 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15801 return SWIG_Python_InitShadowInstance(args);
15802 }
15803
15804 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15805 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15806 return 1;
15807 }
15808
15809
15810 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15811 PyObject *pyobj = 0;
15812
15813 {
15814 #if wxUSE_UNICODE
15815 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15816 #else
15817 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15818 #endif
15819 }
15820 return pyobj;
15821 }
15822
15823
15824 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15825 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15826 return 1;
15827 }
15828
15829
15830 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15831 PyObject *pyobj = 0;
15832
15833 {
15834 #if wxUSE_UNICODE
15835 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15836 #else
15837 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15838 #endif
15839 }
15840 return pyobj;
15841 }
15842
15843
15844 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15845 PyObject *resultobj = 0;
15846 wxWindow *arg1 = (wxWindow *) 0 ;
15847 int arg2 = (int) -1 ;
15848 wxString const &arg3_defvalue = wxPyEmptyString ;
15849 wxString *arg3 = (wxString *) &arg3_defvalue ;
15850 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15851 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15852 wxSize const &arg5_defvalue = wxDefaultSize ;
15853 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15854 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15855 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15856 int arg7 = (int) 0 ;
15857 long arg8 = (long) wxRA_HORIZONTAL ;
15858 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15859 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15860 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15861 wxString *arg10 = (wxString *) &arg10_defvalue ;
15862 wxRadioBox *result = 0 ;
15863 void *argp1 = 0 ;
15864 int res1 = 0 ;
15865 int val2 ;
15866 int ecode2 = 0 ;
15867 bool temp3 = false ;
15868 wxPoint temp4 ;
15869 wxSize temp5 ;
15870 bool temp6 = false ;
15871 int val7 ;
15872 int ecode7 = 0 ;
15873 long val8 ;
15874 int ecode8 = 0 ;
15875 void *argp9 = 0 ;
15876 int res9 = 0 ;
15877 bool temp10 = false ;
15878 PyObject * obj0 = 0 ;
15879 PyObject * obj1 = 0 ;
15880 PyObject * obj2 = 0 ;
15881 PyObject * obj3 = 0 ;
15882 PyObject * obj4 = 0 ;
15883 PyObject * obj5 = 0 ;
15884 PyObject * obj6 = 0 ;
15885 PyObject * obj7 = 0 ;
15886 PyObject * obj8 = 0 ;
15887 PyObject * obj9 = 0 ;
15888 char * kwnames[] = {
15889 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15890 };
15891
15892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15894 if (!SWIG_IsOK(res1)) {
15895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15896 }
15897 arg1 = reinterpret_cast< wxWindow * >(argp1);
15898 if (obj1) {
15899 ecode2 = SWIG_AsVal_int(obj1, &val2);
15900 if (!SWIG_IsOK(ecode2)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15902 }
15903 arg2 = static_cast< int >(val2);
15904 }
15905 if (obj2) {
15906 {
15907 arg3 = wxString_in_helper(obj2);
15908 if (arg3 == NULL) SWIG_fail;
15909 temp3 = true;
15910 }
15911 }
15912 if (obj3) {
15913 {
15914 arg4 = &temp4;
15915 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15916 }
15917 }
15918 if (obj4) {
15919 {
15920 arg5 = &temp5;
15921 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15922 }
15923 }
15924 if (obj5) {
15925 {
15926 if (! PySequence_Check(obj5)) {
15927 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15928 SWIG_fail;
15929 }
15930 arg6 = new wxArrayString;
15931 temp6 = true;
15932 int i, len=PySequence_Length(obj5);
15933 for (i=0; i<len; i++) {
15934 PyObject* item = PySequence_GetItem(obj5, i);
15935 wxString* s = wxString_in_helper(item);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 arg6->Add(*s);
15938 delete s;
15939 Py_DECREF(item);
15940 }
15941 }
15942 }
15943 if (obj6) {
15944 ecode7 = SWIG_AsVal_int(obj6, &val7);
15945 if (!SWIG_IsOK(ecode7)) {
15946 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15947 }
15948 arg7 = static_cast< int >(val7);
15949 }
15950 if (obj7) {
15951 ecode8 = SWIG_AsVal_long(obj7, &val8);
15952 if (!SWIG_IsOK(ecode8)) {
15953 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15954 }
15955 arg8 = static_cast< long >(val8);
15956 }
15957 if (obj8) {
15958 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15959 if (!SWIG_IsOK(res9)) {
15960 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15961 }
15962 if (!argp9) {
15963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15964 }
15965 arg9 = reinterpret_cast< wxValidator * >(argp9);
15966 }
15967 if (obj9) {
15968 {
15969 arg10 = wxString_in_helper(obj9);
15970 if (arg10 == NULL) SWIG_fail;
15971 temp10 = true;
15972 }
15973 }
15974 {
15975 if (!wxPyCheckForApp()) SWIG_fail;
15976 PyThreadState* __tstate = wxPyBeginAllowThreads();
15977 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);
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
15981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15982 {
15983 if (temp3)
15984 delete arg3;
15985 }
15986 {
15987 if (temp6) delete arg6;
15988 }
15989 {
15990 if (temp10)
15991 delete arg10;
15992 }
15993 return resultobj;
15994 fail:
15995 {
15996 if (temp3)
15997 delete arg3;
15998 }
15999 {
16000 if (temp6) delete arg6;
16001 }
16002 {
16003 if (temp10)
16004 delete arg10;
16005 }
16006 return NULL;
16007 }
16008
16009
16010 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16011 PyObject *resultobj = 0;
16012 wxRadioBox *result = 0 ;
16013
16014 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16015 {
16016 if (!wxPyCheckForApp()) SWIG_fail;
16017 PyThreadState* __tstate = wxPyBeginAllowThreads();
16018 result = (wxRadioBox *)new wxRadioBox();
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16023 return resultobj;
16024 fail:
16025 return NULL;
16026 }
16027
16028
16029 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16030 PyObject *resultobj = 0;
16031 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16032 wxWindow *arg2 = (wxWindow *) 0 ;
16033 int arg3 = (int) -1 ;
16034 wxString const &arg4_defvalue = wxPyEmptyString ;
16035 wxString *arg4 = (wxString *) &arg4_defvalue ;
16036 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16037 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16038 wxSize const &arg6_defvalue = wxDefaultSize ;
16039 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16040 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16041 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16042 int arg8 = (int) 0 ;
16043 long arg9 = (long) wxRA_HORIZONTAL ;
16044 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16045 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16046 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16047 wxString *arg11 = (wxString *) &arg11_defvalue ;
16048 bool result;
16049 void *argp1 = 0 ;
16050 int res1 = 0 ;
16051 void *argp2 = 0 ;
16052 int res2 = 0 ;
16053 int val3 ;
16054 int ecode3 = 0 ;
16055 bool temp4 = false ;
16056 wxPoint temp5 ;
16057 wxSize temp6 ;
16058 bool temp7 = false ;
16059 int val8 ;
16060 int ecode8 = 0 ;
16061 long val9 ;
16062 int ecode9 = 0 ;
16063 void *argp10 = 0 ;
16064 int res10 = 0 ;
16065 bool temp11 = false ;
16066 PyObject * obj0 = 0 ;
16067 PyObject * obj1 = 0 ;
16068 PyObject * obj2 = 0 ;
16069 PyObject * obj3 = 0 ;
16070 PyObject * obj4 = 0 ;
16071 PyObject * obj5 = 0 ;
16072 PyObject * obj6 = 0 ;
16073 PyObject * obj7 = 0 ;
16074 PyObject * obj8 = 0 ;
16075 PyObject * obj9 = 0 ;
16076 PyObject * obj10 = 0 ;
16077 char * kwnames[] = {
16078 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16079 };
16080
16081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16083 if (!SWIG_IsOK(res1)) {
16084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16085 }
16086 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16088 if (!SWIG_IsOK(res2)) {
16089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16090 }
16091 arg2 = reinterpret_cast< wxWindow * >(argp2);
16092 if (obj2) {
16093 ecode3 = SWIG_AsVal_int(obj2, &val3);
16094 if (!SWIG_IsOK(ecode3)) {
16095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16096 }
16097 arg3 = static_cast< int >(val3);
16098 }
16099 if (obj3) {
16100 {
16101 arg4 = wxString_in_helper(obj3);
16102 if (arg4 == NULL) SWIG_fail;
16103 temp4 = true;
16104 }
16105 }
16106 if (obj4) {
16107 {
16108 arg5 = &temp5;
16109 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16110 }
16111 }
16112 if (obj5) {
16113 {
16114 arg6 = &temp6;
16115 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16116 }
16117 }
16118 if (obj6) {
16119 {
16120 if (! PySequence_Check(obj6)) {
16121 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16122 SWIG_fail;
16123 }
16124 arg7 = new wxArrayString;
16125 temp7 = true;
16126 int i, len=PySequence_Length(obj6);
16127 for (i=0; i<len; i++) {
16128 PyObject* item = PySequence_GetItem(obj6, i);
16129 wxString* s = wxString_in_helper(item);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 arg7->Add(*s);
16132 delete s;
16133 Py_DECREF(item);
16134 }
16135 }
16136 }
16137 if (obj7) {
16138 ecode8 = SWIG_AsVal_int(obj7, &val8);
16139 if (!SWIG_IsOK(ecode8)) {
16140 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16141 }
16142 arg8 = static_cast< int >(val8);
16143 }
16144 if (obj8) {
16145 ecode9 = SWIG_AsVal_long(obj8, &val9);
16146 if (!SWIG_IsOK(ecode9)) {
16147 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16148 }
16149 arg9 = static_cast< long >(val9);
16150 }
16151 if (obj9) {
16152 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16153 if (!SWIG_IsOK(res10)) {
16154 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16155 }
16156 if (!argp10) {
16157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16158 }
16159 arg10 = reinterpret_cast< wxValidator * >(argp10);
16160 }
16161 if (obj10) {
16162 {
16163 arg11 = wxString_in_helper(obj10);
16164 if (arg11 == NULL) SWIG_fail;
16165 temp11 = true;
16166 }
16167 }
16168 {
16169 PyThreadState* __tstate = wxPyBeginAllowThreads();
16170 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);
16171 wxPyEndAllowThreads(__tstate);
16172 if (PyErr_Occurred()) SWIG_fail;
16173 }
16174 {
16175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16176 }
16177 {
16178 if (temp4)
16179 delete arg4;
16180 }
16181 {
16182 if (temp7) delete arg7;
16183 }
16184 {
16185 if (temp11)
16186 delete arg11;
16187 }
16188 return resultobj;
16189 fail:
16190 {
16191 if (temp4)
16192 delete arg4;
16193 }
16194 {
16195 if (temp7) delete arg7;
16196 }
16197 {
16198 if (temp11)
16199 delete arg11;
16200 }
16201 return NULL;
16202 }
16203
16204
16205 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16206 PyObject *resultobj = 0;
16207 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16208 int arg2 ;
16209 void *argp1 = 0 ;
16210 int res1 = 0 ;
16211 int val2 ;
16212 int ecode2 = 0 ;
16213 PyObject * obj0 = 0 ;
16214 PyObject * obj1 = 0 ;
16215 char * kwnames[] = {
16216 (char *) "self",(char *) "n", NULL
16217 };
16218
16219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16221 if (!SWIG_IsOK(res1)) {
16222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16223 }
16224 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16225 ecode2 = SWIG_AsVal_int(obj1, &val2);
16226 if (!SWIG_IsOK(ecode2)) {
16227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16228 }
16229 arg2 = static_cast< int >(val2);
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 (arg1)->SetSelection(arg2);
16233 wxPyEndAllowThreads(__tstate);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 }
16236 resultobj = SWIG_Py_Void();
16237 return resultobj;
16238 fail:
16239 return NULL;
16240 }
16241
16242
16243 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16244 PyObject *resultobj = 0;
16245 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16246 int result;
16247 void *argp1 = 0 ;
16248 int res1 = 0 ;
16249 PyObject *swig_obj[1] ;
16250
16251 if (!args) SWIG_fail;
16252 swig_obj[0] = args;
16253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16254 if (!SWIG_IsOK(res1)) {
16255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16256 }
16257 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16258 {
16259 PyThreadState* __tstate = wxPyBeginAllowThreads();
16260 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16261 wxPyEndAllowThreads(__tstate);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 resultobj = SWIG_From_int(static_cast< int >(result));
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16272 PyObject *resultobj = 0;
16273 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16274 wxString result;
16275 void *argp1 = 0 ;
16276 int res1 = 0 ;
16277 PyObject *swig_obj[1] ;
16278
16279 if (!args) SWIG_fail;
16280 swig_obj[0] = args;
16281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16282 if (!SWIG_IsOK(res1)) {
16283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16284 }
16285 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16286 {
16287 PyThreadState* __tstate = wxPyBeginAllowThreads();
16288 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16289 wxPyEndAllowThreads(__tstate);
16290 if (PyErr_Occurred()) SWIG_fail;
16291 }
16292 {
16293 #if wxUSE_UNICODE
16294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16295 #else
16296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16297 #endif
16298 }
16299 return resultobj;
16300 fail:
16301 return NULL;
16302 }
16303
16304
16305 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16306 PyObject *resultobj = 0;
16307 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16308 wxString *arg2 = 0 ;
16309 bool result;
16310 void *argp1 = 0 ;
16311 int res1 = 0 ;
16312 bool temp2 = false ;
16313 PyObject * obj0 = 0 ;
16314 PyObject * obj1 = 0 ;
16315 char * kwnames[] = {
16316 (char *) "self",(char *) "s", NULL
16317 };
16318
16319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16321 if (!SWIG_IsOK(res1)) {
16322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16323 }
16324 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16325 {
16326 arg2 = wxString_in_helper(obj1);
16327 if (arg2 == NULL) SWIG_fail;
16328 temp2 = true;
16329 }
16330 {
16331 PyThreadState* __tstate = wxPyBeginAllowThreads();
16332 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16333 wxPyEndAllowThreads(__tstate);
16334 if (PyErr_Occurred()) SWIG_fail;
16335 }
16336 {
16337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16338 }
16339 {
16340 if (temp2)
16341 delete arg2;
16342 }
16343 return resultobj;
16344 fail:
16345 {
16346 if (temp2)
16347 delete arg2;
16348 }
16349 return NULL;
16350 }
16351
16352
16353 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16354 PyObject *resultobj = 0;
16355 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16356 size_t result;
16357 void *argp1 = 0 ;
16358 int res1 = 0 ;
16359 PyObject *swig_obj[1] ;
16360
16361 if (!args) SWIG_fail;
16362 swig_obj[0] = args;
16363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16364 if (!SWIG_IsOK(res1)) {
16365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16366 }
16367 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16368 {
16369 PyThreadState* __tstate = wxPyBeginAllowThreads();
16370 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16371 wxPyEndAllowThreads(__tstate);
16372 if (PyErr_Occurred()) SWIG_fail;
16373 }
16374 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16375 return resultobj;
16376 fail:
16377 return NULL;
16378 }
16379
16380
16381 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16382 PyObject *resultobj = 0;
16383 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16384 wxString *arg2 = 0 ;
16385 int result;
16386 void *argp1 = 0 ;
16387 int res1 = 0 ;
16388 bool temp2 = false ;
16389 PyObject * obj0 = 0 ;
16390 PyObject * obj1 = 0 ;
16391 char * kwnames[] = {
16392 (char *) "self",(char *) "s", NULL
16393 };
16394
16395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16397 if (!SWIG_IsOK(res1)) {
16398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16399 }
16400 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16401 {
16402 arg2 = wxString_in_helper(obj1);
16403 if (arg2 == NULL) SWIG_fail;
16404 temp2 = true;
16405 }
16406 {
16407 PyThreadState* __tstate = wxPyBeginAllowThreads();
16408 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16409 wxPyEndAllowThreads(__tstate);
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 resultobj = SWIG_From_int(static_cast< int >(result));
16413 {
16414 if (temp2)
16415 delete arg2;
16416 }
16417 return resultobj;
16418 fail:
16419 {
16420 if (temp2)
16421 delete arg2;
16422 }
16423 return NULL;
16424 }
16425
16426
16427 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16428 PyObject *resultobj = 0;
16429 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16430 int arg2 ;
16431 wxString result;
16432 void *argp1 = 0 ;
16433 int res1 = 0 ;
16434 int val2 ;
16435 int ecode2 = 0 ;
16436 PyObject * obj0 = 0 ;
16437 PyObject * obj1 = 0 ;
16438 char * kwnames[] = {
16439 (char *) "self",(char *) "n", NULL
16440 };
16441
16442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16444 if (!SWIG_IsOK(res1)) {
16445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16446 }
16447 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16448 ecode2 = SWIG_AsVal_int(obj1, &val2);
16449 if (!SWIG_IsOK(ecode2)) {
16450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16451 }
16452 arg2 = static_cast< int >(val2);
16453 {
16454 PyThreadState* __tstate = wxPyBeginAllowThreads();
16455 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16456 wxPyEndAllowThreads(__tstate);
16457 if (PyErr_Occurred()) SWIG_fail;
16458 }
16459 {
16460 #if wxUSE_UNICODE
16461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16462 #else
16463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16464 #endif
16465 }
16466 return resultobj;
16467 fail:
16468 return NULL;
16469 }
16470
16471
16472 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16473 PyObject *resultobj = 0;
16474 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16475 int arg2 ;
16476 wxString *arg3 = 0 ;
16477 void *argp1 = 0 ;
16478 int res1 = 0 ;
16479 int val2 ;
16480 int ecode2 = 0 ;
16481 bool temp3 = false ;
16482 PyObject * obj0 = 0 ;
16483 PyObject * obj1 = 0 ;
16484 PyObject * obj2 = 0 ;
16485 char * kwnames[] = {
16486 (char *) "self",(char *) "n",(char *) "label", NULL
16487 };
16488
16489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",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_SetString" "', 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_SetString" "', expected argument " "2"" of type '" "int""'");
16498 }
16499 arg2 = static_cast< int >(val2);
16500 {
16501 arg3 = wxString_in_helper(obj2);
16502 if (arg3 == NULL) SWIG_fail;
16503 temp3 = true;
16504 }
16505 {
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
16507 (arg1)->SetString(arg2,(wxString const &)*arg3);
16508 wxPyEndAllowThreads(__tstate);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 resultobj = SWIG_Py_Void();
16512 {
16513 if (temp3)
16514 delete arg3;
16515 }
16516 return resultobj;
16517 fail:
16518 {
16519 if (temp3)
16520 delete arg3;
16521 }
16522 return NULL;
16523 }
16524
16525
16526 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16527 PyObject *resultobj = 0;
16528 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16529 unsigned int arg2 ;
16530 bool arg3 = (bool) true ;
16531 void *argp1 = 0 ;
16532 int res1 = 0 ;
16533 unsigned int val2 ;
16534 int ecode2 = 0 ;
16535 bool val3 ;
16536 int ecode3 = 0 ;
16537 PyObject * obj0 = 0 ;
16538 PyObject * obj1 = 0 ;
16539 PyObject * obj2 = 0 ;
16540 char * kwnames[] = {
16541 (char *) "self",(char *) "n",(char *) "enable", NULL
16542 };
16543
16544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16546 if (!SWIG_IsOK(res1)) {
16547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16548 }
16549 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16550 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16551 if (!SWIG_IsOK(ecode2)) {
16552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16553 }
16554 arg2 = static_cast< unsigned int >(val2);
16555 if (obj2) {
16556 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16557 if (!SWIG_IsOK(ecode3)) {
16558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16559 }
16560 arg3 = static_cast< bool >(val3);
16561 }
16562 {
16563 PyThreadState* __tstate = wxPyBeginAllowThreads();
16564 (arg1)->Enable(arg2,arg3);
16565 wxPyEndAllowThreads(__tstate);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 }
16568 resultobj = SWIG_Py_Void();
16569 return resultobj;
16570 fail:
16571 return NULL;
16572 }
16573
16574
16575 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16576 PyObject *resultobj = 0;
16577 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16578 unsigned int arg2 ;
16579 bool arg3 = (bool) true ;
16580 void *argp1 = 0 ;
16581 int res1 = 0 ;
16582 unsigned int val2 ;
16583 int ecode2 = 0 ;
16584 bool val3 ;
16585 int ecode3 = 0 ;
16586 PyObject * obj0 = 0 ;
16587 PyObject * obj1 = 0 ;
16588 PyObject * obj2 = 0 ;
16589 char * kwnames[] = {
16590 (char *) "self",(char *) "n",(char *) "show", NULL
16591 };
16592
16593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16595 if (!SWIG_IsOK(res1)) {
16596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16597 }
16598 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16599 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16600 if (!SWIG_IsOK(ecode2)) {
16601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16602 }
16603 arg2 = static_cast< unsigned int >(val2);
16604 if (obj2) {
16605 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16606 if (!SWIG_IsOK(ecode3)) {
16607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16608 }
16609 arg3 = static_cast< bool >(val3);
16610 }
16611 {
16612 PyThreadState* __tstate = wxPyBeginAllowThreads();
16613 (arg1)->Show(arg2,arg3);
16614 wxPyEndAllowThreads(__tstate);
16615 if (PyErr_Occurred()) SWIG_fail;
16616 }
16617 resultobj = SWIG_Py_Void();
16618 return resultobj;
16619 fail:
16620 return NULL;
16621 }
16622
16623
16624 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16625 PyObject *resultobj = 0;
16626 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16627 unsigned int arg2 ;
16628 bool result;
16629 void *argp1 = 0 ;
16630 int res1 = 0 ;
16631 unsigned int val2 ;
16632 int ecode2 = 0 ;
16633 PyObject * obj0 = 0 ;
16634 PyObject * obj1 = 0 ;
16635 char * kwnames[] = {
16636 (char *) "self",(char *) "n", NULL
16637 };
16638
16639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16641 if (!SWIG_IsOK(res1)) {
16642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16643 }
16644 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16645 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16646 if (!SWIG_IsOK(ecode2)) {
16647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16648 }
16649 arg2 = static_cast< unsigned int >(val2);
16650 {
16651 PyThreadState* __tstate = wxPyBeginAllowThreads();
16652 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16653 wxPyEndAllowThreads(__tstate);
16654 if (PyErr_Occurred()) SWIG_fail;
16655 }
16656 {
16657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16658 }
16659 return resultobj;
16660 fail:
16661 return NULL;
16662 }
16663
16664
16665 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16666 PyObject *resultobj = 0;
16667 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16668 unsigned int arg2 ;
16669 bool result;
16670 void *argp1 = 0 ;
16671 int res1 = 0 ;
16672 unsigned int val2 ;
16673 int ecode2 = 0 ;
16674 PyObject * obj0 = 0 ;
16675 PyObject * obj1 = 0 ;
16676 char * kwnames[] = {
16677 (char *) "self",(char *) "n", NULL
16678 };
16679
16680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16682 if (!SWIG_IsOK(res1)) {
16683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16684 }
16685 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16686 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16687 if (!SWIG_IsOK(ecode2)) {
16688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16689 }
16690 arg2 = static_cast< unsigned int >(val2);
16691 {
16692 PyThreadState* __tstate = wxPyBeginAllowThreads();
16693 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16694 wxPyEndAllowThreads(__tstate);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 {
16698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16699 }
16700 return resultobj;
16701 fail:
16702 return NULL;
16703 }
16704
16705
16706 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16707 PyObject *resultobj = 0;
16708 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16709 unsigned int result;
16710 void *argp1 = 0 ;
16711 int res1 = 0 ;
16712 PyObject *swig_obj[1] ;
16713
16714 if (!args) SWIG_fail;
16715 swig_obj[0] = args;
16716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16717 if (!SWIG_IsOK(res1)) {
16718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16719 }
16720 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16721 {
16722 PyThreadState* __tstate = wxPyBeginAllowThreads();
16723 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16724 wxPyEndAllowThreads(__tstate);
16725 if (PyErr_Occurred()) SWIG_fail;
16726 }
16727 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16728 return resultobj;
16729 fail:
16730 return NULL;
16731 }
16732
16733
16734 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16735 PyObject *resultobj = 0;
16736 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16737 unsigned int result;
16738 void *argp1 = 0 ;
16739 int res1 = 0 ;
16740 PyObject *swig_obj[1] ;
16741
16742 if (!args) SWIG_fail;
16743 swig_obj[0] = args;
16744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16745 if (!SWIG_IsOK(res1)) {
16746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16747 }
16748 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16749 {
16750 PyThreadState* __tstate = wxPyBeginAllowThreads();
16751 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16756 return resultobj;
16757 fail:
16758 return NULL;
16759 }
16760
16761
16762 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16763 PyObject *resultobj = 0;
16764 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16765 int arg2 ;
16766 wxDirection arg3 ;
16767 long arg4 ;
16768 int result;
16769 void *argp1 = 0 ;
16770 int res1 = 0 ;
16771 int val2 ;
16772 int ecode2 = 0 ;
16773 int val3 ;
16774 int ecode3 = 0 ;
16775 long val4 ;
16776 int ecode4 = 0 ;
16777 PyObject * obj0 = 0 ;
16778 PyObject * obj1 = 0 ;
16779 PyObject * obj2 = 0 ;
16780 PyObject * obj3 = 0 ;
16781 char * kwnames[] = {
16782 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16783 };
16784
16785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16787 if (!SWIG_IsOK(res1)) {
16788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16789 }
16790 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16791 ecode2 = SWIG_AsVal_int(obj1, &val2);
16792 if (!SWIG_IsOK(ecode2)) {
16793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16794 }
16795 arg2 = static_cast< int >(val2);
16796 ecode3 = SWIG_AsVal_int(obj2, &val3);
16797 if (!SWIG_IsOK(ecode3)) {
16798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16799 }
16800 arg3 = static_cast< wxDirection >(val3);
16801 ecode4 = SWIG_AsVal_long(obj3, &val4);
16802 if (!SWIG_IsOK(ecode4)) {
16803 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16804 }
16805 arg4 = static_cast< long >(val4);
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16809 wxPyEndAllowThreads(__tstate);
16810 if (PyErr_Occurred()) SWIG_fail;
16811 }
16812 resultobj = SWIG_From_int(static_cast< int >(result));
16813 return resultobj;
16814 fail:
16815 return NULL;
16816 }
16817
16818
16819 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16820 PyObject *resultobj = 0;
16821 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16822 unsigned int arg2 ;
16823 wxString *arg3 = 0 ;
16824 void *argp1 = 0 ;
16825 int res1 = 0 ;
16826 unsigned int val2 ;
16827 int ecode2 = 0 ;
16828 bool temp3 = false ;
16829 PyObject * obj0 = 0 ;
16830 PyObject * obj1 = 0 ;
16831 PyObject * obj2 = 0 ;
16832 char * kwnames[] = {
16833 (char *) "self",(char *) "item",(char *) "text", NULL
16834 };
16835
16836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16838 if (!SWIG_IsOK(res1)) {
16839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16840 }
16841 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16842 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16843 if (!SWIG_IsOK(ecode2)) {
16844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16845 }
16846 arg2 = static_cast< unsigned int >(val2);
16847 {
16848 arg3 = wxString_in_helper(obj2);
16849 if (arg3 == NULL) SWIG_fail;
16850 temp3 = true;
16851 }
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 resultobj = SWIG_Py_Void();
16859 {
16860 if (temp3)
16861 delete arg3;
16862 }
16863 return resultobj;
16864 fail:
16865 {
16866 if (temp3)
16867 delete arg3;
16868 }
16869 return NULL;
16870 }
16871
16872
16873 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj = 0;
16875 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16876 unsigned int arg2 ;
16877 wxToolTip *result = 0 ;
16878 void *argp1 = 0 ;
16879 int res1 = 0 ;
16880 unsigned int val2 ;
16881 int ecode2 = 0 ;
16882 PyObject * obj0 = 0 ;
16883 PyObject * obj1 = 0 ;
16884 char * kwnames[] = {
16885 (char *) "self",(char *) "item", NULL
16886 };
16887
16888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16890 if (!SWIG_IsOK(res1)) {
16891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16892 }
16893 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16894 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16895 if (!SWIG_IsOK(ecode2)) {
16896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16897 }
16898 arg2 = static_cast< unsigned int >(val2);
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 {
16906 resultobj = wxPyMake_wxObject(result, (bool)0);
16907 }
16908 return resultobj;
16909 fail:
16910 return NULL;
16911 }
16912
16913
16914 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj = 0;
16916 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16917 SwigValueWrapper<wxVisualAttributes > result;
16918 int val1 ;
16919 int ecode1 = 0 ;
16920 PyObject * obj0 = 0 ;
16921 char * kwnames[] = {
16922 (char *) "variant", NULL
16923 };
16924
16925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16926 if (obj0) {
16927 ecode1 = SWIG_AsVal_int(obj0, &val1);
16928 if (!SWIG_IsOK(ecode1)) {
16929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16930 }
16931 arg1 = static_cast< wxWindowVariant >(val1);
16932 }
16933 {
16934 if (!wxPyCheckForApp()) SWIG_fail;
16935 PyThreadState* __tstate = wxPyBeginAllowThreads();
16936 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
16940 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16941 return resultobj;
16942 fail:
16943 return NULL;
16944 }
16945
16946
16947 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16948 PyObject *obj;
16949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16950 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16951 return SWIG_Py_Void();
16952 }
16953
16954 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16955 return SWIG_Python_InitShadowInstance(args);
16956 }
16957
16958 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16959 PyObject *resultobj = 0;
16960 wxWindow *arg1 = (wxWindow *) 0 ;
16961 int arg2 = (int) -1 ;
16962 wxString const &arg3_defvalue = wxPyEmptyString ;
16963 wxString *arg3 = (wxString *) &arg3_defvalue ;
16964 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16965 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16966 wxSize const &arg5_defvalue = wxDefaultSize ;
16967 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16968 long arg6 = (long) 0 ;
16969 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16970 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16971 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16972 wxString *arg8 = (wxString *) &arg8_defvalue ;
16973 wxRadioButton *result = 0 ;
16974 void *argp1 = 0 ;
16975 int res1 = 0 ;
16976 int val2 ;
16977 int ecode2 = 0 ;
16978 bool temp3 = false ;
16979 wxPoint temp4 ;
16980 wxSize temp5 ;
16981 long val6 ;
16982 int ecode6 = 0 ;
16983 void *argp7 = 0 ;
16984 int res7 = 0 ;
16985 bool temp8 = false ;
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 PyObject * obj2 = 0 ;
16989 PyObject * obj3 = 0 ;
16990 PyObject * obj4 = 0 ;
16991 PyObject * obj5 = 0 ;
16992 PyObject * obj6 = 0 ;
16993 PyObject * obj7 = 0 ;
16994 char * kwnames[] = {
16995 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16996 };
16997
16998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17000 if (!SWIG_IsOK(res1)) {
17001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17002 }
17003 arg1 = reinterpret_cast< wxWindow * >(argp1);
17004 if (obj1) {
17005 ecode2 = SWIG_AsVal_int(obj1, &val2);
17006 if (!SWIG_IsOK(ecode2)) {
17007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17008 }
17009 arg2 = static_cast< int >(val2);
17010 }
17011 if (obj2) {
17012 {
17013 arg3 = wxString_in_helper(obj2);
17014 if (arg3 == NULL) SWIG_fail;
17015 temp3 = true;
17016 }
17017 }
17018 if (obj3) {
17019 {
17020 arg4 = &temp4;
17021 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17022 }
17023 }
17024 if (obj4) {
17025 {
17026 arg5 = &temp5;
17027 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17028 }
17029 }
17030 if (obj5) {
17031 ecode6 = SWIG_AsVal_long(obj5, &val6);
17032 if (!SWIG_IsOK(ecode6)) {
17033 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17034 }
17035 arg6 = static_cast< long >(val6);
17036 }
17037 if (obj6) {
17038 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17039 if (!SWIG_IsOK(res7)) {
17040 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17041 }
17042 if (!argp7) {
17043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17044 }
17045 arg7 = reinterpret_cast< wxValidator * >(argp7);
17046 }
17047 if (obj7) {
17048 {
17049 arg8 = wxString_in_helper(obj7);
17050 if (arg8 == NULL) SWIG_fail;
17051 temp8 = true;
17052 }
17053 }
17054 {
17055 if (!wxPyCheckForApp()) SWIG_fail;
17056 PyThreadState* __tstate = wxPyBeginAllowThreads();
17057 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17058 wxPyEndAllowThreads(__tstate);
17059 if (PyErr_Occurred()) SWIG_fail;
17060 }
17061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17062 {
17063 if (temp3)
17064 delete arg3;
17065 }
17066 {
17067 if (temp8)
17068 delete arg8;
17069 }
17070 return resultobj;
17071 fail:
17072 {
17073 if (temp3)
17074 delete arg3;
17075 }
17076 {
17077 if (temp8)
17078 delete arg8;
17079 }
17080 return NULL;
17081 }
17082
17083
17084 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17085 PyObject *resultobj = 0;
17086 wxRadioButton *result = 0 ;
17087
17088 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17089 {
17090 if (!wxPyCheckForApp()) SWIG_fail;
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
17092 result = (wxRadioButton *)new wxRadioButton();
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17097 return resultobj;
17098 fail:
17099 return NULL;
17100 }
17101
17102
17103 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17104 PyObject *resultobj = 0;
17105 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17106 wxWindow *arg2 = (wxWindow *) 0 ;
17107 int arg3 = (int) -1 ;
17108 wxString const &arg4_defvalue = wxPyEmptyString ;
17109 wxString *arg4 = (wxString *) &arg4_defvalue ;
17110 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17111 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17112 wxSize const &arg6_defvalue = wxDefaultSize ;
17113 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17114 long arg7 = (long) 0 ;
17115 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17116 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17117 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17118 wxString *arg9 = (wxString *) &arg9_defvalue ;
17119 bool result;
17120 void *argp1 = 0 ;
17121 int res1 = 0 ;
17122 void *argp2 = 0 ;
17123 int res2 = 0 ;
17124 int val3 ;
17125 int ecode3 = 0 ;
17126 bool temp4 = false ;
17127 wxPoint temp5 ;
17128 wxSize temp6 ;
17129 long val7 ;
17130 int ecode7 = 0 ;
17131 void *argp8 = 0 ;
17132 int res8 = 0 ;
17133 bool temp9 = false ;
17134 PyObject * obj0 = 0 ;
17135 PyObject * obj1 = 0 ;
17136 PyObject * obj2 = 0 ;
17137 PyObject * obj3 = 0 ;
17138 PyObject * obj4 = 0 ;
17139 PyObject * obj5 = 0 ;
17140 PyObject * obj6 = 0 ;
17141 PyObject * obj7 = 0 ;
17142 PyObject * obj8 = 0 ;
17143 char * kwnames[] = {
17144 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17145 };
17146
17147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17149 if (!SWIG_IsOK(res1)) {
17150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17151 }
17152 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17153 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17154 if (!SWIG_IsOK(res2)) {
17155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17156 }
17157 arg2 = reinterpret_cast< wxWindow * >(argp2);
17158 if (obj2) {
17159 ecode3 = SWIG_AsVal_int(obj2, &val3);
17160 if (!SWIG_IsOK(ecode3)) {
17161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17162 }
17163 arg3 = static_cast< int >(val3);
17164 }
17165 if (obj3) {
17166 {
17167 arg4 = wxString_in_helper(obj3);
17168 if (arg4 == NULL) SWIG_fail;
17169 temp4 = true;
17170 }
17171 }
17172 if (obj4) {
17173 {
17174 arg5 = &temp5;
17175 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17176 }
17177 }
17178 if (obj5) {
17179 {
17180 arg6 = &temp6;
17181 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17182 }
17183 }
17184 if (obj6) {
17185 ecode7 = SWIG_AsVal_long(obj6, &val7);
17186 if (!SWIG_IsOK(ecode7)) {
17187 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17188 }
17189 arg7 = static_cast< long >(val7);
17190 }
17191 if (obj7) {
17192 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17193 if (!SWIG_IsOK(res8)) {
17194 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17195 }
17196 if (!argp8) {
17197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17198 }
17199 arg8 = reinterpret_cast< wxValidator * >(argp8);
17200 }
17201 if (obj8) {
17202 {
17203 arg9 = wxString_in_helper(obj8);
17204 if (arg9 == NULL) SWIG_fail;
17205 temp9 = true;
17206 }
17207 }
17208 {
17209 PyThreadState* __tstate = wxPyBeginAllowThreads();
17210 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17211 wxPyEndAllowThreads(__tstate);
17212 if (PyErr_Occurred()) SWIG_fail;
17213 }
17214 {
17215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17216 }
17217 {
17218 if (temp4)
17219 delete arg4;
17220 }
17221 {
17222 if (temp9)
17223 delete arg9;
17224 }
17225 return resultobj;
17226 fail:
17227 {
17228 if (temp4)
17229 delete arg4;
17230 }
17231 {
17232 if (temp9)
17233 delete arg9;
17234 }
17235 return NULL;
17236 }
17237
17238
17239 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17240 PyObject *resultobj = 0;
17241 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17242 bool result;
17243 void *argp1 = 0 ;
17244 int res1 = 0 ;
17245 PyObject *swig_obj[1] ;
17246
17247 if (!args) SWIG_fail;
17248 swig_obj[0] = args;
17249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17250 if (!SWIG_IsOK(res1)) {
17251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17252 }
17253 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17254 {
17255 PyThreadState* __tstate = wxPyBeginAllowThreads();
17256 result = (bool)(arg1)->GetValue();
17257 wxPyEndAllowThreads(__tstate);
17258 if (PyErr_Occurred()) SWIG_fail;
17259 }
17260 {
17261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17262 }
17263 return resultobj;
17264 fail:
17265 return NULL;
17266 }
17267
17268
17269 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17270 PyObject *resultobj = 0;
17271 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17272 bool arg2 ;
17273 void *argp1 = 0 ;
17274 int res1 = 0 ;
17275 bool val2 ;
17276 int ecode2 = 0 ;
17277 PyObject * obj0 = 0 ;
17278 PyObject * obj1 = 0 ;
17279 char * kwnames[] = {
17280 (char *) "self",(char *) "value", NULL
17281 };
17282
17283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17285 if (!SWIG_IsOK(res1)) {
17286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17287 }
17288 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17289 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17290 if (!SWIG_IsOK(ecode2)) {
17291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17292 }
17293 arg2 = static_cast< bool >(val2);
17294 {
17295 PyThreadState* __tstate = wxPyBeginAllowThreads();
17296 (arg1)->SetValue(arg2);
17297 wxPyEndAllowThreads(__tstate);
17298 if (PyErr_Occurred()) SWIG_fail;
17299 }
17300 resultobj = SWIG_Py_Void();
17301 return resultobj;
17302 fail:
17303 return NULL;
17304 }
17305
17306
17307 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17308 PyObject *resultobj = 0;
17309 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17310 SwigValueWrapper<wxVisualAttributes > result;
17311 int val1 ;
17312 int ecode1 = 0 ;
17313 PyObject * obj0 = 0 ;
17314 char * kwnames[] = {
17315 (char *) "variant", NULL
17316 };
17317
17318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17319 if (obj0) {
17320 ecode1 = SWIG_AsVal_int(obj0, &val1);
17321 if (!SWIG_IsOK(ecode1)) {
17322 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17323 }
17324 arg1 = static_cast< wxWindowVariant >(val1);
17325 }
17326 {
17327 if (!wxPyCheckForApp()) SWIG_fail;
17328 PyThreadState* __tstate = wxPyBeginAllowThreads();
17329 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17334 return resultobj;
17335 fail:
17336 return NULL;
17337 }
17338
17339
17340 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17341 PyObject *obj;
17342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17343 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17344 return SWIG_Py_Void();
17345 }
17346
17347 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17348 return SWIG_Python_InitShadowInstance(args);
17349 }
17350
17351 SWIGINTERN int SliderNameStr_set(PyObject *) {
17352 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17353 return 1;
17354 }
17355
17356
17357 SWIGINTERN PyObject *SliderNameStr_get(void) {
17358 PyObject *pyobj = 0;
17359
17360 {
17361 #if wxUSE_UNICODE
17362 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17363 #else
17364 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17365 #endif
17366 }
17367 return pyobj;
17368 }
17369
17370
17371 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17372 PyObject *resultobj = 0;
17373 wxWindow *arg1 = (wxWindow *) 0 ;
17374 int arg2 = (int) -1 ;
17375 int arg3 = (int) 0 ;
17376 int arg4 = (int) 0 ;
17377 int arg5 = (int) 100 ;
17378 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17379 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17380 wxSize const &arg7_defvalue = wxDefaultSize ;
17381 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17382 long arg8 = (long) wxSL_HORIZONTAL ;
17383 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17384 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17385 wxString const &arg10_defvalue = wxPySliderNameStr ;
17386 wxString *arg10 = (wxString *) &arg10_defvalue ;
17387 wxSlider *result = 0 ;
17388 void *argp1 = 0 ;
17389 int res1 = 0 ;
17390 int val2 ;
17391 int ecode2 = 0 ;
17392 int val3 ;
17393 int ecode3 = 0 ;
17394 int val4 ;
17395 int ecode4 = 0 ;
17396 int val5 ;
17397 int ecode5 = 0 ;
17398 wxPoint temp6 ;
17399 wxSize temp7 ;
17400 long val8 ;
17401 int ecode8 = 0 ;
17402 void *argp9 = 0 ;
17403 int res9 = 0 ;
17404 bool temp10 = false ;
17405 PyObject * obj0 = 0 ;
17406 PyObject * obj1 = 0 ;
17407 PyObject * obj2 = 0 ;
17408 PyObject * obj3 = 0 ;
17409 PyObject * obj4 = 0 ;
17410 PyObject * obj5 = 0 ;
17411 PyObject * obj6 = 0 ;
17412 PyObject * obj7 = 0 ;
17413 PyObject * obj8 = 0 ;
17414 PyObject * obj9 = 0 ;
17415 char * kwnames[] = {
17416 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17417 };
17418
17419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17421 if (!SWIG_IsOK(res1)) {
17422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17423 }
17424 arg1 = reinterpret_cast< wxWindow * >(argp1);
17425 if (obj1) {
17426 ecode2 = SWIG_AsVal_int(obj1, &val2);
17427 if (!SWIG_IsOK(ecode2)) {
17428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17429 }
17430 arg2 = static_cast< int >(val2);
17431 }
17432 if (obj2) {
17433 ecode3 = SWIG_AsVal_int(obj2, &val3);
17434 if (!SWIG_IsOK(ecode3)) {
17435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17436 }
17437 arg3 = static_cast< int >(val3);
17438 }
17439 if (obj3) {
17440 ecode4 = SWIG_AsVal_int(obj3, &val4);
17441 if (!SWIG_IsOK(ecode4)) {
17442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17443 }
17444 arg4 = static_cast< int >(val4);
17445 }
17446 if (obj4) {
17447 ecode5 = SWIG_AsVal_int(obj4, &val5);
17448 if (!SWIG_IsOK(ecode5)) {
17449 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17450 }
17451 arg5 = static_cast< int >(val5);
17452 }
17453 if (obj5) {
17454 {
17455 arg6 = &temp6;
17456 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17457 }
17458 }
17459 if (obj6) {
17460 {
17461 arg7 = &temp7;
17462 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17463 }
17464 }
17465 if (obj7) {
17466 ecode8 = SWIG_AsVal_long(obj7, &val8);
17467 if (!SWIG_IsOK(ecode8)) {
17468 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17469 }
17470 arg8 = static_cast< long >(val8);
17471 }
17472 if (obj8) {
17473 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17474 if (!SWIG_IsOK(res9)) {
17475 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17476 }
17477 if (!argp9) {
17478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17479 }
17480 arg9 = reinterpret_cast< wxValidator * >(argp9);
17481 }
17482 if (obj9) {
17483 {
17484 arg10 = wxString_in_helper(obj9);
17485 if (arg10 == NULL) SWIG_fail;
17486 temp10 = true;
17487 }
17488 }
17489 {
17490 if (!wxPyCheckForApp()) SWIG_fail;
17491 PyThreadState* __tstate = wxPyBeginAllowThreads();
17492 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17493 wxPyEndAllowThreads(__tstate);
17494 if (PyErr_Occurred()) SWIG_fail;
17495 }
17496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17497 {
17498 if (temp10)
17499 delete arg10;
17500 }
17501 return resultobj;
17502 fail:
17503 {
17504 if (temp10)
17505 delete arg10;
17506 }
17507 return NULL;
17508 }
17509
17510
17511 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17512 PyObject *resultobj = 0;
17513 wxSlider *result = 0 ;
17514
17515 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17516 {
17517 if (!wxPyCheckForApp()) SWIG_fail;
17518 PyThreadState* __tstate = wxPyBeginAllowThreads();
17519 result = (wxSlider *)new wxSlider();
17520 wxPyEndAllowThreads(__tstate);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 }
17523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17524 return resultobj;
17525 fail:
17526 return NULL;
17527 }
17528
17529
17530 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17531 PyObject *resultobj = 0;
17532 wxSlider *arg1 = (wxSlider *) 0 ;
17533 wxWindow *arg2 = (wxWindow *) 0 ;
17534 int arg3 = (int) -1 ;
17535 int arg4 = (int) 0 ;
17536 int arg5 = (int) 0 ;
17537 int arg6 = (int) 100 ;
17538 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17539 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17540 wxSize const &arg8_defvalue = wxDefaultSize ;
17541 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17542 long arg9 = (long) wxSL_HORIZONTAL ;
17543 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17544 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17545 wxString const &arg11_defvalue = wxPySliderNameStr ;
17546 wxString *arg11 = (wxString *) &arg11_defvalue ;
17547 bool result;
17548 void *argp1 = 0 ;
17549 int res1 = 0 ;
17550 void *argp2 = 0 ;
17551 int res2 = 0 ;
17552 int val3 ;
17553 int ecode3 = 0 ;
17554 int val4 ;
17555 int ecode4 = 0 ;
17556 int val5 ;
17557 int ecode5 = 0 ;
17558 int val6 ;
17559 int ecode6 = 0 ;
17560 wxPoint temp7 ;
17561 wxSize temp8 ;
17562 long val9 ;
17563 int ecode9 = 0 ;
17564 void *argp10 = 0 ;
17565 int res10 = 0 ;
17566 bool temp11 = false ;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 PyObject * obj2 = 0 ;
17570 PyObject * obj3 = 0 ;
17571 PyObject * obj4 = 0 ;
17572 PyObject * obj5 = 0 ;
17573 PyObject * obj6 = 0 ;
17574 PyObject * obj7 = 0 ;
17575 PyObject * obj8 = 0 ;
17576 PyObject * obj9 = 0 ;
17577 PyObject * obj10 = 0 ;
17578 char * kwnames[] = {
17579 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17580 };
17581
17582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) 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_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17586 }
17587 arg1 = reinterpret_cast< wxSlider * >(argp1);
17588 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17589 if (!SWIG_IsOK(res2)) {
17590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17591 }
17592 arg2 = reinterpret_cast< wxWindow * >(argp2);
17593 if (obj2) {
17594 ecode3 = SWIG_AsVal_int(obj2, &val3);
17595 if (!SWIG_IsOK(ecode3)) {
17596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17597 }
17598 arg3 = static_cast< int >(val3);
17599 }
17600 if (obj3) {
17601 ecode4 = SWIG_AsVal_int(obj3, &val4);
17602 if (!SWIG_IsOK(ecode4)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17604 }
17605 arg4 = static_cast< int >(val4);
17606 }
17607 if (obj4) {
17608 ecode5 = SWIG_AsVal_int(obj4, &val5);
17609 if (!SWIG_IsOK(ecode5)) {
17610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17611 }
17612 arg5 = static_cast< int >(val5);
17613 }
17614 if (obj5) {
17615 ecode6 = SWIG_AsVal_int(obj5, &val6);
17616 if (!SWIG_IsOK(ecode6)) {
17617 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17618 }
17619 arg6 = static_cast< int >(val6);
17620 }
17621 if (obj6) {
17622 {
17623 arg7 = &temp7;
17624 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17625 }
17626 }
17627 if (obj7) {
17628 {
17629 arg8 = &temp8;
17630 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17631 }
17632 }
17633 if (obj8) {
17634 ecode9 = SWIG_AsVal_long(obj8, &val9);
17635 if (!SWIG_IsOK(ecode9)) {
17636 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17637 }
17638 arg9 = static_cast< long >(val9);
17639 }
17640 if (obj9) {
17641 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17642 if (!SWIG_IsOK(res10)) {
17643 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17644 }
17645 if (!argp10) {
17646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17647 }
17648 arg10 = reinterpret_cast< wxValidator * >(argp10);
17649 }
17650 if (obj10) {
17651 {
17652 arg11 = wxString_in_helper(obj10);
17653 if (arg11 == NULL) SWIG_fail;
17654 temp11 = true;
17655 }
17656 }
17657 {
17658 PyThreadState* __tstate = wxPyBeginAllowThreads();
17659 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17660 wxPyEndAllowThreads(__tstate);
17661 if (PyErr_Occurred()) SWIG_fail;
17662 }
17663 {
17664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17665 }
17666 {
17667 if (temp11)
17668 delete arg11;
17669 }
17670 return resultobj;
17671 fail:
17672 {
17673 if (temp11)
17674 delete arg11;
17675 }
17676 return NULL;
17677 }
17678
17679
17680 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17681 PyObject *resultobj = 0;
17682 wxSlider *arg1 = (wxSlider *) 0 ;
17683 int result;
17684 void *argp1 = 0 ;
17685 int res1 = 0 ;
17686 PyObject *swig_obj[1] ;
17687
17688 if (!args) SWIG_fail;
17689 swig_obj[0] = args;
17690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17691 if (!SWIG_IsOK(res1)) {
17692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17693 }
17694 arg1 = reinterpret_cast< wxSlider * >(argp1);
17695 {
17696 PyThreadState* __tstate = wxPyBeginAllowThreads();
17697 result = (int)((wxSlider const *)arg1)->GetValue();
17698 wxPyEndAllowThreads(__tstate);
17699 if (PyErr_Occurred()) SWIG_fail;
17700 }
17701 resultobj = SWIG_From_int(static_cast< int >(result));
17702 return resultobj;
17703 fail:
17704 return NULL;
17705 }
17706
17707
17708 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17709 PyObject *resultobj = 0;
17710 wxSlider *arg1 = (wxSlider *) 0 ;
17711 int arg2 ;
17712 void *argp1 = 0 ;
17713 int res1 = 0 ;
17714 int val2 ;
17715 int ecode2 = 0 ;
17716 PyObject * obj0 = 0 ;
17717 PyObject * obj1 = 0 ;
17718 char * kwnames[] = {
17719 (char *) "self",(char *) "value", NULL
17720 };
17721
17722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17724 if (!SWIG_IsOK(res1)) {
17725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17726 }
17727 arg1 = reinterpret_cast< wxSlider * >(argp1);
17728 ecode2 = SWIG_AsVal_int(obj1, &val2);
17729 if (!SWIG_IsOK(ecode2)) {
17730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17731 }
17732 arg2 = static_cast< int >(val2);
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 (arg1)->SetValue(arg2);
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 resultobj = SWIG_Py_Void();
17740 return resultobj;
17741 fail:
17742 return NULL;
17743 }
17744
17745
17746 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17747 PyObject *resultobj = 0;
17748 wxSlider *arg1 = (wxSlider *) 0 ;
17749 int arg2 ;
17750 int arg3 ;
17751 void *argp1 = 0 ;
17752 int res1 = 0 ;
17753 int val2 ;
17754 int ecode2 = 0 ;
17755 int val3 ;
17756 int ecode3 = 0 ;
17757 PyObject * obj0 = 0 ;
17758 PyObject * obj1 = 0 ;
17759 PyObject * obj2 = 0 ;
17760 char * kwnames[] = {
17761 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17762 };
17763
17764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17766 if (!SWIG_IsOK(res1)) {
17767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17768 }
17769 arg1 = reinterpret_cast< wxSlider * >(argp1);
17770 ecode2 = SWIG_AsVal_int(obj1, &val2);
17771 if (!SWIG_IsOK(ecode2)) {
17772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17773 }
17774 arg2 = static_cast< int >(val2);
17775 ecode3 = SWIG_AsVal_int(obj2, &val3);
17776 if (!SWIG_IsOK(ecode3)) {
17777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17778 }
17779 arg3 = static_cast< int >(val3);
17780 {
17781 PyThreadState* __tstate = wxPyBeginAllowThreads();
17782 (arg1)->SetRange(arg2,arg3);
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 resultobj = SWIG_Py_Void();
17787 return resultobj;
17788 fail:
17789 return NULL;
17790 }
17791
17792
17793 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17794 PyObject *resultobj = 0;
17795 wxSlider *arg1 = (wxSlider *) 0 ;
17796 int result;
17797 void *argp1 = 0 ;
17798 int res1 = 0 ;
17799 PyObject *swig_obj[1] ;
17800
17801 if (!args) SWIG_fail;
17802 swig_obj[0] = args;
17803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17804 if (!SWIG_IsOK(res1)) {
17805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17806 }
17807 arg1 = reinterpret_cast< wxSlider * >(argp1);
17808 {
17809 PyThreadState* __tstate = wxPyBeginAllowThreads();
17810 result = (int)((wxSlider const *)arg1)->GetMin();
17811 wxPyEndAllowThreads(__tstate);
17812 if (PyErr_Occurred()) SWIG_fail;
17813 }
17814 resultobj = SWIG_From_int(static_cast< int >(result));
17815 return resultobj;
17816 fail:
17817 return NULL;
17818 }
17819
17820
17821 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17822 PyObject *resultobj = 0;
17823 wxSlider *arg1 = (wxSlider *) 0 ;
17824 int result;
17825 void *argp1 = 0 ;
17826 int res1 = 0 ;
17827 PyObject *swig_obj[1] ;
17828
17829 if (!args) SWIG_fail;
17830 swig_obj[0] = args;
17831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17832 if (!SWIG_IsOK(res1)) {
17833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17834 }
17835 arg1 = reinterpret_cast< wxSlider * >(argp1);
17836 {
17837 PyThreadState* __tstate = wxPyBeginAllowThreads();
17838 result = (int)((wxSlider const *)arg1)->GetMax();
17839 wxPyEndAllowThreads(__tstate);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 resultobj = SWIG_From_int(static_cast< int >(result));
17843 return resultobj;
17844 fail:
17845 return NULL;
17846 }
17847
17848
17849 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj = 0;
17851 wxSlider *arg1 = (wxSlider *) 0 ;
17852 int arg2 ;
17853 void *argp1 = 0 ;
17854 int res1 = 0 ;
17855 int val2 ;
17856 int ecode2 = 0 ;
17857 PyObject * obj0 = 0 ;
17858 PyObject * obj1 = 0 ;
17859 char * kwnames[] = {
17860 (char *) "self",(char *) "minValue", NULL
17861 };
17862
17863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17865 if (!SWIG_IsOK(res1)) {
17866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17867 }
17868 arg1 = reinterpret_cast< wxSlider * >(argp1);
17869 ecode2 = SWIG_AsVal_int(obj1, &val2);
17870 if (!SWIG_IsOK(ecode2)) {
17871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17872 }
17873 arg2 = static_cast< int >(val2);
17874 {
17875 PyThreadState* __tstate = wxPyBeginAllowThreads();
17876 (arg1)->SetMin(arg2);
17877 wxPyEndAllowThreads(__tstate);
17878 if (PyErr_Occurred()) SWIG_fail;
17879 }
17880 resultobj = SWIG_Py_Void();
17881 return resultobj;
17882 fail:
17883 return NULL;
17884 }
17885
17886
17887 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17888 PyObject *resultobj = 0;
17889 wxSlider *arg1 = (wxSlider *) 0 ;
17890 int arg2 ;
17891 void *argp1 = 0 ;
17892 int res1 = 0 ;
17893 int val2 ;
17894 int ecode2 = 0 ;
17895 PyObject * obj0 = 0 ;
17896 PyObject * obj1 = 0 ;
17897 char * kwnames[] = {
17898 (char *) "self",(char *) "maxValue", NULL
17899 };
17900
17901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17903 if (!SWIG_IsOK(res1)) {
17904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17905 }
17906 arg1 = reinterpret_cast< wxSlider * >(argp1);
17907 ecode2 = SWIG_AsVal_int(obj1, &val2);
17908 if (!SWIG_IsOK(ecode2)) {
17909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17910 }
17911 arg2 = static_cast< int >(val2);
17912 {
17913 PyThreadState* __tstate = wxPyBeginAllowThreads();
17914 (arg1)->SetMax(arg2);
17915 wxPyEndAllowThreads(__tstate);
17916 if (PyErr_Occurred()) SWIG_fail;
17917 }
17918 resultobj = SWIG_Py_Void();
17919 return resultobj;
17920 fail:
17921 return NULL;
17922 }
17923
17924
17925 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17926 PyObject *resultobj = 0;
17927 wxSlider *arg1 = (wxSlider *) 0 ;
17928 int arg2 ;
17929 void *argp1 = 0 ;
17930 int res1 = 0 ;
17931 int val2 ;
17932 int ecode2 = 0 ;
17933 PyObject * obj0 = 0 ;
17934 PyObject * obj1 = 0 ;
17935 char * kwnames[] = {
17936 (char *) "self",(char *) "lineSize", NULL
17937 };
17938
17939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17941 if (!SWIG_IsOK(res1)) {
17942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17943 }
17944 arg1 = reinterpret_cast< wxSlider * >(argp1);
17945 ecode2 = SWIG_AsVal_int(obj1, &val2);
17946 if (!SWIG_IsOK(ecode2)) {
17947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17948 }
17949 arg2 = static_cast< int >(val2);
17950 {
17951 PyThreadState* __tstate = wxPyBeginAllowThreads();
17952 (arg1)->SetLineSize(arg2);
17953 wxPyEndAllowThreads(__tstate);
17954 if (PyErr_Occurred()) SWIG_fail;
17955 }
17956 resultobj = SWIG_Py_Void();
17957 return resultobj;
17958 fail:
17959 return NULL;
17960 }
17961
17962
17963 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17964 PyObject *resultobj = 0;
17965 wxSlider *arg1 = (wxSlider *) 0 ;
17966 int arg2 ;
17967 void *argp1 = 0 ;
17968 int res1 = 0 ;
17969 int val2 ;
17970 int ecode2 = 0 ;
17971 PyObject * obj0 = 0 ;
17972 PyObject * obj1 = 0 ;
17973 char * kwnames[] = {
17974 (char *) "self",(char *) "pageSize", NULL
17975 };
17976
17977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17979 if (!SWIG_IsOK(res1)) {
17980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17981 }
17982 arg1 = reinterpret_cast< wxSlider * >(argp1);
17983 ecode2 = SWIG_AsVal_int(obj1, &val2);
17984 if (!SWIG_IsOK(ecode2)) {
17985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17986 }
17987 arg2 = static_cast< int >(val2);
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 (arg1)->SetPageSize(arg2);
17991 wxPyEndAllowThreads(__tstate);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 resultobj = SWIG_Py_Void();
17995 return resultobj;
17996 fail:
17997 return NULL;
17998 }
17999
18000
18001 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18002 PyObject *resultobj = 0;
18003 wxSlider *arg1 = (wxSlider *) 0 ;
18004 int result;
18005 void *argp1 = 0 ;
18006 int res1 = 0 ;
18007 PyObject *swig_obj[1] ;
18008
18009 if (!args) SWIG_fail;
18010 swig_obj[0] = args;
18011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18012 if (!SWIG_IsOK(res1)) {
18013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18014 }
18015 arg1 = reinterpret_cast< wxSlider * >(argp1);
18016 {
18017 PyThreadState* __tstate = wxPyBeginAllowThreads();
18018 result = (int)((wxSlider const *)arg1)->GetLineSize();
18019 wxPyEndAllowThreads(__tstate);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 resultobj = SWIG_From_int(static_cast< int >(result));
18023 return resultobj;
18024 fail:
18025 return NULL;
18026 }
18027
18028
18029 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18030 PyObject *resultobj = 0;
18031 wxSlider *arg1 = (wxSlider *) 0 ;
18032 int result;
18033 void *argp1 = 0 ;
18034 int res1 = 0 ;
18035 PyObject *swig_obj[1] ;
18036
18037 if (!args) SWIG_fail;
18038 swig_obj[0] = args;
18039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18040 if (!SWIG_IsOK(res1)) {
18041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18042 }
18043 arg1 = reinterpret_cast< wxSlider * >(argp1);
18044 {
18045 PyThreadState* __tstate = wxPyBeginAllowThreads();
18046 result = (int)((wxSlider const *)arg1)->GetPageSize();
18047 wxPyEndAllowThreads(__tstate);
18048 if (PyErr_Occurred()) SWIG_fail;
18049 }
18050 resultobj = SWIG_From_int(static_cast< int >(result));
18051 return resultobj;
18052 fail:
18053 return NULL;
18054 }
18055
18056
18057 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18058 PyObject *resultobj = 0;
18059 wxSlider *arg1 = (wxSlider *) 0 ;
18060 int arg2 ;
18061 void *argp1 = 0 ;
18062 int res1 = 0 ;
18063 int val2 ;
18064 int ecode2 = 0 ;
18065 PyObject * obj0 = 0 ;
18066 PyObject * obj1 = 0 ;
18067 char * kwnames[] = {
18068 (char *) "self",(char *) "lenPixels", NULL
18069 };
18070
18071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18073 if (!SWIG_IsOK(res1)) {
18074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18075 }
18076 arg1 = reinterpret_cast< wxSlider * >(argp1);
18077 ecode2 = SWIG_AsVal_int(obj1, &val2);
18078 if (!SWIG_IsOK(ecode2)) {
18079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18080 }
18081 arg2 = static_cast< int >(val2);
18082 {
18083 PyThreadState* __tstate = wxPyBeginAllowThreads();
18084 (arg1)->SetThumbLength(arg2);
18085 wxPyEndAllowThreads(__tstate);
18086 if (PyErr_Occurred()) SWIG_fail;
18087 }
18088 resultobj = SWIG_Py_Void();
18089 return resultobj;
18090 fail:
18091 return NULL;
18092 }
18093
18094
18095 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18096 PyObject *resultobj = 0;
18097 wxSlider *arg1 = (wxSlider *) 0 ;
18098 int result;
18099 void *argp1 = 0 ;
18100 int res1 = 0 ;
18101 PyObject *swig_obj[1] ;
18102
18103 if (!args) SWIG_fail;
18104 swig_obj[0] = args;
18105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18106 if (!SWIG_IsOK(res1)) {
18107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18108 }
18109 arg1 = reinterpret_cast< wxSlider * >(argp1);
18110 {
18111 PyThreadState* __tstate = wxPyBeginAllowThreads();
18112 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 resultobj = SWIG_From_int(static_cast< int >(result));
18117 return resultobj;
18118 fail:
18119 return NULL;
18120 }
18121
18122
18123 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj = 0;
18125 wxSlider *arg1 = (wxSlider *) 0 ;
18126 int arg2 ;
18127 int arg3 = (int) 1 ;
18128 void *argp1 = 0 ;
18129 int res1 = 0 ;
18130 int val2 ;
18131 int ecode2 = 0 ;
18132 int val3 ;
18133 int ecode3 = 0 ;
18134 PyObject * obj0 = 0 ;
18135 PyObject * obj1 = 0 ;
18136 PyObject * obj2 = 0 ;
18137 char * kwnames[] = {
18138 (char *) "self",(char *) "n",(char *) "pos", NULL
18139 };
18140
18141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18143 if (!SWIG_IsOK(res1)) {
18144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18145 }
18146 arg1 = reinterpret_cast< wxSlider * >(argp1);
18147 ecode2 = SWIG_AsVal_int(obj1, &val2);
18148 if (!SWIG_IsOK(ecode2)) {
18149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18150 }
18151 arg2 = static_cast< int >(val2);
18152 if (obj2) {
18153 ecode3 = SWIG_AsVal_int(obj2, &val3);
18154 if (!SWIG_IsOK(ecode3)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18156 }
18157 arg3 = static_cast< int >(val3);
18158 }
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 (arg1)->SetTickFreq(arg2,arg3);
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 resultobj = SWIG_Py_Void();
18166 return resultobj;
18167 fail:
18168 return NULL;
18169 }
18170
18171
18172 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18173 PyObject *resultobj = 0;
18174 wxSlider *arg1 = (wxSlider *) 0 ;
18175 int result;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 PyObject *swig_obj[1] ;
18179
18180 if (!args) SWIG_fail;
18181 swig_obj[0] = args;
18182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18183 if (!SWIG_IsOK(res1)) {
18184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18185 }
18186 arg1 = reinterpret_cast< wxSlider * >(argp1);
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 resultobj = SWIG_From_int(static_cast< int >(result));
18194 return resultobj;
18195 fail:
18196 return NULL;
18197 }
18198
18199
18200 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18201 PyObject *resultobj = 0;
18202 wxSlider *arg1 = (wxSlider *) 0 ;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 PyObject *swig_obj[1] ;
18206
18207 if (!args) SWIG_fail;
18208 swig_obj[0] = args;
18209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18210 if (!SWIG_IsOK(res1)) {
18211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18212 }
18213 arg1 = reinterpret_cast< wxSlider * >(argp1);
18214 {
18215 PyThreadState* __tstate = wxPyBeginAllowThreads();
18216 (arg1)->ClearTicks();
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 resultobj = SWIG_Py_Void();
18221 return resultobj;
18222 fail:
18223 return NULL;
18224 }
18225
18226
18227 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18228 PyObject *resultobj = 0;
18229 wxSlider *arg1 = (wxSlider *) 0 ;
18230 int arg2 ;
18231 void *argp1 = 0 ;
18232 int res1 = 0 ;
18233 int val2 ;
18234 int ecode2 = 0 ;
18235 PyObject * obj0 = 0 ;
18236 PyObject * obj1 = 0 ;
18237 char * kwnames[] = {
18238 (char *) "self",(char *) "tickPos", NULL
18239 };
18240
18241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18243 if (!SWIG_IsOK(res1)) {
18244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18245 }
18246 arg1 = reinterpret_cast< wxSlider * >(argp1);
18247 ecode2 = SWIG_AsVal_int(obj1, &val2);
18248 if (!SWIG_IsOK(ecode2)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18250 }
18251 arg2 = static_cast< int >(val2);
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 (arg1)->SetTick(arg2);
18255 wxPyEndAllowThreads(__tstate);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 resultobj = SWIG_Py_Void();
18259 return resultobj;
18260 fail:
18261 return NULL;
18262 }
18263
18264
18265 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18266 PyObject *resultobj = 0;
18267 wxSlider *arg1 = (wxSlider *) 0 ;
18268 void *argp1 = 0 ;
18269 int res1 = 0 ;
18270 PyObject *swig_obj[1] ;
18271
18272 if (!args) SWIG_fail;
18273 swig_obj[0] = args;
18274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18275 if (!SWIG_IsOK(res1)) {
18276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18277 }
18278 arg1 = reinterpret_cast< wxSlider * >(argp1);
18279 {
18280 PyThreadState* __tstate = wxPyBeginAllowThreads();
18281 (arg1)->ClearSel();
18282 wxPyEndAllowThreads(__tstate);
18283 if (PyErr_Occurred()) SWIG_fail;
18284 }
18285 resultobj = SWIG_Py_Void();
18286 return resultobj;
18287 fail:
18288 return NULL;
18289 }
18290
18291
18292 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18293 PyObject *resultobj = 0;
18294 wxSlider *arg1 = (wxSlider *) 0 ;
18295 int result;
18296 void *argp1 = 0 ;
18297 int res1 = 0 ;
18298 PyObject *swig_obj[1] ;
18299
18300 if (!args) SWIG_fail;
18301 swig_obj[0] = args;
18302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18303 if (!SWIG_IsOK(res1)) {
18304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18305 }
18306 arg1 = reinterpret_cast< wxSlider * >(argp1);
18307 {
18308 PyThreadState* __tstate = wxPyBeginAllowThreads();
18309 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 resultobj = SWIG_From_int(static_cast< int >(result));
18314 return resultobj;
18315 fail:
18316 return NULL;
18317 }
18318
18319
18320 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18321 PyObject *resultobj = 0;
18322 wxSlider *arg1 = (wxSlider *) 0 ;
18323 int result;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
18326 PyObject *swig_obj[1] ;
18327
18328 if (!args) SWIG_fail;
18329 swig_obj[0] = args;
18330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18331 if (!SWIG_IsOK(res1)) {
18332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18333 }
18334 arg1 = reinterpret_cast< wxSlider * >(argp1);
18335 {
18336 PyThreadState* __tstate = wxPyBeginAllowThreads();
18337 result = (int)((wxSlider const *)arg1)->GetSelStart();
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 resultobj = SWIG_From_int(static_cast< int >(result));
18342 return resultobj;
18343 fail:
18344 return NULL;
18345 }
18346
18347
18348 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18349 PyObject *resultobj = 0;
18350 wxSlider *arg1 = (wxSlider *) 0 ;
18351 int arg2 ;
18352 int arg3 ;
18353 void *argp1 = 0 ;
18354 int res1 = 0 ;
18355 int val2 ;
18356 int ecode2 = 0 ;
18357 int val3 ;
18358 int ecode3 = 0 ;
18359 PyObject * obj0 = 0 ;
18360 PyObject * obj1 = 0 ;
18361 PyObject * obj2 = 0 ;
18362 char * kwnames[] = {
18363 (char *) "self",(char *) "min",(char *) "max", NULL
18364 };
18365
18366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18368 if (!SWIG_IsOK(res1)) {
18369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18370 }
18371 arg1 = reinterpret_cast< wxSlider * >(argp1);
18372 ecode2 = SWIG_AsVal_int(obj1, &val2);
18373 if (!SWIG_IsOK(ecode2)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18375 }
18376 arg2 = static_cast< int >(val2);
18377 ecode3 = SWIG_AsVal_int(obj2, &val3);
18378 if (!SWIG_IsOK(ecode3)) {
18379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18380 }
18381 arg3 = static_cast< int >(val3);
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 (arg1)->SetSelection(arg2,arg3);
18385 wxPyEndAllowThreads(__tstate);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 }
18388 resultobj = SWIG_Py_Void();
18389 return resultobj;
18390 fail:
18391 return NULL;
18392 }
18393
18394
18395 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj = 0;
18397 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18398 SwigValueWrapper<wxVisualAttributes > result;
18399 int val1 ;
18400 int ecode1 = 0 ;
18401 PyObject * obj0 = 0 ;
18402 char * kwnames[] = {
18403 (char *) "variant", NULL
18404 };
18405
18406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18407 if (obj0) {
18408 ecode1 = SWIG_AsVal_int(obj0, &val1);
18409 if (!SWIG_IsOK(ecode1)) {
18410 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18411 }
18412 arg1 = static_cast< wxWindowVariant >(val1);
18413 }
18414 {
18415 if (!wxPyCheckForApp()) SWIG_fail;
18416 PyThreadState* __tstate = wxPyBeginAllowThreads();
18417 result = wxSlider::GetClassDefaultAttributes(arg1);
18418 wxPyEndAllowThreads(__tstate);
18419 if (PyErr_Occurred()) SWIG_fail;
18420 }
18421 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18422 return resultobj;
18423 fail:
18424 return NULL;
18425 }
18426
18427
18428 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18429 PyObject *obj;
18430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18431 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18432 return SWIG_Py_Void();
18433 }
18434
18435 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18436 return SWIG_Python_InitShadowInstance(args);
18437 }
18438
18439 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18440 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18441 return 1;
18442 }
18443
18444
18445 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18446 PyObject *pyobj = 0;
18447
18448 {
18449 #if wxUSE_UNICODE
18450 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18451 #else
18452 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18453 #endif
18454 }
18455 return pyobj;
18456 }
18457
18458
18459 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj = 0;
18461 wxWindow *arg1 = (wxWindow *) 0 ;
18462 int arg2 = (int) -1 ;
18463 wxString const &arg3_defvalue = wxPyEmptyString ;
18464 wxString *arg3 = (wxString *) &arg3_defvalue ;
18465 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18466 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18467 wxSize const &arg5_defvalue = wxDefaultSize ;
18468 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18469 long arg6 = (long) 0 ;
18470 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18471 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18472 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18473 wxString *arg8 = (wxString *) &arg8_defvalue ;
18474 wxToggleButton *result = 0 ;
18475 void *argp1 = 0 ;
18476 int res1 = 0 ;
18477 int val2 ;
18478 int ecode2 = 0 ;
18479 bool temp3 = false ;
18480 wxPoint temp4 ;
18481 wxSize temp5 ;
18482 long val6 ;
18483 int ecode6 = 0 ;
18484 void *argp7 = 0 ;
18485 int res7 = 0 ;
18486 bool temp8 = false ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 PyObject * obj2 = 0 ;
18490 PyObject * obj3 = 0 ;
18491 PyObject * obj4 = 0 ;
18492 PyObject * obj5 = 0 ;
18493 PyObject * obj6 = 0 ;
18494 PyObject * obj7 = 0 ;
18495 char * kwnames[] = {
18496 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18497 };
18498
18499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18501 if (!SWIG_IsOK(res1)) {
18502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18503 }
18504 arg1 = reinterpret_cast< wxWindow * >(argp1);
18505 if (obj1) {
18506 ecode2 = SWIG_AsVal_int(obj1, &val2);
18507 if (!SWIG_IsOK(ecode2)) {
18508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18509 }
18510 arg2 = static_cast< int >(val2);
18511 }
18512 if (obj2) {
18513 {
18514 arg3 = wxString_in_helper(obj2);
18515 if (arg3 == NULL) SWIG_fail;
18516 temp3 = true;
18517 }
18518 }
18519 if (obj3) {
18520 {
18521 arg4 = &temp4;
18522 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18523 }
18524 }
18525 if (obj4) {
18526 {
18527 arg5 = &temp5;
18528 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18529 }
18530 }
18531 if (obj5) {
18532 ecode6 = SWIG_AsVal_long(obj5, &val6);
18533 if (!SWIG_IsOK(ecode6)) {
18534 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18535 }
18536 arg6 = static_cast< long >(val6);
18537 }
18538 if (obj6) {
18539 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18540 if (!SWIG_IsOK(res7)) {
18541 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18542 }
18543 if (!argp7) {
18544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18545 }
18546 arg7 = reinterpret_cast< wxValidator * >(argp7);
18547 }
18548 if (obj7) {
18549 {
18550 arg8 = wxString_in_helper(obj7);
18551 if (arg8 == NULL) SWIG_fail;
18552 temp8 = true;
18553 }
18554 }
18555 {
18556 if (!wxPyCheckForApp()) SWIG_fail;
18557 PyThreadState* __tstate = wxPyBeginAllowThreads();
18558 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18559 wxPyEndAllowThreads(__tstate);
18560 if (PyErr_Occurred()) SWIG_fail;
18561 }
18562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18563 {
18564 if (temp3)
18565 delete arg3;
18566 }
18567 {
18568 if (temp8)
18569 delete arg8;
18570 }
18571 return resultobj;
18572 fail:
18573 {
18574 if (temp3)
18575 delete arg3;
18576 }
18577 {
18578 if (temp8)
18579 delete arg8;
18580 }
18581 return NULL;
18582 }
18583
18584
18585 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18586 PyObject *resultobj = 0;
18587 wxToggleButton *result = 0 ;
18588
18589 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18590 {
18591 if (!wxPyCheckForApp()) SWIG_fail;
18592 PyThreadState* __tstate = wxPyBeginAllowThreads();
18593 result = (wxToggleButton *)new wxToggleButton();
18594 wxPyEndAllowThreads(__tstate);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 }
18597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18598 return resultobj;
18599 fail:
18600 return NULL;
18601 }
18602
18603
18604 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18605 PyObject *resultobj = 0;
18606 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18607 wxWindow *arg2 = (wxWindow *) 0 ;
18608 int arg3 = (int) -1 ;
18609 wxString const &arg4_defvalue = wxPyEmptyString ;
18610 wxString *arg4 = (wxString *) &arg4_defvalue ;
18611 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18612 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18613 wxSize const &arg6_defvalue = wxDefaultSize ;
18614 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18615 long arg7 = (long) 0 ;
18616 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18617 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18618 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18619 wxString *arg9 = (wxString *) &arg9_defvalue ;
18620 bool result;
18621 void *argp1 = 0 ;
18622 int res1 = 0 ;
18623 void *argp2 = 0 ;
18624 int res2 = 0 ;
18625 int val3 ;
18626 int ecode3 = 0 ;
18627 bool temp4 = false ;
18628 wxPoint temp5 ;
18629 wxSize temp6 ;
18630 long val7 ;
18631 int ecode7 = 0 ;
18632 void *argp8 = 0 ;
18633 int res8 = 0 ;
18634 bool temp9 = false ;
18635 PyObject * obj0 = 0 ;
18636 PyObject * obj1 = 0 ;
18637 PyObject * obj2 = 0 ;
18638 PyObject * obj3 = 0 ;
18639 PyObject * obj4 = 0 ;
18640 PyObject * obj5 = 0 ;
18641 PyObject * obj6 = 0 ;
18642 PyObject * obj7 = 0 ;
18643 PyObject * obj8 = 0 ;
18644 char * kwnames[] = {
18645 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18646 };
18647
18648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18650 if (!SWIG_IsOK(res1)) {
18651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18652 }
18653 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18654 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18655 if (!SWIG_IsOK(res2)) {
18656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18657 }
18658 arg2 = reinterpret_cast< wxWindow * >(argp2);
18659 if (obj2) {
18660 ecode3 = SWIG_AsVal_int(obj2, &val3);
18661 if (!SWIG_IsOK(ecode3)) {
18662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18663 }
18664 arg3 = static_cast< int >(val3);
18665 }
18666 if (obj3) {
18667 {
18668 arg4 = wxString_in_helper(obj3);
18669 if (arg4 == NULL) SWIG_fail;
18670 temp4 = true;
18671 }
18672 }
18673 if (obj4) {
18674 {
18675 arg5 = &temp5;
18676 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18677 }
18678 }
18679 if (obj5) {
18680 {
18681 arg6 = &temp6;
18682 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18683 }
18684 }
18685 if (obj6) {
18686 ecode7 = SWIG_AsVal_long(obj6, &val7);
18687 if (!SWIG_IsOK(ecode7)) {
18688 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18689 }
18690 arg7 = static_cast< long >(val7);
18691 }
18692 if (obj7) {
18693 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18694 if (!SWIG_IsOK(res8)) {
18695 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18696 }
18697 if (!argp8) {
18698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18699 }
18700 arg8 = reinterpret_cast< wxValidator * >(argp8);
18701 }
18702 if (obj8) {
18703 {
18704 arg9 = wxString_in_helper(obj8);
18705 if (arg9 == NULL) SWIG_fail;
18706 temp9 = true;
18707 }
18708 }
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 {
18716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18717 }
18718 {
18719 if (temp4)
18720 delete arg4;
18721 }
18722 {
18723 if (temp9)
18724 delete arg9;
18725 }
18726 return resultobj;
18727 fail:
18728 {
18729 if (temp4)
18730 delete arg4;
18731 }
18732 {
18733 if (temp9)
18734 delete arg9;
18735 }
18736 return NULL;
18737 }
18738
18739
18740 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18741 PyObject *resultobj = 0;
18742 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18743 bool arg2 ;
18744 void *argp1 = 0 ;
18745 int res1 = 0 ;
18746 bool val2 ;
18747 int ecode2 = 0 ;
18748 PyObject * obj0 = 0 ;
18749 PyObject * obj1 = 0 ;
18750 char * kwnames[] = {
18751 (char *) "self",(char *) "value", NULL
18752 };
18753
18754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18756 if (!SWIG_IsOK(res1)) {
18757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18758 }
18759 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18760 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18761 if (!SWIG_IsOK(ecode2)) {
18762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18763 }
18764 arg2 = static_cast< bool >(val2);
18765 {
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 (arg1)->SetValue(arg2);
18768 wxPyEndAllowThreads(__tstate);
18769 if (PyErr_Occurred()) SWIG_fail;
18770 }
18771 resultobj = SWIG_Py_Void();
18772 return resultobj;
18773 fail:
18774 return NULL;
18775 }
18776
18777
18778 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18779 PyObject *resultobj = 0;
18780 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18781 bool result;
18782 void *argp1 = 0 ;
18783 int res1 = 0 ;
18784 PyObject *swig_obj[1] ;
18785
18786 if (!args) SWIG_fail;
18787 swig_obj[0] = args;
18788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18789 if (!SWIG_IsOK(res1)) {
18790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18791 }
18792 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18793 {
18794 PyThreadState* __tstate = wxPyBeginAllowThreads();
18795 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 {
18800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18801 }
18802 return resultobj;
18803 fail:
18804 return NULL;
18805 }
18806
18807
18808 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18809 PyObject *resultobj = 0;
18810 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18811 SwigValueWrapper<wxVisualAttributes > result;
18812 int val1 ;
18813 int ecode1 = 0 ;
18814 PyObject * obj0 = 0 ;
18815 char * kwnames[] = {
18816 (char *) "variant", NULL
18817 };
18818
18819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18820 if (obj0) {
18821 ecode1 = SWIG_AsVal_int(obj0, &val1);
18822 if (!SWIG_IsOK(ecode1)) {
18823 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18824 }
18825 arg1 = static_cast< wxWindowVariant >(val1);
18826 }
18827 {
18828 if (!wxPyCheckForApp()) SWIG_fail;
18829 PyThreadState* __tstate = wxPyBeginAllowThreads();
18830 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18831 wxPyEndAllowThreads(__tstate);
18832 if (PyErr_Occurred()) SWIG_fail;
18833 }
18834 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18835 return resultobj;
18836 fail:
18837 return NULL;
18838 }
18839
18840
18841 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18842 PyObject *obj;
18843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18844 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18845 return SWIG_Py_Void();
18846 }
18847
18848 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18849 return SWIG_Python_InitShadowInstance(args);
18850 }
18851
18852 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18853 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18854 return 1;
18855 }
18856
18857
18858 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18859 PyObject *pyobj = 0;
18860
18861 {
18862 #if wxUSE_UNICODE
18863 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18864 #else
18865 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18866 #endif
18867 }
18868 return pyobj;
18869 }
18870
18871
18872 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18873 PyObject *resultobj = 0;
18874 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18875 size_t result;
18876 void *argp1 = 0 ;
18877 int res1 = 0 ;
18878 PyObject *swig_obj[1] ;
18879
18880 if (!args) SWIG_fail;
18881 swig_obj[0] = args;
18882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18883 if (!SWIG_IsOK(res1)) {
18884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18885 }
18886 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18887 {
18888 PyThreadState* __tstate = wxPyBeginAllowThreads();
18889 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18890 wxPyEndAllowThreads(__tstate);
18891 if (PyErr_Occurred()) SWIG_fail;
18892 }
18893 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18894 return resultobj;
18895 fail:
18896 return NULL;
18897 }
18898
18899
18900 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18901 PyObject *resultobj = 0;
18902 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18903 size_t arg2 ;
18904 wxWindow *result = 0 ;
18905 void *argp1 = 0 ;
18906 int res1 = 0 ;
18907 size_t val2 ;
18908 int ecode2 = 0 ;
18909 PyObject * obj0 = 0 ;
18910 PyObject * obj1 = 0 ;
18911 char * kwnames[] = {
18912 (char *) "self",(char *) "n", NULL
18913 };
18914
18915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18917 if (!SWIG_IsOK(res1)) {
18918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18919 }
18920 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18921 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18922 if (!SWIG_IsOK(ecode2)) {
18923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18924 }
18925 arg2 = static_cast< size_t >(val2);
18926 {
18927 PyThreadState* __tstate = wxPyBeginAllowThreads();
18928 result = (wxWindow *)(arg1)->GetPage(arg2);
18929 wxPyEndAllowThreads(__tstate);
18930 if (PyErr_Occurred()) SWIG_fail;
18931 }
18932 {
18933 resultobj = wxPyMake_wxObject(result, 0);
18934 }
18935 return resultobj;
18936 fail:
18937 return NULL;
18938 }
18939
18940
18941 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18942 PyObject *resultobj = 0;
18943 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18944 wxWindow *result = 0 ;
18945 void *argp1 = 0 ;
18946 int res1 = 0 ;
18947 PyObject *swig_obj[1] ;
18948
18949 if (!args) SWIG_fail;
18950 swig_obj[0] = args;
18951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18952 if (!SWIG_IsOK(res1)) {
18953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18954 }
18955 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18956 {
18957 PyThreadState* __tstate = wxPyBeginAllowThreads();
18958 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18959 wxPyEndAllowThreads(__tstate);
18960 if (PyErr_Occurred()) SWIG_fail;
18961 }
18962 {
18963 resultobj = wxPyMake_wxObject(result, 0);
18964 }
18965 return resultobj;
18966 fail:
18967 return NULL;
18968 }
18969
18970
18971 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18972 PyObject *resultobj = 0;
18973 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18974 int result;
18975 void *argp1 = 0 ;
18976 int res1 = 0 ;
18977 PyObject *swig_obj[1] ;
18978
18979 if (!args) SWIG_fail;
18980 swig_obj[0] = args;
18981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18982 if (!SWIG_IsOK(res1)) {
18983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18984 }
18985 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18986 {
18987 PyThreadState* __tstate = wxPyBeginAllowThreads();
18988 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18989 wxPyEndAllowThreads(__tstate);
18990 if (PyErr_Occurred()) SWIG_fail;
18991 }
18992 resultobj = SWIG_From_int(static_cast< int >(result));
18993 return resultobj;
18994 fail:
18995 return NULL;
18996 }
18997
18998
18999 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19000 PyObject *resultobj = 0;
19001 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19002 size_t arg2 ;
19003 wxString *arg3 = 0 ;
19004 bool result;
19005 void *argp1 = 0 ;
19006 int res1 = 0 ;
19007 size_t val2 ;
19008 int ecode2 = 0 ;
19009 bool temp3 = false ;
19010 PyObject * obj0 = 0 ;
19011 PyObject * obj1 = 0 ;
19012 PyObject * obj2 = 0 ;
19013 char * kwnames[] = {
19014 (char *) "self",(char *) "n",(char *) "strText", NULL
19015 };
19016
19017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19019 if (!SWIG_IsOK(res1)) {
19020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19021 }
19022 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19023 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19024 if (!SWIG_IsOK(ecode2)) {
19025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19026 }
19027 arg2 = static_cast< size_t >(val2);
19028 {
19029 arg3 = wxString_in_helper(obj2);
19030 if (arg3 == NULL) SWIG_fail;
19031 temp3 = true;
19032 }
19033 {
19034 PyThreadState* __tstate = wxPyBeginAllowThreads();
19035 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19036 wxPyEndAllowThreads(__tstate);
19037 if (PyErr_Occurred()) SWIG_fail;
19038 }
19039 {
19040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19041 }
19042 {
19043 if (temp3)
19044 delete arg3;
19045 }
19046 return resultobj;
19047 fail:
19048 {
19049 if (temp3)
19050 delete arg3;
19051 }
19052 return NULL;
19053 }
19054
19055
19056 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj = 0;
19058 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19059 size_t arg2 ;
19060 wxString result;
19061 void *argp1 = 0 ;
19062 int res1 = 0 ;
19063 size_t val2 ;
19064 int ecode2 = 0 ;
19065 PyObject * obj0 = 0 ;
19066 PyObject * obj1 = 0 ;
19067 char * kwnames[] = {
19068 (char *) "self",(char *) "n", NULL
19069 };
19070
19071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19073 if (!SWIG_IsOK(res1)) {
19074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19075 }
19076 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19077 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19078 if (!SWIG_IsOK(ecode2)) {
19079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19080 }
19081 arg2 = static_cast< size_t >(val2);
19082 {
19083 PyThreadState* __tstate = wxPyBeginAllowThreads();
19084 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
19088 {
19089 #if wxUSE_UNICODE
19090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19091 #else
19092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19093 #endif
19094 }
19095 return resultobj;
19096 fail:
19097 return NULL;
19098 }
19099
19100
19101 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19102 PyObject *resultobj = 0;
19103 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19104 wxImageList *arg2 = (wxImageList *) 0 ;
19105 void *argp1 = 0 ;
19106 int res1 = 0 ;
19107 void *argp2 = 0 ;
19108 int res2 = 0 ;
19109 PyObject * obj0 = 0 ;
19110 PyObject * obj1 = 0 ;
19111 char * kwnames[] = {
19112 (char *) "self",(char *) "imageList", NULL
19113 };
19114
19115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19117 if (!SWIG_IsOK(res1)) {
19118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19119 }
19120 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19121 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19122 if (!SWIG_IsOK(res2)) {
19123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19124 }
19125 arg2 = reinterpret_cast< wxImageList * >(argp2);
19126 {
19127 PyThreadState* __tstate = wxPyBeginAllowThreads();
19128 (arg1)->SetImageList(arg2);
19129 wxPyEndAllowThreads(__tstate);
19130 if (PyErr_Occurred()) SWIG_fail;
19131 }
19132 resultobj = SWIG_Py_Void();
19133 return resultobj;
19134 fail:
19135 return NULL;
19136 }
19137
19138
19139 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19140 PyObject *resultobj = 0;
19141 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19142 wxImageList *arg2 = (wxImageList *) 0 ;
19143 void *argp1 = 0 ;
19144 int res1 = 0 ;
19145 int res2 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 char * kwnames[] = {
19149 (char *) "self",(char *) "imageList", NULL
19150 };
19151
19152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19154 if (!SWIG_IsOK(res1)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19156 }
19157 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19158 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19159 if (!SWIG_IsOK(res2)) {
19160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19161 }
19162 {
19163 PyThreadState* __tstate = wxPyBeginAllowThreads();
19164 (arg1)->AssignImageList(arg2);
19165 wxPyEndAllowThreads(__tstate);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 }
19168 resultobj = SWIG_Py_Void();
19169 return resultobj;
19170 fail:
19171 return NULL;
19172 }
19173
19174
19175 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19176 PyObject *resultobj = 0;
19177 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19178 wxImageList *result = 0 ;
19179 void *argp1 = 0 ;
19180 int res1 = 0 ;
19181 PyObject *swig_obj[1] ;
19182
19183 if (!args) SWIG_fail;
19184 swig_obj[0] = args;
19185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19186 if (!SWIG_IsOK(res1)) {
19187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19188 }
19189 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19190 {
19191 PyThreadState* __tstate = wxPyBeginAllowThreads();
19192 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19193 wxPyEndAllowThreads(__tstate);
19194 if (PyErr_Occurred()) SWIG_fail;
19195 }
19196 {
19197 resultobj = wxPyMake_wxObject(result, (bool)0);
19198 }
19199 return resultobj;
19200 fail:
19201 return NULL;
19202 }
19203
19204
19205 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19206 PyObject *resultobj = 0;
19207 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19208 size_t arg2 ;
19209 int result;
19210 void *argp1 = 0 ;
19211 int res1 = 0 ;
19212 size_t val2 ;
19213 int ecode2 = 0 ;
19214 PyObject * obj0 = 0 ;
19215 PyObject * obj1 = 0 ;
19216 char * kwnames[] = {
19217 (char *) "self",(char *) "n", NULL
19218 };
19219
19220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19222 if (!SWIG_IsOK(res1)) {
19223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19224 }
19225 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19226 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19227 if (!SWIG_IsOK(ecode2)) {
19228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19229 }
19230 arg2 = static_cast< size_t >(val2);
19231 {
19232 PyThreadState* __tstate = wxPyBeginAllowThreads();
19233 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19234 wxPyEndAllowThreads(__tstate);
19235 if (PyErr_Occurred()) SWIG_fail;
19236 }
19237 resultobj = SWIG_From_int(static_cast< int >(result));
19238 return resultobj;
19239 fail:
19240 return NULL;
19241 }
19242
19243
19244 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19245 PyObject *resultobj = 0;
19246 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19247 size_t arg2 ;
19248 int arg3 ;
19249 bool result;
19250 void *argp1 = 0 ;
19251 int res1 = 0 ;
19252 size_t val2 ;
19253 int ecode2 = 0 ;
19254 int val3 ;
19255 int ecode3 = 0 ;
19256 PyObject * obj0 = 0 ;
19257 PyObject * obj1 = 0 ;
19258 PyObject * obj2 = 0 ;
19259 char * kwnames[] = {
19260 (char *) "self",(char *) "n",(char *) "imageId", NULL
19261 };
19262
19263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19265 if (!SWIG_IsOK(res1)) {
19266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19267 }
19268 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19269 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19270 if (!SWIG_IsOK(ecode2)) {
19271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19272 }
19273 arg2 = static_cast< size_t >(val2);
19274 ecode3 = SWIG_AsVal_int(obj2, &val3);
19275 if (!SWIG_IsOK(ecode3)) {
19276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19277 }
19278 arg3 = static_cast< int >(val3);
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 {
19286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19287 }
19288 return resultobj;
19289 fail:
19290 return NULL;
19291 }
19292
19293
19294 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj = 0;
19296 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19297 wxSize *arg2 = 0 ;
19298 void *argp1 = 0 ;
19299 int res1 = 0 ;
19300 wxSize temp2 ;
19301 PyObject * obj0 = 0 ;
19302 PyObject * obj1 = 0 ;
19303 char * kwnames[] = {
19304 (char *) "self",(char *) "size", NULL
19305 };
19306
19307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19309 if (!SWIG_IsOK(res1)) {
19310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19311 }
19312 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19313 {
19314 arg2 = &temp2;
19315 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19316 }
19317 {
19318 PyThreadState* __tstate = wxPyBeginAllowThreads();
19319 (arg1)->SetPageSize((wxSize const &)*arg2);
19320 wxPyEndAllowThreads(__tstate);
19321 if (PyErr_Occurred()) SWIG_fail;
19322 }
19323 resultobj = SWIG_Py_Void();
19324 return resultobj;
19325 fail:
19326 return NULL;
19327 }
19328
19329
19330 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19331 PyObject *resultobj = 0;
19332 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19333 wxSize *arg2 = 0 ;
19334 wxSize result;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 wxSize temp2 ;
19338 PyObject * obj0 = 0 ;
19339 PyObject * obj1 = 0 ;
19340 char * kwnames[] = {
19341 (char *) "self",(char *) "sizePage", NULL
19342 };
19343
19344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19346 if (!SWIG_IsOK(res1)) {
19347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19348 }
19349 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19350 {
19351 arg2 = &temp2;
19352 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19353 }
19354 {
19355 PyThreadState* __tstate = wxPyBeginAllowThreads();
19356 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19357 wxPyEndAllowThreads(__tstate);
19358 if (PyErr_Occurred()) SWIG_fail;
19359 }
19360 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19361 return resultobj;
19362 fail:
19363 return NULL;
19364 }
19365
19366
19367 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19368 PyObject *resultobj = 0;
19369 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19370 unsigned int result;
19371 void *argp1 = 0 ;
19372 int res1 = 0 ;
19373 PyObject *swig_obj[1] ;
19374
19375 if (!args) SWIG_fail;
19376 swig_obj[0] = args;
19377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19378 if (!SWIG_IsOK(res1)) {
19379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19380 }
19381 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19382 {
19383 PyThreadState* __tstate = wxPyBeginAllowThreads();
19384 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19385 wxPyEndAllowThreads(__tstate);
19386 if (PyErr_Occurred()) SWIG_fail;
19387 }
19388 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19389 return resultobj;
19390 fail:
19391 return NULL;
19392 }
19393
19394
19395 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19396 PyObject *resultobj = 0;
19397 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19398 unsigned int arg2 ;
19399 void *argp1 = 0 ;
19400 int res1 = 0 ;
19401 unsigned int val2 ;
19402 int ecode2 = 0 ;
19403 PyObject * obj0 = 0 ;
19404 PyObject * obj1 = 0 ;
19405 char * kwnames[] = {
19406 (char *) "self",(char *) "internalBorder", NULL
19407 };
19408
19409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19411 if (!SWIG_IsOK(res1)) {
19412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19413 }
19414 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19415 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19416 if (!SWIG_IsOK(ecode2)) {
19417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19418 }
19419 arg2 = static_cast< unsigned int >(val2);
19420 {
19421 PyThreadState* __tstate = wxPyBeginAllowThreads();
19422 (arg1)->SetInternalBorder(arg2);
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
19426 resultobj = SWIG_Py_Void();
19427 return resultobj;
19428 fail:
19429 return NULL;
19430 }
19431
19432
19433 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19434 PyObject *resultobj = 0;
19435 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19436 bool result;
19437 void *argp1 = 0 ;
19438 int res1 = 0 ;
19439 PyObject *swig_obj[1] ;
19440
19441 if (!args) SWIG_fail;
19442 swig_obj[0] = args;
19443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19444 if (!SWIG_IsOK(res1)) {
19445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19446 }
19447 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19448 {
19449 PyThreadState* __tstate = wxPyBeginAllowThreads();
19450 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19451 wxPyEndAllowThreads(__tstate);
19452 if (PyErr_Occurred()) SWIG_fail;
19453 }
19454 {
19455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19456 }
19457 return resultobj;
19458 fail:
19459 return NULL;
19460 }
19461
19462
19463 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19464 PyObject *resultobj = 0;
19465 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19466 int arg2 ;
19467 void *argp1 = 0 ;
19468 int res1 = 0 ;
19469 int val2 ;
19470 int ecode2 = 0 ;
19471 PyObject * obj0 = 0 ;
19472 PyObject * obj1 = 0 ;
19473 char * kwnames[] = {
19474 (char *) "self",(char *) "margin", NULL
19475 };
19476
19477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19479 if (!SWIG_IsOK(res1)) {
19480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19481 }
19482 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19483 ecode2 = SWIG_AsVal_int(obj1, &val2);
19484 if (!SWIG_IsOK(ecode2)) {
19485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19486 }
19487 arg2 = static_cast< int >(val2);
19488 {
19489 PyThreadState* __tstate = wxPyBeginAllowThreads();
19490 (arg1)->SetControlMargin(arg2);
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 resultobj = SWIG_Py_Void();
19495 return resultobj;
19496 fail:
19497 return NULL;
19498 }
19499
19500
19501 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19502 PyObject *resultobj = 0;
19503 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19504 int result;
19505 void *argp1 = 0 ;
19506 int res1 = 0 ;
19507 PyObject *swig_obj[1] ;
19508
19509 if (!args) SWIG_fail;
19510 swig_obj[0] = args;
19511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19512 if (!SWIG_IsOK(res1)) {
19513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19514 }
19515 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19516 {
19517 PyThreadState* __tstate = wxPyBeginAllowThreads();
19518 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19519 wxPyEndAllowThreads(__tstate);
19520 if (PyErr_Occurred()) SWIG_fail;
19521 }
19522 resultobj = SWIG_From_int(static_cast< int >(result));
19523 return resultobj;
19524 fail:
19525 return NULL;
19526 }
19527
19528
19529 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19530 PyObject *resultobj = 0;
19531 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19532 bool arg2 ;
19533 void *argp1 = 0 ;
19534 int res1 = 0 ;
19535 bool val2 ;
19536 int ecode2 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 char * kwnames[] = {
19540 (char *) "self",(char *) "fit", NULL
19541 };
19542
19543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19545 if (!SWIG_IsOK(res1)) {
19546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19547 }
19548 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19549 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19550 if (!SWIG_IsOK(ecode2)) {
19551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19552 }
19553 arg2 = static_cast< bool >(val2);
19554 {
19555 PyThreadState* __tstate = wxPyBeginAllowThreads();
19556 (arg1)->SetFitToCurrentPage(arg2);
19557 wxPyEndAllowThreads(__tstate);
19558 if (PyErr_Occurred()) SWIG_fail;
19559 }
19560 resultobj = SWIG_Py_Void();
19561 return resultobj;
19562 fail:
19563 return NULL;
19564 }
19565
19566
19567 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19568 PyObject *resultobj = 0;
19569 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19570 bool result;
19571 void *argp1 = 0 ;
19572 int res1 = 0 ;
19573 PyObject *swig_obj[1] ;
19574
19575 if (!args) SWIG_fail;
19576 swig_obj[0] = args;
19577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19578 if (!SWIG_IsOK(res1)) {
19579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19580 }
19581 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19582 {
19583 PyThreadState* __tstate = wxPyBeginAllowThreads();
19584 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19585 wxPyEndAllowThreads(__tstate);
19586 if (PyErr_Occurred()) SWIG_fail;
19587 }
19588 {
19589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19590 }
19591 return resultobj;
19592 fail:
19593 return NULL;
19594 }
19595
19596
19597 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19598 PyObject *resultobj = 0;
19599 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19600 wxSizer *result = 0 ;
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 PyObject *swig_obj[1] ;
19604
19605 if (!args) SWIG_fail;
19606 swig_obj[0] = args;
19607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19608 if (!SWIG_IsOK(res1)) {
19609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19610 }
19611 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
19614 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19615 wxPyEndAllowThreads(__tstate);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 }
19618 {
19619 resultobj = wxPyMake_wxObject(result, (bool)0);
19620 }
19621 return resultobj;
19622 fail:
19623 return NULL;
19624 }
19625
19626
19627 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19628 PyObject *resultobj = 0;
19629 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19630 size_t arg2 ;
19631 bool result;
19632 void *argp1 = 0 ;
19633 int res1 = 0 ;
19634 size_t val2 ;
19635 int ecode2 = 0 ;
19636 PyObject * obj0 = 0 ;
19637 PyObject * obj1 = 0 ;
19638 char * kwnames[] = {
19639 (char *) "self",(char *) "n", NULL
19640 };
19641
19642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19644 if (!SWIG_IsOK(res1)) {
19645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19646 }
19647 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19648 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19649 if (!SWIG_IsOK(ecode2)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19651 }
19652 arg2 = static_cast< size_t >(val2);
19653 {
19654 PyThreadState* __tstate = wxPyBeginAllowThreads();
19655 result = (bool)(arg1)->DeletePage(arg2);
19656 wxPyEndAllowThreads(__tstate);
19657 if (PyErr_Occurred()) SWIG_fail;
19658 }
19659 {
19660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19661 }
19662 return resultobj;
19663 fail:
19664 return NULL;
19665 }
19666
19667
19668 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19669 PyObject *resultobj = 0;
19670 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19671 size_t arg2 ;
19672 bool result;
19673 void *argp1 = 0 ;
19674 int res1 = 0 ;
19675 size_t val2 ;
19676 int ecode2 = 0 ;
19677 PyObject * obj0 = 0 ;
19678 PyObject * obj1 = 0 ;
19679 char * kwnames[] = {
19680 (char *) "self",(char *) "n", NULL
19681 };
19682
19683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19685 if (!SWIG_IsOK(res1)) {
19686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19687 }
19688 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19689 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19690 if (!SWIG_IsOK(ecode2)) {
19691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19692 }
19693 arg2 = static_cast< size_t >(val2);
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 result = (bool)(arg1)->RemovePage(arg2);
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
19700 {
19701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19702 }
19703 return resultobj;
19704 fail:
19705 return NULL;
19706 }
19707
19708
19709 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19710 PyObject *resultobj = 0;
19711 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19712 bool result;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 PyObject *swig_obj[1] ;
19716
19717 if (!args) SWIG_fail;
19718 swig_obj[0] = args;
19719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19720 if (!SWIG_IsOK(res1)) {
19721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19722 }
19723 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19724 {
19725 PyThreadState* __tstate = wxPyBeginAllowThreads();
19726 result = (bool)(arg1)->DeleteAllPages();
19727 wxPyEndAllowThreads(__tstate);
19728 if (PyErr_Occurred()) SWIG_fail;
19729 }
19730 {
19731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19732 }
19733 return resultobj;
19734 fail:
19735 return NULL;
19736 }
19737
19738
19739 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19740 PyObject *resultobj = 0;
19741 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19742 wxWindow *arg2 = (wxWindow *) 0 ;
19743 wxString *arg3 = 0 ;
19744 bool arg4 = (bool) false ;
19745 int arg5 = (int) -1 ;
19746 bool result;
19747 void *argp1 = 0 ;
19748 int res1 = 0 ;
19749 void *argp2 = 0 ;
19750 int res2 = 0 ;
19751 bool temp3 = false ;
19752 bool val4 ;
19753 int ecode4 = 0 ;
19754 int val5 ;
19755 int ecode5 = 0 ;
19756 PyObject * obj0 = 0 ;
19757 PyObject * obj1 = 0 ;
19758 PyObject * obj2 = 0 ;
19759 PyObject * obj3 = 0 ;
19760 PyObject * obj4 = 0 ;
19761 char * kwnames[] = {
19762 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19763 };
19764
19765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19767 if (!SWIG_IsOK(res1)) {
19768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19769 }
19770 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19772 if (!SWIG_IsOK(res2)) {
19773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19774 }
19775 arg2 = reinterpret_cast< wxWindow * >(argp2);
19776 {
19777 arg3 = wxString_in_helper(obj2);
19778 if (arg3 == NULL) SWIG_fail;
19779 temp3 = true;
19780 }
19781 if (obj3) {
19782 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19783 if (!SWIG_IsOK(ecode4)) {
19784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19785 }
19786 arg4 = static_cast< bool >(val4);
19787 }
19788 if (obj4) {
19789 ecode5 = SWIG_AsVal_int(obj4, &val5);
19790 if (!SWIG_IsOK(ecode5)) {
19791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19792 }
19793 arg5 = static_cast< int >(val5);
19794 }
19795 {
19796 PyThreadState* __tstate = wxPyBeginAllowThreads();
19797 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 {
19802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19803 }
19804 {
19805 if (temp3)
19806 delete arg3;
19807 }
19808 return resultobj;
19809 fail:
19810 {
19811 if (temp3)
19812 delete arg3;
19813 }
19814 return NULL;
19815 }
19816
19817
19818 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19819 PyObject *resultobj = 0;
19820 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19821 size_t arg2 ;
19822 wxWindow *arg3 = (wxWindow *) 0 ;
19823 wxString *arg4 = 0 ;
19824 bool arg5 = (bool) false ;
19825 int arg6 = (int) -1 ;
19826 bool result;
19827 void *argp1 = 0 ;
19828 int res1 = 0 ;
19829 size_t val2 ;
19830 int ecode2 = 0 ;
19831 void *argp3 = 0 ;
19832 int res3 = 0 ;
19833 bool temp4 = false ;
19834 bool val5 ;
19835 int ecode5 = 0 ;
19836 int val6 ;
19837 int ecode6 = 0 ;
19838 PyObject * obj0 = 0 ;
19839 PyObject * obj1 = 0 ;
19840 PyObject * obj2 = 0 ;
19841 PyObject * obj3 = 0 ;
19842 PyObject * obj4 = 0 ;
19843 PyObject * obj5 = 0 ;
19844 char * kwnames[] = {
19845 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19846 };
19847
19848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19850 if (!SWIG_IsOK(res1)) {
19851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19852 }
19853 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19854 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19855 if (!SWIG_IsOK(ecode2)) {
19856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19857 }
19858 arg2 = static_cast< size_t >(val2);
19859 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19860 if (!SWIG_IsOK(res3)) {
19861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19862 }
19863 arg3 = reinterpret_cast< wxWindow * >(argp3);
19864 {
19865 arg4 = wxString_in_helper(obj3);
19866 if (arg4 == NULL) SWIG_fail;
19867 temp4 = true;
19868 }
19869 if (obj4) {
19870 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19871 if (!SWIG_IsOK(ecode5)) {
19872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19873 }
19874 arg5 = static_cast< bool >(val5);
19875 }
19876 if (obj5) {
19877 ecode6 = SWIG_AsVal_int(obj5, &val6);
19878 if (!SWIG_IsOK(ecode6)) {
19879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19880 }
19881 arg6 = static_cast< int >(val6);
19882 }
19883 {
19884 PyThreadState* __tstate = wxPyBeginAllowThreads();
19885 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19886 wxPyEndAllowThreads(__tstate);
19887 if (PyErr_Occurred()) SWIG_fail;
19888 }
19889 {
19890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19891 }
19892 {
19893 if (temp4)
19894 delete arg4;
19895 }
19896 return resultobj;
19897 fail:
19898 {
19899 if (temp4)
19900 delete arg4;
19901 }
19902 return NULL;
19903 }
19904
19905
19906 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19907 PyObject *resultobj = 0;
19908 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19909 size_t arg2 ;
19910 int result;
19911 void *argp1 = 0 ;
19912 int res1 = 0 ;
19913 size_t val2 ;
19914 int ecode2 = 0 ;
19915 PyObject * obj0 = 0 ;
19916 PyObject * obj1 = 0 ;
19917 char * kwnames[] = {
19918 (char *) "self",(char *) "n", NULL
19919 };
19920
19921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19923 if (!SWIG_IsOK(res1)) {
19924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19925 }
19926 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19927 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19928 if (!SWIG_IsOK(ecode2)) {
19929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19930 }
19931 arg2 = static_cast< size_t >(val2);
19932 {
19933 PyThreadState* __tstate = wxPyBeginAllowThreads();
19934 result = (int)(arg1)->SetSelection(arg2);
19935 wxPyEndAllowThreads(__tstate);
19936 if (PyErr_Occurred()) SWIG_fail;
19937 }
19938 resultobj = SWIG_From_int(static_cast< int >(result));
19939 return resultobj;
19940 fail:
19941 return NULL;
19942 }
19943
19944
19945 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19946 PyObject *resultobj = 0;
19947 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19948 bool arg2 = (bool) true ;
19949 void *argp1 = 0 ;
19950 int res1 = 0 ;
19951 bool val2 ;
19952 int ecode2 = 0 ;
19953 PyObject * obj0 = 0 ;
19954 PyObject * obj1 = 0 ;
19955 char * kwnames[] = {
19956 (char *) "self",(char *) "forward", NULL
19957 };
19958
19959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19961 if (!SWIG_IsOK(res1)) {
19962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19963 }
19964 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19965 if (obj1) {
19966 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19967 if (!SWIG_IsOK(ecode2)) {
19968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19969 }
19970 arg2 = static_cast< bool >(val2);
19971 }
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 (arg1)->AdvanceSelection(arg2);
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 resultobj = SWIG_Py_Void();
19979 return resultobj;
19980 fail:
19981 return NULL;
19982 }
19983
19984
19985 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19986 PyObject *resultobj = 0;
19987 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19988 wxPoint *arg2 = 0 ;
19989 long *arg3 = (long *) 0 ;
19990 int result;
19991 void *argp1 = 0 ;
19992 int res1 = 0 ;
19993 wxPoint temp2 ;
19994 long temp3 ;
19995 int res3 = SWIG_TMPOBJ ;
19996 PyObject * obj0 = 0 ;
19997 PyObject * obj1 = 0 ;
19998 char * kwnames[] = {
19999 (char *) "self",(char *) "pt", NULL
20000 };
20001
20002 arg3 = &temp3;
20003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20005 if (!SWIG_IsOK(res1)) {
20006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20007 }
20008 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20009 {
20010 arg2 = &temp2;
20011 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20012 }
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20016 wxPyEndAllowThreads(__tstate);
20017 if (PyErr_Occurred()) SWIG_fail;
20018 }
20019 resultobj = SWIG_From_int(static_cast< int >(result));
20020 if (SWIG_IsTmpObj(res3)) {
20021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20022 } else {
20023 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20025 }
20026 return resultobj;
20027 fail:
20028 return NULL;
20029 }
20030
20031
20032 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20033 PyObject *resultobj = 0;
20034 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20035 SwigValueWrapper<wxVisualAttributes > result;
20036 int val1 ;
20037 int ecode1 = 0 ;
20038 PyObject * obj0 = 0 ;
20039 char * kwnames[] = {
20040 (char *) "variant", NULL
20041 };
20042
20043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20044 if (obj0) {
20045 ecode1 = SWIG_AsVal_int(obj0, &val1);
20046 if (!SWIG_IsOK(ecode1)) {
20047 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20048 }
20049 arg1 = static_cast< wxWindowVariant >(val1);
20050 }
20051 {
20052 if (!wxPyCheckForApp()) SWIG_fail;
20053 PyThreadState* __tstate = wxPyBeginAllowThreads();
20054 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20059 return resultobj;
20060 fail:
20061 return NULL;
20062 }
20063
20064
20065 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20066 PyObject *obj;
20067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20068 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20069 return SWIG_Py_Void();
20070 }
20071
20072 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20073 PyObject *resultobj = 0;
20074 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20075 int arg2 = (int) 0 ;
20076 int arg3 = (int) -1 ;
20077 int arg4 = (int) -1 ;
20078 wxBookCtrlBaseEvent *result = 0 ;
20079 int val1 ;
20080 int ecode1 = 0 ;
20081 int val2 ;
20082 int ecode2 = 0 ;
20083 int val3 ;
20084 int ecode3 = 0 ;
20085 int val4 ;
20086 int ecode4 = 0 ;
20087 PyObject * obj0 = 0 ;
20088 PyObject * obj1 = 0 ;
20089 PyObject * obj2 = 0 ;
20090 PyObject * obj3 = 0 ;
20091 char * kwnames[] = {
20092 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20093 };
20094
20095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20096 if (obj0) {
20097 ecode1 = SWIG_AsVal_int(obj0, &val1);
20098 if (!SWIG_IsOK(ecode1)) {
20099 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20100 }
20101 arg1 = static_cast< wxEventType >(val1);
20102 }
20103 if (obj1) {
20104 ecode2 = SWIG_AsVal_int(obj1, &val2);
20105 if (!SWIG_IsOK(ecode2)) {
20106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20107 }
20108 arg2 = static_cast< int >(val2);
20109 }
20110 if (obj2) {
20111 ecode3 = SWIG_AsVal_int(obj2, &val3);
20112 if (!SWIG_IsOK(ecode3)) {
20113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20114 }
20115 arg3 = static_cast< int >(val3);
20116 }
20117 if (obj3) {
20118 ecode4 = SWIG_AsVal_int(obj3, &val4);
20119 if (!SWIG_IsOK(ecode4)) {
20120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20121 }
20122 arg4 = static_cast< int >(val4);
20123 }
20124 {
20125 PyThreadState* __tstate = wxPyBeginAllowThreads();
20126 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20127 wxPyEndAllowThreads(__tstate);
20128 if (PyErr_Occurred()) SWIG_fail;
20129 }
20130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20131 return resultobj;
20132 fail:
20133 return NULL;
20134 }
20135
20136
20137 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20138 PyObject *resultobj = 0;
20139 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20140 int result;
20141 void *argp1 = 0 ;
20142 int res1 = 0 ;
20143 PyObject *swig_obj[1] ;
20144
20145 if (!args) SWIG_fail;
20146 swig_obj[0] = args;
20147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20148 if (!SWIG_IsOK(res1)) {
20149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20150 }
20151 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20152 {
20153 PyThreadState* __tstate = wxPyBeginAllowThreads();
20154 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20155 wxPyEndAllowThreads(__tstate);
20156 if (PyErr_Occurred()) SWIG_fail;
20157 }
20158 resultobj = SWIG_From_int(static_cast< int >(result));
20159 return resultobj;
20160 fail:
20161 return NULL;
20162 }
20163
20164
20165 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20166 PyObject *resultobj = 0;
20167 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20168 int arg2 ;
20169 void *argp1 = 0 ;
20170 int res1 = 0 ;
20171 int val2 ;
20172 int ecode2 = 0 ;
20173 PyObject * obj0 = 0 ;
20174 PyObject * obj1 = 0 ;
20175 char * kwnames[] = {
20176 (char *) "self",(char *) "nSel", NULL
20177 };
20178
20179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20181 if (!SWIG_IsOK(res1)) {
20182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20183 }
20184 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20185 ecode2 = SWIG_AsVal_int(obj1, &val2);
20186 if (!SWIG_IsOK(ecode2)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20188 }
20189 arg2 = static_cast< int >(val2);
20190 {
20191 PyThreadState* __tstate = wxPyBeginAllowThreads();
20192 (arg1)->SetSelection(arg2);
20193 wxPyEndAllowThreads(__tstate);
20194 if (PyErr_Occurred()) SWIG_fail;
20195 }
20196 resultobj = SWIG_Py_Void();
20197 return resultobj;
20198 fail:
20199 return NULL;
20200 }
20201
20202
20203 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20204 PyObject *resultobj = 0;
20205 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20206 int result;
20207 void *argp1 = 0 ;
20208 int res1 = 0 ;
20209 PyObject *swig_obj[1] ;
20210
20211 if (!args) SWIG_fail;
20212 swig_obj[0] = args;
20213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20214 if (!SWIG_IsOK(res1)) {
20215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20216 }
20217 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20218 {
20219 PyThreadState* __tstate = wxPyBeginAllowThreads();
20220 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20221 wxPyEndAllowThreads(__tstate);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 }
20224 resultobj = SWIG_From_int(static_cast< int >(result));
20225 return resultobj;
20226 fail:
20227 return NULL;
20228 }
20229
20230
20231 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20232 PyObject *resultobj = 0;
20233 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20234 int arg2 ;
20235 void *argp1 = 0 ;
20236 int res1 = 0 ;
20237 int val2 ;
20238 int ecode2 = 0 ;
20239 PyObject * obj0 = 0 ;
20240 PyObject * obj1 = 0 ;
20241 char * kwnames[] = {
20242 (char *) "self",(char *) "nOldSel", NULL
20243 };
20244
20245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20247 if (!SWIG_IsOK(res1)) {
20248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20249 }
20250 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20251 ecode2 = SWIG_AsVal_int(obj1, &val2);
20252 if (!SWIG_IsOK(ecode2)) {
20253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20254 }
20255 arg2 = static_cast< int >(val2);
20256 {
20257 PyThreadState* __tstate = wxPyBeginAllowThreads();
20258 (arg1)->SetOldSelection(arg2);
20259 wxPyEndAllowThreads(__tstate);
20260 if (PyErr_Occurred()) SWIG_fail;
20261 }
20262 resultobj = SWIG_Py_Void();
20263 return resultobj;
20264 fail:
20265 return NULL;
20266 }
20267
20268
20269 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20270 PyObject *obj;
20271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20272 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20273 return SWIG_Py_Void();
20274 }
20275
20276 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20277 return SWIG_Python_InitShadowInstance(args);
20278 }
20279
20280 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj = 0;
20282 wxWindow *arg1 = (wxWindow *) 0 ;
20283 int arg2 = (int) -1 ;
20284 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20285 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20286 wxSize const &arg4_defvalue = wxDefaultSize ;
20287 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20288 long arg5 = (long) 0 ;
20289 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20290 wxString *arg6 = (wxString *) &arg6_defvalue ;
20291 wxNotebook *result = 0 ;
20292 void *argp1 = 0 ;
20293 int res1 = 0 ;
20294 int val2 ;
20295 int ecode2 = 0 ;
20296 wxPoint temp3 ;
20297 wxSize temp4 ;
20298 long val5 ;
20299 int ecode5 = 0 ;
20300 bool temp6 = false ;
20301 PyObject * obj0 = 0 ;
20302 PyObject * obj1 = 0 ;
20303 PyObject * obj2 = 0 ;
20304 PyObject * obj3 = 0 ;
20305 PyObject * obj4 = 0 ;
20306 PyObject * obj5 = 0 ;
20307 char * kwnames[] = {
20308 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20309 };
20310
20311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20313 if (!SWIG_IsOK(res1)) {
20314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20315 }
20316 arg1 = reinterpret_cast< wxWindow * >(argp1);
20317 if (obj1) {
20318 ecode2 = SWIG_AsVal_int(obj1, &val2);
20319 if (!SWIG_IsOK(ecode2)) {
20320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20321 }
20322 arg2 = static_cast< int >(val2);
20323 }
20324 if (obj2) {
20325 {
20326 arg3 = &temp3;
20327 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20328 }
20329 }
20330 if (obj3) {
20331 {
20332 arg4 = &temp4;
20333 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20334 }
20335 }
20336 if (obj4) {
20337 ecode5 = SWIG_AsVal_long(obj4, &val5);
20338 if (!SWIG_IsOK(ecode5)) {
20339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20340 }
20341 arg5 = static_cast< long >(val5);
20342 }
20343 if (obj5) {
20344 {
20345 arg6 = wxString_in_helper(obj5);
20346 if (arg6 == NULL) SWIG_fail;
20347 temp6 = true;
20348 }
20349 }
20350 {
20351 if (!wxPyCheckForApp()) SWIG_fail;
20352 PyThreadState* __tstate = wxPyBeginAllowThreads();
20353 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20354 wxPyEndAllowThreads(__tstate);
20355 if (PyErr_Occurred()) SWIG_fail;
20356 }
20357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20358 {
20359 if (temp6)
20360 delete arg6;
20361 }
20362 return resultobj;
20363 fail:
20364 {
20365 if (temp6)
20366 delete arg6;
20367 }
20368 return NULL;
20369 }
20370
20371
20372 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20373 PyObject *resultobj = 0;
20374 wxNotebook *result = 0 ;
20375
20376 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20377 {
20378 if (!wxPyCheckForApp()) SWIG_fail;
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 result = (wxNotebook *)new wxNotebook();
20381 wxPyEndAllowThreads(__tstate);
20382 if (PyErr_Occurred()) SWIG_fail;
20383 }
20384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20385 return resultobj;
20386 fail:
20387 return NULL;
20388 }
20389
20390
20391 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20392 PyObject *resultobj = 0;
20393 wxNotebook *arg1 = (wxNotebook *) 0 ;
20394 wxWindow *arg2 = (wxWindow *) 0 ;
20395 int arg3 = (int) -1 ;
20396 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20397 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20398 wxSize const &arg5_defvalue = wxDefaultSize ;
20399 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20400 long arg6 = (long) 0 ;
20401 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20402 wxString *arg7 = (wxString *) &arg7_defvalue ;
20403 bool result;
20404 void *argp1 = 0 ;
20405 int res1 = 0 ;
20406 void *argp2 = 0 ;
20407 int res2 = 0 ;
20408 int val3 ;
20409 int ecode3 = 0 ;
20410 wxPoint temp4 ;
20411 wxSize temp5 ;
20412 long val6 ;
20413 int ecode6 = 0 ;
20414 bool temp7 = false ;
20415 PyObject * obj0 = 0 ;
20416 PyObject * obj1 = 0 ;
20417 PyObject * obj2 = 0 ;
20418 PyObject * obj3 = 0 ;
20419 PyObject * obj4 = 0 ;
20420 PyObject * obj5 = 0 ;
20421 PyObject * obj6 = 0 ;
20422 char * kwnames[] = {
20423 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20424 };
20425
20426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20428 if (!SWIG_IsOK(res1)) {
20429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20430 }
20431 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20432 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20433 if (!SWIG_IsOK(res2)) {
20434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20435 }
20436 arg2 = reinterpret_cast< wxWindow * >(argp2);
20437 if (obj2) {
20438 ecode3 = SWIG_AsVal_int(obj2, &val3);
20439 if (!SWIG_IsOK(ecode3)) {
20440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20441 }
20442 arg3 = static_cast< int >(val3);
20443 }
20444 if (obj3) {
20445 {
20446 arg4 = &temp4;
20447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20448 }
20449 }
20450 if (obj4) {
20451 {
20452 arg5 = &temp5;
20453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20454 }
20455 }
20456 if (obj5) {
20457 ecode6 = SWIG_AsVal_long(obj5, &val6);
20458 if (!SWIG_IsOK(ecode6)) {
20459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20460 }
20461 arg6 = static_cast< long >(val6);
20462 }
20463 if (obj6) {
20464 {
20465 arg7 = wxString_in_helper(obj6);
20466 if (arg7 == NULL) SWIG_fail;
20467 temp7 = true;
20468 }
20469 }
20470 {
20471 PyThreadState* __tstate = wxPyBeginAllowThreads();
20472 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20473 wxPyEndAllowThreads(__tstate);
20474 if (PyErr_Occurred()) SWIG_fail;
20475 }
20476 {
20477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20478 }
20479 {
20480 if (temp7)
20481 delete arg7;
20482 }
20483 return resultobj;
20484 fail:
20485 {
20486 if (temp7)
20487 delete arg7;
20488 }
20489 return NULL;
20490 }
20491
20492
20493 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20494 PyObject *resultobj = 0;
20495 wxNotebook *arg1 = (wxNotebook *) 0 ;
20496 int result;
20497 void *argp1 = 0 ;
20498 int res1 = 0 ;
20499 PyObject *swig_obj[1] ;
20500
20501 if (!args) SWIG_fail;
20502 swig_obj[0] = args;
20503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20504 if (!SWIG_IsOK(res1)) {
20505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20506 }
20507 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20508 {
20509 PyThreadState* __tstate = wxPyBeginAllowThreads();
20510 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20511 wxPyEndAllowThreads(__tstate);
20512 if (PyErr_Occurred()) SWIG_fail;
20513 }
20514 resultobj = SWIG_From_int(static_cast< int >(result));
20515 return resultobj;
20516 fail:
20517 return NULL;
20518 }
20519
20520
20521 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20522 PyObject *resultobj = 0;
20523 wxNotebook *arg1 = (wxNotebook *) 0 ;
20524 wxSize *arg2 = 0 ;
20525 void *argp1 = 0 ;
20526 int res1 = 0 ;
20527 wxSize temp2 ;
20528 PyObject * obj0 = 0 ;
20529 PyObject * obj1 = 0 ;
20530 char * kwnames[] = {
20531 (char *) "self",(char *) "padding", NULL
20532 };
20533
20534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20536 if (!SWIG_IsOK(res1)) {
20537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20538 }
20539 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20540 {
20541 arg2 = &temp2;
20542 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20543 }
20544 {
20545 PyThreadState* __tstate = wxPyBeginAllowThreads();
20546 (arg1)->SetPadding((wxSize const &)*arg2);
20547 wxPyEndAllowThreads(__tstate);
20548 if (PyErr_Occurred()) SWIG_fail;
20549 }
20550 resultobj = SWIG_Py_Void();
20551 return resultobj;
20552 fail:
20553 return NULL;
20554 }
20555
20556
20557 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20558 PyObject *resultobj = 0;
20559 wxNotebook *arg1 = (wxNotebook *) 0 ;
20560 wxSize *arg2 = 0 ;
20561 void *argp1 = 0 ;
20562 int res1 = 0 ;
20563 wxSize temp2 ;
20564 PyObject * obj0 = 0 ;
20565 PyObject * obj1 = 0 ;
20566 char * kwnames[] = {
20567 (char *) "self",(char *) "sz", NULL
20568 };
20569
20570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20572 if (!SWIG_IsOK(res1)) {
20573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20574 }
20575 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20576 {
20577 arg2 = &temp2;
20578 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20579 }
20580 {
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 (arg1)->SetTabSize((wxSize const &)*arg2);
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 resultobj = SWIG_Py_Void();
20587 return resultobj;
20588 fail:
20589 return NULL;
20590 }
20591
20592
20593 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20594 PyObject *resultobj = 0;
20595 wxNotebook *arg1 = (wxNotebook *) 0 ;
20596 wxColour result;
20597 void *argp1 = 0 ;
20598 int res1 = 0 ;
20599 PyObject *swig_obj[1] ;
20600
20601 if (!args) SWIG_fail;
20602 swig_obj[0] = args;
20603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20604 if (!SWIG_IsOK(res1)) {
20605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20606 }
20607 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20608 {
20609 PyThreadState* __tstate = wxPyBeginAllowThreads();
20610 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20611 wxPyEndAllowThreads(__tstate);
20612 if (PyErr_Occurred()) SWIG_fail;
20613 }
20614 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20615 return resultobj;
20616 fail:
20617 return NULL;
20618 }
20619
20620
20621 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20622 PyObject *resultobj = 0;
20623 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20624 SwigValueWrapper<wxVisualAttributes > result;
20625 int val1 ;
20626 int ecode1 = 0 ;
20627 PyObject * obj0 = 0 ;
20628 char * kwnames[] = {
20629 (char *) "variant", NULL
20630 };
20631
20632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20633 if (obj0) {
20634 ecode1 = SWIG_AsVal_int(obj0, &val1);
20635 if (!SWIG_IsOK(ecode1)) {
20636 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20637 }
20638 arg1 = static_cast< wxWindowVariant >(val1);
20639 }
20640 {
20641 if (!wxPyCheckForApp()) SWIG_fail;
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 result = wxNotebook::GetClassDefaultAttributes(arg1);
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20648 return resultobj;
20649 fail:
20650 return NULL;
20651 }
20652
20653
20654 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20655 PyObject *obj;
20656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20657 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20658 return SWIG_Py_Void();
20659 }
20660
20661 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20662 return SWIG_Python_InitShadowInstance(args);
20663 }
20664
20665 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20666 PyObject *resultobj = 0;
20667 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20668 int arg2 = (int) 0 ;
20669 int arg3 = (int) -1 ;
20670 int arg4 = (int) -1 ;
20671 wxNotebookEvent *result = 0 ;
20672 int val1 ;
20673 int ecode1 = 0 ;
20674 int val2 ;
20675 int ecode2 = 0 ;
20676 int val3 ;
20677 int ecode3 = 0 ;
20678 int val4 ;
20679 int ecode4 = 0 ;
20680 PyObject * obj0 = 0 ;
20681 PyObject * obj1 = 0 ;
20682 PyObject * obj2 = 0 ;
20683 PyObject * obj3 = 0 ;
20684 char * kwnames[] = {
20685 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20686 };
20687
20688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20689 if (obj0) {
20690 ecode1 = SWIG_AsVal_int(obj0, &val1);
20691 if (!SWIG_IsOK(ecode1)) {
20692 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20693 }
20694 arg1 = static_cast< wxEventType >(val1);
20695 }
20696 if (obj1) {
20697 ecode2 = SWIG_AsVal_int(obj1, &val2);
20698 if (!SWIG_IsOK(ecode2)) {
20699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20700 }
20701 arg2 = static_cast< int >(val2);
20702 }
20703 if (obj2) {
20704 ecode3 = SWIG_AsVal_int(obj2, &val3);
20705 if (!SWIG_IsOK(ecode3)) {
20706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20707 }
20708 arg3 = static_cast< int >(val3);
20709 }
20710 if (obj3) {
20711 ecode4 = SWIG_AsVal_int(obj3, &val4);
20712 if (!SWIG_IsOK(ecode4)) {
20713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20714 }
20715 arg4 = static_cast< int >(val4);
20716 }
20717 {
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20724 return resultobj;
20725 fail:
20726 return NULL;
20727 }
20728
20729
20730 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20731 PyObject *obj;
20732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20733 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20734 return SWIG_Py_Void();
20735 }
20736
20737 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20738 return SWIG_Python_InitShadowInstance(args);
20739 }
20740
20741 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20742 PyObject *resultobj = 0;
20743 wxWindow *arg1 = (wxWindow *) 0 ;
20744 int arg2 = (int) -1 ;
20745 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20746 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20747 wxSize const &arg4_defvalue = wxDefaultSize ;
20748 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20749 long arg5 = (long) 0 ;
20750 wxString const &arg6_defvalue = wxPyEmptyString ;
20751 wxString *arg6 = (wxString *) &arg6_defvalue ;
20752 wxListbook *result = 0 ;
20753 void *argp1 = 0 ;
20754 int res1 = 0 ;
20755 int val2 ;
20756 int ecode2 = 0 ;
20757 wxPoint temp3 ;
20758 wxSize temp4 ;
20759 long val5 ;
20760 int ecode5 = 0 ;
20761 bool temp6 = false ;
20762 PyObject * obj0 = 0 ;
20763 PyObject * obj1 = 0 ;
20764 PyObject * obj2 = 0 ;
20765 PyObject * obj3 = 0 ;
20766 PyObject * obj4 = 0 ;
20767 PyObject * obj5 = 0 ;
20768 char * kwnames[] = {
20769 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20770 };
20771
20772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20774 if (!SWIG_IsOK(res1)) {
20775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20776 }
20777 arg1 = reinterpret_cast< wxWindow * >(argp1);
20778 if (obj1) {
20779 ecode2 = SWIG_AsVal_int(obj1, &val2);
20780 if (!SWIG_IsOK(ecode2)) {
20781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20782 }
20783 arg2 = static_cast< int >(val2);
20784 }
20785 if (obj2) {
20786 {
20787 arg3 = &temp3;
20788 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20789 }
20790 }
20791 if (obj3) {
20792 {
20793 arg4 = &temp4;
20794 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20795 }
20796 }
20797 if (obj4) {
20798 ecode5 = SWIG_AsVal_long(obj4, &val5);
20799 if (!SWIG_IsOK(ecode5)) {
20800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20801 }
20802 arg5 = static_cast< long >(val5);
20803 }
20804 if (obj5) {
20805 {
20806 arg6 = wxString_in_helper(obj5);
20807 if (arg6 == NULL) SWIG_fail;
20808 temp6 = true;
20809 }
20810 }
20811 {
20812 if (!wxPyCheckForApp()) SWIG_fail;
20813 PyThreadState* __tstate = wxPyBeginAllowThreads();
20814 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20815 wxPyEndAllowThreads(__tstate);
20816 if (PyErr_Occurred()) SWIG_fail;
20817 }
20818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20819 {
20820 if (temp6)
20821 delete arg6;
20822 }
20823 return resultobj;
20824 fail:
20825 {
20826 if (temp6)
20827 delete arg6;
20828 }
20829 return NULL;
20830 }
20831
20832
20833 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20834 PyObject *resultobj = 0;
20835 wxListbook *result = 0 ;
20836
20837 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20838 {
20839 if (!wxPyCheckForApp()) SWIG_fail;
20840 PyThreadState* __tstate = wxPyBeginAllowThreads();
20841 result = (wxListbook *)new wxListbook();
20842 wxPyEndAllowThreads(__tstate);
20843 if (PyErr_Occurred()) SWIG_fail;
20844 }
20845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20846 return resultobj;
20847 fail:
20848 return NULL;
20849 }
20850
20851
20852 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20853 PyObject *resultobj = 0;
20854 wxListbook *arg1 = (wxListbook *) 0 ;
20855 wxWindow *arg2 = (wxWindow *) 0 ;
20856 int arg3 = (int) -1 ;
20857 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20858 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20859 wxSize const &arg5_defvalue = wxDefaultSize ;
20860 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20861 long arg6 = (long) 0 ;
20862 wxString const &arg7_defvalue = wxPyEmptyString ;
20863 wxString *arg7 = (wxString *) &arg7_defvalue ;
20864 bool result;
20865 void *argp1 = 0 ;
20866 int res1 = 0 ;
20867 void *argp2 = 0 ;
20868 int res2 = 0 ;
20869 int val3 ;
20870 int ecode3 = 0 ;
20871 wxPoint temp4 ;
20872 wxSize temp5 ;
20873 long val6 ;
20874 int ecode6 = 0 ;
20875 bool temp7 = false ;
20876 PyObject * obj0 = 0 ;
20877 PyObject * obj1 = 0 ;
20878 PyObject * obj2 = 0 ;
20879 PyObject * obj3 = 0 ;
20880 PyObject * obj4 = 0 ;
20881 PyObject * obj5 = 0 ;
20882 PyObject * obj6 = 0 ;
20883 char * kwnames[] = {
20884 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20885 };
20886
20887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20889 if (!SWIG_IsOK(res1)) {
20890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20891 }
20892 arg1 = reinterpret_cast< wxListbook * >(argp1);
20893 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20894 if (!SWIG_IsOK(res2)) {
20895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20896 }
20897 arg2 = reinterpret_cast< wxWindow * >(argp2);
20898 if (obj2) {
20899 ecode3 = SWIG_AsVal_int(obj2, &val3);
20900 if (!SWIG_IsOK(ecode3)) {
20901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20902 }
20903 arg3 = static_cast< int >(val3);
20904 }
20905 if (obj3) {
20906 {
20907 arg4 = &temp4;
20908 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20909 }
20910 }
20911 if (obj4) {
20912 {
20913 arg5 = &temp5;
20914 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20915 }
20916 }
20917 if (obj5) {
20918 ecode6 = SWIG_AsVal_long(obj5, &val6);
20919 if (!SWIG_IsOK(ecode6)) {
20920 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20921 }
20922 arg6 = static_cast< long >(val6);
20923 }
20924 if (obj6) {
20925 {
20926 arg7 = wxString_in_helper(obj6);
20927 if (arg7 == NULL) SWIG_fail;
20928 temp7 = true;
20929 }
20930 }
20931 {
20932 PyThreadState* __tstate = wxPyBeginAllowThreads();
20933 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20934 wxPyEndAllowThreads(__tstate);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
20937 {
20938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20939 }
20940 {
20941 if (temp7)
20942 delete arg7;
20943 }
20944 return resultobj;
20945 fail:
20946 {
20947 if (temp7)
20948 delete arg7;
20949 }
20950 return NULL;
20951 }
20952
20953
20954 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20955 PyObject *resultobj = 0;
20956 wxListbook *arg1 = (wxListbook *) 0 ;
20957 wxListView *result = 0 ;
20958 void *argp1 = 0 ;
20959 int res1 = 0 ;
20960 PyObject *swig_obj[1] ;
20961
20962 if (!args) SWIG_fail;
20963 swig_obj[0] = args;
20964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20965 if (!SWIG_IsOK(res1)) {
20966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20967 }
20968 arg1 = reinterpret_cast< wxListbook * >(argp1);
20969 {
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 result = (wxListView *)(arg1)->GetListView();
20972 wxPyEndAllowThreads(__tstate);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
20975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20976 return resultobj;
20977 fail:
20978 return NULL;
20979 }
20980
20981
20982 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20983 PyObject *obj;
20984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20985 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20986 return SWIG_Py_Void();
20987 }
20988
20989 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20990 return SWIG_Python_InitShadowInstance(args);
20991 }
20992
20993 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20994 PyObject *resultobj = 0;
20995 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20996 int arg2 = (int) 0 ;
20997 int arg3 = (int) -1 ;
20998 int arg4 = (int) -1 ;
20999 wxListbookEvent *result = 0 ;
21000 int val1 ;
21001 int ecode1 = 0 ;
21002 int val2 ;
21003 int ecode2 = 0 ;
21004 int val3 ;
21005 int ecode3 = 0 ;
21006 int val4 ;
21007 int ecode4 = 0 ;
21008 PyObject * obj0 = 0 ;
21009 PyObject * obj1 = 0 ;
21010 PyObject * obj2 = 0 ;
21011 PyObject * obj3 = 0 ;
21012 char * kwnames[] = {
21013 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21014 };
21015
21016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21017 if (obj0) {
21018 ecode1 = SWIG_AsVal_int(obj0, &val1);
21019 if (!SWIG_IsOK(ecode1)) {
21020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21021 }
21022 arg1 = static_cast< wxEventType >(val1);
21023 }
21024 if (obj1) {
21025 ecode2 = SWIG_AsVal_int(obj1, &val2);
21026 if (!SWIG_IsOK(ecode2)) {
21027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21028 }
21029 arg2 = static_cast< int >(val2);
21030 }
21031 if (obj2) {
21032 ecode3 = SWIG_AsVal_int(obj2, &val3);
21033 if (!SWIG_IsOK(ecode3)) {
21034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21035 }
21036 arg3 = static_cast< int >(val3);
21037 }
21038 if (obj3) {
21039 ecode4 = SWIG_AsVal_int(obj3, &val4);
21040 if (!SWIG_IsOK(ecode4)) {
21041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21042 }
21043 arg4 = static_cast< int >(val4);
21044 }
21045 {
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21048 wxPyEndAllowThreads(__tstate);
21049 if (PyErr_Occurred()) SWIG_fail;
21050 }
21051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21052 return resultobj;
21053 fail:
21054 return NULL;
21055 }
21056
21057
21058 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21059 PyObject *obj;
21060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21061 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21062 return SWIG_Py_Void();
21063 }
21064
21065 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21066 return SWIG_Python_InitShadowInstance(args);
21067 }
21068
21069 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21070 PyObject *resultobj = 0;
21071 wxWindow *arg1 = (wxWindow *) 0 ;
21072 int arg2 ;
21073 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21074 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21075 wxSize const &arg4_defvalue = wxDefaultSize ;
21076 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21077 long arg5 = (long) 0 ;
21078 wxString const &arg6_defvalue = wxPyEmptyString ;
21079 wxString *arg6 = (wxString *) &arg6_defvalue ;
21080 wxChoicebook *result = 0 ;
21081 void *argp1 = 0 ;
21082 int res1 = 0 ;
21083 int val2 ;
21084 int ecode2 = 0 ;
21085 wxPoint temp3 ;
21086 wxSize temp4 ;
21087 long val5 ;
21088 int ecode5 = 0 ;
21089 bool temp6 = false ;
21090 PyObject * obj0 = 0 ;
21091 PyObject * obj1 = 0 ;
21092 PyObject * obj2 = 0 ;
21093 PyObject * obj3 = 0 ;
21094 PyObject * obj4 = 0 ;
21095 PyObject * obj5 = 0 ;
21096 char * kwnames[] = {
21097 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21098 };
21099
21100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21102 if (!SWIG_IsOK(res1)) {
21103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21104 }
21105 arg1 = reinterpret_cast< wxWindow * >(argp1);
21106 ecode2 = SWIG_AsVal_int(obj1, &val2);
21107 if (!SWIG_IsOK(ecode2)) {
21108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21109 }
21110 arg2 = static_cast< int >(val2);
21111 if (obj2) {
21112 {
21113 arg3 = &temp3;
21114 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21115 }
21116 }
21117 if (obj3) {
21118 {
21119 arg4 = &temp4;
21120 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21121 }
21122 }
21123 if (obj4) {
21124 ecode5 = SWIG_AsVal_long(obj4, &val5);
21125 if (!SWIG_IsOK(ecode5)) {
21126 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21127 }
21128 arg5 = static_cast< long >(val5);
21129 }
21130 if (obj5) {
21131 {
21132 arg6 = wxString_in_helper(obj5);
21133 if (arg6 == NULL) SWIG_fail;
21134 temp6 = true;
21135 }
21136 }
21137 {
21138 if (!wxPyCheckForApp()) SWIG_fail;
21139 PyThreadState* __tstate = wxPyBeginAllowThreads();
21140 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21141 wxPyEndAllowThreads(__tstate);
21142 if (PyErr_Occurred()) SWIG_fail;
21143 }
21144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21145 {
21146 if (temp6)
21147 delete arg6;
21148 }
21149 return resultobj;
21150 fail:
21151 {
21152 if (temp6)
21153 delete arg6;
21154 }
21155 return NULL;
21156 }
21157
21158
21159 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21160 PyObject *resultobj = 0;
21161 wxChoicebook *result = 0 ;
21162
21163 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21164 {
21165 if (!wxPyCheckForApp()) SWIG_fail;
21166 PyThreadState* __tstate = wxPyBeginAllowThreads();
21167 result = (wxChoicebook *)new wxChoicebook();
21168 wxPyEndAllowThreads(__tstate);
21169 if (PyErr_Occurred()) SWIG_fail;
21170 }
21171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21172 return resultobj;
21173 fail:
21174 return NULL;
21175 }
21176
21177
21178 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21179 PyObject *resultobj = 0;
21180 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21181 wxWindow *arg2 = (wxWindow *) 0 ;
21182 int arg3 ;
21183 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21184 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21185 wxSize const &arg5_defvalue = wxDefaultSize ;
21186 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21187 long arg6 = (long) 0 ;
21188 wxString const &arg7_defvalue = wxPyEmptyString ;
21189 wxString *arg7 = (wxString *) &arg7_defvalue ;
21190 bool result;
21191 void *argp1 = 0 ;
21192 int res1 = 0 ;
21193 void *argp2 = 0 ;
21194 int res2 = 0 ;
21195 int val3 ;
21196 int ecode3 = 0 ;
21197 wxPoint temp4 ;
21198 wxSize temp5 ;
21199 long val6 ;
21200 int ecode6 = 0 ;
21201 bool temp7 = false ;
21202 PyObject * obj0 = 0 ;
21203 PyObject * obj1 = 0 ;
21204 PyObject * obj2 = 0 ;
21205 PyObject * obj3 = 0 ;
21206 PyObject * obj4 = 0 ;
21207 PyObject * obj5 = 0 ;
21208 PyObject * obj6 = 0 ;
21209 char * kwnames[] = {
21210 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21211 };
21212
21213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21215 if (!SWIG_IsOK(res1)) {
21216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21217 }
21218 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21219 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21220 if (!SWIG_IsOK(res2)) {
21221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21222 }
21223 arg2 = reinterpret_cast< wxWindow * >(argp2);
21224 ecode3 = SWIG_AsVal_int(obj2, &val3);
21225 if (!SWIG_IsOK(ecode3)) {
21226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21227 }
21228 arg3 = static_cast< int >(val3);
21229 if (obj3) {
21230 {
21231 arg4 = &temp4;
21232 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21233 }
21234 }
21235 if (obj4) {
21236 {
21237 arg5 = &temp5;
21238 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21239 }
21240 }
21241 if (obj5) {
21242 ecode6 = SWIG_AsVal_long(obj5, &val6);
21243 if (!SWIG_IsOK(ecode6)) {
21244 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21245 }
21246 arg6 = static_cast< long >(val6);
21247 }
21248 if (obj6) {
21249 {
21250 arg7 = wxString_in_helper(obj6);
21251 if (arg7 == NULL) SWIG_fail;
21252 temp7 = true;
21253 }
21254 }
21255 {
21256 PyThreadState* __tstate = wxPyBeginAllowThreads();
21257 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21258 wxPyEndAllowThreads(__tstate);
21259 if (PyErr_Occurred()) SWIG_fail;
21260 }
21261 {
21262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21263 }
21264 {
21265 if (temp7)
21266 delete arg7;
21267 }
21268 return resultobj;
21269 fail:
21270 {
21271 if (temp7)
21272 delete arg7;
21273 }
21274 return NULL;
21275 }
21276
21277
21278 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21279 PyObject *resultobj = 0;
21280 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21281 wxChoice *result = 0 ;
21282 void *argp1 = 0 ;
21283 int res1 = 0 ;
21284 PyObject *swig_obj[1] ;
21285
21286 if (!args) SWIG_fail;
21287 swig_obj[0] = args;
21288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21289 if (!SWIG_IsOK(res1)) {
21290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21291 }
21292 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21293 {
21294 PyThreadState* __tstate = wxPyBeginAllowThreads();
21295 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21296 wxPyEndAllowThreads(__tstate);
21297 if (PyErr_Occurred()) SWIG_fail;
21298 }
21299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21300 return resultobj;
21301 fail:
21302 return NULL;
21303 }
21304
21305
21306 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21307 PyObject *obj;
21308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21309 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21310 return SWIG_Py_Void();
21311 }
21312
21313 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21314 return SWIG_Python_InitShadowInstance(args);
21315 }
21316
21317 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj = 0;
21319 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21320 int arg2 = (int) 0 ;
21321 int arg3 = (int) -1 ;
21322 int arg4 = (int) -1 ;
21323 wxChoicebookEvent *result = 0 ;
21324 int val1 ;
21325 int ecode1 = 0 ;
21326 int val2 ;
21327 int ecode2 = 0 ;
21328 int val3 ;
21329 int ecode3 = 0 ;
21330 int val4 ;
21331 int ecode4 = 0 ;
21332 PyObject * obj0 = 0 ;
21333 PyObject * obj1 = 0 ;
21334 PyObject * obj2 = 0 ;
21335 PyObject * obj3 = 0 ;
21336 char * kwnames[] = {
21337 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21338 };
21339
21340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21341 if (obj0) {
21342 ecode1 = SWIG_AsVal_int(obj0, &val1);
21343 if (!SWIG_IsOK(ecode1)) {
21344 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21345 }
21346 arg1 = static_cast< wxEventType >(val1);
21347 }
21348 if (obj1) {
21349 ecode2 = SWIG_AsVal_int(obj1, &val2);
21350 if (!SWIG_IsOK(ecode2)) {
21351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21352 }
21353 arg2 = static_cast< int >(val2);
21354 }
21355 if (obj2) {
21356 ecode3 = SWIG_AsVal_int(obj2, &val3);
21357 if (!SWIG_IsOK(ecode3)) {
21358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21359 }
21360 arg3 = static_cast< int >(val3);
21361 }
21362 if (obj3) {
21363 ecode4 = SWIG_AsVal_int(obj3, &val4);
21364 if (!SWIG_IsOK(ecode4)) {
21365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21366 }
21367 arg4 = static_cast< int >(val4);
21368 }
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21372 wxPyEndAllowThreads(__tstate);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21376 return resultobj;
21377 fail:
21378 return NULL;
21379 }
21380
21381
21382 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21383 PyObject *obj;
21384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21385 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21386 return SWIG_Py_Void();
21387 }
21388
21389 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21390 return SWIG_Python_InitShadowInstance(args);
21391 }
21392
21393 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21394 PyObject *resultobj = 0;
21395 wxWindow *arg1 = (wxWindow *) 0 ;
21396 int arg2 ;
21397 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21398 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21399 wxSize const &arg4_defvalue = wxDefaultSize ;
21400 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21401 long arg5 = (long) wxBK_DEFAULT ;
21402 wxString const &arg6_defvalue = wxPyEmptyString ;
21403 wxString *arg6 = (wxString *) &arg6_defvalue ;
21404 wxTreebook *result = 0 ;
21405 void *argp1 = 0 ;
21406 int res1 = 0 ;
21407 int val2 ;
21408 int ecode2 = 0 ;
21409 wxPoint temp3 ;
21410 wxSize temp4 ;
21411 long val5 ;
21412 int ecode5 = 0 ;
21413 bool temp6 = false ;
21414 PyObject * obj0 = 0 ;
21415 PyObject * obj1 = 0 ;
21416 PyObject * obj2 = 0 ;
21417 PyObject * obj3 = 0 ;
21418 PyObject * obj4 = 0 ;
21419 PyObject * obj5 = 0 ;
21420 char * kwnames[] = {
21421 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21422 };
21423
21424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21426 if (!SWIG_IsOK(res1)) {
21427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21428 }
21429 arg1 = reinterpret_cast< wxWindow * >(argp1);
21430 ecode2 = SWIG_AsVal_int(obj1, &val2);
21431 if (!SWIG_IsOK(ecode2)) {
21432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21433 }
21434 arg2 = static_cast< int >(val2);
21435 if (obj2) {
21436 {
21437 arg3 = &temp3;
21438 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21439 }
21440 }
21441 if (obj3) {
21442 {
21443 arg4 = &temp4;
21444 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21445 }
21446 }
21447 if (obj4) {
21448 ecode5 = SWIG_AsVal_long(obj4, &val5);
21449 if (!SWIG_IsOK(ecode5)) {
21450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21451 }
21452 arg5 = static_cast< long >(val5);
21453 }
21454 if (obj5) {
21455 {
21456 arg6 = wxString_in_helper(obj5);
21457 if (arg6 == NULL) SWIG_fail;
21458 temp6 = true;
21459 }
21460 }
21461 {
21462 if (!wxPyCheckForApp()) SWIG_fail;
21463 PyThreadState* __tstate = wxPyBeginAllowThreads();
21464 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21465 wxPyEndAllowThreads(__tstate);
21466 if (PyErr_Occurred()) SWIG_fail;
21467 }
21468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21469 {
21470 if (temp6)
21471 delete arg6;
21472 }
21473 return resultobj;
21474 fail:
21475 {
21476 if (temp6)
21477 delete arg6;
21478 }
21479 return NULL;
21480 }
21481
21482
21483 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21484 PyObject *resultobj = 0;
21485 wxTreebook *result = 0 ;
21486
21487 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21488 {
21489 if (!wxPyCheckForApp()) SWIG_fail;
21490 PyThreadState* __tstate = wxPyBeginAllowThreads();
21491 result = (wxTreebook *)new wxTreebook();
21492 wxPyEndAllowThreads(__tstate);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21496 return resultobj;
21497 fail:
21498 return NULL;
21499 }
21500
21501
21502 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21503 PyObject *resultobj = 0;
21504 wxTreebook *arg1 = (wxTreebook *) 0 ;
21505 wxWindow *arg2 = (wxWindow *) 0 ;
21506 int arg3 ;
21507 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21508 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21509 wxSize const &arg5_defvalue = wxDefaultSize ;
21510 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21511 long arg6 = (long) wxBK_DEFAULT ;
21512 wxString const &arg7_defvalue = wxPyEmptyString ;
21513 wxString *arg7 = (wxString *) &arg7_defvalue ;
21514 bool result;
21515 void *argp1 = 0 ;
21516 int res1 = 0 ;
21517 void *argp2 = 0 ;
21518 int res2 = 0 ;
21519 int val3 ;
21520 int ecode3 = 0 ;
21521 wxPoint temp4 ;
21522 wxSize temp5 ;
21523 long val6 ;
21524 int ecode6 = 0 ;
21525 bool temp7 = false ;
21526 PyObject * obj0 = 0 ;
21527 PyObject * obj1 = 0 ;
21528 PyObject * obj2 = 0 ;
21529 PyObject * obj3 = 0 ;
21530 PyObject * obj4 = 0 ;
21531 PyObject * obj5 = 0 ;
21532 PyObject * obj6 = 0 ;
21533 char * kwnames[] = {
21534 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21535 };
21536
21537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21539 if (!SWIG_IsOK(res1)) {
21540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21541 }
21542 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21543 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21544 if (!SWIG_IsOK(res2)) {
21545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21546 }
21547 arg2 = reinterpret_cast< wxWindow * >(argp2);
21548 ecode3 = SWIG_AsVal_int(obj2, &val3);
21549 if (!SWIG_IsOK(ecode3)) {
21550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21551 }
21552 arg3 = static_cast< int >(val3);
21553 if (obj3) {
21554 {
21555 arg4 = &temp4;
21556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21557 }
21558 }
21559 if (obj4) {
21560 {
21561 arg5 = &temp5;
21562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21563 }
21564 }
21565 if (obj5) {
21566 ecode6 = SWIG_AsVal_long(obj5, &val6);
21567 if (!SWIG_IsOK(ecode6)) {
21568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21569 }
21570 arg6 = static_cast< long >(val6);
21571 }
21572 if (obj6) {
21573 {
21574 arg7 = wxString_in_helper(obj6);
21575 if (arg7 == NULL) SWIG_fail;
21576 temp7 = true;
21577 }
21578 }
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21582 wxPyEndAllowThreads(__tstate);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 }
21585 {
21586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21587 }
21588 {
21589 if (temp7)
21590 delete arg7;
21591 }
21592 return resultobj;
21593 fail:
21594 {
21595 if (temp7)
21596 delete arg7;
21597 }
21598 return NULL;
21599 }
21600
21601
21602 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21603 PyObject *resultobj = 0;
21604 wxTreebook *arg1 = (wxTreebook *) 0 ;
21605 size_t arg2 ;
21606 wxWindow *arg3 = (wxWindow *) 0 ;
21607 wxString *arg4 = 0 ;
21608 bool arg5 = (bool) false ;
21609 int arg6 = (int) wxNOT_FOUND ;
21610 bool result;
21611 void *argp1 = 0 ;
21612 int res1 = 0 ;
21613 size_t val2 ;
21614 int ecode2 = 0 ;
21615 void *argp3 = 0 ;
21616 int res3 = 0 ;
21617 bool temp4 = false ;
21618 bool val5 ;
21619 int ecode5 = 0 ;
21620 int val6 ;
21621 int ecode6 = 0 ;
21622 PyObject * obj0 = 0 ;
21623 PyObject * obj1 = 0 ;
21624 PyObject * obj2 = 0 ;
21625 PyObject * obj3 = 0 ;
21626 PyObject * obj4 = 0 ;
21627 PyObject * obj5 = 0 ;
21628 char * kwnames[] = {
21629 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21630 };
21631
21632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21634 if (!SWIG_IsOK(res1)) {
21635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21636 }
21637 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21638 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21639 if (!SWIG_IsOK(ecode2)) {
21640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21641 }
21642 arg2 = static_cast< size_t >(val2);
21643 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21644 if (!SWIG_IsOK(res3)) {
21645 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21646 }
21647 arg3 = reinterpret_cast< wxWindow * >(argp3);
21648 {
21649 arg4 = wxString_in_helper(obj3);
21650 if (arg4 == NULL) SWIG_fail;
21651 temp4 = true;
21652 }
21653 if (obj4) {
21654 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21655 if (!SWIG_IsOK(ecode5)) {
21656 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21657 }
21658 arg5 = static_cast< bool >(val5);
21659 }
21660 if (obj5) {
21661 ecode6 = SWIG_AsVal_int(obj5, &val6);
21662 if (!SWIG_IsOK(ecode6)) {
21663 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21664 }
21665 arg6 = static_cast< int >(val6);
21666 }
21667 {
21668 PyThreadState* __tstate = wxPyBeginAllowThreads();
21669 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21670 wxPyEndAllowThreads(__tstate);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 {
21674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21675 }
21676 {
21677 if (temp4)
21678 delete arg4;
21679 }
21680 return resultobj;
21681 fail:
21682 {
21683 if (temp4)
21684 delete arg4;
21685 }
21686 return NULL;
21687 }
21688
21689
21690 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21691 PyObject *resultobj = 0;
21692 wxTreebook *arg1 = (wxTreebook *) 0 ;
21693 wxWindow *arg2 = (wxWindow *) 0 ;
21694 wxString *arg3 = 0 ;
21695 bool arg4 = (bool) false ;
21696 int arg5 = (int) wxNOT_FOUND ;
21697 bool result;
21698 void *argp1 = 0 ;
21699 int res1 = 0 ;
21700 void *argp2 = 0 ;
21701 int res2 = 0 ;
21702 bool temp3 = false ;
21703 bool val4 ;
21704 int ecode4 = 0 ;
21705 int val5 ;
21706 int ecode5 = 0 ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 PyObject * obj2 = 0 ;
21710 PyObject * obj3 = 0 ;
21711 PyObject * obj4 = 0 ;
21712 char * kwnames[] = {
21713 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21714 };
21715
21716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21718 if (!SWIG_IsOK(res1)) {
21719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21720 }
21721 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21723 if (!SWIG_IsOK(res2)) {
21724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21725 }
21726 arg2 = reinterpret_cast< wxWindow * >(argp2);
21727 {
21728 arg3 = wxString_in_helper(obj2);
21729 if (arg3 == NULL) SWIG_fail;
21730 temp3 = true;
21731 }
21732 if (obj3) {
21733 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21734 if (!SWIG_IsOK(ecode4)) {
21735 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21736 }
21737 arg4 = static_cast< bool >(val4);
21738 }
21739 if (obj4) {
21740 ecode5 = SWIG_AsVal_int(obj4, &val5);
21741 if (!SWIG_IsOK(ecode5)) {
21742 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21743 }
21744 arg5 = static_cast< int >(val5);
21745 }
21746 {
21747 PyThreadState* __tstate = wxPyBeginAllowThreads();
21748 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 {
21753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21754 }
21755 {
21756 if (temp3)
21757 delete arg3;
21758 }
21759 return resultobj;
21760 fail:
21761 {
21762 if (temp3)
21763 delete arg3;
21764 }
21765 return NULL;
21766 }
21767
21768
21769 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21770 PyObject *resultobj = 0;
21771 wxTreebook *arg1 = (wxTreebook *) 0 ;
21772 size_t arg2 ;
21773 bool result;
21774 void *argp1 = 0 ;
21775 int res1 = 0 ;
21776 size_t val2 ;
21777 int ecode2 = 0 ;
21778 PyObject * obj0 = 0 ;
21779 PyObject * obj1 = 0 ;
21780 char * kwnames[] = {
21781 (char *) "self",(char *) "pos", NULL
21782 };
21783
21784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21786 if (!SWIG_IsOK(res1)) {
21787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21788 }
21789 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21790 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21791 if (!SWIG_IsOK(ecode2)) {
21792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21793 }
21794 arg2 = static_cast< size_t >(val2);
21795 {
21796 PyThreadState* __tstate = wxPyBeginAllowThreads();
21797 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21798 wxPyEndAllowThreads(__tstate);
21799 if (PyErr_Occurred()) SWIG_fail;
21800 }
21801 {
21802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21803 }
21804 return resultobj;
21805 fail:
21806 return NULL;
21807 }
21808
21809
21810 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21811 PyObject *resultobj = 0;
21812 wxTreebook *arg1 = (wxTreebook *) 0 ;
21813 size_t arg2 ;
21814 bool arg3 = (bool) true ;
21815 bool result;
21816 void *argp1 = 0 ;
21817 int res1 = 0 ;
21818 size_t val2 ;
21819 int ecode2 = 0 ;
21820 bool val3 ;
21821 int ecode3 = 0 ;
21822 PyObject * obj0 = 0 ;
21823 PyObject * obj1 = 0 ;
21824 PyObject * obj2 = 0 ;
21825 char * kwnames[] = {
21826 (char *) "self",(char *) "pos",(char *) "expand", NULL
21827 };
21828
21829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21831 if (!SWIG_IsOK(res1)) {
21832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21833 }
21834 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21835 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21836 if (!SWIG_IsOK(ecode2)) {
21837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21838 }
21839 arg2 = static_cast< size_t >(val2);
21840 if (obj2) {
21841 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21842 if (!SWIG_IsOK(ecode3)) {
21843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21844 }
21845 arg3 = static_cast< bool >(val3);
21846 }
21847 {
21848 PyThreadState* __tstate = wxPyBeginAllowThreads();
21849 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21850 wxPyEndAllowThreads(__tstate);
21851 if (PyErr_Occurred()) SWIG_fail;
21852 }
21853 {
21854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21855 }
21856 return resultobj;
21857 fail:
21858 return NULL;
21859 }
21860
21861
21862 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21863 PyObject *resultobj = 0;
21864 wxTreebook *arg1 = (wxTreebook *) 0 ;
21865 size_t arg2 ;
21866 bool result;
21867 void *argp1 = 0 ;
21868 int res1 = 0 ;
21869 size_t val2 ;
21870 int ecode2 = 0 ;
21871 PyObject * obj0 = 0 ;
21872 PyObject * obj1 = 0 ;
21873 char * kwnames[] = {
21874 (char *) "self",(char *) "pos", NULL
21875 };
21876
21877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21879 if (!SWIG_IsOK(res1)) {
21880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21881 }
21882 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21883 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21884 if (!SWIG_IsOK(ecode2)) {
21885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21886 }
21887 arg2 = static_cast< size_t >(val2);
21888 {
21889 PyThreadState* __tstate = wxPyBeginAllowThreads();
21890 result = (bool)(arg1)->CollapseNode(arg2);
21891 wxPyEndAllowThreads(__tstate);
21892 if (PyErr_Occurred()) SWIG_fail;
21893 }
21894 {
21895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21896 }
21897 return resultobj;
21898 fail:
21899 return NULL;
21900 }
21901
21902
21903 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj = 0;
21905 wxTreebook *arg1 = (wxTreebook *) 0 ;
21906 size_t arg2 ;
21907 int result;
21908 void *argp1 = 0 ;
21909 int res1 = 0 ;
21910 size_t val2 ;
21911 int ecode2 = 0 ;
21912 PyObject * obj0 = 0 ;
21913 PyObject * obj1 = 0 ;
21914 char * kwnames[] = {
21915 (char *) "self",(char *) "pos", NULL
21916 };
21917
21918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21920 if (!SWIG_IsOK(res1)) {
21921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21922 }
21923 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21924 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21925 if (!SWIG_IsOK(ecode2)) {
21926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21927 }
21928 arg2 = static_cast< size_t >(val2);
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21932 wxPyEndAllowThreads(__tstate);
21933 if (PyErr_Occurred()) SWIG_fail;
21934 }
21935 resultobj = SWIG_From_int(static_cast< int >(result));
21936 return resultobj;
21937 fail:
21938 return NULL;
21939 }
21940
21941
21942 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21943 PyObject *resultobj = 0;
21944 wxTreebook *arg1 = (wxTreebook *) 0 ;
21945 wxTreeCtrl *result = 0 ;
21946 void *argp1 = 0 ;
21947 int res1 = 0 ;
21948 PyObject *swig_obj[1] ;
21949
21950 if (!args) SWIG_fail;
21951 swig_obj[0] = args;
21952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21953 if (!SWIG_IsOK(res1)) {
21954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21955 }
21956 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21964 return resultobj;
21965 fail:
21966 return NULL;
21967 }
21968
21969
21970 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21971 PyObject *obj;
21972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21973 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21974 return SWIG_Py_Void();
21975 }
21976
21977 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21978 return SWIG_Python_InitShadowInstance(args);
21979 }
21980
21981 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21982 PyObject *resultobj = 0;
21983 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21984 int arg2 = (int) 0 ;
21985 int arg3 = (int) wxNOT_FOUND ;
21986 int arg4 = (int) wxNOT_FOUND ;
21987 wxTreebookEvent *result = 0 ;
21988 int val1 ;
21989 int ecode1 = 0 ;
21990 int val2 ;
21991 int ecode2 = 0 ;
21992 int val3 ;
21993 int ecode3 = 0 ;
21994 int val4 ;
21995 int ecode4 = 0 ;
21996 PyObject * obj0 = 0 ;
21997 PyObject * obj1 = 0 ;
21998 PyObject * obj2 = 0 ;
21999 PyObject * obj3 = 0 ;
22000 char * kwnames[] = {
22001 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22002 };
22003
22004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22005 if (obj0) {
22006 ecode1 = SWIG_AsVal_int(obj0, &val1);
22007 if (!SWIG_IsOK(ecode1)) {
22008 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22009 }
22010 arg1 = static_cast< wxEventType >(val1);
22011 }
22012 if (obj1) {
22013 ecode2 = SWIG_AsVal_int(obj1, &val2);
22014 if (!SWIG_IsOK(ecode2)) {
22015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22016 }
22017 arg2 = static_cast< int >(val2);
22018 }
22019 if (obj2) {
22020 ecode3 = SWIG_AsVal_int(obj2, &val3);
22021 if (!SWIG_IsOK(ecode3)) {
22022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22023 }
22024 arg3 = static_cast< int >(val3);
22025 }
22026 if (obj3) {
22027 ecode4 = SWIG_AsVal_int(obj3, &val4);
22028 if (!SWIG_IsOK(ecode4)) {
22029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22030 }
22031 arg4 = static_cast< int >(val4);
22032 }
22033 {
22034 PyThreadState* __tstate = wxPyBeginAllowThreads();
22035 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22036 wxPyEndAllowThreads(__tstate);
22037 if (PyErr_Occurred()) SWIG_fail;
22038 }
22039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22040 return resultobj;
22041 fail:
22042 return NULL;
22043 }
22044
22045
22046 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22047 PyObject *obj;
22048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22049 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22050 return SWIG_Py_Void();
22051 }
22052
22053 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22054 return SWIG_Python_InitShadowInstance(args);
22055 }
22056
22057 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22058 PyObject *resultobj = 0;
22059 wxWindow *arg1 = (wxWindow *) 0 ;
22060 int arg2 ;
22061 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22062 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22063 wxSize const &arg4_defvalue = wxDefaultSize ;
22064 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22065 long arg5 = (long) wxBK_DEFAULT ;
22066 wxString const &arg6_defvalue = wxPyEmptyString ;
22067 wxString *arg6 = (wxString *) &arg6_defvalue ;
22068 wxToolbook *result = 0 ;
22069 void *argp1 = 0 ;
22070 int res1 = 0 ;
22071 int val2 ;
22072 int ecode2 = 0 ;
22073 wxPoint temp3 ;
22074 wxSize temp4 ;
22075 long val5 ;
22076 int ecode5 = 0 ;
22077 bool temp6 = false ;
22078 PyObject * obj0 = 0 ;
22079 PyObject * obj1 = 0 ;
22080 PyObject * obj2 = 0 ;
22081 PyObject * obj3 = 0 ;
22082 PyObject * obj4 = 0 ;
22083 PyObject * obj5 = 0 ;
22084 char * kwnames[] = {
22085 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22086 };
22087
22088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22090 if (!SWIG_IsOK(res1)) {
22091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22092 }
22093 arg1 = reinterpret_cast< wxWindow * >(argp1);
22094 ecode2 = SWIG_AsVal_int(obj1, &val2);
22095 if (!SWIG_IsOK(ecode2)) {
22096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22097 }
22098 arg2 = static_cast< int >(val2);
22099 if (obj2) {
22100 {
22101 arg3 = &temp3;
22102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22103 }
22104 }
22105 if (obj3) {
22106 {
22107 arg4 = &temp4;
22108 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22109 }
22110 }
22111 if (obj4) {
22112 ecode5 = SWIG_AsVal_long(obj4, &val5);
22113 if (!SWIG_IsOK(ecode5)) {
22114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22115 }
22116 arg5 = static_cast< long >(val5);
22117 }
22118 if (obj5) {
22119 {
22120 arg6 = wxString_in_helper(obj5);
22121 if (arg6 == NULL) SWIG_fail;
22122 temp6 = true;
22123 }
22124 }
22125 {
22126 PyThreadState* __tstate = wxPyBeginAllowThreads();
22127 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22132 {
22133 if (temp6)
22134 delete arg6;
22135 }
22136 return resultobj;
22137 fail:
22138 {
22139 if (temp6)
22140 delete arg6;
22141 }
22142 return NULL;
22143 }
22144
22145
22146 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22147 PyObject *resultobj = 0;
22148 wxToolbook *result = 0 ;
22149
22150 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22151 {
22152 PyThreadState* __tstate = wxPyBeginAllowThreads();
22153 result = (wxToolbook *)new wxToolbook();
22154 wxPyEndAllowThreads(__tstate);
22155 if (PyErr_Occurred()) SWIG_fail;
22156 }
22157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22158 return resultobj;
22159 fail:
22160 return NULL;
22161 }
22162
22163
22164 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22165 PyObject *resultobj = 0;
22166 wxToolbook *arg1 = (wxToolbook *) 0 ;
22167 wxWindow *arg2 = (wxWindow *) 0 ;
22168 int arg3 ;
22169 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22170 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22171 wxSize const &arg5_defvalue = wxDefaultSize ;
22172 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22173 long arg6 = (long) 0 ;
22174 wxString const &arg7_defvalue = wxEmptyString ;
22175 wxString *arg7 = (wxString *) &arg7_defvalue ;
22176 bool result;
22177 void *argp1 = 0 ;
22178 int res1 = 0 ;
22179 void *argp2 = 0 ;
22180 int res2 = 0 ;
22181 int val3 ;
22182 int ecode3 = 0 ;
22183 wxPoint temp4 ;
22184 wxSize temp5 ;
22185 long val6 ;
22186 int ecode6 = 0 ;
22187 bool temp7 = false ;
22188 PyObject * obj0 = 0 ;
22189 PyObject * obj1 = 0 ;
22190 PyObject * obj2 = 0 ;
22191 PyObject * obj3 = 0 ;
22192 PyObject * obj4 = 0 ;
22193 PyObject * obj5 = 0 ;
22194 PyObject * obj6 = 0 ;
22195 char * kwnames[] = {
22196 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22197 };
22198
22199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22201 if (!SWIG_IsOK(res1)) {
22202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22203 }
22204 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22205 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22206 if (!SWIG_IsOK(res2)) {
22207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22208 }
22209 arg2 = reinterpret_cast< wxWindow * >(argp2);
22210 ecode3 = SWIG_AsVal_int(obj2, &val3);
22211 if (!SWIG_IsOK(ecode3)) {
22212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22213 }
22214 arg3 = static_cast< int >(val3);
22215 if (obj3) {
22216 {
22217 arg4 = &temp4;
22218 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22219 }
22220 }
22221 if (obj4) {
22222 {
22223 arg5 = &temp5;
22224 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22225 }
22226 }
22227 if (obj5) {
22228 ecode6 = SWIG_AsVal_long(obj5, &val6);
22229 if (!SWIG_IsOK(ecode6)) {
22230 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22231 }
22232 arg6 = static_cast< long >(val6);
22233 }
22234 if (obj6) {
22235 {
22236 arg7 = wxString_in_helper(obj6);
22237 if (arg7 == NULL) SWIG_fail;
22238 temp7 = true;
22239 }
22240 }
22241 {
22242 PyThreadState* __tstate = wxPyBeginAllowThreads();
22243 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22244 wxPyEndAllowThreads(__tstate);
22245 if (PyErr_Occurred()) SWIG_fail;
22246 }
22247 {
22248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22249 }
22250 {
22251 if (temp7)
22252 delete arg7;
22253 }
22254 return resultobj;
22255 fail:
22256 {
22257 if (temp7)
22258 delete arg7;
22259 }
22260 return NULL;
22261 }
22262
22263
22264 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22265 PyObject *resultobj = 0;
22266 wxToolbook *arg1 = (wxToolbook *) 0 ;
22267 wxToolBarBase *result = 0 ;
22268 void *argp1 = 0 ;
22269 int res1 = 0 ;
22270 PyObject *swig_obj[1] ;
22271
22272 if (!args) SWIG_fail;
22273 swig_obj[0] = args;
22274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22275 if (!SWIG_IsOK(res1)) {
22276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22277 }
22278 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22282 wxPyEndAllowThreads(__tstate);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 {
22286 resultobj = wxPyMake_wxObject(result, (bool)0);
22287 }
22288 return resultobj;
22289 fail:
22290 return NULL;
22291 }
22292
22293
22294 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22295 PyObject *resultobj = 0;
22296 wxToolbook *arg1 = (wxToolbook *) 0 ;
22297 void *argp1 = 0 ;
22298 int res1 = 0 ;
22299 PyObject *swig_obj[1] ;
22300
22301 if (!args) SWIG_fail;
22302 swig_obj[0] = args;
22303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22304 if (!SWIG_IsOK(res1)) {
22305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22306 }
22307 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22308 {
22309 PyThreadState* __tstate = wxPyBeginAllowThreads();
22310 (arg1)->Realize();
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 resultobj = SWIG_Py_Void();
22315 return resultobj;
22316 fail:
22317 return NULL;
22318 }
22319
22320
22321 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22322 PyObject *obj;
22323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22324 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22325 return SWIG_Py_Void();
22326 }
22327
22328 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22329 return SWIG_Python_InitShadowInstance(args);
22330 }
22331
22332 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22333 PyObject *resultobj = 0;
22334 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22335 int arg2 = (int) 0 ;
22336 int arg3 = (int) wxNOT_FOUND ;
22337 int arg4 = (int) wxNOT_FOUND ;
22338 wxToolbookEvent *result = 0 ;
22339 int val1 ;
22340 int ecode1 = 0 ;
22341 int val2 ;
22342 int ecode2 = 0 ;
22343 int val3 ;
22344 int ecode3 = 0 ;
22345 int val4 ;
22346 int ecode4 = 0 ;
22347 PyObject * obj0 = 0 ;
22348 PyObject * obj1 = 0 ;
22349 PyObject * obj2 = 0 ;
22350 PyObject * obj3 = 0 ;
22351 char * kwnames[] = {
22352 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22353 };
22354
22355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22356 if (obj0) {
22357 ecode1 = SWIG_AsVal_int(obj0, &val1);
22358 if (!SWIG_IsOK(ecode1)) {
22359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22360 }
22361 arg1 = static_cast< wxEventType >(val1);
22362 }
22363 if (obj1) {
22364 ecode2 = SWIG_AsVal_int(obj1, &val2);
22365 if (!SWIG_IsOK(ecode2)) {
22366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22367 }
22368 arg2 = static_cast< int >(val2);
22369 }
22370 if (obj2) {
22371 ecode3 = SWIG_AsVal_int(obj2, &val3);
22372 if (!SWIG_IsOK(ecode3)) {
22373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22374 }
22375 arg3 = static_cast< int >(val3);
22376 }
22377 if (obj3) {
22378 ecode4 = SWIG_AsVal_int(obj3, &val4);
22379 if (!SWIG_IsOK(ecode4)) {
22380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22381 }
22382 arg4 = static_cast< int >(val4);
22383 }
22384 {
22385 PyThreadState* __tstate = wxPyBeginAllowThreads();
22386 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22391 return resultobj;
22392 fail:
22393 return NULL;
22394 }
22395
22396
22397 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22398 PyObject *obj;
22399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22400 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22401 return SWIG_Py_Void();
22402 }
22403
22404 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22405 return SWIG_Python_InitShadowInstance(args);
22406 }
22407
22408 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22409 PyObject *resultobj = 0;
22410 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22411 int result;
22412 void *argp1 = 0 ;
22413 int res1 = 0 ;
22414 PyObject *swig_obj[1] ;
22415
22416 if (!args) SWIG_fail;
22417 swig_obj[0] = args;
22418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22419 if (!SWIG_IsOK(res1)) {
22420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22421 }
22422 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
22425 result = (int)(arg1)->GetId();
22426 wxPyEndAllowThreads(__tstate);
22427 if (PyErr_Occurred()) SWIG_fail;
22428 }
22429 resultobj = SWIG_From_int(static_cast< int >(result));
22430 return resultobj;
22431 fail:
22432 return NULL;
22433 }
22434
22435
22436 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22437 PyObject *resultobj = 0;
22438 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22439 wxControl *result = 0 ;
22440 void *argp1 = 0 ;
22441 int res1 = 0 ;
22442 PyObject *swig_obj[1] ;
22443
22444 if (!args) SWIG_fail;
22445 swig_obj[0] = args;
22446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22447 if (!SWIG_IsOK(res1)) {
22448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22449 }
22450 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22451 {
22452 PyThreadState* __tstate = wxPyBeginAllowThreads();
22453 result = (wxControl *)(arg1)->GetControl();
22454 wxPyEndAllowThreads(__tstate);
22455 if (PyErr_Occurred()) SWIG_fail;
22456 }
22457 {
22458 resultobj = wxPyMake_wxObject(result, 0);
22459 }
22460 return resultobj;
22461 fail:
22462 return NULL;
22463 }
22464
22465
22466 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22467 PyObject *resultobj = 0;
22468 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22469 wxToolBarBase *result = 0 ;
22470 void *argp1 = 0 ;
22471 int res1 = 0 ;
22472 PyObject *swig_obj[1] ;
22473
22474 if (!args) SWIG_fail;
22475 swig_obj[0] = args;
22476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22477 if (!SWIG_IsOK(res1)) {
22478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22479 }
22480 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22481 {
22482 PyThreadState* __tstate = wxPyBeginAllowThreads();
22483 result = (wxToolBarBase *)(arg1)->GetToolBar();
22484 wxPyEndAllowThreads(__tstate);
22485 if (PyErr_Occurred()) SWIG_fail;
22486 }
22487 {
22488 resultobj = wxPyMake_wxObject(result, (bool)0);
22489 }
22490 return resultobj;
22491 fail:
22492 return NULL;
22493 }
22494
22495
22496 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22497 PyObject *resultobj = 0;
22498 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22499 int result;
22500 void *argp1 = 0 ;
22501 int res1 = 0 ;
22502 PyObject *swig_obj[1] ;
22503
22504 if (!args) SWIG_fail;
22505 swig_obj[0] = args;
22506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22507 if (!SWIG_IsOK(res1)) {
22508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22509 }
22510 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22511 {
22512 PyThreadState* __tstate = wxPyBeginAllowThreads();
22513 result = (int)(arg1)->IsButton();
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 resultobj = SWIG_From_int(static_cast< int >(result));
22518 return resultobj;
22519 fail:
22520 return NULL;
22521 }
22522
22523
22524 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22525 PyObject *resultobj = 0;
22526 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22527 int result;
22528 void *argp1 = 0 ;
22529 int res1 = 0 ;
22530 PyObject *swig_obj[1] ;
22531
22532 if (!args) SWIG_fail;
22533 swig_obj[0] = args;
22534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22535 if (!SWIG_IsOK(res1)) {
22536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22537 }
22538 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22539 {
22540 PyThreadState* __tstate = wxPyBeginAllowThreads();
22541 result = (int)(arg1)->IsControl();
22542 wxPyEndAllowThreads(__tstate);
22543 if (PyErr_Occurred()) SWIG_fail;
22544 }
22545 resultobj = SWIG_From_int(static_cast< int >(result));
22546 return resultobj;
22547 fail:
22548 return NULL;
22549 }
22550
22551
22552 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22553 PyObject *resultobj = 0;
22554 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22555 int result;
22556 void *argp1 = 0 ;
22557 int res1 = 0 ;
22558 PyObject *swig_obj[1] ;
22559
22560 if (!args) SWIG_fail;
22561 swig_obj[0] = args;
22562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22563 if (!SWIG_IsOK(res1)) {
22564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22565 }
22566 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22567 {
22568 PyThreadState* __tstate = wxPyBeginAllowThreads();
22569 result = (int)(arg1)->IsSeparator();
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 resultobj = SWIG_From_int(static_cast< int >(result));
22574 return resultobj;
22575 fail:
22576 return NULL;
22577 }
22578
22579
22580 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22581 PyObject *resultobj = 0;
22582 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22583 int result;
22584 void *argp1 = 0 ;
22585 int res1 = 0 ;
22586 PyObject *swig_obj[1] ;
22587
22588 if (!args) SWIG_fail;
22589 swig_obj[0] = args;
22590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22593 }
22594 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
22597 result = (int)(arg1)->GetStyle();
22598 wxPyEndAllowThreads(__tstate);
22599 if (PyErr_Occurred()) SWIG_fail;
22600 }
22601 resultobj = SWIG_From_int(static_cast< int >(result));
22602 return resultobj;
22603 fail:
22604 return NULL;
22605 }
22606
22607
22608 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22609 PyObject *resultobj = 0;
22610 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22611 wxItemKind result;
22612 void *argp1 = 0 ;
22613 int res1 = 0 ;
22614 PyObject *swig_obj[1] ;
22615
22616 if (!args) SWIG_fail;
22617 swig_obj[0] = args;
22618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22619 if (!SWIG_IsOK(res1)) {
22620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22621 }
22622 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22623 {
22624 PyThreadState* __tstate = wxPyBeginAllowThreads();
22625 result = (wxItemKind)(arg1)->GetKind();
22626 wxPyEndAllowThreads(__tstate);
22627 if (PyErr_Occurred()) SWIG_fail;
22628 }
22629 resultobj = SWIG_From_int(static_cast< int >(result));
22630 return resultobj;
22631 fail:
22632 return NULL;
22633 }
22634
22635
22636 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22637 PyObject *resultobj = 0;
22638 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22639 bool result;
22640 void *argp1 = 0 ;
22641 int res1 = 0 ;
22642 PyObject *swig_obj[1] ;
22643
22644 if (!args) SWIG_fail;
22645 swig_obj[0] = args;
22646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22647 if (!SWIG_IsOK(res1)) {
22648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22649 }
22650 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22651 {
22652 PyThreadState* __tstate = wxPyBeginAllowThreads();
22653 result = (bool)(arg1)->IsEnabled();
22654 wxPyEndAllowThreads(__tstate);
22655 if (PyErr_Occurred()) SWIG_fail;
22656 }
22657 {
22658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22659 }
22660 return resultobj;
22661 fail:
22662 return NULL;
22663 }
22664
22665
22666 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22667 PyObject *resultobj = 0;
22668 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22669 bool result;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 PyObject *swig_obj[1] ;
22673
22674 if (!args) SWIG_fail;
22675 swig_obj[0] = args;
22676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22677 if (!SWIG_IsOK(res1)) {
22678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22679 }
22680 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 result = (bool)(arg1)->IsToggled();
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 {
22688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22689 }
22690 return resultobj;
22691 fail:
22692 return NULL;
22693 }
22694
22695
22696 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22697 PyObject *resultobj = 0;
22698 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22699 bool result;
22700 void *argp1 = 0 ;
22701 int res1 = 0 ;
22702 PyObject *swig_obj[1] ;
22703
22704 if (!args) SWIG_fail;
22705 swig_obj[0] = args;
22706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22707 if (!SWIG_IsOK(res1)) {
22708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22709 }
22710 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22711 {
22712 PyThreadState* __tstate = wxPyBeginAllowThreads();
22713 result = (bool)(arg1)->CanBeToggled();
22714 wxPyEndAllowThreads(__tstate);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 }
22717 {
22718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22719 }
22720 return resultobj;
22721 fail:
22722 return NULL;
22723 }
22724
22725
22726 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22727 PyObject *resultobj = 0;
22728 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22729 wxBitmap *result = 0 ;
22730 void *argp1 = 0 ;
22731 int res1 = 0 ;
22732 PyObject *swig_obj[1] ;
22733
22734 if (!args) SWIG_fail;
22735 swig_obj[0] = args;
22736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22737 if (!SWIG_IsOK(res1)) {
22738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22739 }
22740 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22741 {
22742 PyThreadState* __tstate = wxPyBeginAllowThreads();
22743 {
22744 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22745 result = (wxBitmap *) &_result_ref;
22746 }
22747 wxPyEndAllowThreads(__tstate);
22748 if (PyErr_Occurred()) SWIG_fail;
22749 }
22750 {
22751 wxBitmap* resultptr = new wxBitmap(*result);
22752 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22753 }
22754 return resultobj;
22755 fail:
22756 return NULL;
22757 }
22758
22759
22760 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22761 PyObject *resultobj = 0;
22762 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22763 wxBitmap *result = 0 ;
22764 void *argp1 = 0 ;
22765 int res1 = 0 ;
22766 PyObject *swig_obj[1] ;
22767
22768 if (!args) SWIG_fail;
22769 swig_obj[0] = args;
22770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22771 if (!SWIG_IsOK(res1)) {
22772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22773 }
22774 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22775 {
22776 PyThreadState* __tstate = wxPyBeginAllowThreads();
22777 {
22778 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22779 result = (wxBitmap *) &_result_ref;
22780 }
22781 wxPyEndAllowThreads(__tstate);
22782 if (PyErr_Occurred()) SWIG_fail;
22783 }
22784 {
22785 wxBitmap* resultptr = new wxBitmap(*result);
22786 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22787 }
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22795 PyObject *resultobj = 0;
22796 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22797 wxBitmap result;
22798 void *argp1 = 0 ;
22799 int res1 = 0 ;
22800 PyObject *swig_obj[1] ;
22801
22802 if (!args) SWIG_fail;
22803 swig_obj[0] = args;
22804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22805 if (!SWIG_IsOK(res1)) {
22806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22807 }
22808 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22809 {
22810 PyThreadState* __tstate = wxPyBeginAllowThreads();
22811 result = (arg1)->GetBitmap();
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22816 return resultobj;
22817 fail:
22818 return NULL;
22819 }
22820
22821
22822 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22823 PyObject *resultobj = 0;
22824 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22825 wxString result;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 PyObject *swig_obj[1] ;
22829
22830 if (!args) SWIG_fail;
22831 swig_obj[0] = args;
22832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22833 if (!SWIG_IsOK(res1)) {
22834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22835 }
22836 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22837 {
22838 PyThreadState* __tstate = wxPyBeginAllowThreads();
22839 result = (arg1)->GetLabel();
22840 wxPyEndAllowThreads(__tstate);
22841 if (PyErr_Occurred()) SWIG_fail;
22842 }
22843 {
22844 #if wxUSE_UNICODE
22845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22846 #else
22847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22848 #endif
22849 }
22850 return resultobj;
22851 fail:
22852 return NULL;
22853 }
22854
22855
22856 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22857 PyObject *resultobj = 0;
22858 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22859 wxString result;
22860 void *argp1 = 0 ;
22861 int res1 = 0 ;
22862 PyObject *swig_obj[1] ;
22863
22864 if (!args) SWIG_fail;
22865 swig_obj[0] = args;
22866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22867 if (!SWIG_IsOK(res1)) {
22868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22869 }
22870 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22871 {
22872 PyThreadState* __tstate = wxPyBeginAllowThreads();
22873 result = (arg1)->GetShortHelp();
22874 wxPyEndAllowThreads(__tstate);
22875 if (PyErr_Occurred()) SWIG_fail;
22876 }
22877 {
22878 #if wxUSE_UNICODE
22879 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22880 #else
22881 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22882 #endif
22883 }
22884 return resultobj;
22885 fail:
22886 return NULL;
22887 }
22888
22889
22890 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22891 PyObject *resultobj = 0;
22892 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22893 wxString result;
22894 void *argp1 = 0 ;
22895 int res1 = 0 ;
22896 PyObject *swig_obj[1] ;
22897
22898 if (!args) SWIG_fail;
22899 swig_obj[0] = args;
22900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22901 if (!SWIG_IsOK(res1)) {
22902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22903 }
22904 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22905 {
22906 PyThreadState* __tstate = wxPyBeginAllowThreads();
22907 result = (arg1)->GetLongHelp();
22908 wxPyEndAllowThreads(__tstate);
22909 if (PyErr_Occurred()) SWIG_fail;
22910 }
22911 {
22912 #if wxUSE_UNICODE
22913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22914 #else
22915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22916 #endif
22917 }
22918 return resultobj;
22919 fail:
22920 return NULL;
22921 }
22922
22923
22924 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22925 PyObject *resultobj = 0;
22926 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22927 bool arg2 ;
22928 bool result;
22929 void *argp1 = 0 ;
22930 int res1 = 0 ;
22931 bool val2 ;
22932 int ecode2 = 0 ;
22933 PyObject * obj0 = 0 ;
22934 PyObject * obj1 = 0 ;
22935 char * kwnames[] = {
22936 (char *) "self",(char *) "enable", NULL
22937 };
22938
22939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22943 }
22944 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22945 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22946 if (!SWIG_IsOK(ecode2)) {
22947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22948 }
22949 arg2 = static_cast< bool >(val2);
22950 {
22951 PyThreadState* __tstate = wxPyBeginAllowThreads();
22952 result = (bool)(arg1)->Enable(arg2);
22953 wxPyEndAllowThreads(__tstate);
22954 if (PyErr_Occurred()) SWIG_fail;
22955 }
22956 {
22957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22958 }
22959 return resultobj;
22960 fail:
22961 return NULL;
22962 }
22963
22964
22965 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22966 PyObject *resultobj = 0;
22967 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22968 void *argp1 = 0 ;
22969 int res1 = 0 ;
22970 PyObject *swig_obj[1] ;
22971
22972 if (!args) SWIG_fail;
22973 swig_obj[0] = args;
22974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22975 if (!SWIG_IsOK(res1)) {
22976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22977 }
22978 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->Toggle();
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_Py_Void();
22986 return resultobj;
22987 fail:
22988 return NULL;
22989 }
22990
22991
22992 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22993 PyObject *resultobj = 0;
22994 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22995 bool arg2 ;
22996 bool result;
22997 void *argp1 = 0 ;
22998 int res1 = 0 ;
22999 bool val2 ;
23000 int ecode2 = 0 ;
23001 PyObject * obj0 = 0 ;
23002 PyObject * obj1 = 0 ;
23003 char * kwnames[] = {
23004 (char *) "self",(char *) "toggle", NULL
23005 };
23006
23007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23009 if (!SWIG_IsOK(res1)) {
23010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23011 }
23012 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23013 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23014 if (!SWIG_IsOK(ecode2)) {
23015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23016 }
23017 arg2 = static_cast< bool >(val2);
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 result = (bool)(arg1)->SetToggle(arg2);
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 {
23025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23026 }
23027 return resultobj;
23028 fail:
23029 return NULL;
23030 }
23031
23032
23033 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23034 PyObject *resultobj = 0;
23035 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23036 wxString *arg2 = 0 ;
23037 bool result;
23038 void *argp1 = 0 ;
23039 int res1 = 0 ;
23040 bool temp2 = false ;
23041 PyObject * obj0 = 0 ;
23042 PyObject * obj1 = 0 ;
23043 char * kwnames[] = {
23044 (char *) "self",(char *) "help", NULL
23045 };
23046
23047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23049 if (!SWIG_IsOK(res1)) {
23050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23051 }
23052 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23053 {
23054 arg2 = wxString_in_helper(obj1);
23055 if (arg2 == NULL) SWIG_fail;
23056 temp2 = true;
23057 }
23058 {
23059 PyThreadState* __tstate = wxPyBeginAllowThreads();
23060 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23061 wxPyEndAllowThreads(__tstate);
23062 if (PyErr_Occurred()) SWIG_fail;
23063 }
23064 {
23065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23066 }
23067 {
23068 if (temp2)
23069 delete arg2;
23070 }
23071 return resultobj;
23072 fail:
23073 {
23074 if (temp2)
23075 delete arg2;
23076 }
23077 return NULL;
23078 }
23079
23080
23081 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23082 PyObject *resultobj = 0;
23083 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23084 wxString *arg2 = 0 ;
23085 bool result;
23086 void *argp1 = 0 ;
23087 int res1 = 0 ;
23088 bool temp2 = false ;
23089 PyObject * obj0 = 0 ;
23090 PyObject * obj1 = 0 ;
23091 char * kwnames[] = {
23092 (char *) "self",(char *) "help", NULL
23093 };
23094
23095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23097 if (!SWIG_IsOK(res1)) {
23098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23099 }
23100 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23101 {
23102 arg2 = wxString_in_helper(obj1);
23103 if (arg2 == NULL) SWIG_fail;
23104 temp2 = true;
23105 }
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
23108 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 {
23113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23114 }
23115 {
23116 if (temp2)
23117 delete arg2;
23118 }
23119 return resultobj;
23120 fail:
23121 {
23122 if (temp2)
23123 delete arg2;
23124 }
23125 return NULL;
23126 }
23127
23128
23129 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23130 PyObject *resultobj = 0;
23131 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23132 wxBitmap *arg2 = 0 ;
23133 void *argp1 = 0 ;
23134 int res1 = 0 ;
23135 void *argp2 = 0 ;
23136 int res2 = 0 ;
23137 PyObject * obj0 = 0 ;
23138 PyObject * obj1 = 0 ;
23139 char * kwnames[] = {
23140 (char *) "self",(char *) "bmp", NULL
23141 };
23142
23143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23145 if (!SWIG_IsOK(res1)) {
23146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23147 }
23148 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23150 if (!SWIG_IsOK(res2)) {
23151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23152 }
23153 if (!argp2) {
23154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23155 }
23156 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23157 {
23158 PyThreadState* __tstate = wxPyBeginAllowThreads();
23159 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23160 wxPyEndAllowThreads(__tstate);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 }
23163 resultobj = SWIG_Py_Void();
23164 return resultobj;
23165 fail:
23166 return NULL;
23167 }
23168
23169
23170 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23171 PyObject *resultobj = 0;
23172 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23173 wxBitmap *arg2 = 0 ;
23174 void *argp1 = 0 ;
23175 int res1 = 0 ;
23176 void *argp2 = 0 ;
23177 int res2 = 0 ;
23178 PyObject * obj0 = 0 ;
23179 PyObject * obj1 = 0 ;
23180 char * kwnames[] = {
23181 (char *) "self",(char *) "bmp", NULL
23182 };
23183
23184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23186 if (!SWIG_IsOK(res1)) {
23187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23188 }
23189 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23191 if (!SWIG_IsOK(res2)) {
23192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23193 }
23194 if (!argp2) {
23195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23196 }
23197 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_Py_Void();
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj = 0;
23213 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23214 wxString *arg2 = 0 ;
23215 void *argp1 = 0 ;
23216 int res1 = 0 ;
23217 bool temp2 = false ;
23218 PyObject * obj0 = 0 ;
23219 PyObject * obj1 = 0 ;
23220 char * kwnames[] = {
23221 (char *) "self",(char *) "label", NULL
23222 };
23223
23224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23226 if (!SWIG_IsOK(res1)) {
23227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23228 }
23229 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23230 {
23231 arg2 = wxString_in_helper(obj1);
23232 if (arg2 == NULL) SWIG_fail;
23233 temp2 = true;
23234 }
23235 {
23236 PyThreadState* __tstate = wxPyBeginAllowThreads();
23237 (arg1)->SetLabel((wxString const &)*arg2);
23238 wxPyEndAllowThreads(__tstate);
23239 if (PyErr_Occurred()) SWIG_fail;
23240 }
23241 resultobj = SWIG_Py_Void();
23242 {
23243 if (temp2)
23244 delete arg2;
23245 }
23246 return resultobj;
23247 fail:
23248 {
23249 if (temp2)
23250 delete arg2;
23251 }
23252 return NULL;
23253 }
23254
23255
23256 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23257 PyObject *resultobj = 0;
23258 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23259 void *argp1 = 0 ;
23260 int res1 = 0 ;
23261 PyObject *swig_obj[1] ;
23262
23263 if (!args) SWIG_fail;
23264 swig_obj[0] = args;
23265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23266 if (!SWIG_IsOK(res1)) {
23267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23268 }
23269 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23270 {
23271 PyThreadState* __tstate = wxPyBeginAllowThreads();
23272 (arg1)->Detach();
23273 wxPyEndAllowThreads(__tstate);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 }
23276 resultobj = SWIG_Py_Void();
23277 return resultobj;
23278 fail:
23279 return NULL;
23280 }
23281
23282
23283 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23284 PyObject *resultobj = 0;
23285 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23286 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23287 void *argp1 = 0 ;
23288 int res1 = 0 ;
23289 void *argp2 = 0 ;
23290 int res2 = 0 ;
23291 PyObject * obj0 = 0 ;
23292 PyObject * obj1 = 0 ;
23293 char * kwnames[] = {
23294 (char *) "self",(char *) "tbar", NULL
23295 };
23296
23297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23299 if (!SWIG_IsOK(res1)) {
23300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23301 }
23302 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23304 if (!SWIG_IsOK(res2)) {
23305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23306 }
23307 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 (arg1)->Attach(arg2);
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = SWIG_Py_Void();
23315 return resultobj;
23316 fail:
23317 return NULL;
23318 }
23319
23320
23321 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23322 PyObject *resultobj = 0;
23323 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23324 PyObject *result = 0 ;
23325 void *argp1 = 0 ;
23326 int res1 = 0 ;
23327 PyObject *swig_obj[1] ;
23328
23329 if (!args) SWIG_fail;
23330 swig_obj[0] = args;
23331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23332 if (!SWIG_IsOK(res1)) {
23333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23334 }
23335 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23336 {
23337 PyThreadState* __tstate = wxPyBeginAllowThreads();
23338 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23339 wxPyEndAllowThreads(__tstate);
23340 if (PyErr_Occurred()) SWIG_fail;
23341 }
23342 resultobj = result;
23343 return resultobj;
23344 fail:
23345 return NULL;
23346 }
23347
23348
23349 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23350 PyObject *resultobj = 0;
23351 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23352 PyObject *arg2 = (PyObject *) 0 ;
23353 void *argp1 = 0 ;
23354 int res1 = 0 ;
23355 PyObject * obj0 = 0 ;
23356 PyObject * obj1 = 0 ;
23357 char * kwnames[] = {
23358 (char *) "self",(char *) "clientData", NULL
23359 };
23360
23361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23363 if (!SWIG_IsOK(res1)) {
23364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23365 }
23366 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23367 arg2 = obj1;
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 wxToolBarToolBase_SetClientData(arg1,arg2);
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 resultobj = SWIG_Py_Void();
23375 return resultobj;
23376 fail:
23377 return NULL;
23378 }
23379
23380
23381 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23382 PyObject *obj;
23383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23384 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23385 return SWIG_Py_Void();
23386 }
23387
23388 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23389 PyObject *resultobj = 0;
23390 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23391 int arg2 ;
23392 wxString *arg3 = 0 ;
23393 wxBitmap *arg4 = 0 ;
23394 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23395 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23396 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23397 wxString const &arg7_defvalue = wxPyEmptyString ;
23398 wxString *arg7 = (wxString *) &arg7_defvalue ;
23399 wxString const &arg8_defvalue = wxPyEmptyString ;
23400 wxString *arg8 = (wxString *) &arg8_defvalue ;
23401 PyObject *arg9 = (PyObject *) NULL ;
23402 wxToolBarToolBase *result = 0 ;
23403 void *argp1 = 0 ;
23404 int res1 = 0 ;
23405 int val2 ;
23406 int ecode2 = 0 ;
23407 bool temp3 = false ;
23408 void *argp4 = 0 ;
23409 int res4 = 0 ;
23410 void *argp5 = 0 ;
23411 int res5 = 0 ;
23412 int val6 ;
23413 int ecode6 = 0 ;
23414 bool temp7 = false ;
23415 bool temp8 = false ;
23416 PyObject * obj0 = 0 ;
23417 PyObject * obj1 = 0 ;
23418 PyObject * obj2 = 0 ;
23419 PyObject * obj3 = 0 ;
23420 PyObject * obj4 = 0 ;
23421 PyObject * obj5 = 0 ;
23422 PyObject * obj6 = 0 ;
23423 PyObject * obj7 = 0 ;
23424 PyObject * obj8 = 0 ;
23425 char * kwnames[] = {
23426 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23427 };
23428
23429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23431 if (!SWIG_IsOK(res1)) {
23432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23433 }
23434 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23435 ecode2 = SWIG_AsVal_int(obj1, &val2);
23436 if (!SWIG_IsOK(ecode2)) {
23437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23438 }
23439 arg2 = static_cast< int >(val2);
23440 {
23441 arg3 = wxString_in_helper(obj2);
23442 if (arg3 == NULL) SWIG_fail;
23443 temp3 = true;
23444 }
23445 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23446 if (!SWIG_IsOK(res4)) {
23447 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23448 }
23449 if (!argp4) {
23450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23451 }
23452 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23453 if (obj4) {
23454 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23455 if (!SWIG_IsOK(res5)) {
23456 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23457 }
23458 if (!argp5) {
23459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23460 }
23461 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23462 }
23463 if (obj5) {
23464 ecode6 = SWIG_AsVal_int(obj5, &val6);
23465 if (!SWIG_IsOK(ecode6)) {
23466 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23467 }
23468 arg6 = static_cast< wxItemKind >(val6);
23469 }
23470 if (obj6) {
23471 {
23472 arg7 = wxString_in_helper(obj6);
23473 if (arg7 == NULL) SWIG_fail;
23474 temp7 = true;
23475 }
23476 }
23477 if (obj7) {
23478 {
23479 arg8 = wxString_in_helper(obj7);
23480 if (arg8 == NULL) SWIG_fail;
23481 temp8 = true;
23482 }
23483 }
23484 if (obj8) {
23485 arg9 = obj8;
23486 }
23487 {
23488 PyThreadState* __tstate = wxPyBeginAllowThreads();
23489 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23490 wxPyEndAllowThreads(__tstate);
23491 if (PyErr_Occurred()) SWIG_fail;
23492 }
23493 {
23494 resultobj = wxPyMake_wxObject(result, (bool)0);
23495 }
23496 {
23497 if (temp3)
23498 delete arg3;
23499 }
23500 {
23501 if (temp7)
23502 delete arg7;
23503 }
23504 {
23505 if (temp8)
23506 delete arg8;
23507 }
23508 return resultobj;
23509 fail:
23510 {
23511 if (temp3)
23512 delete arg3;
23513 }
23514 {
23515 if (temp7)
23516 delete arg7;
23517 }
23518 {
23519 if (temp8)
23520 delete arg8;
23521 }
23522 return NULL;
23523 }
23524
23525
23526 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23527 PyObject *resultobj = 0;
23528 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23529 size_t arg2 ;
23530 int arg3 ;
23531 wxString *arg4 = 0 ;
23532 wxBitmap *arg5 = 0 ;
23533 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23534 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23535 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23536 wxString const &arg8_defvalue = wxPyEmptyString ;
23537 wxString *arg8 = (wxString *) &arg8_defvalue ;
23538 wxString const &arg9_defvalue = wxPyEmptyString ;
23539 wxString *arg9 = (wxString *) &arg9_defvalue ;
23540 PyObject *arg10 = (PyObject *) NULL ;
23541 wxToolBarToolBase *result = 0 ;
23542 void *argp1 = 0 ;
23543 int res1 = 0 ;
23544 size_t val2 ;
23545 int ecode2 = 0 ;
23546 int val3 ;
23547 int ecode3 = 0 ;
23548 bool temp4 = false ;
23549 void *argp5 = 0 ;
23550 int res5 = 0 ;
23551 void *argp6 = 0 ;
23552 int res6 = 0 ;
23553 int val7 ;
23554 int ecode7 = 0 ;
23555 bool temp8 = false ;
23556 bool temp9 = false ;
23557 PyObject * obj0 = 0 ;
23558 PyObject * obj1 = 0 ;
23559 PyObject * obj2 = 0 ;
23560 PyObject * obj3 = 0 ;
23561 PyObject * obj4 = 0 ;
23562 PyObject * obj5 = 0 ;
23563 PyObject * obj6 = 0 ;
23564 PyObject * obj7 = 0 ;
23565 PyObject * obj8 = 0 ;
23566 PyObject * obj9 = 0 ;
23567 char * kwnames[] = {
23568 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23569 };
23570
23571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23573 if (!SWIG_IsOK(res1)) {
23574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23575 }
23576 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23577 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23578 if (!SWIG_IsOK(ecode2)) {
23579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23580 }
23581 arg2 = static_cast< size_t >(val2);
23582 ecode3 = SWIG_AsVal_int(obj2, &val3);
23583 if (!SWIG_IsOK(ecode3)) {
23584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23585 }
23586 arg3 = static_cast< int >(val3);
23587 {
23588 arg4 = wxString_in_helper(obj3);
23589 if (arg4 == NULL) SWIG_fail;
23590 temp4 = true;
23591 }
23592 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23593 if (!SWIG_IsOK(res5)) {
23594 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23595 }
23596 if (!argp5) {
23597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23598 }
23599 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23600 if (obj5) {
23601 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23602 if (!SWIG_IsOK(res6)) {
23603 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23604 }
23605 if (!argp6) {
23606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23607 }
23608 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23609 }
23610 if (obj6) {
23611 ecode7 = SWIG_AsVal_int(obj6, &val7);
23612 if (!SWIG_IsOK(ecode7)) {
23613 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23614 }
23615 arg7 = static_cast< wxItemKind >(val7);
23616 }
23617 if (obj7) {
23618 {
23619 arg8 = wxString_in_helper(obj7);
23620 if (arg8 == NULL) SWIG_fail;
23621 temp8 = true;
23622 }
23623 }
23624 if (obj8) {
23625 {
23626 arg9 = wxString_in_helper(obj8);
23627 if (arg9 == NULL) SWIG_fail;
23628 temp9 = true;
23629 }
23630 }
23631 if (obj9) {
23632 arg10 = obj9;
23633 }
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23637 wxPyEndAllowThreads(__tstate);
23638 if (PyErr_Occurred()) SWIG_fail;
23639 }
23640 {
23641 resultobj = wxPyMake_wxObject(result, (bool)0);
23642 }
23643 {
23644 if (temp4)
23645 delete arg4;
23646 }
23647 {
23648 if (temp8)
23649 delete arg8;
23650 }
23651 {
23652 if (temp9)
23653 delete arg9;
23654 }
23655 return resultobj;
23656 fail:
23657 {
23658 if (temp4)
23659 delete arg4;
23660 }
23661 {
23662 if (temp8)
23663 delete arg8;
23664 }
23665 {
23666 if (temp9)
23667 delete arg9;
23668 }
23669 return NULL;
23670 }
23671
23672
23673 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23674 PyObject *resultobj = 0;
23675 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23676 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23677 wxToolBarToolBase *result = 0 ;
23678 void *argp1 = 0 ;
23679 int res1 = 0 ;
23680 void *argp2 = 0 ;
23681 int res2 = 0 ;
23682 PyObject * obj0 = 0 ;
23683 PyObject * obj1 = 0 ;
23684 char * kwnames[] = {
23685 (char *) "self",(char *) "tool", NULL
23686 };
23687
23688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23690 if (!SWIG_IsOK(res1)) {
23691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23692 }
23693 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23695 if (!SWIG_IsOK(res2)) {
23696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23697 }
23698 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23699 {
23700 PyThreadState* __tstate = wxPyBeginAllowThreads();
23701 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23702 wxPyEndAllowThreads(__tstate);
23703 if (PyErr_Occurred()) SWIG_fail;
23704 }
23705 {
23706 resultobj = wxPyMake_wxObject(result, (bool)0);
23707 }
23708 return resultobj;
23709 fail:
23710 return NULL;
23711 }
23712
23713
23714 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23715 PyObject *resultobj = 0;
23716 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23717 size_t arg2 ;
23718 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23719 wxToolBarToolBase *result = 0 ;
23720 void *argp1 = 0 ;
23721 int res1 = 0 ;
23722 size_t val2 ;
23723 int ecode2 = 0 ;
23724 void *argp3 = 0 ;
23725 int res3 = 0 ;
23726 PyObject * obj0 = 0 ;
23727 PyObject * obj1 = 0 ;
23728 PyObject * obj2 = 0 ;
23729 char * kwnames[] = {
23730 (char *) "self",(char *) "pos",(char *) "tool", NULL
23731 };
23732
23733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23735 if (!SWIG_IsOK(res1)) {
23736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23737 }
23738 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23739 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23740 if (!SWIG_IsOK(ecode2)) {
23741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23742 }
23743 arg2 = static_cast< size_t >(val2);
23744 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23745 if (!SWIG_IsOK(res3)) {
23746 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23747 }
23748 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23749 {
23750 PyThreadState* __tstate = wxPyBeginAllowThreads();
23751 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23752 wxPyEndAllowThreads(__tstate);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 {
23756 resultobj = wxPyMake_wxObject(result, (bool)0);
23757 }
23758 return resultobj;
23759 fail:
23760 return NULL;
23761 }
23762
23763
23764 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23765 PyObject *resultobj = 0;
23766 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23767 wxControl *arg2 = (wxControl *) 0 ;
23768 wxToolBarToolBase *result = 0 ;
23769 void *argp1 = 0 ;
23770 int res1 = 0 ;
23771 void *argp2 = 0 ;
23772 int res2 = 0 ;
23773 PyObject * obj0 = 0 ;
23774 PyObject * obj1 = 0 ;
23775 char * kwnames[] = {
23776 (char *) "self",(char *) "control", NULL
23777 };
23778
23779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23781 if (!SWIG_IsOK(res1)) {
23782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23783 }
23784 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23786 if (!SWIG_IsOK(res2)) {
23787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23788 }
23789 arg2 = reinterpret_cast< wxControl * >(argp2);
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23793 wxPyEndAllowThreads(__tstate);
23794 if (PyErr_Occurred()) SWIG_fail;
23795 }
23796 {
23797 resultobj = wxPyMake_wxObject(result, (bool)0);
23798 }
23799 return resultobj;
23800 fail:
23801 return NULL;
23802 }
23803
23804
23805 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23806 PyObject *resultobj = 0;
23807 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23808 size_t arg2 ;
23809 wxControl *arg3 = (wxControl *) 0 ;
23810 wxToolBarToolBase *result = 0 ;
23811 void *argp1 = 0 ;
23812 int res1 = 0 ;
23813 size_t val2 ;
23814 int ecode2 = 0 ;
23815 void *argp3 = 0 ;
23816 int res3 = 0 ;
23817 PyObject * obj0 = 0 ;
23818 PyObject * obj1 = 0 ;
23819 PyObject * obj2 = 0 ;
23820 char * kwnames[] = {
23821 (char *) "self",(char *) "pos",(char *) "control", NULL
23822 };
23823
23824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23826 if (!SWIG_IsOK(res1)) {
23827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23828 }
23829 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23830 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23831 if (!SWIG_IsOK(ecode2)) {
23832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23833 }
23834 arg2 = static_cast< size_t >(val2);
23835 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23836 if (!SWIG_IsOK(res3)) {
23837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23838 }
23839 arg3 = reinterpret_cast< wxControl * >(argp3);
23840 {
23841 PyThreadState* __tstate = wxPyBeginAllowThreads();
23842 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23843 wxPyEndAllowThreads(__tstate);
23844 if (PyErr_Occurred()) SWIG_fail;
23845 }
23846 {
23847 resultobj = wxPyMake_wxObject(result, (bool)0);
23848 }
23849 return resultobj;
23850 fail:
23851 return NULL;
23852 }
23853
23854
23855 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23856 PyObject *resultobj = 0;
23857 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23858 int arg2 ;
23859 wxControl *result = 0 ;
23860 void *argp1 = 0 ;
23861 int res1 = 0 ;
23862 int val2 ;
23863 int ecode2 = 0 ;
23864 PyObject * obj0 = 0 ;
23865 PyObject * obj1 = 0 ;
23866 char * kwnames[] = {
23867 (char *) "self",(char *) "id", NULL
23868 };
23869
23870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23872 if (!SWIG_IsOK(res1)) {
23873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23874 }
23875 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23876 ecode2 = SWIG_AsVal_int(obj1, &val2);
23877 if (!SWIG_IsOK(ecode2)) {
23878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23879 }
23880 arg2 = static_cast< int >(val2);
23881 {
23882 PyThreadState* __tstate = wxPyBeginAllowThreads();
23883 result = (wxControl *)(arg1)->FindControl(arg2);
23884 wxPyEndAllowThreads(__tstate);
23885 if (PyErr_Occurred()) SWIG_fail;
23886 }
23887 {
23888 resultobj = wxPyMake_wxObject(result, 0);
23889 }
23890 return resultobj;
23891 fail:
23892 return NULL;
23893 }
23894
23895
23896 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23897 PyObject *resultobj = 0;
23898 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23899 wxToolBarToolBase *result = 0 ;
23900 void *argp1 = 0 ;
23901 int res1 = 0 ;
23902 PyObject *swig_obj[1] ;
23903
23904 if (!args) SWIG_fail;
23905 swig_obj[0] = args;
23906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23907 if (!SWIG_IsOK(res1)) {
23908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23909 }
23910 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23911 {
23912 PyThreadState* __tstate = wxPyBeginAllowThreads();
23913 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 {
23918 resultobj = wxPyMake_wxObject(result, (bool)0);
23919 }
23920 return resultobj;
23921 fail:
23922 return NULL;
23923 }
23924
23925
23926 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23927 PyObject *resultobj = 0;
23928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23929 size_t arg2 ;
23930 wxToolBarToolBase *result = 0 ;
23931 void *argp1 = 0 ;
23932 int res1 = 0 ;
23933 size_t val2 ;
23934 int ecode2 = 0 ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 char * kwnames[] = {
23938 (char *) "self",(char *) "pos", NULL
23939 };
23940
23941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23943 if (!SWIG_IsOK(res1)) {
23944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23945 }
23946 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23947 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23948 if (!SWIG_IsOK(ecode2)) {
23949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23950 }
23951 arg2 = static_cast< size_t >(val2);
23952 {
23953 PyThreadState* __tstate = wxPyBeginAllowThreads();
23954 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23955 wxPyEndAllowThreads(__tstate);
23956 if (PyErr_Occurred()) SWIG_fail;
23957 }
23958 {
23959 resultobj = wxPyMake_wxObject(result, (bool)0);
23960 }
23961 return resultobj;
23962 fail:
23963 return NULL;
23964 }
23965
23966
23967 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23968 PyObject *resultobj = 0;
23969 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23970 int arg2 ;
23971 wxToolBarToolBase *result = 0 ;
23972 void *argp1 = 0 ;
23973 int res1 = 0 ;
23974 int val2 ;
23975 int ecode2 = 0 ;
23976 PyObject * obj0 = 0 ;
23977 PyObject * obj1 = 0 ;
23978 char * kwnames[] = {
23979 (char *) "self",(char *) "id", NULL
23980 };
23981
23982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23984 if (!SWIG_IsOK(res1)) {
23985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23986 }
23987 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23988 ecode2 = SWIG_AsVal_int(obj1, &val2);
23989 if (!SWIG_IsOK(ecode2)) {
23990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23991 }
23992 arg2 = static_cast< int >(val2);
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23996 wxPyEndAllowThreads(__tstate);
23997 if (PyErr_Occurred()) SWIG_fail;
23998 }
23999 {
24000 resultobj = wxPyMake_wxObject(result, (bool)0);
24001 }
24002 return resultobj;
24003 fail:
24004 return NULL;
24005 }
24006
24007
24008 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24009 PyObject *resultobj = 0;
24010 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24011 size_t arg2 ;
24012 bool result;
24013 void *argp1 = 0 ;
24014 int res1 = 0 ;
24015 size_t val2 ;
24016 int ecode2 = 0 ;
24017 PyObject * obj0 = 0 ;
24018 PyObject * obj1 = 0 ;
24019 char * kwnames[] = {
24020 (char *) "self",(char *) "pos", NULL
24021 };
24022
24023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24025 if (!SWIG_IsOK(res1)) {
24026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24027 }
24028 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24029 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24030 if (!SWIG_IsOK(ecode2)) {
24031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24032 }
24033 arg2 = static_cast< size_t >(val2);
24034 {
24035 PyThreadState* __tstate = wxPyBeginAllowThreads();
24036 result = (bool)(arg1)->DeleteToolByPos(arg2);
24037 wxPyEndAllowThreads(__tstate);
24038 if (PyErr_Occurred()) SWIG_fail;
24039 }
24040 {
24041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24042 }
24043 return resultobj;
24044 fail:
24045 return NULL;
24046 }
24047
24048
24049 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24050 PyObject *resultobj = 0;
24051 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24052 int arg2 ;
24053 bool result;
24054 void *argp1 = 0 ;
24055 int res1 = 0 ;
24056 int val2 ;
24057 int ecode2 = 0 ;
24058 PyObject * obj0 = 0 ;
24059 PyObject * obj1 = 0 ;
24060 char * kwnames[] = {
24061 (char *) "self",(char *) "id", NULL
24062 };
24063
24064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24066 if (!SWIG_IsOK(res1)) {
24067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24068 }
24069 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24070 ecode2 = SWIG_AsVal_int(obj1, &val2);
24071 if (!SWIG_IsOK(ecode2)) {
24072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24073 }
24074 arg2 = static_cast< int >(val2);
24075 {
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 result = (bool)(arg1)->DeleteTool(arg2);
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 {
24082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24083 }
24084 return resultobj;
24085 fail:
24086 return NULL;
24087 }
24088
24089
24090 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24091 PyObject *resultobj = 0;
24092 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24093 void *argp1 = 0 ;
24094 int res1 = 0 ;
24095 PyObject *swig_obj[1] ;
24096
24097 if (!args) SWIG_fail;
24098 swig_obj[0] = args;
24099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24100 if (!SWIG_IsOK(res1)) {
24101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24102 }
24103 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24104 {
24105 PyThreadState* __tstate = wxPyBeginAllowThreads();
24106 (arg1)->ClearTools();
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 resultobj = SWIG_Py_Void();
24111 return resultobj;
24112 fail:
24113 return NULL;
24114 }
24115
24116
24117 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24118 PyObject *resultobj = 0;
24119 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24120 bool result;
24121 void *argp1 = 0 ;
24122 int res1 = 0 ;
24123 PyObject *swig_obj[1] ;
24124
24125 if (!args) SWIG_fail;
24126 swig_obj[0] = args;
24127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24128 if (!SWIG_IsOK(res1)) {
24129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24130 }
24131 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24132 {
24133 PyThreadState* __tstate = wxPyBeginAllowThreads();
24134 result = (bool)(arg1)->Realize();
24135 wxPyEndAllowThreads(__tstate);
24136 if (PyErr_Occurred()) SWIG_fail;
24137 }
24138 {
24139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24140 }
24141 return resultobj;
24142 fail:
24143 return NULL;
24144 }
24145
24146
24147 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24148 PyObject *resultobj = 0;
24149 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24150 int arg2 ;
24151 bool arg3 ;
24152 void *argp1 = 0 ;
24153 int res1 = 0 ;
24154 int val2 ;
24155 int ecode2 = 0 ;
24156 bool val3 ;
24157 int ecode3 = 0 ;
24158 PyObject * obj0 = 0 ;
24159 PyObject * obj1 = 0 ;
24160 PyObject * obj2 = 0 ;
24161 char * kwnames[] = {
24162 (char *) "self",(char *) "id",(char *) "enable", NULL
24163 };
24164
24165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24167 if (!SWIG_IsOK(res1)) {
24168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24169 }
24170 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24171 ecode2 = SWIG_AsVal_int(obj1, &val2);
24172 if (!SWIG_IsOK(ecode2)) {
24173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24174 }
24175 arg2 = static_cast< int >(val2);
24176 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24177 if (!SWIG_IsOK(ecode3)) {
24178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24179 }
24180 arg3 = static_cast< bool >(val3);
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 (arg1)->EnableTool(arg2,arg3);
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 resultobj = SWIG_Py_Void();
24188 return resultobj;
24189 fail:
24190 return NULL;
24191 }
24192
24193
24194 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24195 PyObject *resultobj = 0;
24196 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24197 int arg2 ;
24198 bool arg3 ;
24199 void *argp1 = 0 ;
24200 int res1 = 0 ;
24201 int val2 ;
24202 int ecode2 = 0 ;
24203 bool val3 ;
24204 int ecode3 = 0 ;
24205 PyObject * obj0 = 0 ;
24206 PyObject * obj1 = 0 ;
24207 PyObject * obj2 = 0 ;
24208 char * kwnames[] = {
24209 (char *) "self",(char *) "id",(char *) "toggle", NULL
24210 };
24211
24212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24214 if (!SWIG_IsOK(res1)) {
24215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24216 }
24217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24218 ecode2 = SWIG_AsVal_int(obj1, &val2);
24219 if (!SWIG_IsOK(ecode2)) {
24220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24221 }
24222 arg2 = static_cast< int >(val2);
24223 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24224 if (!SWIG_IsOK(ecode3)) {
24225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24226 }
24227 arg3 = static_cast< bool >(val3);
24228 {
24229 PyThreadState* __tstate = wxPyBeginAllowThreads();
24230 (arg1)->ToggleTool(arg2,arg3);
24231 wxPyEndAllowThreads(__tstate);
24232 if (PyErr_Occurred()) SWIG_fail;
24233 }
24234 resultobj = SWIG_Py_Void();
24235 return resultobj;
24236 fail:
24237 return NULL;
24238 }
24239
24240
24241 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24242 PyObject *resultobj = 0;
24243 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24244 int arg2 ;
24245 bool arg3 ;
24246 void *argp1 = 0 ;
24247 int res1 = 0 ;
24248 int val2 ;
24249 int ecode2 = 0 ;
24250 bool val3 ;
24251 int ecode3 = 0 ;
24252 PyObject * obj0 = 0 ;
24253 PyObject * obj1 = 0 ;
24254 PyObject * obj2 = 0 ;
24255 char * kwnames[] = {
24256 (char *) "self",(char *) "id",(char *) "toggle", NULL
24257 };
24258
24259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24263 }
24264 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24265 ecode2 = SWIG_AsVal_int(obj1, &val2);
24266 if (!SWIG_IsOK(ecode2)) {
24267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24268 }
24269 arg2 = static_cast< int >(val2);
24270 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24271 if (!SWIG_IsOK(ecode3)) {
24272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24273 }
24274 arg3 = static_cast< bool >(val3);
24275 {
24276 PyThreadState* __tstate = wxPyBeginAllowThreads();
24277 (arg1)->SetToggle(arg2,arg3);
24278 wxPyEndAllowThreads(__tstate);
24279 if (PyErr_Occurred()) SWIG_fail;
24280 }
24281 resultobj = SWIG_Py_Void();
24282 return resultobj;
24283 fail:
24284 return NULL;
24285 }
24286
24287
24288 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24289 PyObject *resultobj = 0;
24290 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24291 int arg2 ;
24292 PyObject *result = 0 ;
24293 void *argp1 = 0 ;
24294 int res1 = 0 ;
24295 int val2 ;
24296 int ecode2 = 0 ;
24297 PyObject * obj0 = 0 ;
24298 PyObject * obj1 = 0 ;
24299 char * kwnames[] = {
24300 (char *) "self",(char *) "id", NULL
24301 };
24302
24303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24305 if (!SWIG_IsOK(res1)) {
24306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24307 }
24308 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24309 ecode2 = SWIG_AsVal_int(obj1, &val2);
24310 if (!SWIG_IsOK(ecode2)) {
24311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24312 }
24313 arg2 = static_cast< int >(val2);
24314 {
24315 PyThreadState* __tstate = wxPyBeginAllowThreads();
24316 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24317 wxPyEndAllowThreads(__tstate);
24318 if (PyErr_Occurred()) SWIG_fail;
24319 }
24320 resultobj = result;
24321 return resultobj;
24322 fail:
24323 return NULL;
24324 }
24325
24326
24327 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24328 PyObject *resultobj = 0;
24329 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24330 int arg2 ;
24331 PyObject *arg3 = (PyObject *) 0 ;
24332 void *argp1 = 0 ;
24333 int res1 = 0 ;
24334 int val2 ;
24335 int ecode2 = 0 ;
24336 PyObject * obj0 = 0 ;
24337 PyObject * obj1 = 0 ;
24338 PyObject * obj2 = 0 ;
24339 char * kwnames[] = {
24340 (char *) "self",(char *) "id",(char *) "clientData", NULL
24341 };
24342
24343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24345 if (!SWIG_IsOK(res1)) {
24346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24347 }
24348 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24349 ecode2 = SWIG_AsVal_int(obj1, &val2);
24350 if (!SWIG_IsOK(ecode2)) {
24351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24352 }
24353 arg2 = static_cast< int >(val2);
24354 arg3 = obj2;
24355 {
24356 PyThreadState* __tstate = wxPyBeginAllowThreads();
24357 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24358 wxPyEndAllowThreads(__tstate);
24359 if (PyErr_Occurred()) SWIG_fail;
24360 }
24361 resultobj = SWIG_Py_Void();
24362 return resultobj;
24363 fail:
24364 return NULL;
24365 }
24366
24367
24368 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24369 PyObject *resultobj = 0;
24370 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24371 int arg2 ;
24372 int result;
24373 void *argp1 = 0 ;
24374 int res1 = 0 ;
24375 int val2 ;
24376 int ecode2 = 0 ;
24377 PyObject * obj0 = 0 ;
24378 PyObject * obj1 = 0 ;
24379 char * kwnames[] = {
24380 (char *) "self",(char *) "id", NULL
24381 };
24382
24383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24385 if (!SWIG_IsOK(res1)) {
24386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24387 }
24388 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24389 ecode2 = SWIG_AsVal_int(obj1, &val2);
24390 if (!SWIG_IsOK(ecode2)) {
24391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24392 }
24393 arg2 = static_cast< int >(val2);
24394 {
24395 PyThreadState* __tstate = wxPyBeginAllowThreads();
24396 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24400 resultobj = SWIG_From_int(static_cast< int >(result));
24401 return resultobj;
24402 fail:
24403 return NULL;
24404 }
24405
24406
24407 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24408 PyObject *resultobj = 0;
24409 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24410 int arg2 ;
24411 bool result;
24412 void *argp1 = 0 ;
24413 int res1 = 0 ;
24414 int val2 ;
24415 int ecode2 = 0 ;
24416 PyObject * obj0 = 0 ;
24417 PyObject * obj1 = 0 ;
24418 char * kwnames[] = {
24419 (char *) "self",(char *) "id", NULL
24420 };
24421
24422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24424 if (!SWIG_IsOK(res1)) {
24425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24426 }
24427 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24428 ecode2 = SWIG_AsVal_int(obj1, &val2);
24429 if (!SWIG_IsOK(ecode2)) {
24430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24431 }
24432 arg2 = static_cast< int >(val2);
24433 {
24434 PyThreadState* __tstate = wxPyBeginAllowThreads();
24435 result = (bool)(arg1)->GetToolState(arg2);
24436 wxPyEndAllowThreads(__tstate);
24437 if (PyErr_Occurred()) SWIG_fail;
24438 }
24439 {
24440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24441 }
24442 return resultobj;
24443 fail:
24444 return NULL;
24445 }
24446
24447
24448 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24449 PyObject *resultobj = 0;
24450 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24451 int arg2 ;
24452 bool result;
24453 void *argp1 = 0 ;
24454 int res1 = 0 ;
24455 int val2 ;
24456 int ecode2 = 0 ;
24457 PyObject * obj0 = 0 ;
24458 PyObject * obj1 = 0 ;
24459 char * kwnames[] = {
24460 (char *) "self",(char *) "id", NULL
24461 };
24462
24463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24465 if (!SWIG_IsOK(res1)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24467 }
24468 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24469 ecode2 = SWIG_AsVal_int(obj1, &val2);
24470 if (!SWIG_IsOK(ecode2)) {
24471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24472 }
24473 arg2 = static_cast< int >(val2);
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 result = (bool)(arg1)->GetToolEnabled(arg2);
24477 wxPyEndAllowThreads(__tstate);
24478 if (PyErr_Occurred()) SWIG_fail;
24479 }
24480 {
24481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24482 }
24483 return resultobj;
24484 fail:
24485 return NULL;
24486 }
24487
24488
24489 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24490 PyObject *resultobj = 0;
24491 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24492 int arg2 ;
24493 wxString *arg3 = 0 ;
24494 void *argp1 = 0 ;
24495 int res1 = 0 ;
24496 int val2 ;
24497 int ecode2 = 0 ;
24498 bool temp3 = false ;
24499 PyObject * obj0 = 0 ;
24500 PyObject * obj1 = 0 ;
24501 PyObject * obj2 = 0 ;
24502 char * kwnames[] = {
24503 (char *) "self",(char *) "id",(char *) "helpString", NULL
24504 };
24505
24506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24508 if (!SWIG_IsOK(res1)) {
24509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24510 }
24511 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24512 ecode2 = SWIG_AsVal_int(obj1, &val2);
24513 if (!SWIG_IsOK(ecode2)) {
24514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24515 }
24516 arg2 = static_cast< int >(val2);
24517 {
24518 arg3 = wxString_in_helper(obj2);
24519 if (arg3 == NULL) SWIG_fail;
24520 temp3 = true;
24521 }
24522 {
24523 PyThreadState* __tstate = wxPyBeginAllowThreads();
24524 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24525 wxPyEndAllowThreads(__tstate);
24526 if (PyErr_Occurred()) SWIG_fail;
24527 }
24528 resultobj = SWIG_Py_Void();
24529 {
24530 if (temp3)
24531 delete arg3;
24532 }
24533 return resultobj;
24534 fail:
24535 {
24536 if (temp3)
24537 delete arg3;
24538 }
24539 return NULL;
24540 }
24541
24542
24543 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24544 PyObject *resultobj = 0;
24545 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24546 int arg2 ;
24547 wxString result;
24548 void *argp1 = 0 ;
24549 int res1 = 0 ;
24550 int val2 ;
24551 int ecode2 = 0 ;
24552 PyObject * obj0 = 0 ;
24553 PyObject * obj1 = 0 ;
24554 char * kwnames[] = {
24555 (char *) "self",(char *) "id", NULL
24556 };
24557
24558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24560 if (!SWIG_IsOK(res1)) {
24561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24562 }
24563 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24564 ecode2 = SWIG_AsVal_int(obj1, &val2);
24565 if (!SWIG_IsOK(ecode2)) {
24566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24567 }
24568 arg2 = static_cast< int >(val2);
24569 {
24570 PyThreadState* __tstate = wxPyBeginAllowThreads();
24571 result = (arg1)->GetToolShortHelp(arg2);
24572 wxPyEndAllowThreads(__tstate);
24573 if (PyErr_Occurred()) SWIG_fail;
24574 }
24575 {
24576 #if wxUSE_UNICODE
24577 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24578 #else
24579 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24580 #endif
24581 }
24582 return resultobj;
24583 fail:
24584 return NULL;
24585 }
24586
24587
24588 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24589 PyObject *resultobj = 0;
24590 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24591 int arg2 ;
24592 wxString *arg3 = 0 ;
24593 void *argp1 = 0 ;
24594 int res1 = 0 ;
24595 int val2 ;
24596 int ecode2 = 0 ;
24597 bool temp3 = false ;
24598 PyObject * obj0 = 0 ;
24599 PyObject * obj1 = 0 ;
24600 PyObject * obj2 = 0 ;
24601 char * kwnames[] = {
24602 (char *) "self",(char *) "id",(char *) "helpString", NULL
24603 };
24604
24605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24607 if (!SWIG_IsOK(res1)) {
24608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24609 }
24610 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24611 ecode2 = SWIG_AsVal_int(obj1, &val2);
24612 if (!SWIG_IsOK(ecode2)) {
24613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24614 }
24615 arg2 = static_cast< int >(val2);
24616 {
24617 arg3 = wxString_in_helper(obj2);
24618 if (arg3 == NULL) SWIG_fail;
24619 temp3 = true;
24620 }
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24624 wxPyEndAllowThreads(__tstate);
24625 if (PyErr_Occurred()) SWIG_fail;
24626 }
24627 resultobj = SWIG_Py_Void();
24628 {
24629 if (temp3)
24630 delete arg3;
24631 }
24632 return resultobj;
24633 fail:
24634 {
24635 if (temp3)
24636 delete arg3;
24637 }
24638 return NULL;
24639 }
24640
24641
24642 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24643 PyObject *resultobj = 0;
24644 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24645 int arg2 ;
24646 wxString result;
24647 void *argp1 = 0 ;
24648 int res1 = 0 ;
24649 int val2 ;
24650 int ecode2 = 0 ;
24651 PyObject * obj0 = 0 ;
24652 PyObject * obj1 = 0 ;
24653 char * kwnames[] = {
24654 (char *) "self",(char *) "id", NULL
24655 };
24656
24657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24659 if (!SWIG_IsOK(res1)) {
24660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24661 }
24662 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24663 ecode2 = SWIG_AsVal_int(obj1, &val2);
24664 if (!SWIG_IsOK(ecode2)) {
24665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24666 }
24667 arg2 = static_cast< int >(val2);
24668 {
24669 PyThreadState* __tstate = wxPyBeginAllowThreads();
24670 result = (arg1)->GetToolLongHelp(arg2);
24671 wxPyEndAllowThreads(__tstate);
24672 if (PyErr_Occurred()) SWIG_fail;
24673 }
24674 {
24675 #if wxUSE_UNICODE
24676 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24677 #else
24678 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24679 #endif
24680 }
24681 return resultobj;
24682 fail:
24683 return NULL;
24684 }
24685
24686
24687 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24688 PyObject *resultobj = 0;
24689 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24690 int arg2 ;
24691 int arg3 ;
24692 void *argp1 = 0 ;
24693 int res1 = 0 ;
24694 int val2 ;
24695 int ecode2 = 0 ;
24696 int val3 ;
24697 int ecode3 = 0 ;
24698 PyObject * obj0 = 0 ;
24699 PyObject * obj1 = 0 ;
24700 PyObject * obj2 = 0 ;
24701 char * kwnames[] = {
24702 (char *) "self",(char *) "x",(char *) "y", NULL
24703 };
24704
24705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24707 if (!SWIG_IsOK(res1)) {
24708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24709 }
24710 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24711 ecode2 = SWIG_AsVal_int(obj1, &val2);
24712 if (!SWIG_IsOK(ecode2)) {
24713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24714 }
24715 arg2 = static_cast< int >(val2);
24716 ecode3 = SWIG_AsVal_int(obj2, &val3);
24717 if (!SWIG_IsOK(ecode3)) {
24718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24719 }
24720 arg3 = static_cast< int >(val3);
24721 {
24722 PyThreadState* __tstate = wxPyBeginAllowThreads();
24723 (arg1)->SetMargins(arg2,arg3);
24724 wxPyEndAllowThreads(__tstate);
24725 if (PyErr_Occurred()) SWIG_fail;
24726 }
24727 resultobj = SWIG_Py_Void();
24728 return resultobj;
24729 fail:
24730 return NULL;
24731 }
24732
24733
24734 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24735 PyObject *resultobj = 0;
24736 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24737 wxSize *arg2 = 0 ;
24738 void *argp1 = 0 ;
24739 int res1 = 0 ;
24740 wxSize temp2 ;
24741 PyObject * obj0 = 0 ;
24742 PyObject * obj1 = 0 ;
24743 char * kwnames[] = {
24744 (char *) "self",(char *) "size", NULL
24745 };
24746
24747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24749 if (!SWIG_IsOK(res1)) {
24750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24751 }
24752 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24753 {
24754 arg2 = &temp2;
24755 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24756 }
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 (arg1)->SetMargins((wxSize const &)*arg2);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_Py_Void();
24764 return resultobj;
24765 fail:
24766 return NULL;
24767 }
24768
24769
24770 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24771 PyObject *resultobj = 0;
24772 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24773 int arg2 ;
24774 void *argp1 = 0 ;
24775 int res1 = 0 ;
24776 int val2 ;
24777 int ecode2 = 0 ;
24778 PyObject * obj0 = 0 ;
24779 PyObject * obj1 = 0 ;
24780 char * kwnames[] = {
24781 (char *) "self",(char *) "packing", NULL
24782 };
24783
24784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24786 if (!SWIG_IsOK(res1)) {
24787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24788 }
24789 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24790 ecode2 = SWIG_AsVal_int(obj1, &val2);
24791 if (!SWIG_IsOK(ecode2)) {
24792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24793 }
24794 arg2 = static_cast< int >(val2);
24795 {
24796 PyThreadState* __tstate = wxPyBeginAllowThreads();
24797 (arg1)->SetToolPacking(arg2);
24798 wxPyEndAllowThreads(__tstate);
24799 if (PyErr_Occurred()) SWIG_fail;
24800 }
24801 resultobj = SWIG_Py_Void();
24802 return resultobj;
24803 fail:
24804 return NULL;
24805 }
24806
24807
24808 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24809 PyObject *resultobj = 0;
24810 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24811 int arg2 ;
24812 void *argp1 = 0 ;
24813 int res1 = 0 ;
24814 int val2 ;
24815 int ecode2 = 0 ;
24816 PyObject * obj0 = 0 ;
24817 PyObject * obj1 = 0 ;
24818 char * kwnames[] = {
24819 (char *) "self",(char *) "separation", NULL
24820 };
24821
24822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24824 if (!SWIG_IsOK(res1)) {
24825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24826 }
24827 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24828 ecode2 = SWIG_AsVal_int(obj1, &val2);
24829 if (!SWIG_IsOK(ecode2)) {
24830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24831 }
24832 arg2 = static_cast< int >(val2);
24833 {
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 (arg1)->SetToolSeparation(arg2);
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_Py_Void();
24840 return resultobj;
24841 fail:
24842 return NULL;
24843 }
24844
24845
24846 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24847 PyObject *resultobj = 0;
24848 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24849 wxSize result;
24850 void *argp1 = 0 ;
24851 int res1 = 0 ;
24852 PyObject *swig_obj[1] ;
24853
24854 if (!args) SWIG_fail;
24855 swig_obj[0] = args;
24856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24857 if (!SWIG_IsOK(res1)) {
24858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24859 }
24860 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24861 {
24862 PyThreadState* __tstate = wxPyBeginAllowThreads();
24863 result = (arg1)->GetToolMargins();
24864 wxPyEndAllowThreads(__tstate);
24865 if (PyErr_Occurred()) SWIG_fail;
24866 }
24867 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24868 return resultobj;
24869 fail:
24870 return NULL;
24871 }
24872
24873
24874 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24875 PyObject *resultobj = 0;
24876 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24877 wxSize result;
24878 void *argp1 = 0 ;
24879 int res1 = 0 ;
24880 PyObject *swig_obj[1] ;
24881
24882 if (!args) SWIG_fail;
24883 swig_obj[0] = args;
24884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24885 if (!SWIG_IsOK(res1)) {
24886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24887 }
24888 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24889 {
24890 PyThreadState* __tstate = wxPyBeginAllowThreads();
24891 result = (arg1)->GetMargins();
24892 wxPyEndAllowThreads(__tstate);
24893 if (PyErr_Occurred()) SWIG_fail;
24894 }
24895 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24896 return resultobj;
24897 fail:
24898 return NULL;
24899 }
24900
24901
24902 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24903 PyObject *resultobj = 0;
24904 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24905 int result;
24906 void *argp1 = 0 ;
24907 int res1 = 0 ;
24908 PyObject *swig_obj[1] ;
24909
24910 if (!args) SWIG_fail;
24911 swig_obj[0] = args;
24912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24913 if (!SWIG_IsOK(res1)) {
24914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24915 }
24916 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24917 {
24918 PyThreadState* __tstate = wxPyBeginAllowThreads();
24919 result = (int)(arg1)->GetToolPacking();
24920 wxPyEndAllowThreads(__tstate);
24921 if (PyErr_Occurred()) SWIG_fail;
24922 }
24923 resultobj = SWIG_From_int(static_cast< int >(result));
24924 return resultobj;
24925 fail:
24926 return NULL;
24927 }
24928
24929
24930 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24931 PyObject *resultobj = 0;
24932 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24933 int result;
24934 void *argp1 = 0 ;
24935 int res1 = 0 ;
24936 PyObject *swig_obj[1] ;
24937
24938 if (!args) SWIG_fail;
24939 swig_obj[0] = args;
24940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24941 if (!SWIG_IsOK(res1)) {
24942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24943 }
24944 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24945 {
24946 PyThreadState* __tstate = wxPyBeginAllowThreads();
24947 result = (int)(arg1)->GetToolSeparation();
24948 wxPyEndAllowThreads(__tstate);
24949 if (PyErr_Occurred()) SWIG_fail;
24950 }
24951 resultobj = SWIG_From_int(static_cast< int >(result));
24952 return resultobj;
24953 fail:
24954 return NULL;
24955 }
24956
24957
24958 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24959 PyObject *resultobj = 0;
24960 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24961 int arg2 ;
24962 void *argp1 = 0 ;
24963 int res1 = 0 ;
24964 int val2 ;
24965 int ecode2 = 0 ;
24966 PyObject * obj0 = 0 ;
24967 PyObject * obj1 = 0 ;
24968 char * kwnames[] = {
24969 (char *) "self",(char *) "nRows", NULL
24970 };
24971
24972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24974 if (!SWIG_IsOK(res1)) {
24975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24976 }
24977 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24978 ecode2 = SWIG_AsVal_int(obj1, &val2);
24979 if (!SWIG_IsOK(ecode2)) {
24980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24981 }
24982 arg2 = static_cast< int >(val2);
24983 {
24984 PyThreadState* __tstate = wxPyBeginAllowThreads();
24985 (arg1)->SetRows(arg2);
24986 wxPyEndAllowThreads(__tstate);
24987 if (PyErr_Occurred()) SWIG_fail;
24988 }
24989 resultobj = SWIG_Py_Void();
24990 return resultobj;
24991 fail:
24992 return NULL;
24993 }
24994
24995
24996 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24997 PyObject *resultobj = 0;
24998 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24999 int arg2 ;
25000 int arg3 ;
25001 void *argp1 = 0 ;
25002 int res1 = 0 ;
25003 int val2 ;
25004 int ecode2 = 0 ;
25005 int val3 ;
25006 int ecode3 = 0 ;
25007 PyObject * obj0 = 0 ;
25008 PyObject * obj1 = 0 ;
25009 PyObject * obj2 = 0 ;
25010 char * kwnames[] = {
25011 (char *) "self",(char *) "rows",(char *) "cols", NULL
25012 };
25013
25014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25016 if (!SWIG_IsOK(res1)) {
25017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25018 }
25019 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25020 ecode2 = SWIG_AsVal_int(obj1, &val2);
25021 if (!SWIG_IsOK(ecode2)) {
25022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25023 }
25024 arg2 = static_cast< int >(val2);
25025 ecode3 = SWIG_AsVal_int(obj2, &val3);
25026 if (!SWIG_IsOK(ecode3)) {
25027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25028 }
25029 arg3 = static_cast< int >(val3);
25030 {
25031 PyThreadState* __tstate = wxPyBeginAllowThreads();
25032 (arg1)->SetMaxRowsCols(arg2,arg3);
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 resultobj = SWIG_Py_Void();
25037 return resultobj;
25038 fail:
25039 return NULL;
25040 }
25041
25042
25043 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25044 PyObject *resultobj = 0;
25045 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25046 int result;
25047 void *argp1 = 0 ;
25048 int res1 = 0 ;
25049 PyObject *swig_obj[1] ;
25050
25051 if (!args) SWIG_fail;
25052 swig_obj[0] = args;
25053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25054 if (!SWIG_IsOK(res1)) {
25055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25056 }
25057 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25058 {
25059 PyThreadState* __tstate = wxPyBeginAllowThreads();
25060 result = (int)(arg1)->GetMaxRows();
25061 wxPyEndAllowThreads(__tstate);
25062 if (PyErr_Occurred()) SWIG_fail;
25063 }
25064 resultobj = SWIG_From_int(static_cast< int >(result));
25065 return resultobj;
25066 fail:
25067 return NULL;
25068 }
25069
25070
25071 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25072 PyObject *resultobj = 0;
25073 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25074 int result;
25075 void *argp1 = 0 ;
25076 int res1 = 0 ;
25077 PyObject *swig_obj[1] ;
25078
25079 if (!args) SWIG_fail;
25080 swig_obj[0] = args;
25081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25082 if (!SWIG_IsOK(res1)) {
25083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25084 }
25085 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25086 {
25087 PyThreadState* __tstate = wxPyBeginAllowThreads();
25088 result = (int)(arg1)->GetMaxCols();
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 resultobj = SWIG_From_int(static_cast< int >(result));
25093 return resultobj;
25094 fail:
25095 return NULL;
25096 }
25097
25098
25099 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25100 PyObject *resultobj = 0;
25101 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25102 wxSize *arg2 = 0 ;
25103 void *argp1 = 0 ;
25104 int res1 = 0 ;
25105 wxSize temp2 ;
25106 PyObject * obj0 = 0 ;
25107 PyObject * obj1 = 0 ;
25108 char * kwnames[] = {
25109 (char *) "self",(char *) "size", NULL
25110 };
25111
25112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25114 if (!SWIG_IsOK(res1)) {
25115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25116 }
25117 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25118 {
25119 arg2 = &temp2;
25120 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25121 }
25122 {
25123 PyThreadState* __tstate = wxPyBeginAllowThreads();
25124 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 resultobj = SWIG_Py_Void();
25129 return resultobj;
25130 fail:
25131 return NULL;
25132 }
25133
25134
25135 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25136 PyObject *resultobj = 0;
25137 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25138 wxSize result;
25139 void *argp1 = 0 ;
25140 int res1 = 0 ;
25141 PyObject *swig_obj[1] ;
25142
25143 if (!args) SWIG_fail;
25144 swig_obj[0] = args;
25145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25146 if (!SWIG_IsOK(res1)) {
25147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25148 }
25149 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25150 {
25151 PyThreadState* __tstate = wxPyBeginAllowThreads();
25152 result = (arg1)->GetToolBitmapSize();
25153 wxPyEndAllowThreads(__tstate);
25154 if (PyErr_Occurred()) SWIG_fail;
25155 }
25156 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25157 return resultobj;
25158 fail:
25159 return NULL;
25160 }
25161
25162
25163 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25164 PyObject *resultobj = 0;
25165 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25166 wxSize result;
25167 void *argp1 = 0 ;
25168 int res1 = 0 ;
25169 PyObject *swig_obj[1] ;
25170
25171 if (!args) SWIG_fail;
25172 swig_obj[0] = args;
25173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25174 if (!SWIG_IsOK(res1)) {
25175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25176 }
25177 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25178 {
25179 PyThreadState* __tstate = wxPyBeginAllowThreads();
25180 result = (arg1)->GetToolSize();
25181 wxPyEndAllowThreads(__tstate);
25182 if (PyErr_Occurred()) SWIG_fail;
25183 }
25184 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25185 return resultobj;
25186 fail:
25187 return NULL;
25188 }
25189
25190
25191 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25192 PyObject *resultobj = 0;
25193 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25194 int arg2 ;
25195 int arg3 ;
25196 wxToolBarToolBase *result = 0 ;
25197 void *argp1 = 0 ;
25198 int res1 = 0 ;
25199 int val2 ;
25200 int ecode2 = 0 ;
25201 int val3 ;
25202 int ecode3 = 0 ;
25203 PyObject * obj0 = 0 ;
25204 PyObject * obj1 = 0 ;
25205 PyObject * obj2 = 0 ;
25206 char * kwnames[] = {
25207 (char *) "self",(char *) "x",(char *) "y", NULL
25208 };
25209
25210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25212 if (!SWIG_IsOK(res1)) {
25213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25214 }
25215 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25216 ecode2 = SWIG_AsVal_int(obj1, &val2);
25217 if (!SWIG_IsOK(ecode2)) {
25218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25219 }
25220 arg2 = static_cast< int >(val2);
25221 ecode3 = SWIG_AsVal_int(obj2, &val3);
25222 if (!SWIG_IsOK(ecode3)) {
25223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25224 }
25225 arg3 = static_cast< int >(val3);
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 {
25233 resultobj = wxPyMake_wxObject(result, (bool)0);
25234 }
25235 return resultobj;
25236 fail:
25237 return NULL;
25238 }
25239
25240
25241 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25242 PyObject *resultobj = 0;
25243 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25244 int arg2 ;
25245 wxToolBarToolBase *result = 0 ;
25246 void *argp1 = 0 ;
25247 int res1 = 0 ;
25248 int val2 ;
25249 int ecode2 = 0 ;
25250 PyObject * obj0 = 0 ;
25251 PyObject * obj1 = 0 ;
25252 char * kwnames[] = {
25253 (char *) "self",(char *) "toolid", NULL
25254 };
25255
25256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25258 if (!SWIG_IsOK(res1)) {
25259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25260 }
25261 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25262 ecode2 = SWIG_AsVal_int(obj1, &val2);
25263 if (!SWIG_IsOK(ecode2)) {
25264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25265 }
25266 arg2 = static_cast< int >(val2);
25267 {
25268 PyThreadState* __tstate = wxPyBeginAllowThreads();
25269 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25270 wxPyEndAllowThreads(__tstate);
25271 if (PyErr_Occurred()) SWIG_fail;
25272 }
25273 {
25274 resultobj = wxPyMake_wxObject(result, (bool)0);
25275 }
25276 return resultobj;
25277 fail:
25278 return NULL;
25279 }
25280
25281
25282 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25283 PyObject *resultobj = 0;
25284 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25285 bool result;
25286 void *argp1 = 0 ;
25287 int res1 = 0 ;
25288 PyObject *swig_obj[1] ;
25289
25290 if (!args) SWIG_fail;
25291 swig_obj[0] = args;
25292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25293 if (!SWIG_IsOK(res1)) {
25294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25295 }
25296 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25297 {
25298 PyThreadState* __tstate = wxPyBeginAllowThreads();
25299 result = (bool)(arg1)->IsVertical();
25300 wxPyEndAllowThreads(__tstate);
25301 if (PyErr_Occurred()) SWIG_fail;
25302 }
25303 {
25304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25305 }
25306 return resultobj;
25307 fail:
25308 return NULL;
25309 }
25310
25311
25312 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25313 PyObject *resultobj = 0;
25314 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25315 size_t result;
25316 void *argp1 = 0 ;
25317 int res1 = 0 ;
25318 PyObject *swig_obj[1] ;
25319
25320 if (!args) SWIG_fail;
25321 swig_obj[0] = args;
25322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25323 if (!SWIG_IsOK(res1)) {
25324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25325 }
25326 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25327 {
25328 PyThreadState* __tstate = wxPyBeginAllowThreads();
25329 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25330 wxPyEndAllowThreads(__tstate);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25334 return resultobj;
25335 fail:
25336 return NULL;
25337 }
25338
25339
25340 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25341 PyObject *obj;
25342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25343 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25344 return SWIG_Py_Void();
25345 }
25346
25347 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj = 0;
25349 wxWindow *arg1 = (wxWindow *) 0 ;
25350 int arg2 = (int) -1 ;
25351 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25352 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25353 wxSize const &arg4_defvalue = wxDefaultSize ;
25354 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25355 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25356 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25357 wxString *arg6 = (wxString *) &arg6_defvalue ;
25358 wxToolBar *result = 0 ;
25359 void *argp1 = 0 ;
25360 int res1 = 0 ;
25361 int val2 ;
25362 int ecode2 = 0 ;
25363 wxPoint temp3 ;
25364 wxSize temp4 ;
25365 long val5 ;
25366 int ecode5 = 0 ;
25367 bool temp6 = false ;
25368 PyObject * obj0 = 0 ;
25369 PyObject * obj1 = 0 ;
25370 PyObject * obj2 = 0 ;
25371 PyObject * obj3 = 0 ;
25372 PyObject * obj4 = 0 ;
25373 PyObject * obj5 = 0 ;
25374 char * kwnames[] = {
25375 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25376 };
25377
25378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25380 if (!SWIG_IsOK(res1)) {
25381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25382 }
25383 arg1 = reinterpret_cast< wxWindow * >(argp1);
25384 if (obj1) {
25385 ecode2 = SWIG_AsVal_int(obj1, &val2);
25386 if (!SWIG_IsOK(ecode2)) {
25387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25388 }
25389 arg2 = static_cast< int >(val2);
25390 }
25391 if (obj2) {
25392 {
25393 arg3 = &temp3;
25394 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25395 }
25396 }
25397 if (obj3) {
25398 {
25399 arg4 = &temp4;
25400 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25401 }
25402 }
25403 if (obj4) {
25404 ecode5 = SWIG_AsVal_long(obj4, &val5);
25405 if (!SWIG_IsOK(ecode5)) {
25406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25407 }
25408 arg5 = static_cast< long >(val5);
25409 }
25410 if (obj5) {
25411 {
25412 arg6 = wxString_in_helper(obj5);
25413 if (arg6 == NULL) SWIG_fail;
25414 temp6 = true;
25415 }
25416 }
25417 {
25418 if (!wxPyCheckForApp()) SWIG_fail;
25419 PyThreadState* __tstate = wxPyBeginAllowThreads();
25420 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25425 {
25426 if (temp6)
25427 delete arg6;
25428 }
25429 return resultobj;
25430 fail:
25431 {
25432 if (temp6)
25433 delete arg6;
25434 }
25435 return NULL;
25436 }
25437
25438
25439 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25440 PyObject *resultobj = 0;
25441 wxToolBar *result = 0 ;
25442
25443 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25444 {
25445 if (!wxPyCheckForApp()) SWIG_fail;
25446 PyThreadState* __tstate = wxPyBeginAllowThreads();
25447 result = (wxToolBar *)new wxToolBar();
25448 wxPyEndAllowThreads(__tstate);
25449 if (PyErr_Occurred()) SWIG_fail;
25450 }
25451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25452 return resultobj;
25453 fail:
25454 return NULL;
25455 }
25456
25457
25458 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25459 PyObject *resultobj = 0;
25460 wxToolBar *arg1 = (wxToolBar *) 0 ;
25461 wxWindow *arg2 = (wxWindow *) 0 ;
25462 int arg3 = (int) -1 ;
25463 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25464 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25465 wxSize const &arg5_defvalue = wxDefaultSize ;
25466 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25467 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25468 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25469 wxString *arg7 = (wxString *) &arg7_defvalue ;
25470 bool result;
25471 void *argp1 = 0 ;
25472 int res1 = 0 ;
25473 void *argp2 = 0 ;
25474 int res2 = 0 ;
25475 int val3 ;
25476 int ecode3 = 0 ;
25477 wxPoint temp4 ;
25478 wxSize temp5 ;
25479 long val6 ;
25480 int ecode6 = 0 ;
25481 bool temp7 = false ;
25482 PyObject * obj0 = 0 ;
25483 PyObject * obj1 = 0 ;
25484 PyObject * obj2 = 0 ;
25485 PyObject * obj3 = 0 ;
25486 PyObject * obj4 = 0 ;
25487 PyObject * obj5 = 0 ;
25488 PyObject * obj6 = 0 ;
25489 char * kwnames[] = {
25490 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25491 };
25492
25493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25495 if (!SWIG_IsOK(res1)) {
25496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25497 }
25498 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25499 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25500 if (!SWIG_IsOK(res2)) {
25501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25502 }
25503 arg2 = reinterpret_cast< wxWindow * >(argp2);
25504 if (obj2) {
25505 ecode3 = SWIG_AsVal_int(obj2, &val3);
25506 if (!SWIG_IsOK(ecode3)) {
25507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25508 }
25509 arg3 = static_cast< int >(val3);
25510 }
25511 if (obj3) {
25512 {
25513 arg4 = &temp4;
25514 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25515 }
25516 }
25517 if (obj4) {
25518 {
25519 arg5 = &temp5;
25520 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25521 }
25522 }
25523 if (obj5) {
25524 ecode6 = SWIG_AsVal_long(obj5, &val6);
25525 if (!SWIG_IsOK(ecode6)) {
25526 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25527 }
25528 arg6 = static_cast< long >(val6);
25529 }
25530 if (obj6) {
25531 {
25532 arg7 = wxString_in_helper(obj6);
25533 if (arg7 == NULL) SWIG_fail;
25534 temp7 = true;
25535 }
25536 }
25537 {
25538 PyThreadState* __tstate = wxPyBeginAllowThreads();
25539 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25540 wxPyEndAllowThreads(__tstate);
25541 if (PyErr_Occurred()) SWIG_fail;
25542 }
25543 {
25544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25545 }
25546 {
25547 if (temp7)
25548 delete arg7;
25549 }
25550 return resultobj;
25551 fail:
25552 {
25553 if (temp7)
25554 delete arg7;
25555 }
25556 return NULL;
25557 }
25558
25559
25560 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25561 PyObject *resultobj = 0;
25562 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25563 SwigValueWrapper<wxVisualAttributes > result;
25564 int val1 ;
25565 int ecode1 = 0 ;
25566 PyObject * obj0 = 0 ;
25567 char * kwnames[] = {
25568 (char *) "variant", NULL
25569 };
25570
25571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25572 if (obj0) {
25573 ecode1 = SWIG_AsVal_int(obj0, &val1);
25574 if (!SWIG_IsOK(ecode1)) {
25575 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25576 }
25577 arg1 = static_cast< wxWindowVariant >(val1);
25578 }
25579 {
25580 if (!wxPyCheckForApp()) SWIG_fail;
25581 PyThreadState* __tstate = wxPyBeginAllowThreads();
25582 result = wxToolBar::GetClassDefaultAttributes(arg1);
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25587 return resultobj;
25588 fail:
25589 return NULL;
25590 }
25591
25592
25593 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25594 PyObject *obj;
25595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25596 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25597 return SWIG_Py_Void();
25598 }
25599
25600 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25601 return SWIG_Python_InitShadowInstance(args);
25602 }
25603
25604 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25605 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25606 return 1;
25607 }
25608
25609
25610 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25611 PyObject *pyobj = 0;
25612
25613 {
25614 #if wxUSE_UNICODE
25615 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25616 #else
25617 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25618 #endif
25619 }
25620 return pyobj;
25621 }
25622
25623
25624 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25625 PyObject *resultobj = 0;
25626 wxColour const &arg1_defvalue = wxNullColour ;
25627 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25628 wxColour const &arg2_defvalue = wxNullColour ;
25629 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25630 wxFont const &arg3_defvalue = wxNullFont ;
25631 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25632 wxListItemAttr *result = 0 ;
25633 wxColour temp1 ;
25634 wxColour temp2 ;
25635 void *argp3 = 0 ;
25636 int res3 = 0 ;
25637 PyObject * obj0 = 0 ;
25638 PyObject * obj1 = 0 ;
25639 PyObject * obj2 = 0 ;
25640 char * kwnames[] = {
25641 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25642 };
25643
25644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25645 if (obj0) {
25646 {
25647 arg1 = &temp1;
25648 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25649 }
25650 }
25651 if (obj1) {
25652 {
25653 arg2 = &temp2;
25654 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25655 }
25656 }
25657 if (obj2) {
25658 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25659 if (!SWIG_IsOK(res3)) {
25660 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25661 }
25662 if (!argp3) {
25663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25664 }
25665 arg3 = reinterpret_cast< wxFont * >(argp3);
25666 }
25667 {
25668 PyThreadState* __tstate = wxPyBeginAllowThreads();
25669 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25670 wxPyEndAllowThreads(__tstate);
25671 if (PyErr_Occurred()) SWIG_fail;
25672 }
25673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25674 return resultobj;
25675 fail:
25676 return NULL;
25677 }
25678
25679
25680 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25681 PyObject *resultobj = 0;
25682 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25683 void *argp1 = 0 ;
25684 int res1 = 0 ;
25685 PyObject *swig_obj[1] ;
25686
25687 if (!args) SWIG_fail;
25688 swig_obj[0] = args;
25689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25690 if (!SWIG_IsOK(res1)) {
25691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25692 }
25693 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25694 {
25695 PyThreadState* __tstate = wxPyBeginAllowThreads();
25696 delete arg1;
25697
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 resultobj = SWIG_Py_Void();
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25709 PyObject *resultobj = 0;
25710 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25711 wxColour *arg2 = 0 ;
25712 void *argp1 = 0 ;
25713 int res1 = 0 ;
25714 wxColour temp2 ;
25715 PyObject * obj0 = 0 ;
25716 PyObject * obj1 = 0 ;
25717 char * kwnames[] = {
25718 (char *) "self",(char *) "colText", NULL
25719 };
25720
25721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25723 if (!SWIG_IsOK(res1)) {
25724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25725 }
25726 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25727 {
25728 arg2 = &temp2;
25729 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25730 }
25731 {
25732 PyThreadState* __tstate = wxPyBeginAllowThreads();
25733 (arg1)->SetTextColour((wxColour const &)*arg2);
25734 wxPyEndAllowThreads(__tstate);
25735 if (PyErr_Occurred()) SWIG_fail;
25736 }
25737 resultobj = SWIG_Py_Void();
25738 return resultobj;
25739 fail:
25740 return NULL;
25741 }
25742
25743
25744 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25745 PyObject *resultobj = 0;
25746 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25747 wxColour *arg2 = 0 ;
25748 void *argp1 = 0 ;
25749 int res1 = 0 ;
25750 wxColour temp2 ;
25751 PyObject * obj0 = 0 ;
25752 PyObject * obj1 = 0 ;
25753 char * kwnames[] = {
25754 (char *) "self",(char *) "colBack", NULL
25755 };
25756
25757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25759 if (!SWIG_IsOK(res1)) {
25760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25761 }
25762 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25763 {
25764 arg2 = &temp2;
25765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25766 }
25767 {
25768 PyThreadState* __tstate = wxPyBeginAllowThreads();
25769 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25770 wxPyEndAllowThreads(__tstate);
25771 if (PyErr_Occurred()) SWIG_fail;
25772 }
25773 resultobj = SWIG_Py_Void();
25774 return resultobj;
25775 fail:
25776 return NULL;
25777 }
25778
25779
25780 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25781 PyObject *resultobj = 0;
25782 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25783 wxFont *arg2 = 0 ;
25784 void *argp1 = 0 ;
25785 int res1 = 0 ;
25786 void *argp2 = 0 ;
25787 int res2 = 0 ;
25788 PyObject * obj0 = 0 ;
25789 PyObject * obj1 = 0 ;
25790 char * kwnames[] = {
25791 (char *) "self",(char *) "font", NULL
25792 };
25793
25794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25796 if (!SWIG_IsOK(res1)) {
25797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25798 }
25799 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25801 if (!SWIG_IsOK(res2)) {
25802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25803 }
25804 if (!argp2) {
25805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25806 }
25807 arg2 = reinterpret_cast< wxFont * >(argp2);
25808 {
25809 PyThreadState* __tstate = wxPyBeginAllowThreads();
25810 (arg1)->SetFont((wxFont const &)*arg2);
25811 wxPyEndAllowThreads(__tstate);
25812 if (PyErr_Occurred()) SWIG_fail;
25813 }
25814 resultobj = SWIG_Py_Void();
25815 return resultobj;
25816 fail:
25817 return NULL;
25818 }
25819
25820
25821 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25822 PyObject *resultobj = 0;
25823 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25824 bool result;
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_wxListItemAttr, 0 | 0 );
25832 if (!SWIG_IsOK(res1)) {
25833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25834 }
25835 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 result = (bool)(arg1)->HasTextColour();
25839 wxPyEndAllowThreads(__tstate);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 {
25843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25844 }
25845 return resultobj;
25846 fail:
25847 return NULL;
25848 }
25849
25850
25851 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25852 PyObject *resultobj = 0;
25853 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25854 bool result;
25855 void *argp1 = 0 ;
25856 int res1 = 0 ;
25857 PyObject *swig_obj[1] ;
25858
25859 if (!args) SWIG_fail;
25860 swig_obj[0] = args;
25861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25862 if (!SWIG_IsOK(res1)) {
25863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25864 }
25865 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25866 {
25867 PyThreadState* __tstate = wxPyBeginAllowThreads();
25868 result = (bool)(arg1)->HasBackgroundColour();
25869 wxPyEndAllowThreads(__tstate);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 {
25873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25874 }
25875 return resultobj;
25876 fail:
25877 return NULL;
25878 }
25879
25880
25881 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25882 PyObject *resultobj = 0;
25883 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25884 bool result;
25885 void *argp1 = 0 ;
25886 int res1 = 0 ;
25887 PyObject *swig_obj[1] ;
25888
25889 if (!args) SWIG_fail;
25890 swig_obj[0] = args;
25891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25892 if (!SWIG_IsOK(res1)) {
25893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25894 }
25895 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25896 {
25897 PyThreadState* __tstate = wxPyBeginAllowThreads();
25898 result = (bool)(arg1)->HasFont();
25899 wxPyEndAllowThreads(__tstate);
25900 if (PyErr_Occurred()) SWIG_fail;
25901 }
25902 {
25903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25904 }
25905 return resultobj;
25906 fail:
25907 return NULL;
25908 }
25909
25910
25911 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25912 PyObject *resultobj = 0;
25913 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25914 wxColour result;
25915 void *argp1 = 0 ;
25916 int res1 = 0 ;
25917 PyObject *swig_obj[1] ;
25918
25919 if (!args) SWIG_fail;
25920 swig_obj[0] = args;
25921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25922 if (!SWIG_IsOK(res1)) {
25923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25924 }
25925 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25926 {
25927 PyThreadState* __tstate = wxPyBeginAllowThreads();
25928 result = (arg1)->GetTextColour();
25929 wxPyEndAllowThreads(__tstate);
25930 if (PyErr_Occurred()) SWIG_fail;
25931 }
25932 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25933 return resultobj;
25934 fail:
25935 return NULL;
25936 }
25937
25938
25939 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25940 PyObject *resultobj = 0;
25941 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25942 wxColour result;
25943 void *argp1 = 0 ;
25944 int res1 = 0 ;
25945 PyObject *swig_obj[1] ;
25946
25947 if (!args) SWIG_fail;
25948 swig_obj[0] = args;
25949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25950 if (!SWIG_IsOK(res1)) {
25951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25952 }
25953 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25954 {
25955 PyThreadState* __tstate = wxPyBeginAllowThreads();
25956 result = (arg1)->GetBackgroundColour();
25957 wxPyEndAllowThreads(__tstate);
25958 if (PyErr_Occurred()) SWIG_fail;
25959 }
25960 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25961 return resultobj;
25962 fail:
25963 return NULL;
25964 }
25965
25966
25967 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25968 PyObject *resultobj = 0;
25969 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25970 wxFont result;
25971 void *argp1 = 0 ;
25972 int res1 = 0 ;
25973 PyObject *swig_obj[1] ;
25974
25975 if (!args) SWIG_fail;
25976 swig_obj[0] = args;
25977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25978 if (!SWIG_IsOK(res1)) {
25979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25980 }
25981 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 result = (arg1)->GetFont();
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj = 0;
25997 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25998 wxListItemAttr *arg2 = 0 ;
25999 void *argp1 = 0 ;
26000 int res1 = 0 ;
26001 void *argp2 = 0 ;
26002 int res2 = 0 ;
26003 PyObject * obj0 = 0 ;
26004 PyObject * obj1 = 0 ;
26005 char * kwnames[] = {
26006 (char *) "self",(char *) "source", NULL
26007 };
26008
26009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26011 if (!SWIG_IsOK(res1)) {
26012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26013 }
26014 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26016 if (!SWIG_IsOK(res2)) {
26017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26018 }
26019 if (!argp2) {
26020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26021 }
26022 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26023 {
26024 PyThreadState* __tstate = wxPyBeginAllowThreads();
26025 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26026 wxPyEndAllowThreads(__tstate);
26027 if (PyErr_Occurred()) SWIG_fail;
26028 }
26029 resultobj = SWIG_Py_Void();
26030 return resultobj;
26031 fail:
26032 return NULL;
26033 }
26034
26035
26036 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26037 PyObject *resultobj = 0;
26038 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26039 void *argp1 = 0 ;
26040 int res1 = 0 ;
26041 PyObject *swig_obj[1] ;
26042
26043 if (!args) SWIG_fail;
26044 swig_obj[0] = args;
26045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26046 if (!SWIG_IsOK(res1)) {
26047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26048 }
26049 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26050 {
26051 PyThreadState* __tstate = wxPyBeginAllowThreads();
26052 wxListItemAttr_Destroy(arg1);
26053 wxPyEndAllowThreads(__tstate);
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
26056 resultobj = SWIG_Py_Void();
26057 return resultobj;
26058 fail:
26059 return NULL;
26060 }
26061
26062
26063 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26064 PyObject *obj;
26065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26066 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26067 return SWIG_Py_Void();
26068 }
26069
26070 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26071 return SWIG_Python_InitShadowInstance(args);
26072 }
26073
26074 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26075 PyObject *resultobj = 0;
26076 wxListItem *result = 0 ;
26077
26078 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26079 {
26080 PyThreadState* __tstate = wxPyBeginAllowThreads();
26081 result = (wxListItem *)new wxListItem();
26082 wxPyEndAllowThreads(__tstate);
26083 if (PyErr_Occurred()) SWIG_fail;
26084 }
26085 {
26086 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26087 }
26088 return resultobj;
26089 fail:
26090 return NULL;
26091 }
26092
26093
26094 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26095 PyObject *resultobj = 0;
26096 wxListItem *arg1 = (wxListItem *) 0 ;
26097 void *argp1 = 0 ;
26098 int res1 = 0 ;
26099 PyObject *swig_obj[1] ;
26100
26101 if (!args) SWIG_fail;
26102 swig_obj[0] = args;
26103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26104 if (!SWIG_IsOK(res1)) {
26105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26106 }
26107 arg1 = reinterpret_cast< wxListItem * >(argp1);
26108 {
26109 PyThreadState* __tstate = wxPyBeginAllowThreads();
26110 delete arg1;
26111
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_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26123 PyObject *resultobj = 0;
26124 wxListItem *arg1 = (wxListItem *) 0 ;
26125 void *argp1 = 0 ;
26126 int res1 = 0 ;
26127 PyObject *swig_obj[1] ;
26128
26129 if (!args) SWIG_fail;
26130 swig_obj[0] = args;
26131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26132 if (!SWIG_IsOK(res1)) {
26133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26134 }
26135 arg1 = reinterpret_cast< wxListItem * >(argp1);
26136 {
26137 PyThreadState* __tstate = wxPyBeginAllowThreads();
26138 (arg1)->Clear();
26139 wxPyEndAllowThreads(__tstate);
26140 if (PyErr_Occurred()) SWIG_fail;
26141 }
26142 resultobj = SWIG_Py_Void();
26143 return resultobj;
26144 fail:
26145 return NULL;
26146 }
26147
26148
26149 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26150 PyObject *resultobj = 0;
26151 wxListItem *arg1 = (wxListItem *) 0 ;
26152 void *argp1 = 0 ;
26153 int res1 = 0 ;
26154 PyObject *swig_obj[1] ;
26155
26156 if (!args) SWIG_fail;
26157 swig_obj[0] = args;
26158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26159 if (!SWIG_IsOK(res1)) {
26160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26161 }
26162 arg1 = reinterpret_cast< wxListItem * >(argp1);
26163 {
26164 PyThreadState* __tstate = wxPyBeginAllowThreads();
26165 (arg1)->ClearAttributes();
26166 wxPyEndAllowThreads(__tstate);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 resultobj = SWIG_Py_Void();
26170 return resultobj;
26171 fail:
26172 return NULL;
26173 }
26174
26175
26176 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26177 PyObject *resultobj = 0;
26178 wxListItem *arg1 = (wxListItem *) 0 ;
26179 long arg2 ;
26180 void *argp1 = 0 ;
26181 int res1 = 0 ;
26182 long val2 ;
26183 int ecode2 = 0 ;
26184 PyObject * obj0 = 0 ;
26185 PyObject * obj1 = 0 ;
26186 char * kwnames[] = {
26187 (char *) "self",(char *) "mask", NULL
26188 };
26189
26190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26192 if (!SWIG_IsOK(res1)) {
26193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26194 }
26195 arg1 = reinterpret_cast< wxListItem * >(argp1);
26196 ecode2 = SWIG_AsVal_long(obj1, &val2);
26197 if (!SWIG_IsOK(ecode2)) {
26198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26199 }
26200 arg2 = static_cast< long >(val2);
26201 {
26202 PyThreadState* __tstate = wxPyBeginAllowThreads();
26203 (arg1)->SetMask(arg2);
26204 wxPyEndAllowThreads(__tstate);
26205 if (PyErr_Occurred()) SWIG_fail;
26206 }
26207 resultobj = SWIG_Py_Void();
26208 return resultobj;
26209 fail:
26210 return NULL;
26211 }
26212
26213
26214 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26215 PyObject *resultobj = 0;
26216 wxListItem *arg1 = (wxListItem *) 0 ;
26217 long arg2 ;
26218 void *argp1 = 0 ;
26219 int res1 = 0 ;
26220 long val2 ;
26221 int ecode2 = 0 ;
26222 PyObject * obj0 = 0 ;
26223 PyObject * obj1 = 0 ;
26224 char * kwnames[] = {
26225 (char *) "self",(char *) "id", NULL
26226 };
26227
26228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26230 if (!SWIG_IsOK(res1)) {
26231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26232 }
26233 arg1 = reinterpret_cast< wxListItem * >(argp1);
26234 ecode2 = SWIG_AsVal_long(obj1, &val2);
26235 if (!SWIG_IsOK(ecode2)) {
26236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26237 }
26238 arg2 = static_cast< long >(val2);
26239 {
26240 PyThreadState* __tstate = wxPyBeginAllowThreads();
26241 (arg1)->SetId(arg2);
26242 wxPyEndAllowThreads(__tstate);
26243 if (PyErr_Occurred()) SWIG_fail;
26244 }
26245 resultobj = SWIG_Py_Void();
26246 return resultobj;
26247 fail:
26248 return NULL;
26249 }
26250
26251
26252 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26253 PyObject *resultobj = 0;
26254 wxListItem *arg1 = (wxListItem *) 0 ;
26255 int arg2 ;
26256 void *argp1 = 0 ;
26257 int res1 = 0 ;
26258 int val2 ;
26259 int ecode2 = 0 ;
26260 PyObject * obj0 = 0 ;
26261 PyObject * obj1 = 0 ;
26262 char * kwnames[] = {
26263 (char *) "self",(char *) "col", NULL
26264 };
26265
26266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26268 if (!SWIG_IsOK(res1)) {
26269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26270 }
26271 arg1 = reinterpret_cast< wxListItem * >(argp1);
26272 ecode2 = SWIG_AsVal_int(obj1, &val2);
26273 if (!SWIG_IsOK(ecode2)) {
26274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26275 }
26276 arg2 = static_cast< int >(val2);
26277 {
26278 PyThreadState* __tstate = wxPyBeginAllowThreads();
26279 (arg1)->SetColumn(arg2);
26280 wxPyEndAllowThreads(__tstate);
26281 if (PyErr_Occurred()) SWIG_fail;
26282 }
26283 resultobj = SWIG_Py_Void();
26284 return resultobj;
26285 fail:
26286 return NULL;
26287 }
26288
26289
26290 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26291 PyObject *resultobj = 0;
26292 wxListItem *arg1 = (wxListItem *) 0 ;
26293 long arg2 ;
26294 void *argp1 = 0 ;
26295 int res1 = 0 ;
26296 long val2 ;
26297 int ecode2 = 0 ;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 char * kwnames[] = {
26301 (char *) "self",(char *) "state", NULL
26302 };
26303
26304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26306 if (!SWIG_IsOK(res1)) {
26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26308 }
26309 arg1 = reinterpret_cast< wxListItem * >(argp1);
26310 ecode2 = SWIG_AsVal_long(obj1, &val2);
26311 if (!SWIG_IsOK(ecode2)) {
26312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26313 }
26314 arg2 = static_cast< long >(val2);
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 (arg1)->SetState(arg2);
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26329 PyObject *resultobj = 0;
26330 wxListItem *arg1 = (wxListItem *) 0 ;
26331 long arg2 ;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 long val2 ;
26335 int ecode2 = 0 ;
26336 PyObject * obj0 = 0 ;
26337 PyObject * obj1 = 0 ;
26338 char * kwnames[] = {
26339 (char *) "self",(char *) "stateMask", NULL
26340 };
26341
26342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26344 if (!SWIG_IsOK(res1)) {
26345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26346 }
26347 arg1 = reinterpret_cast< wxListItem * >(argp1);
26348 ecode2 = SWIG_AsVal_long(obj1, &val2);
26349 if (!SWIG_IsOK(ecode2)) {
26350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26351 }
26352 arg2 = static_cast< long >(val2);
26353 {
26354 PyThreadState* __tstate = wxPyBeginAllowThreads();
26355 (arg1)->SetStateMask(arg2);
26356 wxPyEndAllowThreads(__tstate);
26357 if (PyErr_Occurred()) SWIG_fail;
26358 }
26359 resultobj = SWIG_Py_Void();
26360 return resultobj;
26361 fail:
26362 return NULL;
26363 }
26364
26365
26366 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj = 0;
26368 wxListItem *arg1 = (wxListItem *) 0 ;
26369 wxString *arg2 = 0 ;
26370 void *argp1 = 0 ;
26371 int res1 = 0 ;
26372 bool temp2 = false ;
26373 PyObject * obj0 = 0 ;
26374 PyObject * obj1 = 0 ;
26375 char * kwnames[] = {
26376 (char *) "self",(char *) "text", NULL
26377 };
26378
26379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26381 if (!SWIG_IsOK(res1)) {
26382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26383 }
26384 arg1 = reinterpret_cast< wxListItem * >(argp1);
26385 {
26386 arg2 = wxString_in_helper(obj1);
26387 if (arg2 == NULL) SWIG_fail;
26388 temp2 = true;
26389 }
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 (arg1)->SetText((wxString const &)*arg2);
26393 wxPyEndAllowThreads(__tstate);
26394 if (PyErr_Occurred()) SWIG_fail;
26395 }
26396 resultobj = SWIG_Py_Void();
26397 {
26398 if (temp2)
26399 delete arg2;
26400 }
26401 return resultobj;
26402 fail:
26403 {
26404 if (temp2)
26405 delete arg2;
26406 }
26407 return NULL;
26408 }
26409
26410
26411 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26412 PyObject *resultobj = 0;
26413 wxListItem *arg1 = (wxListItem *) 0 ;
26414 int arg2 ;
26415 void *argp1 = 0 ;
26416 int res1 = 0 ;
26417 int val2 ;
26418 int ecode2 = 0 ;
26419 PyObject * obj0 = 0 ;
26420 PyObject * obj1 = 0 ;
26421 char * kwnames[] = {
26422 (char *) "self",(char *) "image", NULL
26423 };
26424
26425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26427 if (!SWIG_IsOK(res1)) {
26428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26429 }
26430 arg1 = reinterpret_cast< wxListItem * >(argp1);
26431 ecode2 = SWIG_AsVal_int(obj1, &val2);
26432 if (!SWIG_IsOK(ecode2)) {
26433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26434 }
26435 arg2 = static_cast< int >(val2);
26436 {
26437 PyThreadState* __tstate = wxPyBeginAllowThreads();
26438 (arg1)->SetImage(arg2);
26439 wxPyEndAllowThreads(__tstate);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_Py_Void();
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26450 PyObject *resultobj = 0;
26451 wxListItem *arg1 = (wxListItem *) 0 ;
26452 long arg2 ;
26453 void *argp1 = 0 ;
26454 int res1 = 0 ;
26455 long val2 ;
26456 int ecode2 = 0 ;
26457 PyObject * obj0 = 0 ;
26458 PyObject * obj1 = 0 ;
26459 char * kwnames[] = {
26460 (char *) "self",(char *) "data", NULL
26461 };
26462
26463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26465 if (!SWIG_IsOK(res1)) {
26466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26467 }
26468 arg1 = reinterpret_cast< wxListItem * >(argp1);
26469 ecode2 = SWIG_AsVal_long(obj1, &val2);
26470 if (!SWIG_IsOK(ecode2)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26472 }
26473 arg2 = static_cast< long >(val2);
26474 {
26475 PyThreadState* __tstate = wxPyBeginAllowThreads();
26476 (arg1)->SetData(arg2);
26477 wxPyEndAllowThreads(__tstate);
26478 if (PyErr_Occurred()) SWIG_fail;
26479 }
26480 resultobj = SWIG_Py_Void();
26481 return resultobj;
26482 fail:
26483 return NULL;
26484 }
26485
26486
26487 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26488 PyObject *resultobj = 0;
26489 wxListItem *arg1 = (wxListItem *) 0 ;
26490 int arg2 ;
26491 void *argp1 = 0 ;
26492 int res1 = 0 ;
26493 int val2 ;
26494 int ecode2 = 0 ;
26495 PyObject * obj0 = 0 ;
26496 PyObject * obj1 = 0 ;
26497 char * kwnames[] = {
26498 (char *) "self",(char *) "width", NULL
26499 };
26500
26501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26503 if (!SWIG_IsOK(res1)) {
26504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26505 }
26506 arg1 = reinterpret_cast< wxListItem * >(argp1);
26507 ecode2 = SWIG_AsVal_int(obj1, &val2);
26508 if (!SWIG_IsOK(ecode2)) {
26509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26510 }
26511 arg2 = static_cast< int >(val2);
26512 {
26513 PyThreadState* __tstate = wxPyBeginAllowThreads();
26514 (arg1)->SetWidth(arg2);
26515 wxPyEndAllowThreads(__tstate);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 }
26518 resultobj = SWIG_Py_Void();
26519 return resultobj;
26520 fail:
26521 return NULL;
26522 }
26523
26524
26525 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26526 PyObject *resultobj = 0;
26527 wxListItem *arg1 = (wxListItem *) 0 ;
26528 wxListColumnFormat arg2 ;
26529 void *argp1 = 0 ;
26530 int res1 = 0 ;
26531 int val2 ;
26532 int ecode2 = 0 ;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 char * kwnames[] = {
26536 (char *) "self",(char *) "align", NULL
26537 };
26538
26539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26543 }
26544 arg1 = reinterpret_cast< wxListItem * >(argp1);
26545 ecode2 = SWIG_AsVal_int(obj1, &val2);
26546 if (!SWIG_IsOK(ecode2)) {
26547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26548 }
26549 arg2 = static_cast< wxListColumnFormat >(val2);
26550 {
26551 PyThreadState* __tstate = wxPyBeginAllowThreads();
26552 (arg1)->SetAlign(arg2);
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 return resultobj;
26558 fail:
26559 return NULL;
26560 }
26561
26562
26563 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj = 0;
26565 wxListItem *arg1 = (wxListItem *) 0 ;
26566 wxColour *arg2 = 0 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 wxColour temp2 ;
26570 PyObject * obj0 = 0 ;
26571 PyObject * obj1 = 0 ;
26572 char * kwnames[] = {
26573 (char *) "self",(char *) "colText", NULL
26574 };
26575
26576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26578 if (!SWIG_IsOK(res1)) {
26579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26580 }
26581 arg1 = reinterpret_cast< wxListItem * >(argp1);
26582 {
26583 arg2 = &temp2;
26584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26585 }
26586 {
26587 PyThreadState* __tstate = wxPyBeginAllowThreads();
26588 (arg1)->SetTextColour((wxColour const &)*arg2);
26589 wxPyEndAllowThreads(__tstate);
26590 if (PyErr_Occurred()) SWIG_fail;
26591 }
26592 resultobj = SWIG_Py_Void();
26593 return resultobj;
26594 fail:
26595 return NULL;
26596 }
26597
26598
26599 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26600 PyObject *resultobj = 0;
26601 wxListItem *arg1 = (wxListItem *) 0 ;
26602 wxColour *arg2 = 0 ;
26603 void *argp1 = 0 ;
26604 int res1 = 0 ;
26605 wxColour temp2 ;
26606 PyObject * obj0 = 0 ;
26607 PyObject * obj1 = 0 ;
26608 char * kwnames[] = {
26609 (char *) "self",(char *) "colBack", NULL
26610 };
26611
26612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26614 if (!SWIG_IsOK(res1)) {
26615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26616 }
26617 arg1 = reinterpret_cast< wxListItem * >(argp1);
26618 {
26619 arg2 = &temp2;
26620 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26621 }
26622 {
26623 PyThreadState* __tstate = wxPyBeginAllowThreads();
26624 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26625 wxPyEndAllowThreads(__tstate);
26626 if (PyErr_Occurred()) SWIG_fail;
26627 }
26628 resultobj = SWIG_Py_Void();
26629 return resultobj;
26630 fail:
26631 return NULL;
26632 }
26633
26634
26635 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26636 PyObject *resultobj = 0;
26637 wxListItem *arg1 = (wxListItem *) 0 ;
26638 wxFont *arg2 = 0 ;
26639 void *argp1 = 0 ;
26640 int res1 = 0 ;
26641 void *argp2 = 0 ;
26642 int res2 = 0 ;
26643 PyObject * obj0 = 0 ;
26644 PyObject * obj1 = 0 ;
26645 char * kwnames[] = {
26646 (char *) "self",(char *) "font", NULL
26647 };
26648
26649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26651 if (!SWIG_IsOK(res1)) {
26652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26653 }
26654 arg1 = reinterpret_cast< wxListItem * >(argp1);
26655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26656 if (!SWIG_IsOK(res2)) {
26657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26658 }
26659 if (!argp2) {
26660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26661 }
26662 arg2 = reinterpret_cast< wxFont * >(argp2);
26663 {
26664 PyThreadState* __tstate = wxPyBeginAllowThreads();
26665 (arg1)->SetFont((wxFont const &)*arg2);
26666 wxPyEndAllowThreads(__tstate);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 }
26669 resultobj = SWIG_Py_Void();
26670 return resultobj;
26671 fail:
26672 return NULL;
26673 }
26674
26675
26676 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26677 PyObject *resultobj = 0;
26678 wxListItem *arg1 = (wxListItem *) 0 ;
26679 long result;
26680 void *argp1 = 0 ;
26681 int res1 = 0 ;
26682 PyObject *swig_obj[1] ;
26683
26684 if (!args) SWIG_fail;
26685 swig_obj[0] = args;
26686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26689 }
26690 arg1 = reinterpret_cast< wxListItem * >(argp1);
26691 {
26692 PyThreadState* __tstate = wxPyBeginAllowThreads();
26693 result = (long)(arg1)->GetMask();
26694 wxPyEndAllowThreads(__tstate);
26695 if (PyErr_Occurred()) SWIG_fail;
26696 }
26697 resultobj = SWIG_From_long(static_cast< long >(result));
26698 return resultobj;
26699 fail:
26700 return NULL;
26701 }
26702
26703
26704 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26705 PyObject *resultobj = 0;
26706 wxListItem *arg1 = (wxListItem *) 0 ;
26707 long result;
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 PyObject *swig_obj[1] ;
26711
26712 if (!args) SWIG_fail;
26713 swig_obj[0] = args;
26714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26715 if (!SWIG_IsOK(res1)) {
26716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26717 }
26718 arg1 = reinterpret_cast< wxListItem * >(argp1);
26719 {
26720 PyThreadState* __tstate = wxPyBeginAllowThreads();
26721 result = (long)(arg1)->GetId();
26722 wxPyEndAllowThreads(__tstate);
26723 if (PyErr_Occurred()) SWIG_fail;
26724 }
26725 resultobj = SWIG_From_long(static_cast< long >(result));
26726 return resultobj;
26727 fail:
26728 return NULL;
26729 }
26730
26731
26732 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26733 PyObject *resultobj = 0;
26734 wxListItem *arg1 = (wxListItem *) 0 ;
26735 int result;
26736 void *argp1 = 0 ;
26737 int res1 = 0 ;
26738 PyObject *swig_obj[1] ;
26739
26740 if (!args) SWIG_fail;
26741 swig_obj[0] = args;
26742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26743 if (!SWIG_IsOK(res1)) {
26744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26745 }
26746 arg1 = reinterpret_cast< wxListItem * >(argp1);
26747 {
26748 PyThreadState* __tstate = wxPyBeginAllowThreads();
26749 result = (int)(arg1)->GetColumn();
26750 wxPyEndAllowThreads(__tstate);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 }
26753 resultobj = SWIG_From_int(static_cast< int >(result));
26754 return resultobj;
26755 fail:
26756 return NULL;
26757 }
26758
26759
26760 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26761 PyObject *resultobj = 0;
26762 wxListItem *arg1 = (wxListItem *) 0 ;
26763 long result;
26764 void *argp1 = 0 ;
26765 int res1 = 0 ;
26766 PyObject *swig_obj[1] ;
26767
26768 if (!args) SWIG_fail;
26769 swig_obj[0] = args;
26770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26771 if (!SWIG_IsOK(res1)) {
26772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26773 }
26774 arg1 = reinterpret_cast< wxListItem * >(argp1);
26775 {
26776 PyThreadState* __tstate = wxPyBeginAllowThreads();
26777 result = (long)(arg1)->GetState();
26778 wxPyEndAllowThreads(__tstate);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 }
26781 resultobj = SWIG_From_long(static_cast< long >(result));
26782 return resultobj;
26783 fail:
26784 return NULL;
26785 }
26786
26787
26788 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26789 PyObject *resultobj = 0;
26790 wxListItem *arg1 = (wxListItem *) 0 ;
26791 wxString *result = 0 ;
26792 void *argp1 = 0 ;
26793 int res1 = 0 ;
26794 PyObject *swig_obj[1] ;
26795
26796 if (!args) SWIG_fail;
26797 swig_obj[0] = args;
26798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26799 if (!SWIG_IsOK(res1)) {
26800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26801 }
26802 arg1 = reinterpret_cast< wxListItem * >(argp1);
26803 {
26804 PyThreadState* __tstate = wxPyBeginAllowThreads();
26805 {
26806 wxString const &_result_ref = (arg1)->GetText();
26807 result = (wxString *) &_result_ref;
26808 }
26809 wxPyEndAllowThreads(__tstate);
26810 if (PyErr_Occurred()) SWIG_fail;
26811 }
26812 {
26813 #if wxUSE_UNICODE
26814 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26815 #else
26816 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26817 #endif
26818 }
26819 return resultobj;
26820 fail:
26821 return NULL;
26822 }
26823
26824
26825 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26826 PyObject *resultobj = 0;
26827 wxListItem *arg1 = (wxListItem *) 0 ;
26828 int result;
26829 void *argp1 = 0 ;
26830 int res1 = 0 ;
26831 PyObject *swig_obj[1] ;
26832
26833 if (!args) SWIG_fail;
26834 swig_obj[0] = args;
26835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26836 if (!SWIG_IsOK(res1)) {
26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26838 }
26839 arg1 = reinterpret_cast< wxListItem * >(argp1);
26840 {
26841 PyThreadState* __tstate = wxPyBeginAllowThreads();
26842 result = (int)(arg1)->GetImage();
26843 wxPyEndAllowThreads(__tstate);
26844 if (PyErr_Occurred()) SWIG_fail;
26845 }
26846 resultobj = SWIG_From_int(static_cast< int >(result));
26847 return resultobj;
26848 fail:
26849 return NULL;
26850 }
26851
26852
26853 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26854 PyObject *resultobj = 0;
26855 wxListItem *arg1 = (wxListItem *) 0 ;
26856 long result;
26857 void *argp1 = 0 ;
26858 int res1 = 0 ;
26859 PyObject *swig_obj[1] ;
26860
26861 if (!args) SWIG_fail;
26862 swig_obj[0] = args;
26863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26864 if (!SWIG_IsOK(res1)) {
26865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26866 }
26867 arg1 = reinterpret_cast< wxListItem * >(argp1);
26868 {
26869 PyThreadState* __tstate = wxPyBeginAllowThreads();
26870 result = (long)(arg1)->GetData();
26871 wxPyEndAllowThreads(__tstate);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 }
26874 resultobj = SWIG_From_long(static_cast< long >(result));
26875 return resultobj;
26876 fail:
26877 return NULL;
26878 }
26879
26880
26881 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26882 PyObject *resultobj = 0;
26883 wxListItem *arg1 = (wxListItem *) 0 ;
26884 int result;
26885 void *argp1 = 0 ;
26886 int res1 = 0 ;
26887 PyObject *swig_obj[1] ;
26888
26889 if (!args) SWIG_fail;
26890 swig_obj[0] = args;
26891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26892 if (!SWIG_IsOK(res1)) {
26893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26894 }
26895 arg1 = reinterpret_cast< wxListItem * >(argp1);
26896 {
26897 PyThreadState* __tstate = wxPyBeginAllowThreads();
26898 result = (int)(arg1)->GetWidth();
26899 wxPyEndAllowThreads(__tstate);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 }
26902 resultobj = SWIG_From_int(static_cast< int >(result));
26903 return resultobj;
26904 fail:
26905 return NULL;
26906 }
26907
26908
26909 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26910 PyObject *resultobj = 0;
26911 wxListItem *arg1 = (wxListItem *) 0 ;
26912 wxListColumnFormat result;
26913 void *argp1 = 0 ;
26914 int res1 = 0 ;
26915 PyObject *swig_obj[1] ;
26916
26917 if (!args) SWIG_fail;
26918 swig_obj[0] = args;
26919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26920 if (!SWIG_IsOK(res1)) {
26921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26922 }
26923 arg1 = reinterpret_cast< wxListItem * >(argp1);
26924 {
26925 PyThreadState* __tstate = wxPyBeginAllowThreads();
26926 result = (wxListColumnFormat)(arg1)->GetAlign();
26927 wxPyEndAllowThreads(__tstate);
26928 if (PyErr_Occurred()) SWIG_fail;
26929 }
26930 resultobj = SWIG_From_int(static_cast< int >(result));
26931 return resultobj;
26932 fail:
26933 return NULL;
26934 }
26935
26936
26937 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26938 PyObject *resultobj = 0;
26939 wxListItem *arg1 = (wxListItem *) 0 ;
26940 wxListItemAttr *result = 0 ;
26941 void *argp1 = 0 ;
26942 int res1 = 0 ;
26943 PyObject *swig_obj[1] ;
26944
26945 if (!args) SWIG_fail;
26946 swig_obj[0] = args;
26947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26948 if (!SWIG_IsOK(res1)) {
26949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26950 }
26951 arg1 = reinterpret_cast< wxListItem * >(argp1);
26952 {
26953 PyThreadState* __tstate = wxPyBeginAllowThreads();
26954 result = (wxListItemAttr *)(arg1)->GetAttributes();
26955 wxPyEndAllowThreads(__tstate);
26956 if (PyErr_Occurred()) SWIG_fail;
26957 }
26958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26959 return resultobj;
26960 fail:
26961 return NULL;
26962 }
26963
26964
26965 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26966 PyObject *resultobj = 0;
26967 wxListItem *arg1 = (wxListItem *) 0 ;
26968 bool result;
26969 void *argp1 = 0 ;
26970 int res1 = 0 ;
26971 PyObject *swig_obj[1] ;
26972
26973 if (!args) SWIG_fail;
26974 swig_obj[0] = args;
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_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26978 }
26979 arg1 = reinterpret_cast< wxListItem * >(argp1);
26980 {
26981 PyThreadState* __tstate = wxPyBeginAllowThreads();
26982 result = (bool)(arg1)->HasAttributes();
26983 wxPyEndAllowThreads(__tstate);
26984 if (PyErr_Occurred()) SWIG_fail;
26985 }
26986 {
26987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26988 }
26989 return resultobj;
26990 fail:
26991 return NULL;
26992 }
26993
26994
26995 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26996 PyObject *resultobj = 0;
26997 wxListItem *arg1 = (wxListItem *) 0 ;
26998 wxColour result;
26999 void *argp1 = 0 ;
27000 int res1 = 0 ;
27001 PyObject *swig_obj[1] ;
27002
27003 if (!args) SWIG_fail;
27004 swig_obj[0] = args;
27005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27006 if (!SWIG_IsOK(res1)) {
27007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27008 }
27009 arg1 = reinterpret_cast< wxListItem * >(argp1);
27010 {
27011 PyThreadState* __tstate = wxPyBeginAllowThreads();
27012 result = ((wxListItem const *)arg1)->GetTextColour();
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27017 return resultobj;
27018 fail:
27019 return NULL;
27020 }
27021
27022
27023 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27024 PyObject *resultobj = 0;
27025 wxListItem *arg1 = (wxListItem *) 0 ;
27026 wxColour result;
27027 void *argp1 = 0 ;
27028 int res1 = 0 ;
27029 PyObject *swig_obj[1] ;
27030
27031 if (!args) SWIG_fail;
27032 swig_obj[0] = args;
27033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27034 if (!SWIG_IsOK(res1)) {
27035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27036 }
27037 arg1 = reinterpret_cast< wxListItem * >(argp1);
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27045 return resultobj;
27046 fail:
27047 return NULL;
27048 }
27049
27050
27051 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27052 PyObject *resultobj = 0;
27053 wxListItem *arg1 = (wxListItem *) 0 ;
27054 wxFont result;
27055 void *argp1 = 0 ;
27056 int res1 = 0 ;
27057 PyObject *swig_obj[1] ;
27058
27059 if (!args) SWIG_fail;
27060 swig_obj[0] = args;
27061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27062 if (!SWIG_IsOK(res1)) {
27063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27064 }
27065 arg1 = reinterpret_cast< wxListItem * >(argp1);
27066 {
27067 PyThreadState* __tstate = wxPyBeginAllowThreads();
27068 result = ((wxListItem const *)arg1)->GetFont();
27069 wxPyEndAllowThreads(__tstate);
27070 if (PyErr_Occurred()) SWIG_fail;
27071 }
27072 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27073 return resultobj;
27074 fail:
27075 return NULL;
27076 }
27077
27078
27079 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27080 PyObject *resultobj = 0;
27081 wxListItem *arg1 = (wxListItem *) 0 ;
27082 long arg2 ;
27083 void *argp1 = 0 ;
27084 int res1 = 0 ;
27085 long val2 ;
27086 int ecode2 = 0 ;
27087 PyObject *swig_obj[2] ;
27088
27089 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27091 if (!SWIG_IsOK(res1)) {
27092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27093 }
27094 arg1 = reinterpret_cast< wxListItem * >(argp1);
27095 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27096 if (!SWIG_IsOK(ecode2)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27098 }
27099 arg2 = static_cast< long >(val2);
27100 if (arg1) (arg1)->m_mask = arg2;
27101
27102 resultobj = SWIG_Py_Void();
27103 return resultobj;
27104 fail:
27105 return NULL;
27106 }
27107
27108
27109 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27110 PyObject *resultobj = 0;
27111 wxListItem *arg1 = (wxListItem *) 0 ;
27112 long result;
27113 void *argp1 = 0 ;
27114 int res1 = 0 ;
27115 PyObject *swig_obj[1] ;
27116
27117 if (!args) SWIG_fail;
27118 swig_obj[0] = args;
27119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27120 if (!SWIG_IsOK(res1)) {
27121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27122 }
27123 arg1 = reinterpret_cast< wxListItem * >(argp1);
27124 result = (long) ((arg1)->m_mask);
27125 resultobj = SWIG_From_long(static_cast< long >(result));
27126 return resultobj;
27127 fail:
27128 return NULL;
27129 }
27130
27131
27132 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27133 PyObject *resultobj = 0;
27134 wxListItem *arg1 = (wxListItem *) 0 ;
27135 long arg2 ;
27136 void *argp1 = 0 ;
27137 int res1 = 0 ;
27138 long val2 ;
27139 int ecode2 = 0 ;
27140 PyObject *swig_obj[2] ;
27141
27142 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27144 if (!SWIG_IsOK(res1)) {
27145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27146 }
27147 arg1 = reinterpret_cast< wxListItem * >(argp1);
27148 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27149 if (!SWIG_IsOK(ecode2)) {
27150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27151 }
27152 arg2 = static_cast< long >(val2);
27153 if (arg1) (arg1)->m_itemId = arg2;
27154
27155 resultobj = SWIG_Py_Void();
27156 return resultobj;
27157 fail:
27158 return NULL;
27159 }
27160
27161
27162 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27163 PyObject *resultobj = 0;
27164 wxListItem *arg1 = (wxListItem *) 0 ;
27165 long result;
27166 void *argp1 = 0 ;
27167 int res1 = 0 ;
27168 PyObject *swig_obj[1] ;
27169
27170 if (!args) SWIG_fail;
27171 swig_obj[0] = args;
27172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27173 if (!SWIG_IsOK(res1)) {
27174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27175 }
27176 arg1 = reinterpret_cast< wxListItem * >(argp1);
27177 result = (long) ((arg1)->m_itemId);
27178 resultobj = SWIG_From_long(static_cast< long >(result));
27179 return resultobj;
27180 fail:
27181 return NULL;
27182 }
27183
27184
27185 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27186 PyObject *resultobj = 0;
27187 wxListItem *arg1 = (wxListItem *) 0 ;
27188 int arg2 ;
27189 void *argp1 = 0 ;
27190 int res1 = 0 ;
27191 int val2 ;
27192 int ecode2 = 0 ;
27193 PyObject *swig_obj[2] ;
27194
27195 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27197 if (!SWIG_IsOK(res1)) {
27198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27199 }
27200 arg1 = reinterpret_cast< wxListItem * >(argp1);
27201 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27202 if (!SWIG_IsOK(ecode2)) {
27203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27204 }
27205 arg2 = static_cast< int >(val2);
27206 if (arg1) (arg1)->m_col = arg2;
27207
27208 resultobj = SWIG_Py_Void();
27209 return resultobj;
27210 fail:
27211 return NULL;
27212 }
27213
27214
27215 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27216 PyObject *resultobj = 0;
27217 wxListItem *arg1 = (wxListItem *) 0 ;
27218 int result;
27219 void *argp1 = 0 ;
27220 int res1 = 0 ;
27221 PyObject *swig_obj[1] ;
27222
27223 if (!args) SWIG_fail;
27224 swig_obj[0] = args;
27225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27226 if (!SWIG_IsOK(res1)) {
27227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27228 }
27229 arg1 = reinterpret_cast< wxListItem * >(argp1);
27230 result = (int) ((arg1)->m_col);
27231 resultobj = SWIG_From_int(static_cast< int >(result));
27232 return resultobj;
27233 fail:
27234 return NULL;
27235 }
27236
27237
27238 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27239 PyObject *resultobj = 0;
27240 wxListItem *arg1 = (wxListItem *) 0 ;
27241 long arg2 ;
27242 void *argp1 = 0 ;
27243 int res1 = 0 ;
27244 long val2 ;
27245 int ecode2 = 0 ;
27246 PyObject *swig_obj[2] ;
27247
27248 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27250 if (!SWIG_IsOK(res1)) {
27251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27252 }
27253 arg1 = reinterpret_cast< wxListItem * >(argp1);
27254 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27255 if (!SWIG_IsOK(ecode2)) {
27256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27257 }
27258 arg2 = static_cast< long >(val2);
27259 if (arg1) (arg1)->m_state = arg2;
27260
27261 resultobj = SWIG_Py_Void();
27262 return resultobj;
27263 fail:
27264 return NULL;
27265 }
27266
27267
27268 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27269 PyObject *resultobj = 0;
27270 wxListItem *arg1 = (wxListItem *) 0 ;
27271 long result;
27272 void *argp1 = 0 ;
27273 int res1 = 0 ;
27274 PyObject *swig_obj[1] ;
27275
27276 if (!args) SWIG_fail;
27277 swig_obj[0] = args;
27278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27279 if (!SWIG_IsOK(res1)) {
27280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27281 }
27282 arg1 = reinterpret_cast< wxListItem * >(argp1);
27283 result = (long) ((arg1)->m_state);
27284 resultobj = SWIG_From_long(static_cast< long >(result));
27285 return resultobj;
27286 fail:
27287 return NULL;
27288 }
27289
27290
27291 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27292 PyObject *resultobj = 0;
27293 wxListItem *arg1 = (wxListItem *) 0 ;
27294 long arg2 ;
27295 void *argp1 = 0 ;
27296 int res1 = 0 ;
27297 long val2 ;
27298 int ecode2 = 0 ;
27299 PyObject *swig_obj[2] ;
27300
27301 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27303 if (!SWIG_IsOK(res1)) {
27304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27305 }
27306 arg1 = reinterpret_cast< wxListItem * >(argp1);
27307 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27308 if (!SWIG_IsOK(ecode2)) {
27309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27310 }
27311 arg2 = static_cast< long >(val2);
27312 if (arg1) (arg1)->m_stateMask = arg2;
27313
27314 resultobj = SWIG_Py_Void();
27315 return resultobj;
27316 fail:
27317 return NULL;
27318 }
27319
27320
27321 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27322 PyObject *resultobj = 0;
27323 wxListItem *arg1 = (wxListItem *) 0 ;
27324 long result;
27325 void *argp1 = 0 ;
27326 int res1 = 0 ;
27327 PyObject *swig_obj[1] ;
27328
27329 if (!args) SWIG_fail;
27330 swig_obj[0] = args;
27331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27332 if (!SWIG_IsOK(res1)) {
27333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27334 }
27335 arg1 = reinterpret_cast< wxListItem * >(argp1);
27336 result = (long) ((arg1)->m_stateMask);
27337 resultobj = SWIG_From_long(static_cast< long >(result));
27338 return resultobj;
27339 fail:
27340 return NULL;
27341 }
27342
27343
27344 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27345 PyObject *resultobj = 0;
27346 wxListItem *arg1 = (wxListItem *) 0 ;
27347 wxString *arg2 = (wxString *) 0 ;
27348 void *argp1 = 0 ;
27349 int res1 = 0 ;
27350 bool temp2 = false ;
27351 PyObject *swig_obj[2] ;
27352
27353 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27355 if (!SWIG_IsOK(res1)) {
27356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27357 }
27358 arg1 = reinterpret_cast< wxListItem * >(argp1);
27359 {
27360 arg2 = wxString_in_helper(swig_obj[1]);
27361 if (arg2 == NULL) SWIG_fail;
27362 temp2 = true;
27363 }
27364 if (arg1) (arg1)->m_text = *arg2;
27365
27366 resultobj = SWIG_Py_Void();
27367 {
27368 if (temp2)
27369 delete arg2;
27370 }
27371 return resultobj;
27372 fail:
27373 {
27374 if (temp2)
27375 delete arg2;
27376 }
27377 return NULL;
27378 }
27379
27380
27381 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27382 PyObject *resultobj = 0;
27383 wxListItem *arg1 = (wxListItem *) 0 ;
27384 wxString *result = 0 ;
27385 void *argp1 = 0 ;
27386 int res1 = 0 ;
27387 PyObject *swig_obj[1] ;
27388
27389 if (!args) SWIG_fail;
27390 swig_obj[0] = args;
27391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27392 if (!SWIG_IsOK(res1)) {
27393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27394 }
27395 arg1 = reinterpret_cast< wxListItem * >(argp1);
27396 result = (wxString *)& ((arg1)->m_text);
27397 {
27398 #if wxUSE_UNICODE
27399 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27400 #else
27401 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27402 #endif
27403 }
27404 return resultobj;
27405 fail:
27406 return NULL;
27407 }
27408
27409
27410 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27411 PyObject *resultobj = 0;
27412 wxListItem *arg1 = (wxListItem *) 0 ;
27413 int arg2 ;
27414 void *argp1 = 0 ;
27415 int res1 = 0 ;
27416 int val2 ;
27417 int ecode2 = 0 ;
27418 PyObject *swig_obj[2] ;
27419
27420 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27422 if (!SWIG_IsOK(res1)) {
27423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27424 }
27425 arg1 = reinterpret_cast< wxListItem * >(argp1);
27426 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27427 if (!SWIG_IsOK(ecode2)) {
27428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27429 }
27430 arg2 = static_cast< int >(val2);
27431 if (arg1) (arg1)->m_image = arg2;
27432
27433 resultobj = SWIG_Py_Void();
27434 return resultobj;
27435 fail:
27436 return NULL;
27437 }
27438
27439
27440 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27441 PyObject *resultobj = 0;
27442 wxListItem *arg1 = (wxListItem *) 0 ;
27443 int result;
27444 void *argp1 = 0 ;
27445 int res1 = 0 ;
27446 PyObject *swig_obj[1] ;
27447
27448 if (!args) SWIG_fail;
27449 swig_obj[0] = args;
27450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27451 if (!SWIG_IsOK(res1)) {
27452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27453 }
27454 arg1 = reinterpret_cast< wxListItem * >(argp1);
27455 result = (int) ((arg1)->m_image);
27456 resultobj = SWIG_From_int(static_cast< int >(result));
27457 return resultobj;
27458 fail:
27459 return NULL;
27460 }
27461
27462
27463 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27464 PyObject *resultobj = 0;
27465 wxListItem *arg1 = (wxListItem *) 0 ;
27466 long arg2 ;
27467 void *argp1 = 0 ;
27468 int res1 = 0 ;
27469 long val2 ;
27470 int ecode2 = 0 ;
27471 PyObject *swig_obj[2] ;
27472
27473 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27475 if (!SWIG_IsOK(res1)) {
27476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27477 }
27478 arg1 = reinterpret_cast< wxListItem * >(argp1);
27479 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27480 if (!SWIG_IsOK(ecode2)) {
27481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27482 }
27483 arg2 = static_cast< long >(val2);
27484 if (arg1) (arg1)->m_data = arg2;
27485
27486 resultobj = SWIG_Py_Void();
27487 return resultobj;
27488 fail:
27489 return NULL;
27490 }
27491
27492
27493 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27494 PyObject *resultobj = 0;
27495 wxListItem *arg1 = (wxListItem *) 0 ;
27496 long result;
27497 void *argp1 = 0 ;
27498 int res1 = 0 ;
27499 PyObject *swig_obj[1] ;
27500
27501 if (!args) SWIG_fail;
27502 swig_obj[0] = args;
27503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27504 if (!SWIG_IsOK(res1)) {
27505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27506 }
27507 arg1 = reinterpret_cast< wxListItem * >(argp1);
27508 result = (long) ((arg1)->m_data);
27509 resultobj = SWIG_From_long(static_cast< long >(result));
27510 return resultobj;
27511 fail:
27512 return NULL;
27513 }
27514
27515
27516 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27517 PyObject *resultobj = 0;
27518 wxListItem *arg1 = (wxListItem *) 0 ;
27519 int arg2 ;
27520 void *argp1 = 0 ;
27521 int res1 = 0 ;
27522 int val2 ;
27523 int ecode2 = 0 ;
27524 PyObject *swig_obj[2] ;
27525
27526 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27528 if (!SWIG_IsOK(res1)) {
27529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27530 }
27531 arg1 = reinterpret_cast< wxListItem * >(argp1);
27532 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27533 if (!SWIG_IsOK(ecode2)) {
27534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27535 }
27536 arg2 = static_cast< int >(val2);
27537 if (arg1) (arg1)->m_format = arg2;
27538
27539 resultobj = SWIG_Py_Void();
27540 return resultobj;
27541 fail:
27542 return NULL;
27543 }
27544
27545
27546 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27547 PyObject *resultobj = 0;
27548 wxListItem *arg1 = (wxListItem *) 0 ;
27549 int result;
27550 void *argp1 = 0 ;
27551 int res1 = 0 ;
27552 PyObject *swig_obj[1] ;
27553
27554 if (!args) SWIG_fail;
27555 swig_obj[0] = args;
27556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27557 if (!SWIG_IsOK(res1)) {
27558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27559 }
27560 arg1 = reinterpret_cast< wxListItem * >(argp1);
27561 result = (int) ((arg1)->m_format);
27562 resultobj = SWIG_From_int(static_cast< int >(result));
27563 return resultobj;
27564 fail:
27565 return NULL;
27566 }
27567
27568
27569 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27570 PyObject *resultobj = 0;
27571 wxListItem *arg1 = (wxListItem *) 0 ;
27572 int arg2 ;
27573 void *argp1 = 0 ;
27574 int res1 = 0 ;
27575 int val2 ;
27576 int ecode2 = 0 ;
27577 PyObject *swig_obj[2] ;
27578
27579 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27581 if (!SWIG_IsOK(res1)) {
27582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27583 }
27584 arg1 = reinterpret_cast< wxListItem * >(argp1);
27585 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27586 if (!SWIG_IsOK(ecode2)) {
27587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27588 }
27589 arg2 = static_cast< int >(val2);
27590 if (arg1) (arg1)->m_width = arg2;
27591
27592 resultobj = SWIG_Py_Void();
27593 return resultobj;
27594 fail:
27595 return NULL;
27596 }
27597
27598
27599 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27600 PyObject *resultobj = 0;
27601 wxListItem *arg1 = (wxListItem *) 0 ;
27602 int result;
27603 void *argp1 = 0 ;
27604 int res1 = 0 ;
27605 PyObject *swig_obj[1] ;
27606
27607 if (!args) SWIG_fail;
27608 swig_obj[0] = args;
27609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27610 if (!SWIG_IsOK(res1)) {
27611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27612 }
27613 arg1 = reinterpret_cast< wxListItem * >(argp1);
27614 result = (int) ((arg1)->m_width);
27615 resultobj = SWIG_From_int(static_cast< int >(result));
27616 return resultobj;
27617 fail:
27618 return NULL;
27619 }
27620
27621
27622 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27623 PyObject *obj;
27624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27625 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27626 return SWIG_Py_Void();
27627 }
27628
27629 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27630 return SWIG_Python_InitShadowInstance(args);
27631 }
27632
27633 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27634 PyObject *resultobj = 0;
27635 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27636 int arg2 = (int) 0 ;
27637 wxListEvent *result = 0 ;
27638 int val1 ;
27639 int ecode1 = 0 ;
27640 int val2 ;
27641 int ecode2 = 0 ;
27642 PyObject * obj0 = 0 ;
27643 PyObject * obj1 = 0 ;
27644 char * kwnames[] = {
27645 (char *) "commandType",(char *) "id", NULL
27646 };
27647
27648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27649 if (obj0) {
27650 ecode1 = SWIG_AsVal_int(obj0, &val1);
27651 if (!SWIG_IsOK(ecode1)) {
27652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27653 }
27654 arg1 = static_cast< wxEventType >(val1);
27655 }
27656 if (obj1) {
27657 ecode2 = SWIG_AsVal_int(obj1, &val2);
27658 if (!SWIG_IsOK(ecode2)) {
27659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27660 }
27661 arg2 = static_cast< int >(val2);
27662 }
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27666 wxPyEndAllowThreads(__tstate);
27667 if (PyErr_Occurred()) SWIG_fail;
27668 }
27669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27670 return resultobj;
27671 fail:
27672 return NULL;
27673 }
27674
27675
27676 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27677 PyObject *resultobj = 0;
27678 wxListEvent *arg1 = (wxListEvent *) 0 ;
27679 int arg2 ;
27680 void *argp1 = 0 ;
27681 int res1 = 0 ;
27682 int val2 ;
27683 int ecode2 = 0 ;
27684 PyObject *swig_obj[2] ;
27685
27686 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27688 if (!SWIG_IsOK(res1)) {
27689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27690 }
27691 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27692 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27693 if (!SWIG_IsOK(ecode2)) {
27694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27695 }
27696 arg2 = static_cast< int >(val2);
27697 if (arg1) (arg1)->m_code = arg2;
27698
27699 resultobj = SWIG_Py_Void();
27700 return resultobj;
27701 fail:
27702 return NULL;
27703 }
27704
27705
27706 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27707 PyObject *resultobj = 0;
27708 wxListEvent *arg1 = (wxListEvent *) 0 ;
27709 int result;
27710 void *argp1 = 0 ;
27711 int res1 = 0 ;
27712 PyObject *swig_obj[1] ;
27713
27714 if (!args) SWIG_fail;
27715 swig_obj[0] = args;
27716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27717 if (!SWIG_IsOK(res1)) {
27718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27719 }
27720 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27721 result = (int) ((arg1)->m_code);
27722 resultobj = SWIG_From_int(static_cast< int >(result));
27723 return resultobj;
27724 fail:
27725 return NULL;
27726 }
27727
27728
27729 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27730 PyObject *resultobj = 0;
27731 wxListEvent *arg1 = (wxListEvent *) 0 ;
27732 long arg2 ;
27733 void *argp1 = 0 ;
27734 int res1 = 0 ;
27735 long val2 ;
27736 int ecode2 = 0 ;
27737 PyObject *swig_obj[2] ;
27738
27739 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27741 if (!SWIG_IsOK(res1)) {
27742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27743 }
27744 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27745 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27746 if (!SWIG_IsOK(ecode2)) {
27747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27748 }
27749 arg2 = static_cast< long >(val2);
27750 if (arg1) (arg1)->m_oldItemIndex = arg2;
27751
27752 resultobj = SWIG_Py_Void();
27753 return resultobj;
27754 fail:
27755 return NULL;
27756 }
27757
27758
27759 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27760 PyObject *resultobj = 0;
27761 wxListEvent *arg1 = (wxListEvent *) 0 ;
27762 long result;
27763 void *argp1 = 0 ;
27764 int res1 = 0 ;
27765 PyObject *swig_obj[1] ;
27766
27767 if (!args) SWIG_fail;
27768 swig_obj[0] = args;
27769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27770 if (!SWIG_IsOK(res1)) {
27771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27772 }
27773 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27774 result = (long) ((arg1)->m_oldItemIndex);
27775 resultobj = SWIG_From_long(static_cast< long >(result));
27776 return resultobj;
27777 fail:
27778 return NULL;
27779 }
27780
27781
27782 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27783 PyObject *resultobj = 0;
27784 wxListEvent *arg1 = (wxListEvent *) 0 ;
27785 long arg2 ;
27786 void *argp1 = 0 ;
27787 int res1 = 0 ;
27788 long val2 ;
27789 int ecode2 = 0 ;
27790 PyObject *swig_obj[2] ;
27791
27792 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27794 if (!SWIG_IsOK(res1)) {
27795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27796 }
27797 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27798 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27799 if (!SWIG_IsOK(ecode2)) {
27800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27801 }
27802 arg2 = static_cast< long >(val2);
27803 if (arg1) (arg1)->m_itemIndex = arg2;
27804
27805 resultobj = SWIG_Py_Void();
27806 return resultobj;
27807 fail:
27808 return NULL;
27809 }
27810
27811
27812 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27813 PyObject *resultobj = 0;
27814 wxListEvent *arg1 = (wxListEvent *) 0 ;
27815 long result;
27816 void *argp1 = 0 ;
27817 int res1 = 0 ;
27818 PyObject *swig_obj[1] ;
27819
27820 if (!args) SWIG_fail;
27821 swig_obj[0] = args;
27822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27823 if (!SWIG_IsOK(res1)) {
27824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27825 }
27826 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27827 result = (long) ((arg1)->m_itemIndex);
27828 resultobj = SWIG_From_long(static_cast< long >(result));
27829 return resultobj;
27830 fail:
27831 return NULL;
27832 }
27833
27834
27835 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27836 PyObject *resultobj = 0;
27837 wxListEvent *arg1 = (wxListEvent *) 0 ;
27838 int arg2 ;
27839 void *argp1 = 0 ;
27840 int res1 = 0 ;
27841 int val2 ;
27842 int ecode2 = 0 ;
27843 PyObject *swig_obj[2] ;
27844
27845 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27847 if (!SWIG_IsOK(res1)) {
27848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27849 }
27850 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27851 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27852 if (!SWIG_IsOK(ecode2)) {
27853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27854 }
27855 arg2 = static_cast< int >(val2);
27856 if (arg1) (arg1)->m_col = arg2;
27857
27858 resultobj = SWIG_Py_Void();
27859 return resultobj;
27860 fail:
27861 return NULL;
27862 }
27863
27864
27865 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27866 PyObject *resultobj = 0;
27867 wxListEvent *arg1 = (wxListEvent *) 0 ;
27868 int result;
27869 void *argp1 = 0 ;
27870 int res1 = 0 ;
27871 PyObject *swig_obj[1] ;
27872
27873 if (!args) SWIG_fail;
27874 swig_obj[0] = args;
27875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27876 if (!SWIG_IsOK(res1)) {
27877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27878 }
27879 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27880 result = (int) ((arg1)->m_col);
27881 resultobj = SWIG_From_int(static_cast< int >(result));
27882 return resultobj;
27883 fail:
27884 return NULL;
27885 }
27886
27887
27888 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27889 PyObject *resultobj = 0;
27890 wxListEvent *arg1 = (wxListEvent *) 0 ;
27891 wxPoint *arg2 = (wxPoint *) 0 ;
27892 void *argp1 = 0 ;
27893 int res1 = 0 ;
27894 void *argp2 = 0 ;
27895 int res2 = 0 ;
27896 PyObject *swig_obj[2] ;
27897
27898 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27900 if (!SWIG_IsOK(res1)) {
27901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27902 }
27903 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27904 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27905 if (!SWIG_IsOK(res2)) {
27906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27907 }
27908 arg2 = reinterpret_cast< wxPoint * >(argp2);
27909 if (arg1) (arg1)->m_pointDrag = *arg2;
27910
27911 resultobj = SWIG_Py_Void();
27912 return resultobj;
27913 fail:
27914 return NULL;
27915 }
27916
27917
27918 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27919 PyObject *resultobj = 0;
27920 wxListEvent *arg1 = (wxListEvent *) 0 ;
27921 wxPoint *result = 0 ;
27922 void *argp1 = 0 ;
27923 int res1 = 0 ;
27924 PyObject *swig_obj[1] ;
27925
27926 if (!args) SWIG_fail;
27927 swig_obj[0] = args;
27928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27929 if (!SWIG_IsOK(res1)) {
27930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27931 }
27932 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27933 result = (wxPoint *)& ((arg1)->m_pointDrag);
27934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27935 return resultobj;
27936 fail:
27937 return NULL;
27938 }
27939
27940
27941 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27942 PyObject *resultobj = 0;
27943 wxListEvent *arg1 = (wxListEvent *) 0 ;
27944 wxListItem *result = 0 ;
27945 void *argp1 = 0 ;
27946 int res1 = 0 ;
27947 PyObject *swig_obj[1] ;
27948
27949 if (!args) SWIG_fail;
27950 swig_obj[0] = args;
27951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27952 if (!SWIG_IsOK(res1)) {
27953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27954 }
27955 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27956 result = (wxListItem *)& ((arg1)->m_item);
27957 {
27958 resultobj = wxPyMake_wxObject(result, (bool)0);
27959 }
27960 return resultobj;
27961 fail:
27962 return NULL;
27963 }
27964
27965
27966 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27967 PyObject *resultobj = 0;
27968 wxListEvent *arg1 = (wxListEvent *) 0 ;
27969 int result;
27970 void *argp1 = 0 ;
27971 int res1 = 0 ;
27972 PyObject *swig_obj[1] ;
27973
27974 if (!args) SWIG_fail;
27975 swig_obj[0] = args;
27976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27977 if (!SWIG_IsOK(res1)) {
27978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27979 }
27980 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27981 {
27982 PyThreadState* __tstate = wxPyBeginAllowThreads();
27983 result = (int)(arg1)->GetKeyCode();
27984 wxPyEndAllowThreads(__tstate);
27985 if (PyErr_Occurred()) SWIG_fail;
27986 }
27987 resultobj = SWIG_From_int(static_cast< int >(result));
27988 return resultobj;
27989 fail:
27990 return NULL;
27991 }
27992
27993
27994 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27995 PyObject *resultobj = 0;
27996 wxListEvent *arg1 = (wxListEvent *) 0 ;
27997 long result;
27998 void *argp1 = 0 ;
27999 int res1 = 0 ;
28000 PyObject *swig_obj[1] ;
28001
28002 if (!args) SWIG_fail;
28003 swig_obj[0] = args;
28004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28005 if (!SWIG_IsOK(res1)) {
28006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28007 }
28008 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28009 {
28010 PyThreadState* __tstate = wxPyBeginAllowThreads();
28011 result = (long)(arg1)->GetIndex();
28012 wxPyEndAllowThreads(__tstate);
28013 if (PyErr_Occurred()) SWIG_fail;
28014 }
28015 resultobj = SWIG_From_long(static_cast< long >(result));
28016 return resultobj;
28017 fail:
28018 return NULL;
28019 }
28020
28021
28022 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28023 PyObject *resultobj = 0;
28024 wxListEvent *arg1 = (wxListEvent *) 0 ;
28025 int result;
28026 void *argp1 = 0 ;
28027 int res1 = 0 ;
28028 PyObject *swig_obj[1] ;
28029
28030 if (!args) SWIG_fail;
28031 swig_obj[0] = args;
28032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28033 if (!SWIG_IsOK(res1)) {
28034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28035 }
28036 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28037 {
28038 PyThreadState* __tstate = wxPyBeginAllowThreads();
28039 result = (int)(arg1)->GetColumn();
28040 wxPyEndAllowThreads(__tstate);
28041 if (PyErr_Occurred()) SWIG_fail;
28042 }
28043 resultobj = SWIG_From_int(static_cast< int >(result));
28044 return resultobj;
28045 fail:
28046 return NULL;
28047 }
28048
28049
28050 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28051 PyObject *resultobj = 0;
28052 wxListEvent *arg1 = (wxListEvent *) 0 ;
28053 wxPoint result;
28054 void *argp1 = 0 ;
28055 int res1 = 0 ;
28056 PyObject *swig_obj[1] ;
28057
28058 if (!args) SWIG_fail;
28059 swig_obj[0] = args;
28060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28061 if (!SWIG_IsOK(res1)) {
28062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28063 }
28064 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28065 {
28066 PyThreadState* __tstate = wxPyBeginAllowThreads();
28067 result = (arg1)->GetPoint();
28068 wxPyEndAllowThreads(__tstate);
28069 if (PyErr_Occurred()) SWIG_fail;
28070 }
28071 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28072 return resultobj;
28073 fail:
28074 return NULL;
28075 }
28076
28077
28078 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28079 PyObject *resultobj = 0;
28080 wxListEvent *arg1 = (wxListEvent *) 0 ;
28081 wxString *result = 0 ;
28082 void *argp1 = 0 ;
28083 int res1 = 0 ;
28084 PyObject *swig_obj[1] ;
28085
28086 if (!args) SWIG_fail;
28087 swig_obj[0] = args;
28088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28089 if (!SWIG_IsOK(res1)) {
28090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28091 }
28092 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28093 {
28094 PyThreadState* __tstate = wxPyBeginAllowThreads();
28095 {
28096 wxString const &_result_ref = (arg1)->GetLabel();
28097 result = (wxString *) &_result_ref;
28098 }
28099 wxPyEndAllowThreads(__tstate);
28100 if (PyErr_Occurred()) SWIG_fail;
28101 }
28102 {
28103 #if wxUSE_UNICODE
28104 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28105 #else
28106 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28107 #endif
28108 }
28109 return resultobj;
28110 fail:
28111 return NULL;
28112 }
28113
28114
28115 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28116 PyObject *resultobj = 0;
28117 wxListEvent *arg1 = (wxListEvent *) 0 ;
28118 wxString *result = 0 ;
28119 void *argp1 = 0 ;
28120 int res1 = 0 ;
28121 PyObject *swig_obj[1] ;
28122
28123 if (!args) SWIG_fail;
28124 swig_obj[0] = args;
28125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28126 if (!SWIG_IsOK(res1)) {
28127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28128 }
28129 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28130 {
28131 PyThreadState* __tstate = wxPyBeginAllowThreads();
28132 {
28133 wxString const &_result_ref = (arg1)->GetText();
28134 result = (wxString *) &_result_ref;
28135 }
28136 wxPyEndAllowThreads(__tstate);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
28139 {
28140 #if wxUSE_UNICODE
28141 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28142 #else
28143 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28144 #endif
28145 }
28146 return resultobj;
28147 fail:
28148 return NULL;
28149 }
28150
28151
28152 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28153 PyObject *resultobj = 0;
28154 wxListEvent *arg1 = (wxListEvent *) 0 ;
28155 int result;
28156 void *argp1 = 0 ;
28157 int res1 = 0 ;
28158 PyObject *swig_obj[1] ;
28159
28160 if (!args) SWIG_fail;
28161 swig_obj[0] = args;
28162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28163 if (!SWIG_IsOK(res1)) {
28164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28165 }
28166 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28167 {
28168 PyThreadState* __tstate = wxPyBeginAllowThreads();
28169 result = (int)(arg1)->GetImage();
28170 wxPyEndAllowThreads(__tstate);
28171 if (PyErr_Occurred()) SWIG_fail;
28172 }
28173 resultobj = SWIG_From_int(static_cast< int >(result));
28174 return resultobj;
28175 fail:
28176 return NULL;
28177 }
28178
28179
28180 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28181 PyObject *resultobj = 0;
28182 wxListEvent *arg1 = (wxListEvent *) 0 ;
28183 long result;
28184 void *argp1 = 0 ;
28185 int res1 = 0 ;
28186 PyObject *swig_obj[1] ;
28187
28188 if (!args) SWIG_fail;
28189 swig_obj[0] = args;
28190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28191 if (!SWIG_IsOK(res1)) {
28192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28193 }
28194 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28195 {
28196 PyThreadState* __tstate = wxPyBeginAllowThreads();
28197 result = (long)(arg1)->GetData();
28198 wxPyEndAllowThreads(__tstate);
28199 if (PyErr_Occurred()) SWIG_fail;
28200 }
28201 resultobj = SWIG_From_long(static_cast< long >(result));
28202 return resultobj;
28203 fail:
28204 return NULL;
28205 }
28206
28207
28208 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28209 PyObject *resultobj = 0;
28210 wxListEvent *arg1 = (wxListEvent *) 0 ;
28211 long result;
28212 void *argp1 = 0 ;
28213 int res1 = 0 ;
28214 PyObject *swig_obj[1] ;
28215
28216 if (!args) SWIG_fail;
28217 swig_obj[0] = args;
28218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28219 if (!SWIG_IsOK(res1)) {
28220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28221 }
28222 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28223 {
28224 PyThreadState* __tstate = wxPyBeginAllowThreads();
28225 result = (long)(arg1)->GetMask();
28226 wxPyEndAllowThreads(__tstate);
28227 if (PyErr_Occurred()) SWIG_fail;
28228 }
28229 resultobj = SWIG_From_long(static_cast< long >(result));
28230 return resultobj;
28231 fail:
28232 return NULL;
28233 }
28234
28235
28236 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28237 PyObject *resultobj = 0;
28238 wxListEvent *arg1 = (wxListEvent *) 0 ;
28239 wxListItem *result = 0 ;
28240 void *argp1 = 0 ;
28241 int res1 = 0 ;
28242 PyObject *swig_obj[1] ;
28243
28244 if (!args) SWIG_fail;
28245 swig_obj[0] = args;
28246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28247 if (!SWIG_IsOK(res1)) {
28248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28249 }
28250 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28251 {
28252 PyThreadState* __tstate = wxPyBeginAllowThreads();
28253 {
28254 wxListItem const &_result_ref = (arg1)->GetItem();
28255 result = (wxListItem *) &_result_ref;
28256 }
28257 wxPyEndAllowThreads(__tstate);
28258 if (PyErr_Occurred()) SWIG_fail;
28259 }
28260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28261 return resultobj;
28262 fail:
28263 return NULL;
28264 }
28265
28266
28267 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28268 PyObject *resultobj = 0;
28269 wxListEvent *arg1 = (wxListEvent *) 0 ;
28270 long result;
28271 void *argp1 = 0 ;
28272 int res1 = 0 ;
28273 PyObject *swig_obj[1] ;
28274
28275 if (!args) SWIG_fail;
28276 swig_obj[0] = args;
28277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28278 if (!SWIG_IsOK(res1)) {
28279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28280 }
28281 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28282 {
28283 PyThreadState* __tstate = wxPyBeginAllowThreads();
28284 result = (long)(arg1)->GetCacheFrom();
28285 wxPyEndAllowThreads(__tstate);
28286 if (PyErr_Occurred()) SWIG_fail;
28287 }
28288 resultobj = SWIG_From_long(static_cast< long >(result));
28289 return resultobj;
28290 fail:
28291 return NULL;
28292 }
28293
28294
28295 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28296 PyObject *resultobj = 0;
28297 wxListEvent *arg1 = (wxListEvent *) 0 ;
28298 long result;
28299 void *argp1 = 0 ;
28300 int res1 = 0 ;
28301 PyObject *swig_obj[1] ;
28302
28303 if (!args) SWIG_fail;
28304 swig_obj[0] = args;
28305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28306 if (!SWIG_IsOK(res1)) {
28307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28308 }
28309 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28310 {
28311 PyThreadState* __tstate = wxPyBeginAllowThreads();
28312 result = (long)(arg1)->GetCacheTo();
28313 wxPyEndAllowThreads(__tstate);
28314 if (PyErr_Occurred()) SWIG_fail;
28315 }
28316 resultobj = SWIG_From_long(static_cast< long >(result));
28317 return resultobj;
28318 fail:
28319 return NULL;
28320 }
28321
28322
28323 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28324 PyObject *resultobj = 0;
28325 wxListEvent *arg1 = (wxListEvent *) 0 ;
28326 bool result;
28327 void *argp1 = 0 ;
28328 int res1 = 0 ;
28329 PyObject *swig_obj[1] ;
28330
28331 if (!args) SWIG_fail;
28332 swig_obj[0] = args;
28333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28334 if (!SWIG_IsOK(res1)) {
28335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28336 }
28337 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28338 {
28339 PyThreadState* __tstate = wxPyBeginAllowThreads();
28340 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28341 wxPyEndAllowThreads(__tstate);
28342 if (PyErr_Occurred()) SWIG_fail;
28343 }
28344 {
28345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28346 }
28347 return resultobj;
28348 fail:
28349 return NULL;
28350 }
28351
28352
28353 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28354 PyObject *resultobj = 0;
28355 wxListEvent *arg1 = (wxListEvent *) 0 ;
28356 bool arg2 ;
28357 void *argp1 = 0 ;
28358 int res1 = 0 ;
28359 bool val2 ;
28360 int ecode2 = 0 ;
28361 PyObject * obj0 = 0 ;
28362 PyObject * obj1 = 0 ;
28363 char * kwnames[] = {
28364 (char *) "self",(char *) "editCancelled", NULL
28365 };
28366
28367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28369 if (!SWIG_IsOK(res1)) {
28370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28371 }
28372 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28373 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28374 if (!SWIG_IsOK(ecode2)) {
28375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28376 }
28377 arg2 = static_cast< bool >(val2);
28378 {
28379 PyThreadState* __tstate = wxPyBeginAllowThreads();
28380 (arg1)->SetEditCanceled(arg2);
28381 wxPyEndAllowThreads(__tstate);
28382 if (PyErr_Occurred()) SWIG_fail;
28383 }
28384 resultobj = SWIG_Py_Void();
28385 return resultobj;
28386 fail:
28387 return NULL;
28388 }
28389
28390
28391 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28392 PyObject *obj;
28393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28394 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28395 return SWIG_Py_Void();
28396 }
28397
28398 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28399 return SWIG_Python_InitShadowInstance(args);
28400 }
28401
28402 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28403 PyObject *resultobj = 0;
28404 wxWindow *arg1 = (wxWindow *) 0 ;
28405 int arg2 = (int) -1 ;
28406 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28407 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28408 wxSize const &arg4_defvalue = wxDefaultSize ;
28409 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28410 long arg5 = (long) wxLC_ICON ;
28411 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28412 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28413 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28414 wxString *arg7 = (wxString *) &arg7_defvalue ;
28415 wxPyListCtrl *result = 0 ;
28416 void *argp1 = 0 ;
28417 int res1 = 0 ;
28418 int val2 ;
28419 int ecode2 = 0 ;
28420 wxPoint temp3 ;
28421 wxSize temp4 ;
28422 long val5 ;
28423 int ecode5 = 0 ;
28424 void *argp6 = 0 ;
28425 int res6 = 0 ;
28426 bool temp7 = false ;
28427 PyObject * obj0 = 0 ;
28428 PyObject * obj1 = 0 ;
28429 PyObject * obj2 = 0 ;
28430 PyObject * obj3 = 0 ;
28431 PyObject * obj4 = 0 ;
28432 PyObject * obj5 = 0 ;
28433 PyObject * obj6 = 0 ;
28434 char * kwnames[] = {
28435 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28436 };
28437
28438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28440 if (!SWIG_IsOK(res1)) {
28441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28442 }
28443 arg1 = reinterpret_cast< wxWindow * >(argp1);
28444 if (obj1) {
28445 ecode2 = SWIG_AsVal_int(obj1, &val2);
28446 if (!SWIG_IsOK(ecode2)) {
28447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28448 }
28449 arg2 = static_cast< int >(val2);
28450 }
28451 if (obj2) {
28452 {
28453 arg3 = &temp3;
28454 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28455 }
28456 }
28457 if (obj3) {
28458 {
28459 arg4 = &temp4;
28460 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28461 }
28462 }
28463 if (obj4) {
28464 ecode5 = SWIG_AsVal_long(obj4, &val5);
28465 if (!SWIG_IsOK(ecode5)) {
28466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28467 }
28468 arg5 = static_cast< long >(val5);
28469 }
28470 if (obj5) {
28471 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28472 if (!SWIG_IsOK(res6)) {
28473 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28474 }
28475 if (!argp6) {
28476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28477 }
28478 arg6 = reinterpret_cast< wxValidator * >(argp6);
28479 }
28480 if (obj6) {
28481 {
28482 arg7 = wxString_in_helper(obj6);
28483 if (arg7 == NULL) SWIG_fail;
28484 temp7 = true;
28485 }
28486 }
28487 {
28488 if (!wxPyCheckForApp()) SWIG_fail;
28489 PyThreadState* __tstate = wxPyBeginAllowThreads();
28490 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28491 wxPyEndAllowThreads(__tstate);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28495 {
28496 if (temp7)
28497 delete arg7;
28498 }
28499 return resultobj;
28500 fail:
28501 {
28502 if (temp7)
28503 delete arg7;
28504 }
28505 return NULL;
28506 }
28507
28508
28509 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28510 PyObject *resultobj = 0;
28511 wxPyListCtrl *result = 0 ;
28512
28513 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28514 {
28515 if (!wxPyCheckForApp()) SWIG_fail;
28516 PyThreadState* __tstate = wxPyBeginAllowThreads();
28517 result = (wxPyListCtrl *)new wxPyListCtrl();
28518 wxPyEndAllowThreads(__tstate);
28519 if (PyErr_Occurred()) SWIG_fail;
28520 }
28521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28522 return resultobj;
28523 fail:
28524 return NULL;
28525 }
28526
28527
28528 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28529 PyObject *resultobj = 0;
28530 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28531 wxWindow *arg2 = (wxWindow *) 0 ;
28532 int arg3 = (int) -1 ;
28533 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28534 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28535 wxSize const &arg5_defvalue = wxDefaultSize ;
28536 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28537 long arg6 = (long) wxLC_ICON ;
28538 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28539 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28540 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28541 wxString *arg8 = (wxString *) &arg8_defvalue ;
28542 bool result;
28543 void *argp1 = 0 ;
28544 int res1 = 0 ;
28545 void *argp2 = 0 ;
28546 int res2 = 0 ;
28547 int val3 ;
28548 int ecode3 = 0 ;
28549 wxPoint temp4 ;
28550 wxSize temp5 ;
28551 long val6 ;
28552 int ecode6 = 0 ;
28553 void *argp7 = 0 ;
28554 int res7 = 0 ;
28555 bool temp8 = false ;
28556 PyObject * obj0 = 0 ;
28557 PyObject * obj1 = 0 ;
28558 PyObject * obj2 = 0 ;
28559 PyObject * obj3 = 0 ;
28560 PyObject * obj4 = 0 ;
28561 PyObject * obj5 = 0 ;
28562 PyObject * obj6 = 0 ;
28563 PyObject * obj7 = 0 ;
28564 char * kwnames[] = {
28565 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28566 };
28567
28568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28570 if (!SWIG_IsOK(res1)) {
28571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28572 }
28573 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28574 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28575 if (!SWIG_IsOK(res2)) {
28576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28577 }
28578 arg2 = reinterpret_cast< wxWindow * >(argp2);
28579 if (obj2) {
28580 ecode3 = SWIG_AsVal_int(obj2, &val3);
28581 if (!SWIG_IsOK(ecode3)) {
28582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28583 }
28584 arg3 = static_cast< int >(val3);
28585 }
28586 if (obj3) {
28587 {
28588 arg4 = &temp4;
28589 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28590 }
28591 }
28592 if (obj4) {
28593 {
28594 arg5 = &temp5;
28595 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28596 }
28597 }
28598 if (obj5) {
28599 ecode6 = SWIG_AsVal_long(obj5, &val6);
28600 if (!SWIG_IsOK(ecode6)) {
28601 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28602 }
28603 arg6 = static_cast< long >(val6);
28604 }
28605 if (obj6) {
28606 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28607 if (!SWIG_IsOK(res7)) {
28608 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28609 }
28610 if (!argp7) {
28611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28612 }
28613 arg7 = reinterpret_cast< wxValidator * >(argp7);
28614 }
28615 if (obj7) {
28616 {
28617 arg8 = wxString_in_helper(obj7);
28618 if (arg8 == NULL) SWIG_fail;
28619 temp8 = true;
28620 }
28621 }
28622 {
28623 PyThreadState* __tstate = wxPyBeginAllowThreads();
28624 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28625 wxPyEndAllowThreads(__tstate);
28626 if (PyErr_Occurred()) SWIG_fail;
28627 }
28628 {
28629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28630 }
28631 {
28632 if (temp8)
28633 delete arg8;
28634 }
28635 return resultobj;
28636 fail:
28637 {
28638 if (temp8)
28639 delete arg8;
28640 }
28641 return NULL;
28642 }
28643
28644
28645 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28646 PyObject *resultobj = 0;
28647 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28648 PyObject *arg2 = (PyObject *) 0 ;
28649 PyObject *arg3 = (PyObject *) 0 ;
28650 void *argp1 = 0 ;
28651 int res1 = 0 ;
28652 PyObject * obj0 = 0 ;
28653 PyObject * obj1 = 0 ;
28654 PyObject * obj2 = 0 ;
28655 char * kwnames[] = {
28656 (char *) "self",(char *) "self",(char *) "_class", NULL
28657 };
28658
28659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28661 if (!SWIG_IsOK(res1)) {
28662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28663 }
28664 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28665 arg2 = obj1;
28666 arg3 = obj2;
28667 {
28668 PyThreadState* __tstate = wxPyBeginAllowThreads();
28669 (arg1)->_setCallbackInfo(arg2,arg3);
28670 wxPyEndAllowThreads(__tstate);
28671 if (PyErr_Occurred()) SWIG_fail;
28672 }
28673 resultobj = SWIG_Py_Void();
28674 return resultobj;
28675 fail:
28676 return NULL;
28677 }
28678
28679
28680 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28681 PyObject *resultobj = 0;
28682 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28683 int arg2 ;
28684 wxListItem *result = 0 ;
28685 void *argp1 = 0 ;
28686 int res1 = 0 ;
28687 int val2 ;
28688 int ecode2 = 0 ;
28689 PyObject * obj0 = 0 ;
28690 PyObject * obj1 = 0 ;
28691 char * kwnames[] = {
28692 (char *) "self",(char *) "col", NULL
28693 };
28694
28695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28697 if (!SWIG_IsOK(res1)) {
28698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28699 }
28700 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28701 ecode2 = SWIG_AsVal_int(obj1, &val2);
28702 if (!SWIG_IsOK(ecode2)) {
28703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28704 }
28705 arg2 = static_cast< int >(val2);
28706 {
28707 PyThreadState* __tstate = wxPyBeginAllowThreads();
28708 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28709 wxPyEndAllowThreads(__tstate);
28710 if (PyErr_Occurred()) SWIG_fail;
28711 }
28712 {
28713 resultobj = wxPyMake_wxObject(result, (bool)0);
28714 }
28715 return resultobj;
28716 fail:
28717 return NULL;
28718 }
28719
28720
28721 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28722 PyObject *resultobj = 0;
28723 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28724 int arg2 ;
28725 wxListItem *arg3 = 0 ;
28726 bool result;
28727 void *argp1 = 0 ;
28728 int res1 = 0 ;
28729 int val2 ;
28730 int ecode2 = 0 ;
28731 void *argp3 = 0 ;
28732 int res3 = 0 ;
28733 PyObject * obj0 = 0 ;
28734 PyObject * obj1 = 0 ;
28735 PyObject * obj2 = 0 ;
28736 char * kwnames[] = {
28737 (char *) "self",(char *) "col",(char *) "item", NULL
28738 };
28739
28740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28742 if (!SWIG_IsOK(res1)) {
28743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28744 }
28745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28746 ecode2 = SWIG_AsVal_int(obj1, &val2);
28747 if (!SWIG_IsOK(ecode2)) {
28748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28749 }
28750 arg2 = static_cast< int >(val2);
28751 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28752 if (!SWIG_IsOK(res3)) {
28753 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28754 }
28755 if (!argp3) {
28756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28757 }
28758 arg3 = reinterpret_cast< wxListItem * >(argp3);
28759 {
28760 PyThreadState* __tstate = wxPyBeginAllowThreads();
28761 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28762 wxPyEndAllowThreads(__tstate);
28763 if (PyErr_Occurred()) SWIG_fail;
28764 }
28765 {
28766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28767 }
28768 return resultobj;
28769 fail:
28770 return NULL;
28771 }
28772
28773
28774 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28775 PyObject *resultobj = 0;
28776 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28777 int arg2 ;
28778 int result;
28779 void *argp1 = 0 ;
28780 int res1 = 0 ;
28781 int val2 ;
28782 int ecode2 = 0 ;
28783 PyObject * obj0 = 0 ;
28784 PyObject * obj1 = 0 ;
28785 char * kwnames[] = {
28786 (char *) "self",(char *) "col", NULL
28787 };
28788
28789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28791 if (!SWIG_IsOK(res1)) {
28792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28793 }
28794 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28795 ecode2 = SWIG_AsVal_int(obj1, &val2);
28796 if (!SWIG_IsOK(ecode2)) {
28797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28798 }
28799 arg2 = static_cast< int >(val2);
28800 {
28801 PyThreadState* __tstate = wxPyBeginAllowThreads();
28802 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28803 wxPyEndAllowThreads(__tstate);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 resultobj = SWIG_From_int(static_cast< int >(result));
28807 return resultobj;
28808 fail:
28809 return NULL;
28810 }
28811
28812
28813 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28814 PyObject *resultobj = 0;
28815 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28816 int arg2 ;
28817 int arg3 ;
28818 bool result;
28819 void *argp1 = 0 ;
28820 int res1 = 0 ;
28821 int val2 ;
28822 int ecode2 = 0 ;
28823 int val3 ;
28824 int ecode3 = 0 ;
28825 PyObject * obj0 = 0 ;
28826 PyObject * obj1 = 0 ;
28827 PyObject * obj2 = 0 ;
28828 char * kwnames[] = {
28829 (char *) "self",(char *) "col",(char *) "width", NULL
28830 };
28831
28832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28834 if (!SWIG_IsOK(res1)) {
28835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28836 }
28837 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28838 ecode2 = SWIG_AsVal_int(obj1, &val2);
28839 if (!SWIG_IsOK(ecode2)) {
28840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28841 }
28842 arg2 = static_cast< int >(val2);
28843 ecode3 = SWIG_AsVal_int(obj2, &val3);
28844 if (!SWIG_IsOK(ecode3)) {
28845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28846 }
28847 arg3 = static_cast< int >(val3);
28848 {
28849 PyThreadState* __tstate = wxPyBeginAllowThreads();
28850 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28851 wxPyEndAllowThreads(__tstate);
28852 if (PyErr_Occurred()) SWIG_fail;
28853 }
28854 {
28855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28856 }
28857 return resultobj;
28858 fail:
28859 return NULL;
28860 }
28861
28862
28863 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28864 PyObject *resultobj = 0;
28865 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28866 int result;
28867 void *argp1 = 0 ;
28868 int res1 = 0 ;
28869 PyObject *swig_obj[1] ;
28870
28871 if (!args) SWIG_fail;
28872 swig_obj[0] = args;
28873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28874 if (!SWIG_IsOK(res1)) {
28875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28876 }
28877 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28878 {
28879 PyThreadState* __tstate = wxPyBeginAllowThreads();
28880 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28881 wxPyEndAllowThreads(__tstate);
28882 if (PyErr_Occurred()) SWIG_fail;
28883 }
28884 resultobj = SWIG_From_int(static_cast< int >(result));
28885 return resultobj;
28886 fail:
28887 return NULL;
28888 }
28889
28890
28891 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28892 PyObject *resultobj = 0;
28893 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28894 wxRect result;
28895 void *argp1 = 0 ;
28896 int res1 = 0 ;
28897 PyObject *swig_obj[1] ;
28898
28899 if (!args) SWIG_fail;
28900 swig_obj[0] = args;
28901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28902 if (!SWIG_IsOK(res1)) {
28903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28904 }
28905 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28906 {
28907 PyThreadState* __tstate = wxPyBeginAllowThreads();
28908 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28909 wxPyEndAllowThreads(__tstate);
28910 if (PyErr_Occurred()) SWIG_fail;
28911 }
28912 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28913 return resultobj;
28914 fail:
28915 return NULL;
28916 }
28917
28918
28919 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28920 PyObject *resultobj = 0;
28921 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28922 wxTextCtrl *result = 0 ;
28923 void *argp1 = 0 ;
28924 int res1 = 0 ;
28925 PyObject *swig_obj[1] ;
28926
28927 if (!args) SWIG_fail;
28928 swig_obj[0] = args;
28929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28930 if (!SWIG_IsOK(res1)) {
28931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28932 }
28933 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28934 {
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 {
28941 resultobj = wxPyMake_wxObject(result, 0);
28942 }
28943 return resultobj;
28944 fail:
28945 return NULL;
28946 }
28947
28948
28949 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28950 PyObject *resultobj = 0;
28951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28952 long arg2 ;
28953 int arg3 = (int) 0 ;
28954 wxListItem *result = 0 ;
28955 void *argp1 = 0 ;
28956 int res1 = 0 ;
28957 long val2 ;
28958 int ecode2 = 0 ;
28959 int val3 ;
28960 int ecode3 = 0 ;
28961 PyObject * obj0 = 0 ;
28962 PyObject * obj1 = 0 ;
28963 PyObject * obj2 = 0 ;
28964 char * kwnames[] = {
28965 (char *) "self",(char *) "itemId",(char *) "col", NULL
28966 };
28967
28968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28970 if (!SWIG_IsOK(res1)) {
28971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28972 }
28973 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28974 ecode2 = SWIG_AsVal_long(obj1, &val2);
28975 if (!SWIG_IsOK(ecode2)) {
28976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28977 }
28978 arg2 = static_cast< long >(val2);
28979 if (obj2) {
28980 ecode3 = SWIG_AsVal_int(obj2, &val3);
28981 if (!SWIG_IsOK(ecode3)) {
28982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28983 }
28984 arg3 = static_cast< int >(val3);
28985 }
28986 {
28987 PyThreadState* __tstate = wxPyBeginAllowThreads();
28988 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28989 wxPyEndAllowThreads(__tstate);
28990 if (PyErr_Occurred()) SWIG_fail;
28991 }
28992 {
28993 resultobj = wxPyMake_wxObject(result, (bool)0);
28994 }
28995 return resultobj;
28996 fail:
28997 return NULL;
28998 }
28999
29000
29001 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29002 PyObject *resultobj = 0;
29003 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29004 wxListItem *arg2 = 0 ;
29005 bool result;
29006 void *argp1 = 0 ;
29007 int res1 = 0 ;
29008 void *argp2 = 0 ;
29009 int res2 = 0 ;
29010 PyObject * obj0 = 0 ;
29011 PyObject * obj1 = 0 ;
29012 char * kwnames[] = {
29013 (char *) "self",(char *) "info", NULL
29014 };
29015
29016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29018 if (!SWIG_IsOK(res1)) {
29019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29020 }
29021 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29023 if (!SWIG_IsOK(res2)) {
29024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29025 }
29026 if (!argp2) {
29027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29028 }
29029 arg2 = reinterpret_cast< wxListItem * >(argp2);
29030 {
29031 PyThreadState* __tstate = wxPyBeginAllowThreads();
29032 result = (bool)(arg1)->SetItem(*arg2);
29033 wxPyEndAllowThreads(__tstate);
29034 if (PyErr_Occurred()) SWIG_fail;
29035 }
29036 {
29037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29038 }
29039 return resultobj;
29040 fail:
29041 return NULL;
29042 }
29043
29044
29045 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29046 PyObject *resultobj = 0;
29047 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29048 long arg2 ;
29049 int arg3 ;
29050 wxString *arg4 = 0 ;
29051 int arg5 = (int) -1 ;
29052 long result;
29053 void *argp1 = 0 ;
29054 int res1 = 0 ;
29055 long val2 ;
29056 int ecode2 = 0 ;
29057 int val3 ;
29058 int ecode3 = 0 ;
29059 bool temp4 = false ;
29060 int val5 ;
29061 int ecode5 = 0 ;
29062 PyObject * obj0 = 0 ;
29063 PyObject * obj1 = 0 ;
29064 PyObject * obj2 = 0 ;
29065 PyObject * obj3 = 0 ;
29066 PyObject * obj4 = 0 ;
29067 char * kwnames[] = {
29068 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29069 };
29070
29071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29073 if (!SWIG_IsOK(res1)) {
29074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29075 }
29076 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29077 ecode2 = SWIG_AsVal_long(obj1, &val2);
29078 if (!SWIG_IsOK(ecode2)) {
29079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29080 }
29081 arg2 = static_cast< long >(val2);
29082 ecode3 = SWIG_AsVal_int(obj2, &val3);
29083 if (!SWIG_IsOK(ecode3)) {
29084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29085 }
29086 arg3 = static_cast< int >(val3);
29087 {
29088 arg4 = wxString_in_helper(obj3);
29089 if (arg4 == NULL) SWIG_fail;
29090 temp4 = true;
29091 }
29092 if (obj4) {
29093 ecode5 = SWIG_AsVal_int(obj4, &val5);
29094 if (!SWIG_IsOK(ecode5)) {
29095 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29096 }
29097 arg5 = static_cast< int >(val5);
29098 }
29099 {
29100 PyThreadState* __tstate = wxPyBeginAllowThreads();
29101 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29102 wxPyEndAllowThreads(__tstate);
29103 if (PyErr_Occurred()) SWIG_fail;
29104 }
29105 resultobj = SWIG_From_long(static_cast< long >(result));
29106 {
29107 if (temp4)
29108 delete arg4;
29109 }
29110 return resultobj;
29111 fail:
29112 {
29113 if (temp4)
29114 delete arg4;
29115 }
29116 return NULL;
29117 }
29118
29119
29120 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29121 PyObject *resultobj = 0;
29122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29123 long arg2 ;
29124 long arg3 ;
29125 int result;
29126 void *argp1 = 0 ;
29127 int res1 = 0 ;
29128 long val2 ;
29129 int ecode2 = 0 ;
29130 long val3 ;
29131 int ecode3 = 0 ;
29132 PyObject * obj0 = 0 ;
29133 PyObject * obj1 = 0 ;
29134 PyObject * obj2 = 0 ;
29135 char * kwnames[] = {
29136 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29137 };
29138
29139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29141 if (!SWIG_IsOK(res1)) {
29142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29143 }
29144 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29145 ecode2 = SWIG_AsVal_long(obj1, &val2);
29146 if (!SWIG_IsOK(ecode2)) {
29147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29148 }
29149 arg2 = static_cast< long >(val2);
29150 ecode3 = SWIG_AsVal_long(obj2, &val3);
29151 if (!SWIG_IsOK(ecode3)) {
29152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29153 }
29154 arg3 = static_cast< long >(val3);
29155 {
29156 PyThreadState* __tstate = wxPyBeginAllowThreads();
29157 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29158 wxPyEndAllowThreads(__tstate);
29159 if (PyErr_Occurred()) SWIG_fail;
29160 }
29161 resultobj = SWIG_From_int(static_cast< int >(result));
29162 return resultobj;
29163 fail:
29164 return NULL;
29165 }
29166
29167
29168 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29169 PyObject *resultobj = 0;
29170 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29171 long arg2 ;
29172 long arg3 ;
29173 long arg4 ;
29174 bool result;
29175 void *argp1 = 0 ;
29176 int res1 = 0 ;
29177 long val2 ;
29178 int ecode2 = 0 ;
29179 long val3 ;
29180 int ecode3 = 0 ;
29181 long val4 ;
29182 int ecode4 = 0 ;
29183 PyObject * obj0 = 0 ;
29184 PyObject * obj1 = 0 ;
29185 PyObject * obj2 = 0 ;
29186 PyObject * obj3 = 0 ;
29187 char * kwnames[] = {
29188 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29189 };
29190
29191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29193 if (!SWIG_IsOK(res1)) {
29194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29195 }
29196 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29197 ecode2 = SWIG_AsVal_long(obj1, &val2);
29198 if (!SWIG_IsOK(ecode2)) {
29199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29200 }
29201 arg2 = static_cast< long >(val2);
29202 ecode3 = SWIG_AsVal_long(obj2, &val3);
29203 if (!SWIG_IsOK(ecode3)) {
29204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29205 }
29206 arg3 = static_cast< long >(val3);
29207 ecode4 = SWIG_AsVal_long(obj3, &val4);
29208 if (!SWIG_IsOK(ecode4)) {
29209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29210 }
29211 arg4 = static_cast< long >(val4);
29212 {
29213 PyThreadState* __tstate = wxPyBeginAllowThreads();
29214 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29215 wxPyEndAllowThreads(__tstate);
29216 if (PyErr_Occurred()) SWIG_fail;
29217 }
29218 {
29219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29220 }
29221 return resultobj;
29222 fail:
29223 return NULL;
29224 }
29225
29226
29227 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29228 PyObject *resultobj = 0;
29229 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29230 long arg2 ;
29231 int arg3 ;
29232 int arg4 = (int) -1 ;
29233 bool result;
29234 void *argp1 = 0 ;
29235 int res1 = 0 ;
29236 long val2 ;
29237 int ecode2 = 0 ;
29238 int val3 ;
29239 int ecode3 = 0 ;
29240 int val4 ;
29241 int ecode4 = 0 ;
29242 PyObject * obj0 = 0 ;
29243 PyObject * obj1 = 0 ;
29244 PyObject * obj2 = 0 ;
29245 PyObject * obj3 = 0 ;
29246 char * kwnames[] = {
29247 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29248 };
29249
29250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29252 if (!SWIG_IsOK(res1)) {
29253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29254 }
29255 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29256 ecode2 = SWIG_AsVal_long(obj1, &val2);
29257 if (!SWIG_IsOK(ecode2)) {
29258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29259 }
29260 arg2 = static_cast< long >(val2);
29261 ecode3 = SWIG_AsVal_int(obj2, &val3);
29262 if (!SWIG_IsOK(ecode3)) {
29263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29264 }
29265 arg3 = static_cast< int >(val3);
29266 if (obj3) {
29267 ecode4 = SWIG_AsVal_int(obj3, &val4);
29268 if (!SWIG_IsOK(ecode4)) {
29269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29270 }
29271 arg4 = static_cast< int >(val4);
29272 }
29273 {
29274 PyThreadState* __tstate = wxPyBeginAllowThreads();
29275 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29276 wxPyEndAllowThreads(__tstate);
29277 if (PyErr_Occurred()) SWIG_fail;
29278 }
29279 {
29280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29281 }
29282 return resultobj;
29283 fail:
29284 return NULL;
29285 }
29286
29287
29288 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29289 PyObject *resultobj = 0;
29290 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29291 long arg2 ;
29292 long arg3 ;
29293 int arg4 ;
29294 bool result;
29295 void *argp1 = 0 ;
29296 int res1 = 0 ;
29297 long val2 ;
29298 int ecode2 = 0 ;
29299 long val3 ;
29300 int ecode3 = 0 ;
29301 int val4 ;
29302 int ecode4 = 0 ;
29303 PyObject * obj0 = 0 ;
29304 PyObject * obj1 = 0 ;
29305 PyObject * obj2 = 0 ;
29306 PyObject * obj3 = 0 ;
29307 char * kwnames[] = {
29308 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29309 };
29310
29311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29313 if (!SWIG_IsOK(res1)) {
29314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29315 }
29316 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29317 ecode2 = SWIG_AsVal_long(obj1, &val2);
29318 if (!SWIG_IsOK(ecode2)) {
29319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29320 }
29321 arg2 = static_cast< long >(val2);
29322 ecode3 = SWIG_AsVal_long(obj2, &val3);
29323 if (!SWIG_IsOK(ecode3)) {
29324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29325 }
29326 arg3 = static_cast< long >(val3);
29327 ecode4 = SWIG_AsVal_int(obj3, &val4);
29328 if (!SWIG_IsOK(ecode4)) {
29329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29330 }
29331 arg4 = static_cast< int >(val4);
29332 {
29333 PyThreadState* __tstate = wxPyBeginAllowThreads();
29334 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29335 wxPyEndAllowThreads(__tstate);
29336 if (PyErr_Occurred()) SWIG_fail;
29337 }
29338 {
29339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29340 }
29341 return resultobj;
29342 fail:
29343 return NULL;
29344 }
29345
29346
29347 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29348 PyObject *resultobj = 0;
29349 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29350 long arg2 ;
29351 wxString result;
29352 void *argp1 = 0 ;
29353 int res1 = 0 ;
29354 long val2 ;
29355 int ecode2 = 0 ;
29356 PyObject * obj0 = 0 ;
29357 PyObject * obj1 = 0 ;
29358 char * kwnames[] = {
29359 (char *) "self",(char *) "item", NULL
29360 };
29361
29362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29364 if (!SWIG_IsOK(res1)) {
29365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29366 }
29367 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29368 ecode2 = SWIG_AsVal_long(obj1, &val2);
29369 if (!SWIG_IsOK(ecode2)) {
29370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29371 }
29372 arg2 = static_cast< long >(val2);
29373 {
29374 PyThreadState* __tstate = wxPyBeginAllowThreads();
29375 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29376 wxPyEndAllowThreads(__tstate);
29377 if (PyErr_Occurred()) SWIG_fail;
29378 }
29379 {
29380 #if wxUSE_UNICODE
29381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29382 #else
29383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29384 #endif
29385 }
29386 return resultobj;
29387 fail:
29388 return NULL;
29389 }
29390
29391
29392 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29393 PyObject *resultobj = 0;
29394 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29395 long arg2 ;
29396 wxString *arg3 = 0 ;
29397 void *argp1 = 0 ;
29398 int res1 = 0 ;
29399 long val2 ;
29400 int ecode2 = 0 ;
29401 bool temp3 = false ;
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 char * kwnames[] = {
29406 (char *) "self",(char *) "item",(char *) "str", NULL
29407 };
29408
29409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29411 if (!SWIG_IsOK(res1)) {
29412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29413 }
29414 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29415 ecode2 = SWIG_AsVal_long(obj1, &val2);
29416 if (!SWIG_IsOK(ecode2)) {
29417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29418 }
29419 arg2 = static_cast< long >(val2);
29420 {
29421 arg3 = wxString_in_helper(obj2);
29422 if (arg3 == NULL) SWIG_fail;
29423 temp3 = true;
29424 }
29425 {
29426 PyThreadState* __tstate = wxPyBeginAllowThreads();
29427 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29428 wxPyEndAllowThreads(__tstate);
29429 if (PyErr_Occurred()) SWIG_fail;
29430 }
29431 resultobj = SWIG_Py_Void();
29432 {
29433 if (temp3)
29434 delete arg3;
29435 }
29436 return resultobj;
29437 fail:
29438 {
29439 if (temp3)
29440 delete arg3;
29441 }
29442 return NULL;
29443 }
29444
29445
29446 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29447 PyObject *resultobj = 0;
29448 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29449 long arg2 ;
29450 long result;
29451 void *argp1 = 0 ;
29452 int res1 = 0 ;
29453 long val2 ;
29454 int ecode2 = 0 ;
29455 PyObject * obj0 = 0 ;
29456 PyObject * obj1 = 0 ;
29457 char * kwnames[] = {
29458 (char *) "self",(char *) "item", NULL
29459 };
29460
29461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29463 if (!SWIG_IsOK(res1)) {
29464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29465 }
29466 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29467 ecode2 = SWIG_AsVal_long(obj1, &val2);
29468 if (!SWIG_IsOK(ecode2)) {
29469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29470 }
29471 arg2 = static_cast< long >(val2);
29472 {
29473 PyThreadState* __tstate = wxPyBeginAllowThreads();
29474 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29475 wxPyEndAllowThreads(__tstate);
29476 if (PyErr_Occurred()) SWIG_fail;
29477 }
29478 resultobj = SWIG_From_long(static_cast< long >(result));
29479 return resultobj;
29480 fail:
29481 return NULL;
29482 }
29483
29484
29485 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29486 PyObject *resultobj = 0;
29487 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29488 long arg2 ;
29489 long arg3 ;
29490 bool result;
29491 void *argp1 = 0 ;
29492 int res1 = 0 ;
29493 long val2 ;
29494 int ecode2 = 0 ;
29495 long val3 ;
29496 int ecode3 = 0 ;
29497 PyObject * obj0 = 0 ;
29498 PyObject * obj1 = 0 ;
29499 PyObject * obj2 = 0 ;
29500 char * kwnames[] = {
29501 (char *) "self",(char *) "item",(char *) "data", NULL
29502 };
29503
29504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29506 if (!SWIG_IsOK(res1)) {
29507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29508 }
29509 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29510 ecode2 = SWIG_AsVal_long(obj1, &val2);
29511 if (!SWIG_IsOK(ecode2)) {
29512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29513 }
29514 arg2 = static_cast< long >(val2);
29515 ecode3 = SWIG_AsVal_long(obj2, &val3);
29516 if (!SWIG_IsOK(ecode3)) {
29517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29518 }
29519 arg3 = static_cast< long >(val3);
29520 {
29521 PyThreadState* __tstate = wxPyBeginAllowThreads();
29522 result = (bool)(arg1)->SetItemData(arg2,arg3);
29523 wxPyEndAllowThreads(__tstate);
29524 if (PyErr_Occurred()) SWIG_fail;
29525 }
29526 {
29527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29528 }
29529 return resultobj;
29530 fail:
29531 return NULL;
29532 }
29533
29534
29535 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29536 PyObject *resultobj = 0;
29537 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29538 long arg2 ;
29539 wxPoint result;
29540 void *argp1 = 0 ;
29541 int res1 = 0 ;
29542 long val2 ;
29543 int ecode2 = 0 ;
29544 PyObject * obj0 = 0 ;
29545 PyObject * obj1 = 0 ;
29546 char * kwnames[] = {
29547 (char *) "self",(char *) "item", NULL
29548 };
29549
29550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29552 if (!SWIG_IsOK(res1)) {
29553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29554 }
29555 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29556 ecode2 = SWIG_AsVal_long(obj1, &val2);
29557 if (!SWIG_IsOK(ecode2)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29559 }
29560 arg2 = static_cast< long >(val2);
29561 {
29562 PyThreadState* __tstate = wxPyBeginAllowThreads();
29563 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29564 wxPyEndAllowThreads(__tstate);
29565 if (PyErr_Occurred()) SWIG_fail;
29566 }
29567 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29568 return resultobj;
29569 fail:
29570 return NULL;
29571 }
29572
29573
29574 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29575 PyObject *resultobj = 0;
29576 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29577 long arg2 ;
29578 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29579 wxRect result;
29580 void *argp1 = 0 ;
29581 int res1 = 0 ;
29582 long val2 ;
29583 int ecode2 = 0 ;
29584 int val3 ;
29585 int ecode3 = 0 ;
29586 PyObject * obj0 = 0 ;
29587 PyObject * obj1 = 0 ;
29588 PyObject * obj2 = 0 ;
29589 char * kwnames[] = {
29590 (char *) "self",(char *) "item",(char *) "code", NULL
29591 };
29592
29593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29595 if (!SWIG_IsOK(res1)) {
29596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29597 }
29598 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29599 ecode2 = SWIG_AsVal_long(obj1, &val2);
29600 if (!SWIG_IsOK(ecode2)) {
29601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29602 }
29603 arg2 = static_cast< long >(val2);
29604 if (obj2) {
29605 ecode3 = SWIG_AsVal_int(obj2, &val3);
29606 if (!SWIG_IsOK(ecode3)) {
29607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29608 }
29609 arg3 = static_cast< int >(val3);
29610 }
29611 {
29612 PyThreadState* __tstate = wxPyBeginAllowThreads();
29613 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29614 wxPyEndAllowThreads(__tstate);
29615 if (PyErr_Occurred()) SWIG_fail;
29616 }
29617 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29618 return resultobj;
29619 fail:
29620 return NULL;
29621 }
29622
29623
29624 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29625 PyObject *resultobj = 0;
29626 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29627 long arg2 ;
29628 wxPoint *arg3 = 0 ;
29629 bool result;
29630 void *argp1 = 0 ;
29631 int res1 = 0 ;
29632 long val2 ;
29633 int ecode2 = 0 ;
29634 wxPoint temp3 ;
29635 PyObject * obj0 = 0 ;
29636 PyObject * obj1 = 0 ;
29637 PyObject * obj2 = 0 ;
29638 char * kwnames[] = {
29639 (char *) "self",(char *) "item",(char *) "pos", NULL
29640 };
29641
29642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29644 if (!SWIG_IsOK(res1)) {
29645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29646 }
29647 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29648 ecode2 = SWIG_AsVal_long(obj1, &val2);
29649 if (!SWIG_IsOK(ecode2)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29651 }
29652 arg2 = static_cast< long >(val2);
29653 {
29654 arg3 = &temp3;
29655 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29656 }
29657 {
29658 PyThreadState* __tstate = wxPyBeginAllowThreads();
29659 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29660 wxPyEndAllowThreads(__tstate);
29661 if (PyErr_Occurred()) SWIG_fail;
29662 }
29663 {
29664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29665 }
29666 return resultobj;
29667 fail:
29668 return NULL;
29669 }
29670
29671
29672 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29673 PyObject *resultobj = 0;
29674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29675 int result;
29676 void *argp1 = 0 ;
29677 int res1 = 0 ;
29678 PyObject *swig_obj[1] ;
29679
29680 if (!args) SWIG_fail;
29681 swig_obj[0] = args;
29682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29683 if (!SWIG_IsOK(res1)) {
29684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29685 }
29686 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29687 {
29688 PyThreadState* __tstate = wxPyBeginAllowThreads();
29689 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29690 wxPyEndAllowThreads(__tstate);
29691 if (PyErr_Occurred()) SWIG_fail;
29692 }
29693 resultobj = SWIG_From_int(static_cast< int >(result));
29694 return resultobj;
29695 fail:
29696 return NULL;
29697 }
29698
29699
29700 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29701 PyObject *resultobj = 0;
29702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29703 int result;
29704 void *argp1 = 0 ;
29705 int res1 = 0 ;
29706 PyObject *swig_obj[1] ;
29707
29708 if (!args) SWIG_fail;
29709 swig_obj[0] = args;
29710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29711 if (!SWIG_IsOK(res1)) {
29712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29713 }
29714 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29715 {
29716 PyThreadState* __tstate = wxPyBeginAllowThreads();
29717 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29718 wxPyEndAllowThreads(__tstate);
29719 if (PyErr_Occurred()) SWIG_fail;
29720 }
29721 resultobj = SWIG_From_int(static_cast< int >(result));
29722 return resultobj;
29723 fail:
29724 return NULL;
29725 }
29726
29727
29728 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29729 PyObject *resultobj = 0;
29730 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29731 wxSize result;
29732 void *argp1 = 0 ;
29733 int res1 = 0 ;
29734 PyObject *swig_obj[1] ;
29735
29736 if (!args) SWIG_fail;
29737 swig_obj[0] = args;
29738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29739 if (!SWIG_IsOK(res1)) {
29740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29741 }
29742 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29743 {
29744 PyThreadState* __tstate = wxPyBeginAllowThreads();
29745 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29746 wxPyEndAllowThreads(__tstate);
29747 if (PyErr_Occurred()) SWIG_fail;
29748 }
29749 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29750 return resultobj;
29751 fail:
29752 return NULL;
29753 }
29754
29755
29756 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29757 PyObject *resultobj = 0;
29758 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29759 int arg2 ;
29760 bool arg3 = (bool) false ;
29761 void *argp1 = 0 ;
29762 int res1 = 0 ;
29763 int val2 ;
29764 int ecode2 = 0 ;
29765 bool val3 ;
29766 int ecode3 = 0 ;
29767 PyObject * obj0 = 0 ;
29768 PyObject * obj1 = 0 ;
29769 PyObject * obj2 = 0 ;
29770 char * kwnames[] = {
29771 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29772 };
29773
29774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29776 if (!SWIG_IsOK(res1)) {
29777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29778 }
29779 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29780 ecode2 = SWIG_AsVal_int(obj1, &val2);
29781 if (!SWIG_IsOK(ecode2)) {
29782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29783 }
29784 arg2 = static_cast< int >(val2);
29785 if (obj2) {
29786 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29787 if (!SWIG_IsOK(ecode3)) {
29788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29789 }
29790 arg3 = static_cast< bool >(val3);
29791 }
29792 {
29793 PyThreadState* __tstate = wxPyBeginAllowThreads();
29794 (arg1)->SetItemSpacing(arg2,arg3);
29795 wxPyEndAllowThreads(__tstate);
29796 if (PyErr_Occurred()) SWIG_fail;
29797 }
29798 resultobj = SWIG_Py_Void();
29799 return resultobj;
29800 fail:
29801 return NULL;
29802 }
29803
29804
29805 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29806 PyObject *resultobj = 0;
29807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29808 int result;
29809 void *argp1 = 0 ;
29810 int res1 = 0 ;
29811 PyObject *swig_obj[1] ;
29812
29813 if (!args) SWIG_fail;
29814 swig_obj[0] = args;
29815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29816 if (!SWIG_IsOK(res1)) {
29817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29818 }
29819 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29820 {
29821 PyThreadState* __tstate = wxPyBeginAllowThreads();
29822 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29823 wxPyEndAllowThreads(__tstate);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 resultobj = SWIG_From_int(static_cast< int >(result));
29827 return resultobj;
29828 fail:
29829 return NULL;
29830 }
29831
29832
29833 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29834 PyObject *resultobj = 0;
29835 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29836 wxColour result;
29837 void *argp1 = 0 ;
29838 int res1 = 0 ;
29839 PyObject *swig_obj[1] ;
29840
29841 if (!args) SWIG_fail;
29842 swig_obj[0] = args;
29843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29844 if (!SWIG_IsOK(res1)) {
29845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29846 }
29847 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29848 {
29849 PyThreadState* __tstate = wxPyBeginAllowThreads();
29850 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29851 wxPyEndAllowThreads(__tstate);
29852 if (PyErr_Occurred()) SWIG_fail;
29853 }
29854 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29855 return resultobj;
29856 fail:
29857 return NULL;
29858 }
29859
29860
29861 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29862 PyObject *resultobj = 0;
29863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29864 wxColour *arg2 = 0 ;
29865 void *argp1 = 0 ;
29866 int res1 = 0 ;
29867 wxColour temp2 ;
29868 PyObject * obj0 = 0 ;
29869 PyObject * obj1 = 0 ;
29870 char * kwnames[] = {
29871 (char *) "self",(char *) "col", NULL
29872 };
29873
29874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29876 if (!SWIG_IsOK(res1)) {
29877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29878 }
29879 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29880 {
29881 arg2 = &temp2;
29882 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29883 }
29884 {
29885 PyThreadState* __tstate = wxPyBeginAllowThreads();
29886 (arg1)->SetTextColour((wxColour const &)*arg2);
29887 wxPyEndAllowThreads(__tstate);
29888 if (PyErr_Occurred()) SWIG_fail;
29889 }
29890 resultobj = SWIG_Py_Void();
29891 return resultobj;
29892 fail:
29893 return NULL;
29894 }
29895
29896
29897 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29898 PyObject *resultobj = 0;
29899 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29900 long result;
29901 void *argp1 = 0 ;
29902 int res1 = 0 ;
29903 PyObject *swig_obj[1] ;
29904
29905 if (!args) SWIG_fail;
29906 swig_obj[0] = args;
29907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29908 if (!SWIG_IsOK(res1)) {
29909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29910 }
29911 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29912 {
29913 PyThreadState* __tstate = wxPyBeginAllowThreads();
29914 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29915 wxPyEndAllowThreads(__tstate);
29916 if (PyErr_Occurred()) SWIG_fail;
29917 }
29918 resultobj = SWIG_From_long(static_cast< long >(result));
29919 return resultobj;
29920 fail:
29921 return NULL;
29922 }
29923
29924
29925 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29926 PyObject *resultobj = 0;
29927 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29928 long arg2 ;
29929 bool arg3 = (bool) true ;
29930 void *argp1 = 0 ;
29931 int res1 = 0 ;
29932 long val2 ;
29933 int ecode2 = 0 ;
29934 bool val3 ;
29935 int ecode3 = 0 ;
29936 PyObject * obj0 = 0 ;
29937 PyObject * obj1 = 0 ;
29938 PyObject * obj2 = 0 ;
29939 char * kwnames[] = {
29940 (char *) "self",(char *) "style",(char *) "add", NULL
29941 };
29942
29943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29945 if (!SWIG_IsOK(res1)) {
29946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29947 }
29948 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29949 ecode2 = SWIG_AsVal_long(obj1, &val2);
29950 if (!SWIG_IsOK(ecode2)) {
29951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29952 }
29953 arg2 = static_cast< long >(val2);
29954 if (obj2) {
29955 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29956 if (!SWIG_IsOK(ecode3)) {
29957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29958 }
29959 arg3 = static_cast< bool >(val3);
29960 }
29961 {
29962 PyThreadState* __tstate = wxPyBeginAllowThreads();
29963 (arg1)->SetSingleStyle(arg2,arg3);
29964 wxPyEndAllowThreads(__tstate);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 }
29967 resultobj = SWIG_Py_Void();
29968 return resultobj;
29969 fail:
29970 return NULL;
29971 }
29972
29973
29974 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29975 PyObject *resultobj = 0;
29976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29977 long arg2 ;
29978 int arg3 = (int) wxLIST_NEXT_ALL ;
29979 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29980 long result;
29981 void *argp1 = 0 ;
29982 int res1 = 0 ;
29983 long val2 ;
29984 int ecode2 = 0 ;
29985 int val3 ;
29986 int ecode3 = 0 ;
29987 int val4 ;
29988 int ecode4 = 0 ;
29989 PyObject * obj0 = 0 ;
29990 PyObject * obj1 = 0 ;
29991 PyObject * obj2 = 0 ;
29992 PyObject * obj3 = 0 ;
29993 char * kwnames[] = {
29994 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29995 };
29996
29997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29999 if (!SWIG_IsOK(res1)) {
30000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30001 }
30002 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30003 ecode2 = SWIG_AsVal_long(obj1, &val2);
30004 if (!SWIG_IsOK(ecode2)) {
30005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30006 }
30007 arg2 = static_cast< long >(val2);
30008 if (obj2) {
30009 ecode3 = SWIG_AsVal_int(obj2, &val3);
30010 if (!SWIG_IsOK(ecode3)) {
30011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30012 }
30013 arg3 = static_cast< int >(val3);
30014 }
30015 if (obj3) {
30016 ecode4 = SWIG_AsVal_int(obj3, &val4);
30017 if (!SWIG_IsOK(ecode4)) {
30018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30019 }
30020 arg4 = static_cast< int >(val4);
30021 }
30022 {
30023 PyThreadState* __tstate = wxPyBeginAllowThreads();
30024 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30025 wxPyEndAllowThreads(__tstate);
30026 if (PyErr_Occurred()) SWIG_fail;
30027 }
30028 resultobj = SWIG_From_long(static_cast< long >(result));
30029 return resultobj;
30030 fail:
30031 return NULL;
30032 }
30033
30034
30035 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30036 PyObject *resultobj = 0;
30037 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30038 int arg2 ;
30039 wxImageList *result = 0 ;
30040 void *argp1 = 0 ;
30041 int res1 = 0 ;
30042 int val2 ;
30043 int ecode2 = 0 ;
30044 PyObject * obj0 = 0 ;
30045 PyObject * obj1 = 0 ;
30046 char * kwnames[] = {
30047 (char *) "self",(char *) "which", NULL
30048 };
30049
30050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30052 if (!SWIG_IsOK(res1)) {
30053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30054 }
30055 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30056 ecode2 = SWIG_AsVal_int(obj1, &val2);
30057 if (!SWIG_IsOK(ecode2)) {
30058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30059 }
30060 arg2 = static_cast< int >(val2);
30061 {
30062 PyThreadState* __tstate = wxPyBeginAllowThreads();
30063 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30064 wxPyEndAllowThreads(__tstate);
30065 if (PyErr_Occurred()) SWIG_fail;
30066 }
30067 {
30068 resultobj = wxPyMake_wxObject(result, (bool)0);
30069 }
30070 return resultobj;
30071 fail:
30072 return NULL;
30073 }
30074
30075
30076 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30077 PyObject *resultobj = 0;
30078 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30079 wxImageList *arg2 = (wxImageList *) 0 ;
30080 int arg3 ;
30081 void *argp1 = 0 ;
30082 int res1 = 0 ;
30083 void *argp2 = 0 ;
30084 int res2 = 0 ;
30085 int val3 ;
30086 int ecode3 = 0 ;
30087 PyObject * obj0 = 0 ;
30088 PyObject * obj1 = 0 ;
30089 PyObject * obj2 = 0 ;
30090 char * kwnames[] = {
30091 (char *) "self",(char *) "imageList",(char *) "which", NULL
30092 };
30093
30094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30096 if (!SWIG_IsOK(res1)) {
30097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30098 }
30099 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30101 if (!SWIG_IsOK(res2)) {
30102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30103 }
30104 arg2 = reinterpret_cast< wxImageList * >(argp2);
30105 ecode3 = SWIG_AsVal_int(obj2, &val3);
30106 if (!SWIG_IsOK(ecode3)) {
30107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30108 }
30109 arg3 = static_cast< int >(val3);
30110 {
30111 PyThreadState* __tstate = wxPyBeginAllowThreads();
30112 (arg1)->SetImageList(arg2,arg3);
30113 wxPyEndAllowThreads(__tstate);
30114 if (PyErr_Occurred()) SWIG_fail;
30115 }
30116 resultobj = SWIG_Py_Void();
30117 return resultobj;
30118 fail:
30119 return NULL;
30120 }
30121
30122
30123 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30124 PyObject *resultobj = 0;
30125 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30126 wxImageList *arg2 = (wxImageList *) 0 ;
30127 int arg3 ;
30128 void *argp1 = 0 ;
30129 int res1 = 0 ;
30130 int res2 = 0 ;
30131 int val3 ;
30132 int ecode3 = 0 ;
30133 PyObject * obj0 = 0 ;
30134 PyObject * obj1 = 0 ;
30135 PyObject * obj2 = 0 ;
30136 char * kwnames[] = {
30137 (char *) "self",(char *) "imageList",(char *) "which", NULL
30138 };
30139
30140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30142 if (!SWIG_IsOK(res1)) {
30143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30144 }
30145 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30146 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30147 if (!SWIG_IsOK(res2)) {
30148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30149 }
30150 ecode3 = SWIG_AsVal_int(obj2, &val3);
30151 if (!SWIG_IsOK(ecode3)) {
30152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30153 }
30154 arg3 = static_cast< int >(val3);
30155 {
30156 PyThreadState* __tstate = wxPyBeginAllowThreads();
30157 (arg1)->AssignImageList(arg2,arg3);
30158 wxPyEndAllowThreads(__tstate);
30159 if (PyErr_Occurred()) SWIG_fail;
30160 }
30161 resultobj = SWIG_Py_Void();
30162 return resultobj;
30163 fail:
30164 return NULL;
30165 }
30166
30167
30168 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30169 PyObject *resultobj = 0;
30170 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30171 bool result;
30172 void *argp1 = 0 ;
30173 int res1 = 0 ;
30174 PyObject *swig_obj[1] ;
30175
30176 if (!args) SWIG_fail;
30177 swig_obj[0] = args;
30178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30179 if (!SWIG_IsOK(res1)) {
30180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30181 }
30182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30183 {
30184 PyThreadState* __tstate = wxPyBeginAllowThreads();
30185 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30186 wxPyEndAllowThreads(__tstate);
30187 if (PyErr_Occurred()) SWIG_fail;
30188 }
30189 {
30190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30191 }
30192 return resultobj;
30193 fail:
30194 return NULL;
30195 }
30196
30197
30198 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30199 PyObject *resultobj = 0;
30200 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30201 bool result;
30202 void *argp1 = 0 ;
30203 int res1 = 0 ;
30204 PyObject *swig_obj[1] ;
30205
30206 if (!args) SWIG_fail;
30207 swig_obj[0] = args;
30208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30209 if (!SWIG_IsOK(res1)) {
30210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30211 }
30212 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30213 {
30214 PyThreadState* __tstate = wxPyBeginAllowThreads();
30215 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30216 wxPyEndAllowThreads(__tstate);
30217 if (PyErr_Occurred()) SWIG_fail;
30218 }
30219 {
30220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30221 }
30222 return resultobj;
30223 fail:
30224 return NULL;
30225 }
30226
30227
30228 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30229 PyObject *resultobj = 0;
30230 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30231 long arg2 ;
30232 void *argp1 = 0 ;
30233 int res1 = 0 ;
30234 long val2 ;
30235 int ecode2 = 0 ;
30236 PyObject * obj0 = 0 ;
30237 PyObject * obj1 = 0 ;
30238 char * kwnames[] = {
30239 (char *) "self",(char *) "item", NULL
30240 };
30241
30242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30244 if (!SWIG_IsOK(res1)) {
30245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30246 }
30247 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30248 ecode2 = SWIG_AsVal_long(obj1, &val2);
30249 if (!SWIG_IsOK(ecode2)) {
30250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30251 }
30252 arg2 = static_cast< long >(val2);
30253 {
30254 PyThreadState* __tstate = wxPyBeginAllowThreads();
30255 (arg1)->RefreshItem(arg2);
30256 wxPyEndAllowThreads(__tstate);
30257 if (PyErr_Occurred()) SWIG_fail;
30258 }
30259 resultobj = SWIG_Py_Void();
30260 return resultobj;
30261 fail:
30262 return NULL;
30263 }
30264
30265
30266 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30267 PyObject *resultobj = 0;
30268 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30269 long arg2 ;
30270 long arg3 ;
30271 void *argp1 = 0 ;
30272 int res1 = 0 ;
30273 long val2 ;
30274 int ecode2 = 0 ;
30275 long val3 ;
30276 int ecode3 = 0 ;
30277 PyObject * obj0 = 0 ;
30278 PyObject * obj1 = 0 ;
30279 PyObject * obj2 = 0 ;
30280 char * kwnames[] = {
30281 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30282 };
30283
30284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30286 if (!SWIG_IsOK(res1)) {
30287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30288 }
30289 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30290 ecode2 = SWIG_AsVal_long(obj1, &val2);
30291 if (!SWIG_IsOK(ecode2)) {
30292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30293 }
30294 arg2 = static_cast< long >(val2);
30295 ecode3 = SWIG_AsVal_long(obj2, &val3);
30296 if (!SWIG_IsOK(ecode3)) {
30297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30298 }
30299 arg3 = static_cast< long >(val3);
30300 {
30301 PyThreadState* __tstate = wxPyBeginAllowThreads();
30302 (arg1)->RefreshItems(arg2,arg3);
30303 wxPyEndAllowThreads(__tstate);
30304 if (PyErr_Occurred()) SWIG_fail;
30305 }
30306 resultobj = SWIG_Py_Void();
30307 return resultobj;
30308 fail:
30309 return NULL;
30310 }
30311
30312
30313 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30314 PyObject *resultobj = 0;
30315 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30316 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30317 bool result;
30318 void *argp1 = 0 ;
30319 int res1 = 0 ;
30320 int val2 ;
30321 int ecode2 = 0 ;
30322 PyObject * obj0 = 0 ;
30323 PyObject * obj1 = 0 ;
30324 char * kwnames[] = {
30325 (char *) "self",(char *) "flag", NULL
30326 };
30327
30328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30330 if (!SWIG_IsOK(res1)) {
30331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30332 }
30333 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30334 if (obj1) {
30335 ecode2 = SWIG_AsVal_int(obj1, &val2);
30336 if (!SWIG_IsOK(ecode2)) {
30337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30338 }
30339 arg2 = static_cast< int >(val2);
30340 }
30341 {
30342 PyThreadState* __tstate = wxPyBeginAllowThreads();
30343 result = (bool)(arg1)->Arrange(arg2);
30344 wxPyEndAllowThreads(__tstate);
30345 if (PyErr_Occurred()) SWIG_fail;
30346 }
30347 {
30348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30349 }
30350 return resultobj;
30351 fail:
30352 return NULL;
30353 }
30354
30355
30356 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30357 PyObject *resultobj = 0;
30358 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30359 long arg2 ;
30360 bool result;
30361 void *argp1 = 0 ;
30362 int res1 = 0 ;
30363 long val2 ;
30364 int ecode2 = 0 ;
30365 PyObject * obj0 = 0 ;
30366 PyObject * obj1 = 0 ;
30367 char * kwnames[] = {
30368 (char *) "self",(char *) "item", NULL
30369 };
30370
30371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30373 if (!SWIG_IsOK(res1)) {
30374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30375 }
30376 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30377 ecode2 = SWIG_AsVal_long(obj1, &val2);
30378 if (!SWIG_IsOK(ecode2)) {
30379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30380 }
30381 arg2 = static_cast< long >(val2);
30382 {
30383 PyThreadState* __tstate = wxPyBeginAllowThreads();
30384 result = (bool)(arg1)->DeleteItem(arg2);
30385 wxPyEndAllowThreads(__tstate);
30386 if (PyErr_Occurred()) SWIG_fail;
30387 }
30388 {
30389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30390 }
30391 return resultobj;
30392 fail:
30393 return NULL;
30394 }
30395
30396
30397 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30398 PyObject *resultobj = 0;
30399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30400 bool result;
30401 void *argp1 = 0 ;
30402 int res1 = 0 ;
30403 PyObject *swig_obj[1] ;
30404
30405 if (!args) SWIG_fail;
30406 swig_obj[0] = args;
30407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30408 if (!SWIG_IsOK(res1)) {
30409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30410 }
30411 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30412 {
30413 PyThreadState* __tstate = wxPyBeginAllowThreads();
30414 result = (bool)(arg1)->DeleteAllItems();
30415 wxPyEndAllowThreads(__tstate);
30416 if (PyErr_Occurred()) SWIG_fail;
30417 }
30418 {
30419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30420 }
30421 return resultobj;
30422 fail:
30423 return NULL;
30424 }
30425
30426
30427 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30428 PyObject *resultobj = 0;
30429 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30430 int arg2 ;
30431 bool result;
30432 void *argp1 = 0 ;
30433 int res1 = 0 ;
30434 int val2 ;
30435 int ecode2 = 0 ;
30436 PyObject * obj0 = 0 ;
30437 PyObject * obj1 = 0 ;
30438 char * kwnames[] = {
30439 (char *) "self",(char *) "col", NULL
30440 };
30441
30442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30444 if (!SWIG_IsOK(res1)) {
30445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30446 }
30447 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30448 ecode2 = SWIG_AsVal_int(obj1, &val2);
30449 if (!SWIG_IsOK(ecode2)) {
30450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30451 }
30452 arg2 = static_cast< int >(val2);
30453 {
30454 PyThreadState* __tstate = wxPyBeginAllowThreads();
30455 result = (bool)(arg1)->DeleteColumn(arg2);
30456 wxPyEndAllowThreads(__tstate);
30457 if (PyErr_Occurred()) SWIG_fail;
30458 }
30459 {
30460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30461 }
30462 return resultobj;
30463 fail:
30464 return NULL;
30465 }
30466
30467
30468 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30469 PyObject *resultobj = 0;
30470 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30471 bool result;
30472 void *argp1 = 0 ;
30473 int res1 = 0 ;
30474 PyObject *swig_obj[1] ;
30475
30476 if (!args) SWIG_fail;
30477 swig_obj[0] = args;
30478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30479 if (!SWIG_IsOK(res1)) {
30480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30481 }
30482 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30483 {
30484 PyThreadState* __tstate = wxPyBeginAllowThreads();
30485 result = (bool)(arg1)->DeleteAllColumns();
30486 wxPyEndAllowThreads(__tstate);
30487 if (PyErr_Occurred()) SWIG_fail;
30488 }
30489 {
30490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30491 }
30492 return resultobj;
30493 fail:
30494 return NULL;
30495 }
30496
30497
30498 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30499 PyObject *resultobj = 0;
30500 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30501 void *argp1 = 0 ;
30502 int res1 = 0 ;
30503 PyObject *swig_obj[1] ;
30504
30505 if (!args) SWIG_fail;
30506 swig_obj[0] = args;
30507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30508 if (!SWIG_IsOK(res1)) {
30509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30510 }
30511 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30512 {
30513 PyThreadState* __tstate = wxPyBeginAllowThreads();
30514 (arg1)->ClearAll();
30515 wxPyEndAllowThreads(__tstate);
30516 if (PyErr_Occurred()) SWIG_fail;
30517 }
30518 resultobj = SWIG_Py_Void();
30519 return resultobj;
30520 fail:
30521 return NULL;
30522 }
30523
30524
30525 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30526 PyObject *resultobj = 0;
30527 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30528 long arg2 ;
30529 void *argp1 = 0 ;
30530 int res1 = 0 ;
30531 long val2 ;
30532 int ecode2 = 0 ;
30533 PyObject * obj0 = 0 ;
30534 PyObject * obj1 = 0 ;
30535 char * kwnames[] = {
30536 (char *) "self",(char *) "item", NULL
30537 };
30538
30539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30541 if (!SWIG_IsOK(res1)) {
30542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30543 }
30544 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30545 ecode2 = SWIG_AsVal_long(obj1, &val2);
30546 if (!SWIG_IsOK(ecode2)) {
30547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30548 }
30549 arg2 = static_cast< long >(val2);
30550 {
30551 PyThreadState* __tstate = wxPyBeginAllowThreads();
30552 (arg1)->EditLabel(arg2);
30553 wxPyEndAllowThreads(__tstate);
30554 if (PyErr_Occurred()) SWIG_fail;
30555 }
30556 resultobj = SWIG_Py_Void();
30557 return resultobj;
30558 fail:
30559 return NULL;
30560 }
30561
30562
30563 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30564 PyObject *resultobj = 0;
30565 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30566 long arg2 ;
30567 bool result;
30568 void *argp1 = 0 ;
30569 int res1 = 0 ;
30570 long val2 ;
30571 int ecode2 = 0 ;
30572 PyObject * obj0 = 0 ;
30573 PyObject * obj1 = 0 ;
30574 char * kwnames[] = {
30575 (char *) "self",(char *) "item", NULL
30576 };
30577
30578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30580 if (!SWIG_IsOK(res1)) {
30581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30582 }
30583 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30584 ecode2 = SWIG_AsVal_long(obj1, &val2);
30585 if (!SWIG_IsOK(ecode2)) {
30586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30587 }
30588 arg2 = static_cast< long >(val2);
30589 {
30590 PyThreadState* __tstate = wxPyBeginAllowThreads();
30591 result = (bool)(arg1)->EnsureVisible(arg2);
30592 wxPyEndAllowThreads(__tstate);
30593 if (PyErr_Occurred()) SWIG_fail;
30594 }
30595 {
30596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30597 }
30598 return resultobj;
30599 fail:
30600 return NULL;
30601 }
30602
30603
30604 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30605 PyObject *resultobj = 0;
30606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30607 long arg2 ;
30608 wxString *arg3 = 0 ;
30609 bool arg4 = (bool) false ;
30610 long result;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 long val2 ;
30614 int ecode2 = 0 ;
30615 bool temp3 = false ;
30616 bool val4 ;
30617 int ecode4 = 0 ;
30618 PyObject * obj0 = 0 ;
30619 PyObject * obj1 = 0 ;
30620 PyObject * obj2 = 0 ;
30621 PyObject * obj3 = 0 ;
30622 char * kwnames[] = {
30623 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30624 };
30625
30626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30628 if (!SWIG_IsOK(res1)) {
30629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30630 }
30631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30632 ecode2 = SWIG_AsVal_long(obj1, &val2);
30633 if (!SWIG_IsOK(ecode2)) {
30634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30635 }
30636 arg2 = static_cast< long >(val2);
30637 {
30638 arg3 = wxString_in_helper(obj2);
30639 if (arg3 == NULL) SWIG_fail;
30640 temp3 = true;
30641 }
30642 if (obj3) {
30643 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30644 if (!SWIG_IsOK(ecode4)) {
30645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30646 }
30647 arg4 = static_cast< bool >(val4);
30648 }
30649 {
30650 PyThreadState* __tstate = wxPyBeginAllowThreads();
30651 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30652 wxPyEndAllowThreads(__tstate);
30653 if (PyErr_Occurred()) SWIG_fail;
30654 }
30655 resultobj = SWIG_From_long(static_cast< long >(result));
30656 {
30657 if (temp3)
30658 delete arg3;
30659 }
30660 return resultobj;
30661 fail:
30662 {
30663 if (temp3)
30664 delete arg3;
30665 }
30666 return NULL;
30667 }
30668
30669
30670 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30671 PyObject *resultobj = 0;
30672 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30673 long arg2 ;
30674 long arg3 ;
30675 long result;
30676 void *argp1 = 0 ;
30677 int res1 = 0 ;
30678 long val2 ;
30679 int ecode2 = 0 ;
30680 long val3 ;
30681 int ecode3 = 0 ;
30682 PyObject * obj0 = 0 ;
30683 PyObject * obj1 = 0 ;
30684 PyObject * obj2 = 0 ;
30685 char * kwnames[] = {
30686 (char *) "self",(char *) "start",(char *) "data", NULL
30687 };
30688
30689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30691 if (!SWIG_IsOK(res1)) {
30692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30693 }
30694 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30695 ecode2 = SWIG_AsVal_long(obj1, &val2);
30696 if (!SWIG_IsOK(ecode2)) {
30697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30698 }
30699 arg2 = static_cast< long >(val2);
30700 ecode3 = SWIG_AsVal_long(obj2, &val3);
30701 if (!SWIG_IsOK(ecode3)) {
30702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30703 }
30704 arg3 = static_cast< long >(val3);
30705 {
30706 PyThreadState* __tstate = wxPyBeginAllowThreads();
30707 result = (long)(arg1)->FindItem(arg2,arg3);
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 resultobj = SWIG_From_long(static_cast< long >(result));
30712 return resultobj;
30713 fail:
30714 return NULL;
30715 }
30716
30717
30718 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30719 PyObject *resultobj = 0;
30720 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30721 long arg2 ;
30722 wxPoint *arg3 = 0 ;
30723 int arg4 ;
30724 long result;
30725 void *argp1 = 0 ;
30726 int res1 = 0 ;
30727 long val2 ;
30728 int ecode2 = 0 ;
30729 wxPoint temp3 ;
30730 int val4 ;
30731 int ecode4 = 0 ;
30732 PyObject * obj0 = 0 ;
30733 PyObject * obj1 = 0 ;
30734 PyObject * obj2 = 0 ;
30735 PyObject * obj3 = 0 ;
30736 char * kwnames[] = {
30737 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30738 };
30739
30740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30742 if (!SWIG_IsOK(res1)) {
30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30744 }
30745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30746 ecode2 = SWIG_AsVal_long(obj1, &val2);
30747 if (!SWIG_IsOK(ecode2)) {
30748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30749 }
30750 arg2 = static_cast< long >(val2);
30751 {
30752 arg3 = &temp3;
30753 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30754 }
30755 ecode4 = SWIG_AsVal_int(obj3, &val4);
30756 if (!SWIG_IsOK(ecode4)) {
30757 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30758 }
30759 arg4 = static_cast< int >(val4);
30760 {
30761 PyThreadState* __tstate = wxPyBeginAllowThreads();
30762 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30763 wxPyEndAllowThreads(__tstate);
30764 if (PyErr_Occurred()) SWIG_fail;
30765 }
30766 resultobj = SWIG_From_long(static_cast< long >(result));
30767 return resultobj;
30768 fail:
30769 return NULL;
30770 }
30771
30772
30773 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30774 PyObject *resultobj = 0;
30775 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30776 wxPoint *arg2 = 0 ;
30777 int *arg3 = 0 ;
30778 long result;
30779 void *argp1 = 0 ;
30780 int res1 = 0 ;
30781 wxPoint temp2 ;
30782 int temp3 ;
30783 int res3 = SWIG_TMPOBJ ;
30784 PyObject * obj0 = 0 ;
30785 PyObject * obj1 = 0 ;
30786 char * kwnames[] = {
30787 (char *) "self",(char *) "point", NULL
30788 };
30789
30790 arg3 = &temp3;
30791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30793 if (!SWIG_IsOK(res1)) {
30794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30795 }
30796 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30797 {
30798 arg2 = &temp2;
30799 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30800 }
30801 {
30802 PyThreadState* __tstate = wxPyBeginAllowThreads();
30803 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30804 wxPyEndAllowThreads(__tstate);
30805 if (PyErr_Occurred()) SWIG_fail;
30806 }
30807 resultobj = SWIG_From_long(static_cast< long >(result));
30808 if (SWIG_IsTmpObj(res3)) {
30809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30810 } else {
30811 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30813 }
30814 return resultobj;
30815 fail:
30816 return NULL;
30817 }
30818
30819
30820 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30821 PyObject *resultobj = 0;
30822 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30823 wxPoint *arg2 = 0 ;
30824 int *arg3 = 0 ;
30825 long *arg4 = (long *) 0 ;
30826 long result;
30827 void *argp1 = 0 ;
30828 int res1 = 0 ;
30829 wxPoint temp2 ;
30830 int temp3 ;
30831 int res3 = SWIG_TMPOBJ ;
30832 long temp4 ;
30833 int res4 = SWIG_TMPOBJ ;
30834 PyObject * obj0 = 0 ;
30835 PyObject * obj1 = 0 ;
30836 char * kwnames[] = {
30837 (char *) "self",(char *) "point", NULL
30838 };
30839
30840 arg3 = &temp3;
30841 arg4 = &temp4;
30842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30844 if (!SWIG_IsOK(res1)) {
30845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30846 }
30847 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30848 {
30849 arg2 = &temp2;
30850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30851 }
30852 {
30853 PyThreadState* __tstate = wxPyBeginAllowThreads();
30854 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30855 wxPyEndAllowThreads(__tstate);
30856 if (PyErr_Occurred()) SWIG_fail;
30857 }
30858 resultobj = SWIG_From_long(static_cast< long >(result));
30859 if (SWIG_IsTmpObj(res3)) {
30860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30861 } else {
30862 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30864 }
30865 if (SWIG_IsTmpObj(res4)) {
30866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30867 } else {
30868 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30870 }
30871 return resultobj;
30872 fail:
30873 return NULL;
30874 }
30875
30876
30877 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30878 PyObject *resultobj = 0;
30879 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30880 wxListItem *arg2 = 0 ;
30881 long result;
30882 void *argp1 = 0 ;
30883 int res1 = 0 ;
30884 void *argp2 = 0 ;
30885 int res2 = 0 ;
30886 PyObject * obj0 = 0 ;
30887 PyObject * obj1 = 0 ;
30888 char * kwnames[] = {
30889 (char *) "self",(char *) "info", NULL
30890 };
30891
30892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30894 if (!SWIG_IsOK(res1)) {
30895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30896 }
30897 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30899 if (!SWIG_IsOK(res2)) {
30900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30901 }
30902 if (!argp2) {
30903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30904 }
30905 arg2 = reinterpret_cast< wxListItem * >(argp2);
30906 {
30907 PyThreadState* __tstate = wxPyBeginAllowThreads();
30908 result = (long)(arg1)->InsertItem(*arg2);
30909 wxPyEndAllowThreads(__tstate);
30910 if (PyErr_Occurred()) SWIG_fail;
30911 }
30912 resultobj = SWIG_From_long(static_cast< long >(result));
30913 return resultobj;
30914 fail:
30915 return NULL;
30916 }
30917
30918
30919 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30920 PyObject *resultobj = 0;
30921 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30922 long arg2 ;
30923 wxString *arg3 = 0 ;
30924 int arg4 = (int) -1 ;
30925 long result;
30926 void *argp1 = 0 ;
30927 int res1 = 0 ;
30928 long val2 ;
30929 int ecode2 = 0 ;
30930 bool temp3 = false ;
30931 int val4 ;
30932 int ecode4 = 0 ;
30933 PyObject * obj0 = 0 ;
30934 PyObject * obj1 = 0 ;
30935 PyObject * obj2 = 0 ;
30936 PyObject * obj3 = 0 ;
30937 char * kwnames[] = {
30938 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30939 };
30940
30941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30943 if (!SWIG_IsOK(res1)) {
30944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30945 }
30946 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30947 ecode2 = SWIG_AsVal_long(obj1, &val2);
30948 if (!SWIG_IsOK(ecode2)) {
30949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30950 }
30951 arg2 = static_cast< long >(val2);
30952 {
30953 arg3 = wxString_in_helper(obj2);
30954 if (arg3 == NULL) SWIG_fail;
30955 temp3 = true;
30956 }
30957 if (obj3) {
30958 ecode4 = SWIG_AsVal_int(obj3, &val4);
30959 if (!SWIG_IsOK(ecode4)) {
30960 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30961 }
30962 arg4 = static_cast< int >(val4);
30963 }
30964 {
30965 PyThreadState* __tstate = wxPyBeginAllowThreads();
30966 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30967 wxPyEndAllowThreads(__tstate);
30968 if (PyErr_Occurred()) SWIG_fail;
30969 }
30970 resultobj = SWIG_From_long(static_cast< long >(result));
30971 {
30972 if (temp3)
30973 delete arg3;
30974 }
30975 return resultobj;
30976 fail:
30977 {
30978 if (temp3)
30979 delete arg3;
30980 }
30981 return NULL;
30982 }
30983
30984
30985 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30986 PyObject *resultobj = 0;
30987 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30988 long arg2 ;
30989 int arg3 ;
30990 long result;
30991 void *argp1 = 0 ;
30992 int res1 = 0 ;
30993 long val2 ;
30994 int ecode2 = 0 ;
30995 int val3 ;
30996 int ecode3 = 0 ;
30997 PyObject * obj0 = 0 ;
30998 PyObject * obj1 = 0 ;
30999 PyObject * obj2 = 0 ;
31000 char * kwnames[] = {
31001 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31002 };
31003
31004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31006 if (!SWIG_IsOK(res1)) {
31007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31008 }
31009 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31010 ecode2 = SWIG_AsVal_long(obj1, &val2);
31011 if (!SWIG_IsOK(ecode2)) {
31012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31013 }
31014 arg2 = static_cast< long >(val2);
31015 ecode3 = SWIG_AsVal_int(obj2, &val3);
31016 if (!SWIG_IsOK(ecode3)) {
31017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31018 }
31019 arg3 = static_cast< int >(val3);
31020 {
31021 PyThreadState* __tstate = wxPyBeginAllowThreads();
31022 result = (long)(arg1)->InsertItem(arg2,arg3);
31023 wxPyEndAllowThreads(__tstate);
31024 if (PyErr_Occurred()) SWIG_fail;
31025 }
31026 resultobj = SWIG_From_long(static_cast< long >(result));
31027 return resultobj;
31028 fail:
31029 return NULL;
31030 }
31031
31032
31033 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31034 PyObject *resultobj = 0;
31035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31036 long arg2 ;
31037 wxString *arg3 = 0 ;
31038 int arg4 ;
31039 long result;
31040 void *argp1 = 0 ;
31041 int res1 = 0 ;
31042 long val2 ;
31043 int ecode2 = 0 ;
31044 bool temp3 = false ;
31045 int val4 ;
31046 int ecode4 = 0 ;
31047 PyObject * obj0 = 0 ;
31048 PyObject * obj1 = 0 ;
31049 PyObject * obj2 = 0 ;
31050 PyObject * obj3 = 0 ;
31051 char * kwnames[] = {
31052 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31053 };
31054
31055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31057 if (!SWIG_IsOK(res1)) {
31058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31059 }
31060 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31061 ecode2 = SWIG_AsVal_long(obj1, &val2);
31062 if (!SWIG_IsOK(ecode2)) {
31063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31064 }
31065 arg2 = static_cast< long >(val2);
31066 {
31067 arg3 = wxString_in_helper(obj2);
31068 if (arg3 == NULL) SWIG_fail;
31069 temp3 = true;
31070 }
31071 ecode4 = SWIG_AsVal_int(obj3, &val4);
31072 if (!SWIG_IsOK(ecode4)) {
31073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31074 }
31075 arg4 = static_cast< int >(val4);
31076 {
31077 PyThreadState* __tstate = wxPyBeginAllowThreads();
31078 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31079 wxPyEndAllowThreads(__tstate);
31080 if (PyErr_Occurred()) SWIG_fail;
31081 }
31082 resultobj = SWIG_From_long(static_cast< long >(result));
31083 {
31084 if (temp3)
31085 delete arg3;
31086 }
31087 return resultobj;
31088 fail:
31089 {
31090 if (temp3)
31091 delete arg3;
31092 }
31093 return NULL;
31094 }
31095
31096
31097 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31098 PyObject *resultobj = 0;
31099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31100 long arg2 ;
31101 wxListItem *arg3 = 0 ;
31102 long result;
31103 void *argp1 = 0 ;
31104 int res1 = 0 ;
31105 long val2 ;
31106 int ecode2 = 0 ;
31107 void *argp3 = 0 ;
31108 int res3 = 0 ;
31109 PyObject * obj0 = 0 ;
31110 PyObject * obj1 = 0 ;
31111 PyObject * obj2 = 0 ;
31112 char * kwnames[] = {
31113 (char *) "self",(char *) "col",(char *) "info", NULL
31114 };
31115
31116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31118 if (!SWIG_IsOK(res1)) {
31119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31120 }
31121 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31122 ecode2 = SWIG_AsVal_long(obj1, &val2);
31123 if (!SWIG_IsOK(ecode2)) {
31124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31125 }
31126 arg2 = static_cast< long >(val2);
31127 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31128 if (!SWIG_IsOK(res3)) {
31129 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31130 }
31131 if (!argp3) {
31132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31133 }
31134 arg3 = reinterpret_cast< wxListItem * >(argp3);
31135 {
31136 PyThreadState* __tstate = wxPyBeginAllowThreads();
31137 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31138 wxPyEndAllowThreads(__tstate);
31139 if (PyErr_Occurred()) SWIG_fail;
31140 }
31141 resultobj = SWIG_From_long(static_cast< long >(result));
31142 return resultobj;
31143 fail:
31144 return NULL;
31145 }
31146
31147
31148 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31149 PyObject *resultobj = 0;
31150 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31151 long arg2 ;
31152 wxString *arg3 = 0 ;
31153 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31154 int arg5 = (int) -1 ;
31155 long result;
31156 void *argp1 = 0 ;
31157 int res1 = 0 ;
31158 long val2 ;
31159 int ecode2 = 0 ;
31160 bool temp3 = false ;
31161 int val4 ;
31162 int ecode4 = 0 ;
31163 int val5 ;
31164 int ecode5 = 0 ;
31165 PyObject * obj0 = 0 ;
31166 PyObject * obj1 = 0 ;
31167 PyObject * obj2 = 0 ;
31168 PyObject * obj3 = 0 ;
31169 PyObject * obj4 = 0 ;
31170 char * kwnames[] = {
31171 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31172 };
31173
31174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31176 if (!SWIG_IsOK(res1)) {
31177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31178 }
31179 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31180 ecode2 = SWIG_AsVal_long(obj1, &val2);
31181 if (!SWIG_IsOK(ecode2)) {
31182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31183 }
31184 arg2 = static_cast< long >(val2);
31185 {
31186 arg3 = wxString_in_helper(obj2);
31187 if (arg3 == NULL) SWIG_fail;
31188 temp3 = true;
31189 }
31190 if (obj3) {
31191 ecode4 = SWIG_AsVal_int(obj3, &val4);
31192 if (!SWIG_IsOK(ecode4)) {
31193 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31194 }
31195 arg4 = static_cast< int >(val4);
31196 }
31197 if (obj4) {
31198 ecode5 = SWIG_AsVal_int(obj4, &val5);
31199 if (!SWIG_IsOK(ecode5)) {
31200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31201 }
31202 arg5 = static_cast< int >(val5);
31203 }
31204 {
31205 PyThreadState* __tstate = wxPyBeginAllowThreads();
31206 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31207 wxPyEndAllowThreads(__tstate);
31208 if (PyErr_Occurred()) SWIG_fail;
31209 }
31210 resultobj = SWIG_From_long(static_cast< long >(result));
31211 {
31212 if (temp3)
31213 delete arg3;
31214 }
31215 return resultobj;
31216 fail:
31217 {
31218 if (temp3)
31219 delete arg3;
31220 }
31221 return NULL;
31222 }
31223
31224
31225 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31226 PyObject *resultobj = 0;
31227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31228 long arg2 ;
31229 void *argp1 = 0 ;
31230 int res1 = 0 ;
31231 long val2 ;
31232 int ecode2 = 0 ;
31233 PyObject * obj0 = 0 ;
31234 PyObject * obj1 = 0 ;
31235 char * kwnames[] = {
31236 (char *) "self",(char *) "count", NULL
31237 };
31238
31239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31241 if (!SWIG_IsOK(res1)) {
31242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31243 }
31244 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31245 ecode2 = SWIG_AsVal_long(obj1, &val2);
31246 if (!SWIG_IsOK(ecode2)) {
31247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31248 }
31249 arg2 = static_cast< long >(val2);
31250 {
31251 PyThreadState* __tstate = wxPyBeginAllowThreads();
31252 (arg1)->SetItemCount(arg2);
31253 wxPyEndAllowThreads(__tstate);
31254 if (PyErr_Occurred()) SWIG_fail;
31255 }
31256 resultobj = SWIG_Py_Void();
31257 return resultobj;
31258 fail:
31259 return NULL;
31260 }
31261
31262
31263 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31264 PyObject *resultobj = 0;
31265 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31266 int arg2 ;
31267 int arg3 ;
31268 bool result;
31269 void *argp1 = 0 ;
31270 int res1 = 0 ;
31271 int val2 ;
31272 int ecode2 = 0 ;
31273 int val3 ;
31274 int ecode3 = 0 ;
31275 PyObject * obj0 = 0 ;
31276 PyObject * obj1 = 0 ;
31277 PyObject * obj2 = 0 ;
31278 char * kwnames[] = {
31279 (char *) "self",(char *) "dx",(char *) "dy", NULL
31280 };
31281
31282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31284 if (!SWIG_IsOK(res1)) {
31285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31286 }
31287 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31288 ecode2 = SWIG_AsVal_int(obj1, &val2);
31289 if (!SWIG_IsOK(ecode2)) {
31290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31291 }
31292 arg2 = static_cast< int >(val2);
31293 ecode3 = SWIG_AsVal_int(obj2, &val3);
31294 if (!SWIG_IsOK(ecode3)) {
31295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31296 }
31297 arg3 = static_cast< int >(val3);
31298 {
31299 PyThreadState* __tstate = wxPyBeginAllowThreads();
31300 result = (bool)(arg1)->ScrollList(arg2,arg3);
31301 wxPyEndAllowThreads(__tstate);
31302 if (PyErr_Occurred()) SWIG_fail;
31303 }
31304 {
31305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31306 }
31307 return resultobj;
31308 fail:
31309 return NULL;
31310 }
31311
31312
31313 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31314 PyObject *resultobj = 0;
31315 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31316 long arg2 ;
31317 wxColour *arg3 = 0 ;
31318 void *argp1 = 0 ;
31319 int res1 = 0 ;
31320 long val2 ;
31321 int ecode2 = 0 ;
31322 wxColour temp3 ;
31323 PyObject * obj0 = 0 ;
31324 PyObject * obj1 = 0 ;
31325 PyObject * obj2 = 0 ;
31326 char * kwnames[] = {
31327 (char *) "self",(char *) "item",(char *) "col", NULL
31328 };
31329
31330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31332 if (!SWIG_IsOK(res1)) {
31333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31334 }
31335 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31336 ecode2 = SWIG_AsVal_long(obj1, &val2);
31337 if (!SWIG_IsOK(ecode2)) {
31338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31339 }
31340 arg2 = static_cast< long >(val2);
31341 {
31342 arg3 = &temp3;
31343 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31344 }
31345 {
31346 PyThreadState* __tstate = wxPyBeginAllowThreads();
31347 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31348 wxPyEndAllowThreads(__tstate);
31349 if (PyErr_Occurred()) SWIG_fail;
31350 }
31351 resultobj = SWIG_Py_Void();
31352 return resultobj;
31353 fail:
31354 return NULL;
31355 }
31356
31357
31358 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31359 PyObject *resultobj = 0;
31360 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31361 long arg2 ;
31362 wxColour result;
31363 void *argp1 = 0 ;
31364 int res1 = 0 ;
31365 long val2 ;
31366 int ecode2 = 0 ;
31367 PyObject * obj0 = 0 ;
31368 PyObject * obj1 = 0 ;
31369 char * kwnames[] = {
31370 (char *) "self",(char *) "item", NULL
31371 };
31372
31373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31375 if (!SWIG_IsOK(res1)) {
31376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31377 }
31378 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31379 ecode2 = SWIG_AsVal_long(obj1, &val2);
31380 if (!SWIG_IsOK(ecode2)) {
31381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31382 }
31383 arg2 = static_cast< long >(val2);
31384 {
31385 PyThreadState* __tstate = wxPyBeginAllowThreads();
31386 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31387 wxPyEndAllowThreads(__tstate);
31388 if (PyErr_Occurred()) SWIG_fail;
31389 }
31390 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31391 return resultobj;
31392 fail:
31393 return NULL;
31394 }
31395
31396
31397 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31398 PyObject *resultobj = 0;
31399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31400 long arg2 ;
31401 wxColour *arg3 = 0 ;
31402 void *argp1 = 0 ;
31403 int res1 = 0 ;
31404 long val2 ;
31405 int ecode2 = 0 ;
31406 wxColour temp3 ;
31407 PyObject * obj0 = 0 ;
31408 PyObject * obj1 = 0 ;
31409 PyObject * obj2 = 0 ;
31410 char * kwnames[] = {
31411 (char *) "self",(char *) "item",(char *) "col", NULL
31412 };
31413
31414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31416 if (!SWIG_IsOK(res1)) {
31417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31418 }
31419 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31420 ecode2 = SWIG_AsVal_long(obj1, &val2);
31421 if (!SWIG_IsOK(ecode2)) {
31422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31423 }
31424 arg2 = static_cast< long >(val2);
31425 {
31426 arg3 = &temp3;
31427 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31428 }
31429 {
31430 PyThreadState* __tstate = wxPyBeginAllowThreads();
31431 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31432 wxPyEndAllowThreads(__tstate);
31433 if (PyErr_Occurred()) SWIG_fail;
31434 }
31435 resultobj = SWIG_Py_Void();
31436 return resultobj;
31437 fail:
31438 return NULL;
31439 }
31440
31441
31442 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31443 PyObject *resultobj = 0;
31444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31445 long arg2 ;
31446 wxColour result;
31447 void *argp1 = 0 ;
31448 int res1 = 0 ;
31449 long val2 ;
31450 int ecode2 = 0 ;
31451 PyObject * obj0 = 0 ;
31452 PyObject * obj1 = 0 ;
31453 char * kwnames[] = {
31454 (char *) "self",(char *) "item", NULL
31455 };
31456
31457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31459 if (!SWIG_IsOK(res1)) {
31460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31461 }
31462 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31463 ecode2 = SWIG_AsVal_long(obj1, &val2);
31464 if (!SWIG_IsOK(ecode2)) {
31465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31466 }
31467 arg2 = static_cast< long >(val2);
31468 {
31469 PyThreadState* __tstate = wxPyBeginAllowThreads();
31470 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31471 wxPyEndAllowThreads(__tstate);
31472 if (PyErr_Occurred()) SWIG_fail;
31473 }
31474 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31475 return resultobj;
31476 fail:
31477 return NULL;
31478 }
31479
31480
31481 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31482 PyObject *resultobj = 0;
31483 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31484 long arg2 ;
31485 wxFont *arg3 = 0 ;
31486 void *argp1 = 0 ;
31487 int res1 = 0 ;
31488 long val2 ;
31489 int ecode2 = 0 ;
31490 void *argp3 = 0 ;
31491 int res3 = 0 ;
31492 PyObject * obj0 = 0 ;
31493 PyObject * obj1 = 0 ;
31494 PyObject * obj2 = 0 ;
31495 char * kwnames[] = {
31496 (char *) "self",(char *) "item",(char *) "f", NULL
31497 };
31498
31499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31501 if (!SWIG_IsOK(res1)) {
31502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31503 }
31504 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31505 ecode2 = SWIG_AsVal_long(obj1, &val2);
31506 if (!SWIG_IsOK(ecode2)) {
31507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31508 }
31509 arg2 = static_cast< long >(val2);
31510 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31511 if (!SWIG_IsOK(res3)) {
31512 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31513 }
31514 if (!argp3) {
31515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31516 }
31517 arg3 = reinterpret_cast< wxFont * >(argp3);
31518 {
31519 PyThreadState* __tstate = wxPyBeginAllowThreads();
31520 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31521 wxPyEndAllowThreads(__tstate);
31522 if (PyErr_Occurred()) SWIG_fail;
31523 }
31524 resultobj = SWIG_Py_Void();
31525 return resultobj;
31526 fail:
31527 return NULL;
31528 }
31529
31530
31531 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31532 PyObject *resultobj = 0;
31533 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31534 long arg2 ;
31535 wxFont result;
31536 void *argp1 = 0 ;
31537 int res1 = 0 ;
31538 long val2 ;
31539 int ecode2 = 0 ;
31540 PyObject * obj0 = 0 ;
31541 PyObject * obj1 = 0 ;
31542 char * kwnames[] = {
31543 (char *) "self",(char *) "item", NULL
31544 };
31545
31546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31548 if (!SWIG_IsOK(res1)) {
31549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31550 }
31551 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31552 ecode2 = SWIG_AsVal_long(obj1, &val2);
31553 if (!SWIG_IsOK(ecode2)) {
31554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31555 }
31556 arg2 = static_cast< long >(val2);
31557 {
31558 PyThreadState* __tstate = wxPyBeginAllowThreads();
31559 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31560 wxPyEndAllowThreads(__tstate);
31561 if (PyErr_Occurred()) SWIG_fail;
31562 }
31563 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31564 return resultobj;
31565 fail:
31566 return NULL;
31567 }
31568
31569
31570 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31571 PyObject *resultobj = 0;
31572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31573 PyObject *arg2 = (PyObject *) 0 ;
31574 bool result;
31575 void *argp1 = 0 ;
31576 int res1 = 0 ;
31577 PyObject * obj0 = 0 ;
31578 PyObject * obj1 = 0 ;
31579 char * kwnames[] = {
31580 (char *) "self",(char *) "func", NULL
31581 };
31582
31583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31585 if (!SWIG_IsOK(res1)) {
31586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31587 }
31588 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31589 arg2 = obj1;
31590 {
31591 PyThreadState* __tstate = wxPyBeginAllowThreads();
31592 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31593 wxPyEndAllowThreads(__tstate);
31594 if (PyErr_Occurred()) SWIG_fail;
31595 }
31596 {
31597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31598 }
31599 return resultobj;
31600 fail:
31601 return NULL;
31602 }
31603
31604
31605 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31606 PyObject *resultobj = 0;
31607 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31608 wxWindow *result = 0 ;
31609 void *argp1 = 0 ;
31610 int res1 = 0 ;
31611 PyObject *swig_obj[1] ;
31612
31613 if (!args) SWIG_fail;
31614 swig_obj[0] = args;
31615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31616 if (!SWIG_IsOK(res1)) {
31617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31618 }
31619 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31620 {
31621 PyThreadState* __tstate = wxPyBeginAllowThreads();
31622 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31623 wxPyEndAllowThreads(__tstate);
31624 if (PyErr_Occurred()) SWIG_fail;
31625 }
31626 {
31627 resultobj = wxPyMake_wxObject(result, 0);
31628 }
31629 return resultobj;
31630 fail:
31631 return NULL;
31632 }
31633
31634
31635 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31636 PyObject *resultobj = 0;
31637 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31638 SwigValueWrapper<wxVisualAttributes > result;
31639 int val1 ;
31640 int ecode1 = 0 ;
31641 PyObject * obj0 = 0 ;
31642 char * kwnames[] = {
31643 (char *) "variant", NULL
31644 };
31645
31646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31647 if (obj0) {
31648 ecode1 = SWIG_AsVal_int(obj0, &val1);
31649 if (!SWIG_IsOK(ecode1)) {
31650 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31651 }
31652 arg1 = static_cast< wxWindowVariant >(val1);
31653 }
31654 {
31655 if (!wxPyCheckForApp()) SWIG_fail;
31656 PyThreadState* __tstate = wxPyBeginAllowThreads();
31657 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31658 wxPyEndAllowThreads(__tstate);
31659 if (PyErr_Occurred()) SWIG_fail;
31660 }
31661 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31662 return resultobj;
31663 fail:
31664 return NULL;
31665 }
31666
31667
31668 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31669 PyObject *obj;
31670 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31671 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31672 return SWIG_Py_Void();
31673 }
31674
31675 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31676 return SWIG_Python_InitShadowInstance(args);
31677 }
31678
31679 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31680 PyObject *resultobj = 0;
31681 wxWindow *arg1 = (wxWindow *) 0 ;
31682 int arg2 = (int) -1 ;
31683 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31684 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31685 wxSize const &arg4_defvalue = wxDefaultSize ;
31686 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31687 long arg5 = (long) wxLC_REPORT ;
31688 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31689 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31690 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31691 wxString *arg7 = (wxString *) &arg7_defvalue ;
31692 wxListView *result = 0 ;
31693 void *argp1 = 0 ;
31694 int res1 = 0 ;
31695 int val2 ;
31696 int ecode2 = 0 ;
31697 wxPoint temp3 ;
31698 wxSize temp4 ;
31699 long val5 ;
31700 int ecode5 = 0 ;
31701 void *argp6 = 0 ;
31702 int res6 = 0 ;
31703 bool temp7 = false ;
31704 PyObject * obj0 = 0 ;
31705 PyObject * obj1 = 0 ;
31706 PyObject * obj2 = 0 ;
31707 PyObject * obj3 = 0 ;
31708 PyObject * obj4 = 0 ;
31709 PyObject * obj5 = 0 ;
31710 PyObject * obj6 = 0 ;
31711 char * kwnames[] = {
31712 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31713 };
31714
31715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31717 if (!SWIG_IsOK(res1)) {
31718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31719 }
31720 arg1 = reinterpret_cast< wxWindow * >(argp1);
31721 if (obj1) {
31722 ecode2 = SWIG_AsVal_int(obj1, &val2);
31723 if (!SWIG_IsOK(ecode2)) {
31724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31725 }
31726 arg2 = static_cast< int >(val2);
31727 }
31728 if (obj2) {
31729 {
31730 arg3 = &temp3;
31731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31732 }
31733 }
31734 if (obj3) {
31735 {
31736 arg4 = &temp4;
31737 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31738 }
31739 }
31740 if (obj4) {
31741 ecode5 = SWIG_AsVal_long(obj4, &val5);
31742 if (!SWIG_IsOK(ecode5)) {
31743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31744 }
31745 arg5 = static_cast< long >(val5);
31746 }
31747 if (obj5) {
31748 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31749 if (!SWIG_IsOK(res6)) {
31750 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31751 }
31752 if (!argp6) {
31753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31754 }
31755 arg6 = reinterpret_cast< wxValidator * >(argp6);
31756 }
31757 if (obj6) {
31758 {
31759 arg7 = wxString_in_helper(obj6);
31760 if (arg7 == NULL) SWIG_fail;
31761 temp7 = true;
31762 }
31763 }
31764 {
31765 if (!wxPyCheckForApp()) SWIG_fail;
31766 PyThreadState* __tstate = wxPyBeginAllowThreads();
31767 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31768 wxPyEndAllowThreads(__tstate);
31769 if (PyErr_Occurred()) SWIG_fail;
31770 }
31771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31772 {
31773 if (temp7)
31774 delete arg7;
31775 }
31776 return resultobj;
31777 fail:
31778 {
31779 if (temp7)
31780 delete arg7;
31781 }
31782 return NULL;
31783 }
31784
31785
31786 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31787 PyObject *resultobj = 0;
31788 wxListView *result = 0 ;
31789
31790 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31791 {
31792 if (!wxPyCheckForApp()) SWIG_fail;
31793 PyThreadState* __tstate = wxPyBeginAllowThreads();
31794 result = (wxListView *)new wxListView();
31795 wxPyEndAllowThreads(__tstate);
31796 if (PyErr_Occurred()) SWIG_fail;
31797 }
31798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31799 return resultobj;
31800 fail:
31801 return NULL;
31802 }
31803
31804
31805 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31806 PyObject *resultobj = 0;
31807 wxListView *arg1 = (wxListView *) 0 ;
31808 wxWindow *arg2 = (wxWindow *) 0 ;
31809 int arg3 = (int) -1 ;
31810 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31811 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31812 wxSize const &arg5_defvalue = wxDefaultSize ;
31813 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31814 long arg6 = (long) wxLC_REPORT ;
31815 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31816 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31817 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31818 wxString *arg8 = (wxString *) &arg8_defvalue ;
31819 bool result;
31820 void *argp1 = 0 ;
31821 int res1 = 0 ;
31822 void *argp2 = 0 ;
31823 int res2 = 0 ;
31824 int val3 ;
31825 int ecode3 = 0 ;
31826 wxPoint temp4 ;
31827 wxSize temp5 ;
31828 long val6 ;
31829 int ecode6 = 0 ;
31830 void *argp7 = 0 ;
31831 int res7 = 0 ;
31832 bool temp8 = false ;
31833 PyObject * obj0 = 0 ;
31834 PyObject * obj1 = 0 ;
31835 PyObject * obj2 = 0 ;
31836 PyObject * obj3 = 0 ;
31837 PyObject * obj4 = 0 ;
31838 PyObject * obj5 = 0 ;
31839 PyObject * obj6 = 0 ;
31840 PyObject * obj7 = 0 ;
31841 char * kwnames[] = {
31842 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31843 };
31844
31845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31847 if (!SWIG_IsOK(res1)) {
31848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31849 }
31850 arg1 = reinterpret_cast< wxListView * >(argp1);
31851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31852 if (!SWIG_IsOK(res2)) {
31853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31854 }
31855 arg2 = reinterpret_cast< wxWindow * >(argp2);
31856 if (obj2) {
31857 ecode3 = SWIG_AsVal_int(obj2, &val3);
31858 if (!SWIG_IsOK(ecode3)) {
31859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31860 }
31861 arg3 = static_cast< int >(val3);
31862 }
31863 if (obj3) {
31864 {
31865 arg4 = &temp4;
31866 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31867 }
31868 }
31869 if (obj4) {
31870 {
31871 arg5 = &temp5;
31872 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31873 }
31874 }
31875 if (obj5) {
31876 ecode6 = SWIG_AsVal_long(obj5, &val6);
31877 if (!SWIG_IsOK(ecode6)) {
31878 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31879 }
31880 arg6 = static_cast< long >(val6);
31881 }
31882 if (obj6) {
31883 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31884 if (!SWIG_IsOK(res7)) {
31885 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31886 }
31887 if (!argp7) {
31888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31889 }
31890 arg7 = reinterpret_cast< wxValidator * >(argp7);
31891 }
31892 if (obj7) {
31893 {
31894 arg8 = wxString_in_helper(obj7);
31895 if (arg8 == NULL) SWIG_fail;
31896 temp8 = true;
31897 }
31898 }
31899 {
31900 PyThreadState* __tstate = wxPyBeginAllowThreads();
31901 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31902 wxPyEndAllowThreads(__tstate);
31903 if (PyErr_Occurred()) SWIG_fail;
31904 }
31905 {
31906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31907 }
31908 {
31909 if (temp8)
31910 delete arg8;
31911 }
31912 return resultobj;
31913 fail:
31914 {
31915 if (temp8)
31916 delete arg8;
31917 }
31918 return NULL;
31919 }
31920
31921
31922 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31923 PyObject *resultobj = 0;
31924 wxListView *arg1 = (wxListView *) 0 ;
31925 long arg2 ;
31926 bool arg3 = (bool) true ;
31927 void *argp1 = 0 ;
31928 int res1 = 0 ;
31929 long val2 ;
31930 int ecode2 = 0 ;
31931 bool val3 ;
31932 int ecode3 = 0 ;
31933 PyObject * obj0 = 0 ;
31934 PyObject * obj1 = 0 ;
31935 PyObject * obj2 = 0 ;
31936 char * kwnames[] = {
31937 (char *) "self",(char *) "n",(char *) "on", NULL
31938 };
31939
31940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31942 if (!SWIG_IsOK(res1)) {
31943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31944 }
31945 arg1 = reinterpret_cast< wxListView * >(argp1);
31946 ecode2 = SWIG_AsVal_long(obj1, &val2);
31947 if (!SWIG_IsOK(ecode2)) {
31948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31949 }
31950 arg2 = static_cast< long >(val2);
31951 if (obj2) {
31952 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31953 if (!SWIG_IsOK(ecode3)) {
31954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31955 }
31956 arg3 = static_cast< bool >(val3);
31957 }
31958 {
31959 PyThreadState* __tstate = wxPyBeginAllowThreads();
31960 (arg1)->Select(arg2,arg3);
31961 wxPyEndAllowThreads(__tstate);
31962 if (PyErr_Occurred()) SWIG_fail;
31963 }
31964 resultobj = SWIG_Py_Void();
31965 return resultobj;
31966 fail:
31967 return NULL;
31968 }
31969
31970
31971 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31972 PyObject *resultobj = 0;
31973 wxListView *arg1 = (wxListView *) 0 ;
31974 long arg2 ;
31975 void *argp1 = 0 ;
31976 int res1 = 0 ;
31977 long val2 ;
31978 int ecode2 = 0 ;
31979 PyObject * obj0 = 0 ;
31980 PyObject * obj1 = 0 ;
31981 char * kwnames[] = {
31982 (char *) "self",(char *) "index", NULL
31983 };
31984
31985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31987 if (!SWIG_IsOK(res1)) {
31988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31989 }
31990 arg1 = reinterpret_cast< wxListView * >(argp1);
31991 ecode2 = SWIG_AsVal_long(obj1, &val2);
31992 if (!SWIG_IsOK(ecode2)) {
31993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31994 }
31995 arg2 = static_cast< long >(val2);
31996 {
31997 PyThreadState* __tstate = wxPyBeginAllowThreads();
31998 (arg1)->Focus(arg2);
31999 wxPyEndAllowThreads(__tstate);
32000 if (PyErr_Occurred()) SWIG_fail;
32001 }
32002 resultobj = SWIG_Py_Void();
32003 return resultobj;
32004 fail:
32005 return NULL;
32006 }
32007
32008
32009 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32010 PyObject *resultobj = 0;
32011 wxListView *arg1 = (wxListView *) 0 ;
32012 long result;
32013 void *argp1 = 0 ;
32014 int res1 = 0 ;
32015 PyObject *swig_obj[1] ;
32016
32017 if (!args) SWIG_fail;
32018 swig_obj[0] = args;
32019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32020 if (!SWIG_IsOK(res1)) {
32021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32022 }
32023 arg1 = reinterpret_cast< wxListView * >(argp1);
32024 {
32025 PyThreadState* __tstate = wxPyBeginAllowThreads();
32026 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32027 wxPyEndAllowThreads(__tstate);
32028 if (PyErr_Occurred()) SWIG_fail;
32029 }
32030 resultobj = SWIG_From_long(static_cast< long >(result));
32031 return resultobj;
32032 fail:
32033 return NULL;
32034 }
32035
32036
32037 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32038 PyObject *resultobj = 0;
32039 wxListView *arg1 = (wxListView *) 0 ;
32040 long arg2 ;
32041 long result;
32042 void *argp1 = 0 ;
32043 int res1 = 0 ;
32044 long val2 ;
32045 int ecode2 = 0 ;
32046 PyObject * obj0 = 0 ;
32047 PyObject * obj1 = 0 ;
32048 char * kwnames[] = {
32049 (char *) "self",(char *) "item", NULL
32050 };
32051
32052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32054 if (!SWIG_IsOK(res1)) {
32055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32056 }
32057 arg1 = reinterpret_cast< wxListView * >(argp1);
32058 ecode2 = SWIG_AsVal_long(obj1, &val2);
32059 if (!SWIG_IsOK(ecode2)) {
32060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32061 }
32062 arg2 = static_cast< long >(val2);
32063 {
32064 PyThreadState* __tstate = wxPyBeginAllowThreads();
32065 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32066 wxPyEndAllowThreads(__tstate);
32067 if (PyErr_Occurred()) SWIG_fail;
32068 }
32069 resultobj = SWIG_From_long(static_cast< long >(result));
32070 return resultobj;
32071 fail:
32072 return NULL;
32073 }
32074
32075
32076 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32077 PyObject *resultobj = 0;
32078 wxListView *arg1 = (wxListView *) 0 ;
32079 long result;
32080 void *argp1 = 0 ;
32081 int res1 = 0 ;
32082 PyObject *swig_obj[1] ;
32083
32084 if (!args) SWIG_fail;
32085 swig_obj[0] = args;
32086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32087 if (!SWIG_IsOK(res1)) {
32088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32089 }
32090 arg1 = reinterpret_cast< wxListView * >(argp1);
32091 {
32092 PyThreadState* __tstate = wxPyBeginAllowThreads();
32093 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32094 wxPyEndAllowThreads(__tstate);
32095 if (PyErr_Occurred()) SWIG_fail;
32096 }
32097 resultobj = SWIG_From_long(static_cast< long >(result));
32098 return resultobj;
32099 fail:
32100 return NULL;
32101 }
32102
32103
32104 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32105 PyObject *resultobj = 0;
32106 wxListView *arg1 = (wxListView *) 0 ;
32107 long arg2 ;
32108 bool result;
32109 void *argp1 = 0 ;
32110 int res1 = 0 ;
32111 long val2 ;
32112 int ecode2 = 0 ;
32113 PyObject * obj0 = 0 ;
32114 PyObject * obj1 = 0 ;
32115 char * kwnames[] = {
32116 (char *) "self",(char *) "index", NULL
32117 };
32118
32119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32121 if (!SWIG_IsOK(res1)) {
32122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32123 }
32124 arg1 = reinterpret_cast< wxListView * >(argp1);
32125 ecode2 = SWIG_AsVal_long(obj1, &val2);
32126 if (!SWIG_IsOK(ecode2)) {
32127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32128 }
32129 arg2 = static_cast< long >(val2);
32130 {
32131 PyThreadState* __tstate = wxPyBeginAllowThreads();
32132 result = (bool)(arg1)->IsSelected(arg2);
32133 wxPyEndAllowThreads(__tstate);
32134 if (PyErr_Occurred()) SWIG_fail;
32135 }
32136 {
32137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32138 }
32139 return resultobj;
32140 fail:
32141 return NULL;
32142 }
32143
32144
32145 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32146 PyObject *resultobj = 0;
32147 wxListView *arg1 = (wxListView *) 0 ;
32148 int arg2 ;
32149 int arg3 ;
32150 void *argp1 = 0 ;
32151 int res1 = 0 ;
32152 int val2 ;
32153 int ecode2 = 0 ;
32154 int val3 ;
32155 int ecode3 = 0 ;
32156 PyObject * obj0 = 0 ;
32157 PyObject * obj1 = 0 ;
32158 PyObject * obj2 = 0 ;
32159 char * kwnames[] = {
32160 (char *) "self",(char *) "col",(char *) "image", NULL
32161 };
32162
32163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32165 if (!SWIG_IsOK(res1)) {
32166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32167 }
32168 arg1 = reinterpret_cast< wxListView * >(argp1);
32169 ecode2 = SWIG_AsVal_int(obj1, &val2);
32170 if (!SWIG_IsOK(ecode2)) {
32171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32172 }
32173 arg2 = static_cast< int >(val2);
32174 ecode3 = SWIG_AsVal_int(obj2, &val3);
32175 if (!SWIG_IsOK(ecode3)) {
32176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32177 }
32178 arg3 = static_cast< int >(val3);
32179 {
32180 PyThreadState* __tstate = wxPyBeginAllowThreads();
32181 (arg1)->SetColumnImage(arg2,arg3);
32182 wxPyEndAllowThreads(__tstate);
32183 if (PyErr_Occurred()) SWIG_fail;
32184 }
32185 resultobj = SWIG_Py_Void();
32186 return resultobj;
32187 fail:
32188 return NULL;
32189 }
32190
32191
32192 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32193 PyObject *resultobj = 0;
32194 wxListView *arg1 = (wxListView *) 0 ;
32195 int arg2 ;
32196 void *argp1 = 0 ;
32197 int res1 = 0 ;
32198 int val2 ;
32199 int ecode2 = 0 ;
32200 PyObject * obj0 = 0 ;
32201 PyObject * obj1 = 0 ;
32202 char * kwnames[] = {
32203 (char *) "self",(char *) "col", NULL
32204 };
32205
32206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32208 if (!SWIG_IsOK(res1)) {
32209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32210 }
32211 arg1 = reinterpret_cast< wxListView * >(argp1);
32212 ecode2 = SWIG_AsVal_int(obj1, &val2);
32213 if (!SWIG_IsOK(ecode2)) {
32214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32215 }
32216 arg2 = static_cast< int >(val2);
32217 {
32218 PyThreadState* __tstate = wxPyBeginAllowThreads();
32219 (arg1)->ClearColumnImage(arg2);
32220 wxPyEndAllowThreads(__tstate);
32221 if (PyErr_Occurred()) SWIG_fail;
32222 }
32223 resultobj = SWIG_Py_Void();
32224 return resultobj;
32225 fail:
32226 return NULL;
32227 }
32228
32229
32230 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32231 PyObject *obj;
32232 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32233 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32234 return SWIG_Py_Void();
32235 }
32236
32237 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32238 return SWIG_Python_InitShadowInstance(args);
32239 }
32240
32241 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32242 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32243 return 1;
32244 }
32245
32246
32247 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32248 PyObject *pyobj = 0;
32249
32250 {
32251 #if wxUSE_UNICODE
32252 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32253 #else
32254 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32255 #endif
32256 }
32257 return pyobj;
32258 }
32259
32260
32261 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32262 PyObject *resultobj = 0;
32263 wxTreeItemId *result = 0 ;
32264
32265 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32266 {
32267 PyThreadState* __tstate = wxPyBeginAllowThreads();
32268 result = (wxTreeItemId *)new wxTreeItemId();
32269 wxPyEndAllowThreads(__tstate);
32270 if (PyErr_Occurred()) SWIG_fail;
32271 }
32272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32273 return resultobj;
32274 fail:
32275 return NULL;
32276 }
32277
32278
32279 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32280 PyObject *resultobj = 0;
32281 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32282 void *argp1 = 0 ;
32283 int res1 = 0 ;
32284 PyObject *swig_obj[1] ;
32285
32286 if (!args) SWIG_fail;
32287 swig_obj[0] = args;
32288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32289 if (!SWIG_IsOK(res1)) {
32290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32291 }
32292 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32293 {
32294 PyThreadState* __tstate = wxPyBeginAllowThreads();
32295 delete arg1;
32296
32297 wxPyEndAllowThreads(__tstate);
32298 if (PyErr_Occurred()) SWIG_fail;
32299 }
32300 resultobj = SWIG_Py_Void();
32301 return resultobj;
32302 fail:
32303 return NULL;
32304 }
32305
32306
32307 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32308 PyObject *resultobj = 0;
32309 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32310 bool result;
32311 void *argp1 = 0 ;
32312 int res1 = 0 ;
32313 PyObject *swig_obj[1] ;
32314
32315 if (!args) SWIG_fail;
32316 swig_obj[0] = args;
32317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32318 if (!SWIG_IsOK(res1)) {
32319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32320 }
32321 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32322 {
32323 PyThreadState* __tstate = wxPyBeginAllowThreads();
32324 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32325 wxPyEndAllowThreads(__tstate);
32326 if (PyErr_Occurred()) SWIG_fail;
32327 }
32328 {
32329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32330 }
32331 return resultobj;
32332 fail:
32333 return NULL;
32334 }
32335
32336
32337 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32338 PyObject *resultobj = 0;
32339 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32340 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32341 bool result;
32342 void *argp1 = 0 ;
32343 int res1 = 0 ;
32344 void *argp2 = 0 ;
32345 int res2 = 0 ;
32346 PyObject * obj0 = 0 ;
32347 PyObject * obj1 = 0 ;
32348 char * kwnames[] = {
32349 (char *) "self",(char *) "other", NULL
32350 };
32351
32352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32354 if (!SWIG_IsOK(res1)) {
32355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32356 }
32357 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32358 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32359 if (!SWIG_IsOK(res2)) {
32360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32361 }
32362 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32363 {
32364 PyThreadState* __tstate = wxPyBeginAllowThreads();
32365 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32366 wxPyEndAllowThreads(__tstate);
32367 if (PyErr_Occurred()) SWIG_fail;
32368 }
32369 {
32370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32371 }
32372 return resultobj;
32373 fail:
32374 return NULL;
32375 }
32376
32377
32378 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32379 PyObject *resultobj = 0;
32380 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32381 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32382 bool result;
32383 void *argp1 = 0 ;
32384 int res1 = 0 ;
32385 void *argp2 = 0 ;
32386 int res2 = 0 ;
32387 PyObject * obj0 = 0 ;
32388 PyObject * obj1 = 0 ;
32389 char * kwnames[] = {
32390 (char *) "self",(char *) "other", NULL
32391 };
32392
32393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32395 if (!SWIG_IsOK(res1)) {
32396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32397 }
32398 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32399 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32400 if (!SWIG_IsOK(res2)) {
32401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32402 }
32403 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32404 {
32405 PyThreadState* __tstate = wxPyBeginAllowThreads();
32406 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32407 wxPyEndAllowThreads(__tstate);
32408 if (PyErr_Occurred()) SWIG_fail;
32409 }
32410 {
32411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32412 }
32413 return resultobj;
32414 fail:
32415 return NULL;
32416 }
32417
32418
32419 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32420 PyObject *resultobj = 0;
32421 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32422 void *arg2 = (void *) 0 ;
32423 void *argp1 = 0 ;
32424 int res1 = 0 ;
32425 int res2 ;
32426 PyObject *swig_obj[2] ;
32427
32428 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32430 if (!SWIG_IsOK(res1)) {
32431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32432 }
32433 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32434 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32435 if (!SWIG_IsOK(res2)) {
32436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32437 }
32438 if (arg1) (arg1)->m_pItem = arg2;
32439
32440 resultobj = SWIG_Py_Void();
32441 return resultobj;
32442 fail:
32443 return NULL;
32444 }
32445
32446
32447 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32448 PyObject *resultobj = 0;
32449 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32450 void *result = 0 ;
32451 void *argp1 = 0 ;
32452 int res1 = 0 ;
32453 PyObject *swig_obj[1] ;
32454
32455 if (!args) SWIG_fail;
32456 swig_obj[0] = args;
32457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32458 if (!SWIG_IsOK(res1)) {
32459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32460 }
32461 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32462 result = (void *) ((arg1)->m_pItem);
32463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32464 return resultobj;
32465 fail:
32466 return NULL;
32467 }
32468
32469
32470 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32471 PyObject *obj;
32472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32473 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32474 return SWIG_Py_Void();
32475 }
32476
32477 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32478 return SWIG_Python_InitShadowInstance(args);
32479 }
32480
32481 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32482 PyObject *resultobj = 0;
32483 PyObject *arg1 = (PyObject *) NULL ;
32484 wxPyTreeItemData *result = 0 ;
32485 PyObject * obj0 = 0 ;
32486 char * kwnames[] = {
32487 (char *) "obj", NULL
32488 };
32489
32490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32491 if (obj0) {
32492 arg1 = obj0;
32493 }
32494 {
32495 PyThreadState* __tstate = wxPyBeginAllowThreads();
32496 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32497 wxPyEndAllowThreads(__tstate);
32498 if (PyErr_Occurred()) SWIG_fail;
32499 }
32500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32501 return resultobj;
32502 fail:
32503 return NULL;
32504 }
32505
32506
32507 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32508 PyObject *resultobj = 0;
32509 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32510 void *argp1 = 0 ;
32511 int res1 = 0 ;
32512 PyObject *swig_obj[1] ;
32513
32514 if (!args) SWIG_fail;
32515 swig_obj[0] = args;
32516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32517 if (!SWIG_IsOK(res1)) {
32518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32519 }
32520 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32521 {
32522 PyThreadState* __tstate = wxPyBeginAllowThreads();
32523 delete arg1;
32524
32525 wxPyEndAllowThreads(__tstate);
32526 if (PyErr_Occurred()) SWIG_fail;
32527 }
32528 resultobj = SWIG_Py_Void();
32529 return resultobj;
32530 fail:
32531 return NULL;
32532 }
32533
32534
32535 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32536 PyObject *resultobj = 0;
32537 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32538 PyObject *result = 0 ;
32539 void *argp1 = 0 ;
32540 int res1 = 0 ;
32541 PyObject *swig_obj[1] ;
32542
32543 if (!args) SWIG_fail;
32544 swig_obj[0] = args;
32545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32546 if (!SWIG_IsOK(res1)) {
32547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32548 }
32549 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32550 {
32551 PyThreadState* __tstate = wxPyBeginAllowThreads();
32552 result = (PyObject *)(arg1)->GetData();
32553 wxPyEndAllowThreads(__tstate);
32554 if (PyErr_Occurred()) SWIG_fail;
32555 }
32556 resultobj = result;
32557 return resultobj;
32558 fail:
32559 return NULL;
32560 }
32561
32562
32563 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32564 PyObject *resultobj = 0;
32565 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32566 PyObject *arg2 = (PyObject *) 0 ;
32567 void *argp1 = 0 ;
32568 int res1 = 0 ;
32569 PyObject * obj0 = 0 ;
32570 PyObject * obj1 = 0 ;
32571 char * kwnames[] = {
32572 (char *) "self",(char *) "obj", NULL
32573 };
32574
32575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32577 if (!SWIG_IsOK(res1)) {
32578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32579 }
32580 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32581 arg2 = obj1;
32582 {
32583 PyThreadState* __tstate = wxPyBeginAllowThreads();
32584 (arg1)->SetData(arg2);
32585 wxPyEndAllowThreads(__tstate);
32586 if (PyErr_Occurred()) SWIG_fail;
32587 }
32588 resultobj = SWIG_Py_Void();
32589 return resultobj;
32590 fail:
32591 return NULL;
32592 }
32593
32594
32595 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32596 PyObject *resultobj = 0;
32597 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32598 wxTreeItemId *result = 0 ;
32599 void *argp1 = 0 ;
32600 int res1 = 0 ;
32601 PyObject *swig_obj[1] ;
32602
32603 if (!args) SWIG_fail;
32604 swig_obj[0] = args;
32605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32606 if (!SWIG_IsOK(res1)) {
32607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32608 }
32609 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32610 {
32611 PyThreadState* __tstate = wxPyBeginAllowThreads();
32612 {
32613 wxTreeItemId const &_result_ref = (arg1)->GetId();
32614 result = (wxTreeItemId *) &_result_ref;
32615 }
32616 wxPyEndAllowThreads(__tstate);
32617 if (PyErr_Occurred()) SWIG_fail;
32618 }
32619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32620 return resultobj;
32621 fail:
32622 return NULL;
32623 }
32624
32625
32626 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32627 PyObject *resultobj = 0;
32628 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32629 wxTreeItemId *arg2 = 0 ;
32630 void *argp1 = 0 ;
32631 int res1 = 0 ;
32632 void *argp2 = 0 ;
32633 int res2 = 0 ;
32634 PyObject * obj0 = 0 ;
32635 PyObject * obj1 = 0 ;
32636 char * kwnames[] = {
32637 (char *) "self",(char *) "id", NULL
32638 };
32639
32640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32642 if (!SWIG_IsOK(res1)) {
32643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32644 }
32645 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32647 if (!SWIG_IsOK(res2)) {
32648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32649 }
32650 if (!argp2) {
32651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32652 }
32653 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32654 {
32655 PyThreadState* __tstate = wxPyBeginAllowThreads();
32656 (arg1)->SetId((wxTreeItemId const &)*arg2);
32657 wxPyEndAllowThreads(__tstate);
32658 if (PyErr_Occurred()) SWIG_fail;
32659 }
32660 resultobj = SWIG_Py_Void();
32661 return resultobj;
32662 fail:
32663 return NULL;
32664 }
32665
32666
32667 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32668 PyObject *resultobj = 0;
32669 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 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_wxPyTreeItemData, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32679 }
32680 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 wxPyTreeItemData_Destroy(arg1);
32684 wxPyEndAllowThreads(__tstate);
32685 if (PyErr_Occurred()) SWIG_fail;
32686 }
32687 resultobj = SWIG_Py_Void();
32688 return resultobj;
32689 fail:
32690 return NULL;
32691 }
32692
32693
32694 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32695 PyObject *obj;
32696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32697 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32698 return SWIG_Py_Void();
32699 }
32700
32701 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32702 return SWIG_Python_InitShadowInstance(args);
32703 }
32704
32705 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32706 PyObject *resultobj = 0;
32707 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32708 int arg2 = (int) 0 ;
32709 wxTreeEvent *result = 0 ;
32710 int val1 ;
32711 int ecode1 = 0 ;
32712 int val2 ;
32713 int ecode2 = 0 ;
32714 PyObject * obj0 = 0 ;
32715 PyObject * obj1 = 0 ;
32716 char * kwnames[] = {
32717 (char *) "commandType",(char *) "id", NULL
32718 };
32719
32720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32721 if (obj0) {
32722 ecode1 = SWIG_AsVal_int(obj0, &val1);
32723 if (!SWIG_IsOK(ecode1)) {
32724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32725 }
32726 arg1 = static_cast< wxEventType >(val1);
32727 }
32728 if (obj1) {
32729 ecode2 = SWIG_AsVal_int(obj1, &val2);
32730 if (!SWIG_IsOK(ecode2)) {
32731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32732 }
32733 arg2 = static_cast< int >(val2);
32734 }
32735 {
32736 PyThreadState* __tstate = wxPyBeginAllowThreads();
32737 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32738 wxPyEndAllowThreads(__tstate);
32739 if (PyErr_Occurred()) SWIG_fail;
32740 }
32741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32742 return resultobj;
32743 fail:
32744 return NULL;
32745 }
32746
32747
32748 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32749 PyObject *resultobj = 0;
32750 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32751 wxTreeItemId 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_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32761 }
32762 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32763 {
32764 PyThreadState* __tstate = wxPyBeginAllowThreads();
32765 result = ((wxTreeEvent const *)arg1)->GetItem();
32766 wxPyEndAllowThreads(__tstate);
32767 if (PyErr_Occurred()) SWIG_fail;
32768 }
32769 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32770 return resultobj;
32771 fail:
32772 return NULL;
32773 }
32774
32775
32776 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32777 PyObject *resultobj = 0;
32778 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32779 wxTreeItemId *arg2 = 0 ;
32780 void *argp1 = 0 ;
32781 int res1 = 0 ;
32782 void *argp2 = 0 ;
32783 int res2 = 0 ;
32784 PyObject * obj0 = 0 ;
32785 PyObject * obj1 = 0 ;
32786 char * kwnames[] = {
32787 (char *) "self",(char *) "item", NULL
32788 };
32789
32790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32792 if (!SWIG_IsOK(res1)) {
32793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32794 }
32795 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32797 if (!SWIG_IsOK(res2)) {
32798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32799 }
32800 if (!argp2) {
32801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32802 }
32803 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_Py_Void();
32811 return resultobj;
32812 fail:
32813 return NULL;
32814 }
32815
32816
32817 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32818 PyObject *resultobj = 0;
32819 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32820 wxTreeItemId result;
32821 void *argp1 = 0 ;
32822 int res1 = 0 ;
32823 PyObject *swig_obj[1] ;
32824
32825 if (!args) SWIG_fail;
32826 swig_obj[0] = args;
32827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32828 if (!SWIG_IsOK(res1)) {
32829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32830 }
32831 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32832 {
32833 PyThreadState* __tstate = wxPyBeginAllowThreads();
32834 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32835 wxPyEndAllowThreads(__tstate);
32836 if (PyErr_Occurred()) SWIG_fail;
32837 }
32838 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32839 return resultobj;
32840 fail:
32841 return NULL;
32842 }
32843
32844
32845 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32846 PyObject *resultobj = 0;
32847 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32848 wxTreeItemId *arg2 = 0 ;
32849 void *argp1 = 0 ;
32850 int res1 = 0 ;
32851 void *argp2 = 0 ;
32852 int res2 = 0 ;
32853 PyObject * obj0 = 0 ;
32854 PyObject * obj1 = 0 ;
32855 char * kwnames[] = {
32856 (char *) "self",(char *) "item", NULL
32857 };
32858
32859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32861 if (!SWIG_IsOK(res1)) {
32862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32863 }
32864 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32866 if (!SWIG_IsOK(res2)) {
32867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32868 }
32869 if (!argp2) {
32870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32871 }
32872 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32873 {
32874 PyThreadState* __tstate = wxPyBeginAllowThreads();
32875 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32876 wxPyEndAllowThreads(__tstate);
32877 if (PyErr_Occurred()) SWIG_fail;
32878 }
32879 resultobj = SWIG_Py_Void();
32880 return resultobj;
32881 fail:
32882 return NULL;
32883 }
32884
32885
32886 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32887 PyObject *resultobj = 0;
32888 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32889 wxPoint result;
32890 void *argp1 = 0 ;
32891 int res1 = 0 ;
32892 PyObject *swig_obj[1] ;
32893
32894 if (!args) SWIG_fail;
32895 swig_obj[0] = args;
32896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32897 if (!SWIG_IsOK(res1)) {
32898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32899 }
32900 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32901 {
32902 PyThreadState* __tstate = wxPyBeginAllowThreads();
32903 result = ((wxTreeEvent const *)arg1)->GetPoint();
32904 wxPyEndAllowThreads(__tstate);
32905 if (PyErr_Occurred()) SWIG_fail;
32906 }
32907 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32908 return resultobj;
32909 fail:
32910 return NULL;
32911 }
32912
32913
32914 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32915 PyObject *resultobj = 0;
32916 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32917 wxPoint *arg2 = 0 ;
32918 void *argp1 = 0 ;
32919 int res1 = 0 ;
32920 wxPoint temp2 ;
32921 PyObject * obj0 = 0 ;
32922 PyObject * obj1 = 0 ;
32923 char * kwnames[] = {
32924 (char *) "self",(char *) "pt", NULL
32925 };
32926
32927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32929 if (!SWIG_IsOK(res1)) {
32930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32931 }
32932 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32933 {
32934 arg2 = &temp2;
32935 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32936 }
32937 {
32938 PyThreadState* __tstate = wxPyBeginAllowThreads();
32939 (arg1)->SetPoint((wxPoint const &)*arg2);
32940 wxPyEndAllowThreads(__tstate);
32941 if (PyErr_Occurred()) SWIG_fail;
32942 }
32943 resultobj = SWIG_Py_Void();
32944 return resultobj;
32945 fail:
32946 return NULL;
32947 }
32948
32949
32950 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32951 PyObject *resultobj = 0;
32952 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32953 wxKeyEvent *result = 0 ;
32954 void *argp1 = 0 ;
32955 int res1 = 0 ;
32956 PyObject *swig_obj[1] ;
32957
32958 if (!args) SWIG_fail;
32959 swig_obj[0] = args;
32960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32961 if (!SWIG_IsOK(res1)) {
32962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32963 }
32964 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32965 {
32966 PyThreadState* __tstate = wxPyBeginAllowThreads();
32967 {
32968 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32969 result = (wxKeyEvent *) &_result_ref;
32970 }
32971 wxPyEndAllowThreads(__tstate);
32972 if (PyErr_Occurred()) SWIG_fail;
32973 }
32974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32975 return resultobj;
32976 fail:
32977 return NULL;
32978 }
32979
32980
32981 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32982 PyObject *resultobj = 0;
32983 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32984 int result;
32985 void *argp1 = 0 ;
32986 int res1 = 0 ;
32987 PyObject *swig_obj[1] ;
32988
32989 if (!args) SWIG_fail;
32990 swig_obj[0] = args;
32991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32992 if (!SWIG_IsOK(res1)) {
32993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32994 }
32995 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32996 {
32997 PyThreadState* __tstate = wxPyBeginAllowThreads();
32998 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32999 wxPyEndAllowThreads(__tstate);
33000 if (PyErr_Occurred()) SWIG_fail;
33001 }
33002 resultobj = SWIG_From_int(static_cast< int >(result));
33003 return resultobj;
33004 fail:
33005 return NULL;
33006 }
33007
33008
33009 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33010 PyObject *resultobj = 0;
33011 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33012 wxKeyEvent *arg2 = 0 ;
33013 void *argp1 = 0 ;
33014 int res1 = 0 ;
33015 void *argp2 = 0 ;
33016 int res2 = 0 ;
33017 PyObject * obj0 = 0 ;
33018 PyObject * obj1 = 0 ;
33019 char * kwnames[] = {
33020 (char *) "self",(char *) "evt", NULL
33021 };
33022
33023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33025 if (!SWIG_IsOK(res1)) {
33026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33027 }
33028 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33030 if (!SWIG_IsOK(res2)) {
33031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33032 }
33033 if (!argp2) {
33034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33035 }
33036 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33037 {
33038 PyThreadState* __tstate = wxPyBeginAllowThreads();
33039 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33040 wxPyEndAllowThreads(__tstate);
33041 if (PyErr_Occurred()) SWIG_fail;
33042 }
33043 resultobj = SWIG_Py_Void();
33044 return resultobj;
33045 fail:
33046 return NULL;
33047 }
33048
33049
33050 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33051 PyObject *resultobj = 0;
33052 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33053 wxString *result = 0 ;
33054 void *argp1 = 0 ;
33055 int res1 = 0 ;
33056 PyObject *swig_obj[1] ;
33057
33058 if (!args) SWIG_fail;
33059 swig_obj[0] = args;
33060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33061 if (!SWIG_IsOK(res1)) {
33062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33063 }
33064 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33065 {
33066 PyThreadState* __tstate = wxPyBeginAllowThreads();
33067 {
33068 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33069 result = (wxString *) &_result_ref;
33070 }
33071 wxPyEndAllowThreads(__tstate);
33072 if (PyErr_Occurred()) SWIG_fail;
33073 }
33074 {
33075 #if wxUSE_UNICODE
33076 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33077 #else
33078 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33079 #endif
33080 }
33081 return resultobj;
33082 fail:
33083 return NULL;
33084 }
33085
33086
33087 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33088 PyObject *resultobj = 0;
33089 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33090 wxString *arg2 = 0 ;
33091 void *argp1 = 0 ;
33092 int res1 = 0 ;
33093 bool temp2 = false ;
33094 PyObject * obj0 = 0 ;
33095 PyObject * obj1 = 0 ;
33096 char * kwnames[] = {
33097 (char *) "self",(char *) "label", NULL
33098 };
33099
33100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33102 if (!SWIG_IsOK(res1)) {
33103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33104 }
33105 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33106 {
33107 arg2 = wxString_in_helper(obj1);
33108 if (arg2 == NULL) SWIG_fail;
33109 temp2 = true;
33110 }
33111 {
33112 PyThreadState* __tstate = wxPyBeginAllowThreads();
33113 (arg1)->SetLabel((wxString const &)*arg2);
33114 wxPyEndAllowThreads(__tstate);
33115 if (PyErr_Occurred()) SWIG_fail;
33116 }
33117 resultobj = SWIG_Py_Void();
33118 {
33119 if (temp2)
33120 delete arg2;
33121 }
33122 return resultobj;
33123 fail:
33124 {
33125 if (temp2)
33126 delete arg2;
33127 }
33128 return NULL;
33129 }
33130
33131
33132 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33133 PyObject *resultobj = 0;
33134 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33135 bool result;
33136 void *argp1 = 0 ;
33137 int res1 = 0 ;
33138 PyObject *swig_obj[1] ;
33139
33140 if (!args) SWIG_fail;
33141 swig_obj[0] = args;
33142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33143 if (!SWIG_IsOK(res1)) {
33144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33145 }
33146 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33147 {
33148 PyThreadState* __tstate = wxPyBeginAllowThreads();
33149 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33150 wxPyEndAllowThreads(__tstate);
33151 if (PyErr_Occurred()) SWIG_fail;
33152 }
33153 {
33154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33155 }
33156 return resultobj;
33157 fail:
33158 return NULL;
33159 }
33160
33161
33162 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33163 PyObject *resultobj = 0;
33164 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33165 bool arg2 ;
33166 void *argp1 = 0 ;
33167 int res1 = 0 ;
33168 bool val2 ;
33169 int ecode2 = 0 ;
33170 PyObject * obj0 = 0 ;
33171 PyObject * obj1 = 0 ;
33172 char * kwnames[] = {
33173 (char *) "self",(char *) "editCancelled", NULL
33174 };
33175
33176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33178 if (!SWIG_IsOK(res1)) {
33179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33180 }
33181 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33182 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33183 if (!SWIG_IsOK(ecode2)) {
33184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33185 }
33186 arg2 = static_cast< bool >(val2);
33187 {
33188 PyThreadState* __tstate = wxPyBeginAllowThreads();
33189 (arg1)->SetEditCanceled(arg2);
33190 wxPyEndAllowThreads(__tstate);
33191 if (PyErr_Occurred()) SWIG_fail;
33192 }
33193 resultobj = SWIG_Py_Void();
33194 return resultobj;
33195 fail:
33196 return NULL;
33197 }
33198
33199
33200 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33201 PyObject *resultobj = 0;
33202 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33203 wxString *arg2 = 0 ;
33204 void *argp1 = 0 ;
33205 int res1 = 0 ;
33206 bool temp2 = false ;
33207 PyObject * obj0 = 0 ;
33208 PyObject * obj1 = 0 ;
33209 char * kwnames[] = {
33210 (char *) "self",(char *) "toolTip", NULL
33211 };
33212
33213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33215 if (!SWIG_IsOK(res1)) {
33216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33217 }
33218 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33219 {
33220 arg2 = wxString_in_helper(obj1);
33221 if (arg2 == NULL) SWIG_fail;
33222 temp2 = true;
33223 }
33224 {
33225 PyThreadState* __tstate = wxPyBeginAllowThreads();
33226 (arg1)->SetToolTip((wxString const &)*arg2);
33227 wxPyEndAllowThreads(__tstate);
33228 if (PyErr_Occurred()) SWIG_fail;
33229 }
33230 resultobj = SWIG_Py_Void();
33231 {
33232 if (temp2)
33233 delete arg2;
33234 }
33235 return resultobj;
33236 fail:
33237 {
33238 if (temp2)
33239 delete arg2;
33240 }
33241 return NULL;
33242 }
33243
33244
33245 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33246 PyObject *resultobj = 0;
33247 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33248 wxString result;
33249 void *argp1 = 0 ;
33250 int res1 = 0 ;
33251 PyObject *swig_obj[1] ;
33252
33253 if (!args) SWIG_fail;
33254 swig_obj[0] = args;
33255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33256 if (!SWIG_IsOK(res1)) {
33257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33258 }
33259 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
33262 result = (arg1)->GetToolTip();
33263 wxPyEndAllowThreads(__tstate);
33264 if (PyErr_Occurred()) SWIG_fail;
33265 }
33266 {
33267 #if wxUSE_UNICODE
33268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33269 #else
33270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33271 #endif
33272 }
33273 return resultobj;
33274 fail:
33275 return NULL;
33276 }
33277
33278
33279 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33280 PyObject *obj;
33281 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33282 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33283 return SWIG_Py_Void();
33284 }
33285
33286 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33287 return SWIG_Python_InitShadowInstance(args);
33288 }
33289
33290 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33291 PyObject *resultobj = 0;
33292 wxWindow *arg1 = (wxWindow *) 0 ;
33293 int arg2 = (int) -1 ;
33294 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33295 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33296 wxSize const &arg4_defvalue = wxDefaultSize ;
33297 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33298 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33299 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33300 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33301 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33302 wxString *arg7 = (wxString *) &arg7_defvalue ;
33303 wxPyTreeCtrl *result = 0 ;
33304 void *argp1 = 0 ;
33305 int res1 = 0 ;
33306 int val2 ;
33307 int ecode2 = 0 ;
33308 wxPoint temp3 ;
33309 wxSize temp4 ;
33310 long val5 ;
33311 int ecode5 = 0 ;
33312 void *argp6 = 0 ;
33313 int res6 = 0 ;
33314 bool temp7 = false ;
33315 PyObject * obj0 = 0 ;
33316 PyObject * obj1 = 0 ;
33317 PyObject * obj2 = 0 ;
33318 PyObject * obj3 = 0 ;
33319 PyObject * obj4 = 0 ;
33320 PyObject * obj5 = 0 ;
33321 PyObject * obj6 = 0 ;
33322 char * kwnames[] = {
33323 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33324 };
33325
33326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33328 if (!SWIG_IsOK(res1)) {
33329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33330 }
33331 arg1 = reinterpret_cast< wxWindow * >(argp1);
33332 if (obj1) {
33333 ecode2 = SWIG_AsVal_int(obj1, &val2);
33334 if (!SWIG_IsOK(ecode2)) {
33335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33336 }
33337 arg2 = static_cast< int >(val2);
33338 }
33339 if (obj2) {
33340 {
33341 arg3 = &temp3;
33342 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33343 }
33344 }
33345 if (obj3) {
33346 {
33347 arg4 = &temp4;
33348 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33349 }
33350 }
33351 if (obj4) {
33352 ecode5 = SWIG_AsVal_long(obj4, &val5);
33353 if (!SWIG_IsOK(ecode5)) {
33354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33355 }
33356 arg5 = static_cast< long >(val5);
33357 }
33358 if (obj5) {
33359 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33360 if (!SWIG_IsOK(res6)) {
33361 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33362 }
33363 if (!argp6) {
33364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33365 }
33366 arg6 = reinterpret_cast< wxValidator * >(argp6);
33367 }
33368 if (obj6) {
33369 {
33370 arg7 = wxString_in_helper(obj6);
33371 if (arg7 == NULL) SWIG_fail;
33372 temp7 = true;
33373 }
33374 }
33375 {
33376 if (!wxPyCheckForApp()) SWIG_fail;
33377 PyThreadState* __tstate = wxPyBeginAllowThreads();
33378 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33379 wxPyEndAllowThreads(__tstate);
33380 if (PyErr_Occurred()) SWIG_fail;
33381 }
33382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33383 {
33384 if (temp7)
33385 delete arg7;
33386 }
33387 return resultobj;
33388 fail:
33389 {
33390 if (temp7)
33391 delete arg7;
33392 }
33393 return NULL;
33394 }
33395
33396
33397 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33398 PyObject *resultobj = 0;
33399 wxPyTreeCtrl *result = 0 ;
33400
33401 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33402 {
33403 if (!wxPyCheckForApp()) SWIG_fail;
33404 PyThreadState* __tstate = wxPyBeginAllowThreads();
33405 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33406 wxPyEndAllowThreads(__tstate);
33407 if (PyErr_Occurred()) SWIG_fail;
33408 }
33409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33410 return resultobj;
33411 fail:
33412 return NULL;
33413 }
33414
33415
33416 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33417 PyObject *resultobj = 0;
33418 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33419 wxWindow *arg2 = (wxWindow *) 0 ;
33420 int arg3 = (int) -1 ;
33421 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33422 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33423 wxSize const &arg5_defvalue = wxDefaultSize ;
33424 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33425 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33426 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33427 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33428 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33429 wxString *arg8 = (wxString *) &arg8_defvalue ;
33430 bool result;
33431 void *argp1 = 0 ;
33432 int res1 = 0 ;
33433 void *argp2 = 0 ;
33434 int res2 = 0 ;
33435 int val3 ;
33436 int ecode3 = 0 ;
33437 wxPoint temp4 ;
33438 wxSize temp5 ;
33439 long val6 ;
33440 int ecode6 = 0 ;
33441 void *argp7 = 0 ;
33442 int res7 = 0 ;
33443 bool temp8 = false ;
33444 PyObject * obj0 = 0 ;
33445 PyObject * obj1 = 0 ;
33446 PyObject * obj2 = 0 ;
33447 PyObject * obj3 = 0 ;
33448 PyObject * obj4 = 0 ;
33449 PyObject * obj5 = 0 ;
33450 PyObject * obj6 = 0 ;
33451 PyObject * obj7 = 0 ;
33452 char * kwnames[] = {
33453 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33454 };
33455
33456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33460 }
33461 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33463 if (!SWIG_IsOK(res2)) {
33464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33465 }
33466 arg2 = reinterpret_cast< wxWindow * >(argp2);
33467 if (obj2) {
33468 ecode3 = SWIG_AsVal_int(obj2, &val3);
33469 if (!SWIG_IsOK(ecode3)) {
33470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33471 }
33472 arg3 = static_cast< int >(val3);
33473 }
33474 if (obj3) {
33475 {
33476 arg4 = &temp4;
33477 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33478 }
33479 }
33480 if (obj4) {
33481 {
33482 arg5 = &temp5;
33483 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33484 }
33485 }
33486 if (obj5) {
33487 ecode6 = SWIG_AsVal_long(obj5, &val6);
33488 if (!SWIG_IsOK(ecode6)) {
33489 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33490 }
33491 arg6 = static_cast< long >(val6);
33492 }
33493 if (obj6) {
33494 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33495 if (!SWIG_IsOK(res7)) {
33496 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33497 }
33498 if (!argp7) {
33499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33500 }
33501 arg7 = reinterpret_cast< wxValidator * >(argp7);
33502 }
33503 if (obj7) {
33504 {
33505 arg8 = wxString_in_helper(obj7);
33506 if (arg8 == NULL) SWIG_fail;
33507 temp8 = true;
33508 }
33509 }
33510 {
33511 PyThreadState* __tstate = wxPyBeginAllowThreads();
33512 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33513 wxPyEndAllowThreads(__tstate);
33514 if (PyErr_Occurred()) SWIG_fail;
33515 }
33516 {
33517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33518 }
33519 {
33520 if (temp8)
33521 delete arg8;
33522 }
33523 return resultobj;
33524 fail:
33525 {
33526 if (temp8)
33527 delete arg8;
33528 }
33529 return NULL;
33530 }
33531
33532
33533 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33534 PyObject *resultobj = 0;
33535 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33536 PyObject *arg2 = (PyObject *) 0 ;
33537 PyObject *arg3 = (PyObject *) 0 ;
33538 void *argp1 = 0 ;
33539 int res1 = 0 ;
33540 PyObject * obj0 = 0 ;
33541 PyObject * obj1 = 0 ;
33542 PyObject * obj2 = 0 ;
33543 char * kwnames[] = {
33544 (char *) "self",(char *) "self",(char *) "_class", NULL
33545 };
33546
33547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33549 if (!SWIG_IsOK(res1)) {
33550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33551 }
33552 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33553 arg2 = obj1;
33554 arg3 = obj2;
33555 {
33556 PyThreadState* __tstate = wxPyBeginAllowThreads();
33557 (arg1)->_setCallbackInfo(arg2,arg3);
33558 wxPyEndAllowThreads(__tstate);
33559 if (PyErr_Occurred()) SWIG_fail;
33560 }
33561 resultobj = SWIG_Py_Void();
33562 return resultobj;
33563 fail:
33564 return NULL;
33565 }
33566
33567
33568 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33569 PyObject *resultobj = 0;
33570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33571 unsigned int result;
33572 void *argp1 = 0 ;
33573 int res1 = 0 ;
33574 PyObject *swig_obj[1] ;
33575
33576 if (!args) SWIG_fail;
33577 swig_obj[0] = args;
33578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33579 if (!SWIG_IsOK(res1)) {
33580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33581 }
33582 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33583 {
33584 PyThreadState* __tstate = wxPyBeginAllowThreads();
33585 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33586 wxPyEndAllowThreads(__tstate);
33587 if (PyErr_Occurred()) SWIG_fail;
33588 }
33589 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33590 return resultobj;
33591 fail:
33592 return NULL;
33593 }
33594
33595
33596 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33597 PyObject *resultobj = 0;
33598 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33599 unsigned int result;
33600 void *argp1 = 0 ;
33601 int res1 = 0 ;
33602 PyObject *swig_obj[1] ;
33603
33604 if (!args) SWIG_fail;
33605 swig_obj[0] = args;
33606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33607 if (!SWIG_IsOK(res1)) {
33608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33609 }
33610 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33611 {
33612 PyThreadState* __tstate = wxPyBeginAllowThreads();
33613 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33614 wxPyEndAllowThreads(__tstate);
33615 if (PyErr_Occurred()) SWIG_fail;
33616 }
33617 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33618 return resultobj;
33619 fail:
33620 return NULL;
33621 }
33622
33623
33624 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33625 PyObject *resultobj = 0;
33626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33627 unsigned int arg2 ;
33628 void *argp1 = 0 ;
33629 int res1 = 0 ;
33630 unsigned int val2 ;
33631 int ecode2 = 0 ;
33632 PyObject * obj0 = 0 ;
33633 PyObject * obj1 = 0 ;
33634 char * kwnames[] = {
33635 (char *) "self",(char *) "indent", NULL
33636 };
33637
33638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33640 if (!SWIG_IsOK(res1)) {
33641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33642 }
33643 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33644 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33645 if (!SWIG_IsOK(ecode2)) {
33646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33647 }
33648 arg2 = static_cast< unsigned int >(val2);
33649 {
33650 PyThreadState* __tstate = wxPyBeginAllowThreads();
33651 (arg1)->SetIndent(arg2);
33652 wxPyEndAllowThreads(__tstate);
33653 if (PyErr_Occurred()) SWIG_fail;
33654 }
33655 resultobj = SWIG_Py_Void();
33656 return resultobj;
33657 fail:
33658 return NULL;
33659 }
33660
33661
33662 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33663 PyObject *resultobj = 0;
33664 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33665 unsigned int result;
33666 void *argp1 = 0 ;
33667 int res1 = 0 ;
33668 PyObject *swig_obj[1] ;
33669
33670 if (!args) SWIG_fail;
33671 swig_obj[0] = args;
33672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33673 if (!SWIG_IsOK(res1)) {
33674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33675 }
33676 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33677 {
33678 PyThreadState* __tstate = wxPyBeginAllowThreads();
33679 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33680 wxPyEndAllowThreads(__tstate);
33681 if (PyErr_Occurred()) SWIG_fail;
33682 }
33683 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33684 return resultobj;
33685 fail:
33686 return NULL;
33687 }
33688
33689
33690 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33691 PyObject *resultobj = 0;
33692 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33693 unsigned int arg2 ;
33694 void *argp1 = 0 ;
33695 int res1 = 0 ;
33696 unsigned int val2 ;
33697 int ecode2 = 0 ;
33698 PyObject * obj0 = 0 ;
33699 PyObject * obj1 = 0 ;
33700 char * kwnames[] = {
33701 (char *) "self",(char *) "spacing", NULL
33702 };
33703
33704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33706 if (!SWIG_IsOK(res1)) {
33707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33708 }
33709 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33710 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33711 if (!SWIG_IsOK(ecode2)) {
33712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33713 }
33714 arg2 = static_cast< unsigned int >(val2);
33715 {
33716 PyThreadState* __tstate = wxPyBeginAllowThreads();
33717 (arg1)->SetSpacing(arg2);
33718 wxPyEndAllowThreads(__tstate);
33719 if (PyErr_Occurred()) SWIG_fail;
33720 }
33721 resultobj = SWIG_Py_Void();
33722 return resultobj;
33723 fail:
33724 return NULL;
33725 }
33726
33727
33728 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33729 PyObject *resultobj = 0;
33730 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33731 wxImageList *result = 0 ;
33732 void *argp1 = 0 ;
33733 int res1 = 0 ;
33734 PyObject *swig_obj[1] ;
33735
33736 if (!args) SWIG_fail;
33737 swig_obj[0] = args;
33738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33739 if (!SWIG_IsOK(res1)) {
33740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33741 }
33742 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33743 {
33744 PyThreadState* __tstate = wxPyBeginAllowThreads();
33745 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33746 wxPyEndAllowThreads(__tstate);
33747 if (PyErr_Occurred()) SWIG_fail;
33748 }
33749 {
33750 resultobj = wxPyMake_wxObject(result, (bool)0);
33751 }
33752 return resultobj;
33753 fail:
33754 return NULL;
33755 }
33756
33757
33758 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33759 PyObject *resultobj = 0;
33760 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33761 wxImageList *result = 0 ;
33762 void *argp1 = 0 ;
33763 int res1 = 0 ;
33764 PyObject *swig_obj[1] ;
33765
33766 if (!args) SWIG_fail;
33767 swig_obj[0] = args;
33768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33769 if (!SWIG_IsOK(res1)) {
33770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33771 }
33772 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33773 {
33774 PyThreadState* __tstate = wxPyBeginAllowThreads();
33775 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33776 wxPyEndAllowThreads(__tstate);
33777 if (PyErr_Occurred()) SWIG_fail;
33778 }
33779 {
33780 resultobj = wxPyMake_wxObject(result, (bool)0);
33781 }
33782 return resultobj;
33783 fail:
33784 return NULL;
33785 }
33786
33787
33788 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33789 PyObject *resultobj = 0;
33790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33791 wxImageList *arg2 = (wxImageList *) 0 ;
33792 void *argp1 = 0 ;
33793 int res1 = 0 ;
33794 void *argp2 = 0 ;
33795 int res2 = 0 ;
33796 PyObject * obj0 = 0 ;
33797 PyObject * obj1 = 0 ;
33798 char * kwnames[] = {
33799 (char *) "self",(char *) "imageList", NULL
33800 };
33801
33802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33804 if (!SWIG_IsOK(res1)) {
33805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33806 }
33807 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33809 if (!SWIG_IsOK(res2)) {
33810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33811 }
33812 arg2 = reinterpret_cast< wxImageList * >(argp2);
33813 {
33814 PyThreadState* __tstate = wxPyBeginAllowThreads();
33815 (arg1)->SetImageList(arg2);
33816 wxPyEndAllowThreads(__tstate);
33817 if (PyErr_Occurred()) SWIG_fail;
33818 }
33819 resultobj = SWIG_Py_Void();
33820 return resultobj;
33821 fail:
33822 return NULL;
33823 }
33824
33825
33826 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33827 PyObject *resultobj = 0;
33828 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33829 wxImageList *arg2 = (wxImageList *) 0 ;
33830 void *argp1 = 0 ;
33831 int res1 = 0 ;
33832 void *argp2 = 0 ;
33833 int res2 = 0 ;
33834 PyObject * obj0 = 0 ;
33835 PyObject * obj1 = 0 ;
33836 char * kwnames[] = {
33837 (char *) "self",(char *) "imageList", NULL
33838 };
33839
33840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33842 if (!SWIG_IsOK(res1)) {
33843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33844 }
33845 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33846 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33847 if (!SWIG_IsOK(res2)) {
33848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33849 }
33850 arg2 = reinterpret_cast< wxImageList * >(argp2);
33851 {
33852 PyThreadState* __tstate = wxPyBeginAllowThreads();
33853 (arg1)->SetStateImageList(arg2);
33854 wxPyEndAllowThreads(__tstate);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 }
33857 resultobj = SWIG_Py_Void();
33858 return resultobj;
33859 fail:
33860 return NULL;
33861 }
33862
33863
33864 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33865 PyObject *resultobj = 0;
33866 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33867 wxImageList *arg2 = (wxImageList *) 0 ;
33868 void *argp1 = 0 ;
33869 int res1 = 0 ;
33870 int res2 = 0 ;
33871 PyObject * obj0 = 0 ;
33872 PyObject * obj1 = 0 ;
33873 char * kwnames[] = {
33874 (char *) "self",(char *) "imageList", NULL
33875 };
33876
33877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33879 if (!SWIG_IsOK(res1)) {
33880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33881 }
33882 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33883 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33884 if (!SWIG_IsOK(res2)) {
33885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33886 }
33887 {
33888 PyThreadState* __tstate = wxPyBeginAllowThreads();
33889 (arg1)->AssignImageList(arg2);
33890 wxPyEndAllowThreads(__tstate);
33891 if (PyErr_Occurred()) SWIG_fail;
33892 }
33893 resultobj = SWIG_Py_Void();
33894 return resultobj;
33895 fail:
33896 return NULL;
33897 }
33898
33899
33900 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33901 PyObject *resultobj = 0;
33902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33903 wxImageList *arg2 = (wxImageList *) 0 ;
33904 void *argp1 = 0 ;
33905 int res1 = 0 ;
33906 int res2 = 0 ;
33907 PyObject * obj0 = 0 ;
33908 PyObject * obj1 = 0 ;
33909 char * kwnames[] = {
33910 (char *) "self",(char *) "imageList", NULL
33911 };
33912
33913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33915 if (!SWIG_IsOK(res1)) {
33916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33917 }
33918 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33919 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33920 if (!SWIG_IsOK(res2)) {
33921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33922 }
33923 {
33924 PyThreadState* __tstate = wxPyBeginAllowThreads();
33925 (arg1)->AssignStateImageList(arg2);
33926 wxPyEndAllowThreads(__tstate);
33927 if (PyErr_Occurred()) SWIG_fail;
33928 }
33929 resultobj = SWIG_Py_Void();
33930 return resultobj;
33931 fail:
33932 return NULL;
33933 }
33934
33935
33936 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33937 PyObject *resultobj = 0;
33938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33939 wxTreeItemId *arg2 = 0 ;
33940 wxString result;
33941 void *argp1 = 0 ;
33942 int res1 = 0 ;
33943 void *argp2 = 0 ;
33944 int res2 = 0 ;
33945 PyObject * obj0 = 0 ;
33946 PyObject * obj1 = 0 ;
33947 char * kwnames[] = {
33948 (char *) "self",(char *) "item", NULL
33949 };
33950
33951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33953 if (!SWIG_IsOK(res1)) {
33954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33955 }
33956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33958 if (!SWIG_IsOK(res2)) {
33959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33960 }
33961 if (!argp2) {
33962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33963 }
33964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33965 {
33966 PyThreadState* __tstate = wxPyBeginAllowThreads();
33967 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33968 wxPyEndAllowThreads(__tstate);
33969 if (PyErr_Occurred()) SWIG_fail;
33970 }
33971 {
33972 #if wxUSE_UNICODE
33973 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33974 #else
33975 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33976 #endif
33977 }
33978 return resultobj;
33979 fail:
33980 return NULL;
33981 }
33982
33983
33984 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33985 PyObject *resultobj = 0;
33986 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33987 wxTreeItemId *arg2 = 0 ;
33988 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33989 int result;
33990 void *argp1 = 0 ;
33991 int res1 = 0 ;
33992 void *argp2 = 0 ;
33993 int res2 = 0 ;
33994 int val3 ;
33995 int ecode3 = 0 ;
33996 PyObject * obj0 = 0 ;
33997 PyObject * obj1 = 0 ;
33998 PyObject * obj2 = 0 ;
33999 char * kwnames[] = {
34000 (char *) "self",(char *) "item",(char *) "which", NULL
34001 };
34002
34003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34005 if (!SWIG_IsOK(res1)) {
34006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34007 }
34008 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34010 if (!SWIG_IsOK(res2)) {
34011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34012 }
34013 if (!argp2) {
34014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34015 }
34016 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34017 if (obj2) {
34018 ecode3 = SWIG_AsVal_int(obj2, &val3);
34019 if (!SWIG_IsOK(ecode3)) {
34020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34021 }
34022 arg3 = static_cast< wxTreeItemIcon >(val3);
34023 }
34024 {
34025 PyThreadState* __tstate = wxPyBeginAllowThreads();
34026 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34027 wxPyEndAllowThreads(__tstate);
34028 if (PyErr_Occurred()) SWIG_fail;
34029 }
34030 resultobj = SWIG_From_int(static_cast< int >(result));
34031 return resultobj;
34032 fail:
34033 return NULL;
34034 }
34035
34036
34037 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34038 PyObject *resultobj = 0;
34039 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34040 wxTreeItemId *arg2 = 0 ;
34041 wxPyTreeItemData *result = 0 ;
34042 void *argp1 = 0 ;
34043 int res1 = 0 ;
34044 void *argp2 = 0 ;
34045 int res2 = 0 ;
34046 PyObject * obj0 = 0 ;
34047 PyObject * obj1 = 0 ;
34048 char * kwnames[] = {
34049 (char *) "self",(char *) "item", NULL
34050 };
34051
34052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34054 if (!SWIG_IsOK(res1)) {
34055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34056 }
34057 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34059 if (!SWIG_IsOK(res2)) {
34060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34061 }
34062 if (!argp2) {
34063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34064 }
34065 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34066 {
34067 PyThreadState* __tstate = wxPyBeginAllowThreads();
34068 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34069 wxPyEndAllowThreads(__tstate);
34070 if (PyErr_Occurred()) SWIG_fail;
34071 }
34072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34073 return resultobj;
34074 fail:
34075 return NULL;
34076 }
34077
34078
34079 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34080 PyObject *resultobj = 0;
34081 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34082 wxTreeItemId *arg2 = 0 ;
34083 PyObject *result = 0 ;
34084 void *argp1 = 0 ;
34085 int res1 = 0 ;
34086 void *argp2 = 0 ;
34087 int res2 = 0 ;
34088 PyObject * obj0 = 0 ;
34089 PyObject * obj1 = 0 ;
34090 char * kwnames[] = {
34091 (char *) "self",(char *) "item", NULL
34092 };
34093
34094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34096 if (!SWIG_IsOK(res1)) {
34097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34098 }
34099 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34101 if (!SWIG_IsOK(res2)) {
34102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34103 }
34104 if (!argp2) {
34105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34106 }
34107 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34108 {
34109 PyThreadState* __tstate = wxPyBeginAllowThreads();
34110 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34111 wxPyEndAllowThreads(__tstate);
34112 if (PyErr_Occurred()) SWIG_fail;
34113 }
34114 resultobj = result;
34115 return resultobj;
34116 fail:
34117 return NULL;
34118 }
34119
34120
34121 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34122 PyObject *resultobj = 0;
34123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34124 wxTreeItemId *arg2 = 0 ;
34125 wxColour result;
34126 void *argp1 = 0 ;
34127 int res1 = 0 ;
34128 void *argp2 = 0 ;
34129 int res2 = 0 ;
34130 PyObject * obj0 = 0 ;
34131 PyObject * obj1 = 0 ;
34132 char * kwnames[] = {
34133 (char *) "self",(char *) "item", NULL
34134 };
34135
34136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34138 if (!SWIG_IsOK(res1)) {
34139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34140 }
34141 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34143 if (!SWIG_IsOK(res2)) {
34144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34145 }
34146 if (!argp2) {
34147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34148 }
34149 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34150 {
34151 PyThreadState* __tstate = wxPyBeginAllowThreads();
34152 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34153 wxPyEndAllowThreads(__tstate);
34154 if (PyErr_Occurred()) SWIG_fail;
34155 }
34156 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34157 return resultobj;
34158 fail:
34159 return NULL;
34160 }
34161
34162
34163 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34164 PyObject *resultobj = 0;
34165 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34166 wxTreeItemId *arg2 = 0 ;
34167 wxColour result;
34168 void *argp1 = 0 ;
34169 int res1 = 0 ;
34170 void *argp2 = 0 ;
34171 int res2 = 0 ;
34172 PyObject * obj0 = 0 ;
34173 PyObject * obj1 = 0 ;
34174 char * kwnames[] = {
34175 (char *) "self",(char *) "item", NULL
34176 };
34177
34178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34180 if (!SWIG_IsOK(res1)) {
34181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34182 }
34183 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34185 if (!SWIG_IsOK(res2)) {
34186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34187 }
34188 if (!argp2) {
34189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34190 }
34191 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34192 {
34193 PyThreadState* __tstate = wxPyBeginAllowThreads();
34194 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34195 wxPyEndAllowThreads(__tstate);
34196 if (PyErr_Occurred()) SWIG_fail;
34197 }
34198 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34199 return resultobj;
34200 fail:
34201 return NULL;
34202 }
34203
34204
34205 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34206 PyObject *resultobj = 0;
34207 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34208 wxTreeItemId *arg2 = 0 ;
34209 wxFont result;
34210 void *argp1 = 0 ;
34211 int res1 = 0 ;
34212 void *argp2 = 0 ;
34213 int res2 = 0 ;
34214 PyObject * obj0 = 0 ;
34215 PyObject * obj1 = 0 ;
34216 char * kwnames[] = {
34217 (char *) "self",(char *) "item", NULL
34218 };
34219
34220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34222 if (!SWIG_IsOK(res1)) {
34223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34224 }
34225 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34227 if (!SWIG_IsOK(res2)) {
34228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34229 }
34230 if (!argp2) {
34231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34232 }
34233 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34234 {
34235 PyThreadState* __tstate = wxPyBeginAllowThreads();
34236 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34237 wxPyEndAllowThreads(__tstate);
34238 if (PyErr_Occurred()) SWIG_fail;
34239 }
34240 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34241 return resultobj;
34242 fail:
34243 return NULL;
34244 }
34245
34246
34247 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34248 PyObject *resultobj = 0;
34249 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34250 wxTreeItemId *arg2 = 0 ;
34251 wxString *arg3 = 0 ;
34252 void *argp1 = 0 ;
34253 int res1 = 0 ;
34254 void *argp2 = 0 ;
34255 int res2 = 0 ;
34256 bool temp3 = false ;
34257 PyObject * obj0 = 0 ;
34258 PyObject * obj1 = 0 ;
34259 PyObject * obj2 = 0 ;
34260 char * kwnames[] = {
34261 (char *) "self",(char *) "item",(char *) "text", NULL
34262 };
34263
34264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34266 if (!SWIG_IsOK(res1)) {
34267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34268 }
34269 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34271 if (!SWIG_IsOK(res2)) {
34272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34273 }
34274 if (!argp2) {
34275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34276 }
34277 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34278 {
34279 arg3 = wxString_in_helper(obj2);
34280 if (arg3 == NULL) SWIG_fail;
34281 temp3 = true;
34282 }
34283 {
34284 PyThreadState* __tstate = wxPyBeginAllowThreads();
34285 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34286 wxPyEndAllowThreads(__tstate);
34287 if (PyErr_Occurred()) SWIG_fail;
34288 }
34289 resultobj = SWIG_Py_Void();
34290 {
34291 if (temp3)
34292 delete arg3;
34293 }
34294 return resultobj;
34295 fail:
34296 {
34297 if (temp3)
34298 delete arg3;
34299 }
34300 return NULL;
34301 }
34302
34303
34304 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34305 PyObject *resultobj = 0;
34306 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34307 wxTreeItemId *arg2 = 0 ;
34308 int arg3 ;
34309 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34310 void *argp1 = 0 ;
34311 int res1 = 0 ;
34312 void *argp2 = 0 ;
34313 int res2 = 0 ;
34314 int val3 ;
34315 int ecode3 = 0 ;
34316 int val4 ;
34317 int ecode4 = 0 ;
34318 PyObject * obj0 = 0 ;
34319 PyObject * obj1 = 0 ;
34320 PyObject * obj2 = 0 ;
34321 PyObject * obj3 = 0 ;
34322 char * kwnames[] = {
34323 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34324 };
34325
34326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34328 if (!SWIG_IsOK(res1)) {
34329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34330 }
34331 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34333 if (!SWIG_IsOK(res2)) {
34334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34335 }
34336 if (!argp2) {
34337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34338 }
34339 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34340 ecode3 = SWIG_AsVal_int(obj2, &val3);
34341 if (!SWIG_IsOK(ecode3)) {
34342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34343 }
34344 arg3 = static_cast< int >(val3);
34345 if (obj3) {
34346 ecode4 = SWIG_AsVal_int(obj3, &val4);
34347 if (!SWIG_IsOK(ecode4)) {
34348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34349 }
34350 arg4 = static_cast< wxTreeItemIcon >(val4);
34351 }
34352 {
34353 PyThreadState* __tstate = wxPyBeginAllowThreads();
34354 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34355 wxPyEndAllowThreads(__tstate);
34356 if (PyErr_Occurred()) SWIG_fail;
34357 }
34358 resultobj = SWIG_Py_Void();
34359 return resultobj;
34360 fail:
34361 return NULL;
34362 }
34363
34364
34365 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34366 PyObject *resultobj = 0;
34367 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34368 wxTreeItemId *arg2 = 0 ;
34369 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34370 void *argp1 = 0 ;
34371 int res1 = 0 ;
34372 void *argp2 = 0 ;
34373 int res2 = 0 ;
34374 int res3 = 0 ;
34375 PyObject * obj0 = 0 ;
34376 PyObject * obj1 = 0 ;
34377 PyObject * obj2 = 0 ;
34378 char * kwnames[] = {
34379 (char *) "self",(char *) "item",(char *) "data", NULL
34380 };
34381
34382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34384 if (!SWIG_IsOK(res1)) {
34385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34386 }
34387 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34388 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34389 if (!SWIG_IsOK(res2)) {
34390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34391 }
34392 if (!argp2) {
34393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34394 }
34395 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34396 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34397 if (!SWIG_IsOK(res3)) {
34398 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34399 }
34400 {
34401 PyThreadState* __tstate = wxPyBeginAllowThreads();
34402 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34403 wxPyEndAllowThreads(__tstate);
34404 if (PyErr_Occurred()) SWIG_fail;
34405 }
34406 resultobj = SWIG_Py_Void();
34407 return resultobj;
34408 fail:
34409 return NULL;
34410 }
34411
34412
34413 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34414 PyObject *resultobj = 0;
34415 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34416 wxTreeItemId *arg2 = 0 ;
34417 PyObject *arg3 = (PyObject *) 0 ;
34418 void *argp1 = 0 ;
34419 int res1 = 0 ;
34420 void *argp2 = 0 ;
34421 int res2 = 0 ;
34422 PyObject * obj0 = 0 ;
34423 PyObject * obj1 = 0 ;
34424 PyObject * obj2 = 0 ;
34425 char * kwnames[] = {
34426 (char *) "self",(char *) "item",(char *) "obj", NULL
34427 };
34428
34429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34431 if (!SWIG_IsOK(res1)) {
34432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34433 }
34434 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34436 if (!SWIG_IsOK(res2)) {
34437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34438 }
34439 if (!argp2) {
34440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34441 }
34442 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34443 arg3 = obj2;
34444 {
34445 PyThreadState* __tstate = wxPyBeginAllowThreads();
34446 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34447 wxPyEndAllowThreads(__tstate);
34448 if (PyErr_Occurred()) SWIG_fail;
34449 }
34450 resultobj = SWIG_Py_Void();
34451 return resultobj;
34452 fail:
34453 return NULL;
34454 }
34455
34456
34457 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34458 PyObject *resultobj = 0;
34459 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34460 wxTreeItemId *arg2 = 0 ;
34461 bool arg3 = (bool) true ;
34462 void *argp1 = 0 ;
34463 int res1 = 0 ;
34464 void *argp2 = 0 ;
34465 int res2 = 0 ;
34466 bool val3 ;
34467 int ecode3 = 0 ;
34468 PyObject * obj0 = 0 ;
34469 PyObject * obj1 = 0 ;
34470 PyObject * obj2 = 0 ;
34471 char * kwnames[] = {
34472 (char *) "self",(char *) "item",(char *) "has", NULL
34473 };
34474
34475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34477 if (!SWIG_IsOK(res1)) {
34478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34479 }
34480 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34482 if (!SWIG_IsOK(res2)) {
34483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34484 }
34485 if (!argp2) {
34486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34487 }
34488 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34489 if (obj2) {
34490 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34491 if (!SWIG_IsOK(ecode3)) {
34492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34493 }
34494 arg3 = static_cast< bool >(val3);
34495 }
34496 {
34497 PyThreadState* __tstate = wxPyBeginAllowThreads();
34498 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34499 wxPyEndAllowThreads(__tstate);
34500 if (PyErr_Occurred()) SWIG_fail;
34501 }
34502 resultobj = SWIG_Py_Void();
34503 return resultobj;
34504 fail:
34505 return NULL;
34506 }
34507
34508
34509 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34510 PyObject *resultobj = 0;
34511 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34512 wxTreeItemId *arg2 = 0 ;
34513 bool arg3 = (bool) true ;
34514 void *argp1 = 0 ;
34515 int res1 = 0 ;
34516 void *argp2 = 0 ;
34517 int res2 = 0 ;
34518 bool val3 ;
34519 int ecode3 = 0 ;
34520 PyObject * obj0 = 0 ;
34521 PyObject * obj1 = 0 ;
34522 PyObject * obj2 = 0 ;
34523 char * kwnames[] = {
34524 (char *) "self",(char *) "item",(char *) "bold", NULL
34525 };
34526
34527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34529 if (!SWIG_IsOK(res1)) {
34530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34531 }
34532 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34534 if (!SWIG_IsOK(res2)) {
34535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34536 }
34537 if (!argp2) {
34538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34539 }
34540 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34541 if (obj2) {
34542 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34543 if (!SWIG_IsOK(ecode3)) {
34544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34545 }
34546 arg3 = static_cast< bool >(val3);
34547 }
34548 {
34549 PyThreadState* __tstate = wxPyBeginAllowThreads();
34550 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34551 wxPyEndAllowThreads(__tstate);
34552 if (PyErr_Occurred()) SWIG_fail;
34553 }
34554 resultobj = SWIG_Py_Void();
34555 return resultobj;
34556 fail:
34557 return NULL;
34558 }
34559
34560
34561 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34562 PyObject *resultobj = 0;
34563 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34564 wxTreeItemId *arg2 = 0 ;
34565 bool arg3 = (bool) true ;
34566 void *argp1 = 0 ;
34567 int res1 = 0 ;
34568 void *argp2 = 0 ;
34569 int res2 = 0 ;
34570 bool val3 ;
34571 int ecode3 = 0 ;
34572 PyObject * obj0 = 0 ;
34573 PyObject * obj1 = 0 ;
34574 PyObject * obj2 = 0 ;
34575 char * kwnames[] = {
34576 (char *) "self",(char *) "item",(char *) "highlight", NULL
34577 };
34578
34579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34581 if (!SWIG_IsOK(res1)) {
34582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34583 }
34584 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34586 if (!SWIG_IsOK(res2)) {
34587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34588 }
34589 if (!argp2) {
34590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34591 }
34592 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34593 if (obj2) {
34594 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34595 if (!SWIG_IsOK(ecode3)) {
34596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34597 }
34598 arg3 = static_cast< bool >(val3);
34599 }
34600 {
34601 PyThreadState* __tstate = wxPyBeginAllowThreads();
34602 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34603 wxPyEndAllowThreads(__tstate);
34604 if (PyErr_Occurred()) SWIG_fail;
34605 }
34606 resultobj = SWIG_Py_Void();
34607 return resultobj;
34608 fail:
34609 return NULL;
34610 }
34611
34612
34613 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34614 PyObject *resultobj = 0;
34615 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34616 wxTreeItemId *arg2 = 0 ;
34617 wxColour *arg3 = 0 ;
34618 void *argp1 = 0 ;
34619 int res1 = 0 ;
34620 void *argp2 = 0 ;
34621 int res2 = 0 ;
34622 wxColour temp3 ;
34623 PyObject * obj0 = 0 ;
34624 PyObject * obj1 = 0 ;
34625 PyObject * obj2 = 0 ;
34626 char * kwnames[] = {
34627 (char *) "self",(char *) "item",(char *) "col", NULL
34628 };
34629
34630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34632 if (!SWIG_IsOK(res1)) {
34633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34634 }
34635 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34637 if (!SWIG_IsOK(res2)) {
34638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34639 }
34640 if (!argp2) {
34641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34642 }
34643 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34644 {
34645 arg3 = &temp3;
34646 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34647 }
34648 {
34649 PyThreadState* __tstate = wxPyBeginAllowThreads();
34650 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34651 wxPyEndAllowThreads(__tstate);
34652 if (PyErr_Occurred()) SWIG_fail;
34653 }
34654 resultobj = SWIG_Py_Void();
34655 return resultobj;
34656 fail:
34657 return NULL;
34658 }
34659
34660
34661 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34662 PyObject *resultobj = 0;
34663 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34664 wxTreeItemId *arg2 = 0 ;
34665 wxColour *arg3 = 0 ;
34666 void *argp1 = 0 ;
34667 int res1 = 0 ;
34668 void *argp2 = 0 ;
34669 int res2 = 0 ;
34670 wxColour temp3 ;
34671 PyObject * obj0 = 0 ;
34672 PyObject * obj1 = 0 ;
34673 PyObject * obj2 = 0 ;
34674 char * kwnames[] = {
34675 (char *) "self",(char *) "item",(char *) "col", NULL
34676 };
34677
34678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34680 if (!SWIG_IsOK(res1)) {
34681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34682 }
34683 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34685 if (!SWIG_IsOK(res2)) {
34686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34687 }
34688 if (!argp2) {
34689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34690 }
34691 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34692 {
34693 arg3 = &temp3;
34694 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34695 }
34696 {
34697 PyThreadState* __tstate = wxPyBeginAllowThreads();
34698 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34699 wxPyEndAllowThreads(__tstate);
34700 if (PyErr_Occurred()) SWIG_fail;
34701 }
34702 resultobj = SWIG_Py_Void();
34703 return resultobj;
34704 fail:
34705 return NULL;
34706 }
34707
34708
34709 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34710 PyObject *resultobj = 0;
34711 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34712 wxTreeItemId *arg2 = 0 ;
34713 wxFont *arg3 = 0 ;
34714 void *argp1 = 0 ;
34715 int res1 = 0 ;
34716 void *argp2 = 0 ;
34717 int res2 = 0 ;
34718 void *argp3 = 0 ;
34719 int res3 = 0 ;
34720 PyObject * obj0 = 0 ;
34721 PyObject * obj1 = 0 ;
34722 PyObject * obj2 = 0 ;
34723 char * kwnames[] = {
34724 (char *) "self",(char *) "item",(char *) "font", NULL
34725 };
34726
34727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34729 if (!SWIG_IsOK(res1)) {
34730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34731 }
34732 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34734 if (!SWIG_IsOK(res2)) {
34735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34736 }
34737 if (!argp2) {
34738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34739 }
34740 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34741 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34742 if (!SWIG_IsOK(res3)) {
34743 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34744 }
34745 if (!argp3) {
34746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34747 }
34748 arg3 = reinterpret_cast< wxFont * >(argp3);
34749 {
34750 PyThreadState* __tstate = wxPyBeginAllowThreads();
34751 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34752 wxPyEndAllowThreads(__tstate);
34753 if (PyErr_Occurred()) SWIG_fail;
34754 }
34755 resultobj = SWIG_Py_Void();
34756 return resultobj;
34757 fail:
34758 return NULL;
34759 }
34760
34761
34762 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34763 PyObject *resultobj = 0;
34764 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34765 wxTreeItemId *arg2 = 0 ;
34766 bool result;
34767 void *argp1 = 0 ;
34768 int res1 = 0 ;
34769 void *argp2 = 0 ;
34770 int res2 = 0 ;
34771 PyObject * obj0 = 0 ;
34772 PyObject * obj1 = 0 ;
34773 char * kwnames[] = {
34774 (char *) "self",(char *) "item", NULL
34775 };
34776
34777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34779 if (!SWIG_IsOK(res1)) {
34780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34781 }
34782 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34784 if (!SWIG_IsOK(res2)) {
34785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34786 }
34787 if (!argp2) {
34788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34789 }
34790 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34791 {
34792 PyThreadState* __tstate = wxPyBeginAllowThreads();
34793 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34794 wxPyEndAllowThreads(__tstate);
34795 if (PyErr_Occurred()) SWIG_fail;
34796 }
34797 {
34798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34799 }
34800 return resultobj;
34801 fail:
34802 return NULL;
34803 }
34804
34805
34806 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34807 PyObject *resultobj = 0;
34808 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34809 wxTreeItemId *arg2 = 0 ;
34810 bool result;
34811 void *argp1 = 0 ;
34812 int res1 = 0 ;
34813 void *argp2 = 0 ;
34814 int res2 = 0 ;
34815 PyObject * obj0 = 0 ;
34816 PyObject * obj1 = 0 ;
34817 char * kwnames[] = {
34818 (char *) "self",(char *) "item", NULL
34819 };
34820
34821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34823 if (!SWIG_IsOK(res1)) {
34824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34825 }
34826 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34828 if (!SWIG_IsOK(res2)) {
34829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34830 }
34831 if (!argp2) {
34832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34833 }
34834 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34835 {
34836 PyThreadState* __tstate = wxPyBeginAllowThreads();
34837 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34838 wxPyEndAllowThreads(__tstate);
34839 if (PyErr_Occurred()) SWIG_fail;
34840 }
34841 {
34842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34843 }
34844 return resultobj;
34845 fail:
34846 return NULL;
34847 }
34848
34849
34850 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34851 PyObject *resultobj = 0;
34852 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34853 wxTreeItemId *arg2 = 0 ;
34854 bool result;
34855 void *argp1 = 0 ;
34856 int res1 = 0 ;
34857 void *argp2 = 0 ;
34858 int res2 = 0 ;
34859 PyObject * obj0 = 0 ;
34860 PyObject * obj1 = 0 ;
34861 char * kwnames[] = {
34862 (char *) "self",(char *) "item", NULL
34863 };
34864
34865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34867 if (!SWIG_IsOK(res1)) {
34868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34869 }
34870 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34872 if (!SWIG_IsOK(res2)) {
34873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34874 }
34875 if (!argp2) {
34876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34877 }
34878 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34879 {
34880 PyThreadState* __tstate = wxPyBeginAllowThreads();
34881 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34882 wxPyEndAllowThreads(__tstate);
34883 if (PyErr_Occurred()) SWIG_fail;
34884 }
34885 {
34886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34887 }
34888 return resultobj;
34889 fail:
34890 return NULL;
34891 }
34892
34893
34894 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34895 PyObject *resultobj = 0;
34896 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34897 wxTreeItemId *arg2 = 0 ;
34898 bool result;
34899 void *argp1 = 0 ;
34900 int res1 = 0 ;
34901 void *argp2 = 0 ;
34902 int res2 = 0 ;
34903 PyObject * obj0 = 0 ;
34904 PyObject * obj1 = 0 ;
34905 char * kwnames[] = {
34906 (char *) "self",(char *) "item", NULL
34907 };
34908
34909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34911 if (!SWIG_IsOK(res1)) {
34912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34913 }
34914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34916 if (!SWIG_IsOK(res2)) {
34917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34918 }
34919 if (!argp2) {
34920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34923 {
34924 PyThreadState* __tstate = wxPyBeginAllowThreads();
34925 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34926 wxPyEndAllowThreads(__tstate);
34927 if (PyErr_Occurred()) SWIG_fail;
34928 }
34929 {
34930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34931 }
34932 return resultobj;
34933 fail:
34934 return NULL;
34935 }
34936
34937
34938 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34939 PyObject *resultobj = 0;
34940 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34941 wxTreeItemId *arg2 = 0 ;
34942 bool result;
34943 void *argp1 = 0 ;
34944 int res1 = 0 ;
34945 void *argp2 = 0 ;
34946 int res2 = 0 ;
34947 PyObject * obj0 = 0 ;
34948 PyObject * obj1 = 0 ;
34949 char * kwnames[] = {
34950 (char *) "self",(char *) "item", NULL
34951 };
34952
34953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34955 if (!SWIG_IsOK(res1)) {
34956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34957 }
34958 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34959 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34960 if (!SWIG_IsOK(res2)) {
34961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34962 }
34963 if (!argp2) {
34964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34965 }
34966 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34967 {
34968 PyThreadState* __tstate = wxPyBeginAllowThreads();
34969 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34970 wxPyEndAllowThreads(__tstate);
34971 if (PyErr_Occurred()) SWIG_fail;
34972 }
34973 {
34974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34975 }
34976 return resultobj;
34977 fail:
34978 return NULL;
34979 }
34980
34981
34982 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34983 PyObject *resultobj = 0;
34984 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34985 wxTreeItemId *arg2 = 0 ;
34986 bool arg3 = (bool) true ;
34987 size_t result;
34988 void *argp1 = 0 ;
34989 int res1 = 0 ;
34990 void *argp2 = 0 ;
34991 int res2 = 0 ;
34992 bool val3 ;
34993 int ecode3 = 0 ;
34994 PyObject * obj0 = 0 ;
34995 PyObject * obj1 = 0 ;
34996 PyObject * obj2 = 0 ;
34997 char * kwnames[] = {
34998 (char *) "self",(char *) "item",(char *) "recursively", NULL
34999 };
35000
35001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35003 if (!SWIG_IsOK(res1)) {
35004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35005 }
35006 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35008 if (!SWIG_IsOK(res2)) {
35009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35010 }
35011 if (!argp2) {
35012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35013 }
35014 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35015 if (obj2) {
35016 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35017 if (!SWIG_IsOK(ecode3)) {
35018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35019 }
35020 arg3 = static_cast< bool >(val3);
35021 }
35022 {
35023 PyThreadState* __tstate = wxPyBeginAllowThreads();
35024 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35025 wxPyEndAllowThreads(__tstate);
35026 if (PyErr_Occurred()) SWIG_fail;
35027 }
35028 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35029 return resultobj;
35030 fail:
35031 return NULL;
35032 }
35033
35034
35035 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35036 PyObject *resultobj = 0;
35037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35038 wxTreeItemId result;
35039 void *argp1 = 0 ;
35040 int res1 = 0 ;
35041 PyObject *swig_obj[1] ;
35042
35043 if (!args) SWIG_fail;
35044 swig_obj[0] = args;
35045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35046 if (!SWIG_IsOK(res1)) {
35047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35048 }
35049 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35050 {
35051 PyThreadState* __tstate = wxPyBeginAllowThreads();
35052 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35053 wxPyEndAllowThreads(__tstate);
35054 if (PyErr_Occurred()) SWIG_fail;
35055 }
35056 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35057 return resultobj;
35058 fail:
35059 return NULL;
35060 }
35061
35062
35063 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35064 PyObject *resultobj = 0;
35065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35066 wxTreeItemId result;
35067 void *argp1 = 0 ;
35068 int res1 = 0 ;
35069 PyObject *swig_obj[1] ;
35070
35071 if (!args) SWIG_fail;
35072 swig_obj[0] = args;
35073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35074 if (!SWIG_IsOK(res1)) {
35075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35076 }
35077 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35078 {
35079 PyThreadState* __tstate = wxPyBeginAllowThreads();
35080 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35081 wxPyEndAllowThreads(__tstate);
35082 if (PyErr_Occurred()) SWIG_fail;
35083 }
35084 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35085 return resultobj;
35086 fail:
35087 return NULL;
35088 }
35089
35090
35091 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35092 PyObject *resultobj = 0;
35093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35094 PyObject *result = 0 ;
35095 void *argp1 = 0 ;
35096 int res1 = 0 ;
35097 PyObject *swig_obj[1] ;
35098
35099 if (!args) SWIG_fail;
35100 swig_obj[0] = args;
35101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35102 if (!SWIG_IsOK(res1)) {
35103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35104 }
35105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35106 {
35107 PyThreadState* __tstate = wxPyBeginAllowThreads();
35108 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35109 wxPyEndAllowThreads(__tstate);
35110 if (PyErr_Occurred()) SWIG_fail;
35111 }
35112 resultobj = result;
35113 return resultobj;
35114 fail:
35115 return NULL;
35116 }
35117
35118
35119 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35120 PyObject *resultobj = 0;
35121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35122 wxTreeItemId *arg2 = 0 ;
35123 wxTreeItemId result;
35124 void *argp1 = 0 ;
35125 int res1 = 0 ;
35126 void *argp2 = 0 ;
35127 int res2 = 0 ;
35128 PyObject * obj0 = 0 ;
35129 PyObject * obj1 = 0 ;
35130 char * kwnames[] = {
35131 (char *) "self",(char *) "item", NULL
35132 };
35133
35134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35136 if (!SWIG_IsOK(res1)) {
35137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35138 }
35139 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35141 if (!SWIG_IsOK(res2)) {
35142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35143 }
35144 if (!argp2) {
35145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35146 }
35147 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35148 {
35149 PyThreadState* __tstate = wxPyBeginAllowThreads();
35150 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35151 wxPyEndAllowThreads(__tstate);
35152 if (PyErr_Occurred()) SWIG_fail;
35153 }
35154 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35155 return resultobj;
35156 fail:
35157 return NULL;
35158 }
35159
35160
35161 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35162 PyObject *resultobj = 0;
35163 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35164 wxTreeItemId *arg2 = 0 ;
35165 PyObject *result = 0 ;
35166 void *argp1 = 0 ;
35167 int res1 = 0 ;
35168 void *argp2 = 0 ;
35169 int res2 = 0 ;
35170 PyObject * obj0 = 0 ;
35171 PyObject * obj1 = 0 ;
35172 char * kwnames[] = {
35173 (char *) "self",(char *) "item", NULL
35174 };
35175
35176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35178 if (!SWIG_IsOK(res1)) {
35179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35180 }
35181 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35183 if (!SWIG_IsOK(res2)) {
35184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35185 }
35186 if (!argp2) {
35187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35188 }
35189 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35190 {
35191 PyThreadState* __tstate = wxPyBeginAllowThreads();
35192 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35193 wxPyEndAllowThreads(__tstate);
35194 if (PyErr_Occurred()) SWIG_fail;
35195 }
35196 resultobj = result;
35197 return resultobj;
35198 fail:
35199 return NULL;
35200 }
35201
35202
35203 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35204 PyObject *resultobj = 0;
35205 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35206 wxTreeItemId *arg2 = 0 ;
35207 void *arg3 = (void *) 0 ;
35208 PyObject *result = 0 ;
35209 void *argp1 = 0 ;
35210 int res1 = 0 ;
35211 void *argp2 = 0 ;
35212 int res2 = 0 ;
35213 int res3 ;
35214 PyObject * obj0 = 0 ;
35215 PyObject * obj1 = 0 ;
35216 PyObject * obj2 = 0 ;
35217 char * kwnames[] = {
35218 (char *) "self",(char *) "item",(char *) "cookie", NULL
35219 };
35220
35221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35223 if (!SWIG_IsOK(res1)) {
35224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35225 }
35226 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35227 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35228 if (!SWIG_IsOK(res2)) {
35229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35230 }
35231 if (!argp2) {
35232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35233 }
35234 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35235 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35236 if (!SWIG_IsOK(res3)) {
35237 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35238 }
35239 {
35240 PyThreadState* __tstate = wxPyBeginAllowThreads();
35241 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35242 wxPyEndAllowThreads(__tstate);
35243 if (PyErr_Occurred()) SWIG_fail;
35244 }
35245 resultobj = result;
35246 return resultobj;
35247 fail:
35248 return NULL;
35249 }
35250
35251
35252 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35253 PyObject *resultobj = 0;
35254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35255 wxTreeItemId *arg2 = 0 ;
35256 wxTreeItemId result;
35257 void *argp1 = 0 ;
35258 int res1 = 0 ;
35259 void *argp2 = 0 ;
35260 int res2 = 0 ;
35261 PyObject * obj0 = 0 ;
35262 PyObject * obj1 = 0 ;
35263 char * kwnames[] = {
35264 (char *) "self",(char *) "item", NULL
35265 };
35266
35267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35269 if (!SWIG_IsOK(res1)) {
35270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35271 }
35272 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35274 if (!SWIG_IsOK(res2)) {
35275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35276 }
35277 if (!argp2) {
35278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35279 }
35280 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35281 {
35282 PyThreadState* __tstate = wxPyBeginAllowThreads();
35283 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35284 wxPyEndAllowThreads(__tstate);
35285 if (PyErr_Occurred()) SWIG_fail;
35286 }
35287 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35288 return resultobj;
35289 fail:
35290 return NULL;
35291 }
35292
35293
35294 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35295 PyObject *resultobj = 0;
35296 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35297 wxTreeItemId *arg2 = 0 ;
35298 wxTreeItemId result;
35299 void *argp1 = 0 ;
35300 int res1 = 0 ;
35301 void *argp2 = 0 ;
35302 int res2 = 0 ;
35303 PyObject * obj0 = 0 ;
35304 PyObject * obj1 = 0 ;
35305 char * kwnames[] = {
35306 (char *) "self",(char *) "item", NULL
35307 };
35308
35309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35311 if (!SWIG_IsOK(res1)) {
35312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35313 }
35314 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35316 if (!SWIG_IsOK(res2)) {
35317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35318 }
35319 if (!argp2) {
35320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35321 }
35322 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35323 {
35324 PyThreadState* __tstate = wxPyBeginAllowThreads();
35325 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35326 wxPyEndAllowThreads(__tstate);
35327 if (PyErr_Occurred()) SWIG_fail;
35328 }
35329 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35330 return resultobj;
35331 fail:
35332 return NULL;
35333 }
35334
35335
35336 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35337 PyObject *resultobj = 0;
35338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35339 wxTreeItemId *arg2 = 0 ;
35340 wxTreeItemId result;
35341 void *argp1 = 0 ;
35342 int res1 = 0 ;
35343 void *argp2 = 0 ;
35344 int res2 = 0 ;
35345 PyObject * obj0 = 0 ;
35346 PyObject * obj1 = 0 ;
35347 char * kwnames[] = {
35348 (char *) "self",(char *) "item", NULL
35349 };
35350
35351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35353 if (!SWIG_IsOK(res1)) {
35354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35355 }
35356 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35358 if (!SWIG_IsOK(res2)) {
35359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35360 }
35361 if (!argp2) {
35362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35363 }
35364 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35365 {
35366 PyThreadState* __tstate = wxPyBeginAllowThreads();
35367 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35368 wxPyEndAllowThreads(__tstate);
35369 if (PyErr_Occurred()) SWIG_fail;
35370 }
35371 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35372 return resultobj;
35373 fail:
35374 return NULL;
35375 }
35376
35377
35378 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35379 PyObject *resultobj = 0;
35380 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35381 wxTreeItemId result;
35382 void *argp1 = 0 ;
35383 int res1 = 0 ;
35384 PyObject *swig_obj[1] ;
35385
35386 if (!args) SWIG_fail;
35387 swig_obj[0] = args;
35388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35389 if (!SWIG_IsOK(res1)) {
35390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35391 }
35392 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35393 {
35394 PyThreadState* __tstate = wxPyBeginAllowThreads();
35395 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35396 wxPyEndAllowThreads(__tstate);
35397 if (PyErr_Occurred()) SWIG_fail;
35398 }
35399 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35400 return resultobj;
35401 fail:
35402 return NULL;
35403 }
35404
35405
35406 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35407 PyObject *resultobj = 0;
35408 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35409 wxTreeItemId *arg2 = 0 ;
35410 wxTreeItemId result;
35411 void *argp1 = 0 ;
35412 int res1 = 0 ;
35413 void *argp2 = 0 ;
35414 int res2 = 0 ;
35415 PyObject * obj0 = 0 ;
35416 PyObject * obj1 = 0 ;
35417 char * kwnames[] = {
35418 (char *) "self",(char *) "item", NULL
35419 };
35420
35421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35423 if (!SWIG_IsOK(res1)) {
35424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35425 }
35426 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35428 if (!SWIG_IsOK(res2)) {
35429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35430 }
35431 if (!argp2) {
35432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35433 }
35434 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35435 {
35436 PyThreadState* __tstate = wxPyBeginAllowThreads();
35437 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35438 wxPyEndAllowThreads(__tstate);
35439 if (PyErr_Occurred()) SWIG_fail;
35440 }
35441 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35442 return resultobj;
35443 fail:
35444 return NULL;
35445 }
35446
35447
35448 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35449 PyObject *resultobj = 0;
35450 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35451 wxTreeItemId *arg2 = 0 ;
35452 wxTreeItemId result;
35453 void *argp1 = 0 ;
35454 int res1 = 0 ;
35455 void *argp2 = 0 ;
35456 int res2 = 0 ;
35457 PyObject * obj0 = 0 ;
35458 PyObject * obj1 = 0 ;
35459 char * kwnames[] = {
35460 (char *) "self",(char *) "item", NULL
35461 };
35462
35463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35465 if (!SWIG_IsOK(res1)) {
35466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35467 }
35468 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35470 if (!SWIG_IsOK(res2)) {
35471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35472 }
35473 if (!argp2) {
35474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35475 }
35476 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35477 {
35478 PyThreadState* __tstate = wxPyBeginAllowThreads();
35479 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35480 wxPyEndAllowThreads(__tstate);
35481 if (PyErr_Occurred()) SWIG_fail;
35482 }
35483 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35484 return resultobj;
35485 fail:
35486 return NULL;
35487 }
35488
35489
35490 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35491 PyObject *resultobj = 0;
35492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35493 wxString *arg2 = 0 ;
35494 int arg3 = (int) -1 ;
35495 int arg4 = (int) -1 ;
35496 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35497 wxTreeItemId result;
35498 void *argp1 = 0 ;
35499 int res1 = 0 ;
35500 bool temp2 = false ;
35501 int val3 ;
35502 int ecode3 = 0 ;
35503 int val4 ;
35504 int ecode4 = 0 ;
35505 int res5 = 0 ;
35506 PyObject * obj0 = 0 ;
35507 PyObject * obj1 = 0 ;
35508 PyObject * obj2 = 0 ;
35509 PyObject * obj3 = 0 ;
35510 PyObject * obj4 = 0 ;
35511 char * kwnames[] = {
35512 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35513 };
35514
35515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35517 if (!SWIG_IsOK(res1)) {
35518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35519 }
35520 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35521 {
35522 arg2 = wxString_in_helper(obj1);
35523 if (arg2 == NULL) SWIG_fail;
35524 temp2 = true;
35525 }
35526 if (obj2) {
35527 ecode3 = SWIG_AsVal_int(obj2, &val3);
35528 if (!SWIG_IsOK(ecode3)) {
35529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35530 }
35531 arg3 = static_cast< int >(val3);
35532 }
35533 if (obj3) {
35534 ecode4 = SWIG_AsVal_int(obj3, &val4);
35535 if (!SWIG_IsOK(ecode4)) {
35536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35537 }
35538 arg4 = static_cast< int >(val4);
35539 }
35540 if (obj4) {
35541 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35542 if (!SWIG_IsOK(res5)) {
35543 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35544 }
35545 }
35546 {
35547 PyThreadState* __tstate = wxPyBeginAllowThreads();
35548 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35549 wxPyEndAllowThreads(__tstate);
35550 if (PyErr_Occurred()) SWIG_fail;
35551 }
35552 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35553 {
35554 if (temp2)
35555 delete arg2;
35556 }
35557 return resultobj;
35558 fail:
35559 {
35560 if (temp2)
35561 delete arg2;
35562 }
35563 return NULL;
35564 }
35565
35566
35567 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35568 PyObject *resultobj = 0;
35569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35570 wxTreeItemId *arg2 = 0 ;
35571 wxString *arg3 = 0 ;
35572 int arg4 = (int) -1 ;
35573 int arg5 = (int) -1 ;
35574 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35575 wxTreeItemId result;
35576 void *argp1 = 0 ;
35577 int res1 = 0 ;
35578 void *argp2 = 0 ;
35579 int res2 = 0 ;
35580 bool temp3 = false ;
35581 int val4 ;
35582 int ecode4 = 0 ;
35583 int val5 ;
35584 int ecode5 = 0 ;
35585 int res6 = 0 ;
35586 PyObject * obj0 = 0 ;
35587 PyObject * obj1 = 0 ;
35588 PyObject * obj2 = 0 ;
35589 PyObject * obj3 = 0 ;
35590 PyObject * obj4 = 0 ;
35591 PyObject * obj5 = 0 ;
35592 char * kwnames[] = {
35593 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35594 };
35595
35596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35598 if (!SWIG_IsOK(res1)) {
35599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35600 }
35601 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35603 if (!SWIG_IsOK(res2)) {
35604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35605 }
35606 if (!argp2) {
35607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35608 }
35609 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35610 {
35611 arg3 = wxString_in_helper(obj2);
35612 if (arg3 == NULL) SWIG_fail;
35613 temp3 = true;
35614 }
35615 if (obj3) {
35616 ecode4 = SWIG_AsVal_int(obj3, &val4);
35617 if (!SWIG_IsOK(ecode4)) {
35618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35619 }
35620 arg4 = static_cast< int >(val4);
35621 }
35622 if (obj4) {
35623 ecode5 = SWIG_AsVal_int(obj4, &val5);
35624 if (!SWIG_IsOK(ecode5)) {
35625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35626 }
35627 arg5 = static_cast< int >(val5);
35628 }
35629 if (obj5) {
35630 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35631 if (!SWIG_IsOK(res6)) {
35632 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35633 }
35634 }
35635 {
35636 PyThreadState* __tstate = wxPyBeginAllowThreads();
35637 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35638 wxPyEndAllowThreads(__tstate);
35639 if (PyErr_Occurred()) SWIG_fail;
35640 }
35641 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35642 {
35643 if (temp3)
35644 delete arg3;
35645 }
35646 return resultobj;
35647 fail:
35648 {
35649 if (temp3)
35650 delete arg3;
35651 }
35652 return NULL;
35653 }
35654
35655
35656 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35657 PyObject *resultobj = 0;
35658 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35659 wxTreeItemId *arg2 = 0 ;
35660 wxTreeItemId *arg3 = 0 ;
35661 wxString *arg4 = 0 ;
35662 int arg5 = (int) -1 ;
35663 int arg6 = (int) -1 ;
35664 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35665 wxTreeItemId result;
35666 void *argp1 = 0 ;
35667 int res1 = 0 ;
35668 void *argp2 = 0 ;
35669 int res2 = 0 ;
35670 void *argp3 = 0 ;
35671 int res3 = 0 ;
35672 bool temp4 = false ;
35673 int val5 ;
35674 int ecode5 = 0 ;
35675 int val6 ;
35676 int ecode6 = 0 ;
35677 int res7 = 0 ;
35678 PyObject * obj0 = 0 ;
35679 PyObject * obj1 = 0 ;
35680 PyObject * obj2 = 0 ;
35681 PyObject * obj3 = 0 ;
35682 PyObject * obj4 = 0 ;
35683 PyObject * obj5 = 0 ;
35684 PyObject * obj6 = 0 ;
35685 char * kwnames[] = {
35686 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35687 };
35688
35689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35691 if (!SWIG_IsOK(res1)) {
35692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35693 }
35694 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35695 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35696 if (!SWIG_IsOK(res2)) {
35697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35698 }
35699 if (!argp2) {
35700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35701 }
35702 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35703 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35704 if (!SWIG_IsOK(res3)) {
35705 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35706 }
35707 if (!argp3) {
35708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35709 }
35710 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35711 {
35712 arg4 = wxString_in_helper(obj3);
35713 if (arg4 == NULL) SWIG_fail;
35714 temp4 = true;
35715 }
35716 if (obj4) {
35717 ecode5 = SWIG_AsVal_int(obj4, &val5);
35718 if (!SWIG_IsOK(ecode5)) {
35719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35720 }
35721 arg5 = static_cast< int >(val5);
35722 }
35723 if (obj5) {
35724 ecode6 = SWIG_AsVal_int(obj5, &val6);
35725 if (!SWIG_IsOK(ecode6)) {
35726 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35727 }
35728 arg6 = static_cast< int >(val6);
35729 }
35730 if (obj6) {
35731 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35732 if (!SWIG_IsOK(res7)) {
35733 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35734 }
35735 }
35736 {
35737 PyThreadState* __tstate = wxPyBeginAllowThreads();
35738 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35739 wxPyEndAllowThreads(__tstate);
35740 if (PyErr_Occurred()) SWIG_fail;
35741 }
35742 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35743 {
35744 if (temp4)
35745 delete arg4;
35746 }
35747 return resultobj;
35748 fail:
35749 {
35750 if (temp4)
35751 delete arg4;
35752 }
35753 return NULL;
35754 }
35755
35756
35757 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35758 PyObject *resultobj = 0;
35759 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35760 wxTreeItemId *arg2 = 0 ;
35761 size_t arg3 ;
35762 wxString *arg4 = 0 ;
35763 int arg5 = (int) -1 ;
35764 int arg6 = (int) -1 ;
35765 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35766 wxTreeItemId result;
35767 void *argp1 = 0 ;
35768 int res1 = 0 ;
35769 void *argp2 = 0 ;
35770 int res2 = 0 ;
35771 size_t val3 ;
35772 int ecode3 = 0 ;
35773 bool temp4 = false ;
35774 int val5 ;
35775 int ecode5 = 0 ;
35776 int val6 ;
35777 int ecode6 = 0 ;
35778 int res7 = 0 ;
35779 PyObject * obj0 = 0 ;
35780 PyObject * obj1 = 0 ;
35781 PyObject * obj2 = 0 ;
35782 PyObject * obj3 = 0 ;
35783 PyObject * obj4 = 0 ;
35784 PyObject * obj5 = 0 ;
35785 PyObject * obj6 = 0 ;
35786 char * kwnames[] = {
35787 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35788 };
35789
35790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35792 if (!SWIG_IsOK(res1)) {
35793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35794 }
35795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35797 if (!SWIG_IsOK(res2)) {
35798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35799 }
35800 if (!argp2) {
35801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35802 }
35803 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35804 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35805 if (!SWIG_IsOK(ecode3)) {
35806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35807 }
35808 arg3 = static_cast< size_t >(val3);
35809 {
35810 arg4 = wxString_in_helper(obj3);
35811 if (arg4 == NULL) SWIG_fail;
35812 temp4 = true;
35813 }
35814 if (obj4) {
35815 ecode5 = SWIG_AsVal_int(obj4, &val5);
35816 if (!SWIG_IsOK(ecode5)) {
35817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35818 }
35819 arg5 = static_cast< int >(val5);
35820 }
35821 if (obj5) {
35822 ecode6 = SWIG_AsVal_int(obj5, &val6);
35823 if (!SWIG_IsOK(ecode6)) {
35824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35825 }
35826 arg6 = static_cast< int >(val6);
35827 }
35828 if (obj6) {
35829 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35830 if (!SWIG_IsOK(res7)) {
35831 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35832 }
35833 }
35834 {
35835 PyThreadState* __tstate = wxPyBeginAllowThreads();
35836 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35837 wxPyEndAllowThreads(__tstate);
35838 if (PyErr_Occurred()) SWIG_fail;
35839 }
35840 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35841 {
35842 if (temp4)
35843 delete arg4;
35844 }
35845 return resultobj;
35846 fail:
35847 {
35848 if (temp4)
35849 delete arg4;
35850 }
35851 return NULL;
35852 }
35853
35854
35855 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35856 PyObject *resultobj = 0;
35857 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35858 wxTreeItemId *arg2 = 0 ;
35859 wxString *arg3 = 0 ;
35860 int arg4 = (int) -1 ;
35861 int arg5 = (int) -1 ;
35862 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35863 wxTreeItemId result;
35864 void *argp1 = 0 ;
35865 int res1 = 0 ;
35866 void *argp2 = 0 ;
35867 int res2 = 0 ;
35868 bool temp3 = false ;
35869 int val4 ;
35870 int ecode4 = 0 ;
35871 int val5 ;
35872 int ecode5 = 0 ;
35873 int res6 = 0 ;
35874 PyObject * obj0 = 0 ;
35875 PyObject * obj1 = 0 ;
35876 PyObject * obj2 = 0 ;
35877 PyObject * obj3 = 0 ;
35878 PyObject * obj4 = 0 ;
35879 PyObject * obj5 = 0 ;
35880 char * kwnames[] = {
35881 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35882 };
35883
35884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35886 if (!SWIG_IsOK(res1)) {
35887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35888 }
35889 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35891 if (!SWIG_IsOK(res2)) {
35892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35893 }
35894 if (!argp2) {
35895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35896 }
35897 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35898 {
35899 arg3 = wxString_in_helper(obj2);
35900 if (arg3 == NULL) SWIG_fail;
35901 temp3 = true;
35902 }
35903 if (obj3) {
35904 ecode4 = SWIG_AsVal_int(obj3, &val4);
35905 if (!SWIG_IsOK(ecode4)) {
35906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35907 }
35908 arg4 = static_cast< int >(val4);
35909 }
35910 if (obj4) {
35911 ecode5 = SWIG_AsVal_int(obj4, &val5);
35912 if (!SWIG_IsOK(ecode5)) {
35913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35914 }
35915 arg5 = static_cast< int >(val5);
35916 }
35917 if (obj5) {
35918 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35919 if (!SWIG_IsOK(res6)) {
35920 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35921 }
35922 }
35923 {
35924 PyThreadState* __tstate = wxPyBeginAllowThreads();
35925 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35926 wxPyEndAllowThreads(__tstate);
35927 if (PyErr_Occurred()) SWIG_fail;
35928 }
35929 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35930 {
35931 if (temp3)
35932 delete arg3;
35933 }
35934 return resultobj;
35935 fail:
35936 {
35937 if (temp3)
35938 delete arg3;
35939 }
35940 return NULL;
35941 }
35942
35943
35944 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35945 PyObject *resultobj = 0;
35946 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35947 wxTreeItemId *arg2 = 0 ;
35948 void *argp1 = 0 ;
35949 int res1 = 0 ;
35950 void *argp2 = 0 ;
35951 int res2 = 0 ;
35952 PyObject * obj0 = 0 ;
35953 PyObject * obj1 = 0 ;
35954 char * kwnames[] = {
35955 (char *) "self",(char *) "item", NULL
35956 };
35957
35958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35960 if (!SWIG_IsOK(res1)) {
35961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35962 }
35963 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35965 if (!SWIG_IsOK(res2)) {
35966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35967 }
35968 if (!argp2) {
35969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35970 }
35971 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35972 {
35973 PyThreadState* __tstate = wxPyBeginAllowThreads();
35974 (arg1)->Delete((wxTreeItemId const &)*arg2);
35975 wxPyEndAllowThreads(__tstate);
35976 if (PyErr_Occurred()) SWIG_fail;
35977 }
35978 resultobj = SWIG_Py_Void();
35979 return resultobj;
35980 fail:
35981 return NULL;
35982 }
35983
35984
35985 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35986 PyObject *resultobj = 0;
35987 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35988 wxTreeItemId *arg2 = 0 ;
35989 void *argp1 = 0 ;
35990 int res1 = 0 ;
35991 void *argp2 = 0 ;
35992 int res2 = 0 ;
35993 PyObject * obj0 = 0 ;
35994 PyObject * obj1 = 0 ;
35995 char * kwnames[] = {
35996 (char *) "self",(char *) "item", NULL
35997 };
35998
35999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36001 if (!SWIG_IsOK(res1)) {
36002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36003 }
36004 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36006 if (!SWIG_IsOK(res2)) {
36007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36008 }
36009 if (!argp2) {
36010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36011 }
36012 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36013 {
36014 PyThreadState* __tstate = wxPyBeginAllowThreads();
36015 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36016 wxPyEndAllowThreads(__tstate);
36017 if (PyErr_Occurred()) SWIG_fail;
36018 }
36019 resultobj = SWIG_Py_Void();
36020 return resultobj;
36021 fail:
36022 return NULL;
36023 }
36024
36025
36026 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36027 PyObject *resultobj = 0;
36028 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36029 void *argp1 = 0 ;
36030 int res1 = 0 ;
36031 PyObject *swig_obj[1] ;
36032
36033 if (!args) SWIG_fail;
36034 swig_obj[0] = args;
36035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36036 if (!SWIG_IsOK(res1)) {
36037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36038 }
36039 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36040 {
36041 PyThreadState* __tstate = wxPyBeginAllowThreads();
36042 (arg1)->DeleteAllItems();
36043 wxPyEndAllowThreads(__tstate);
36044 if (PyErr_Occurred()) SWIG_fail;
36045 }
36046 resultobj = SWIG_Py_Void();
36047 return resultobj;
36048 fail:
36049 return NULL;
36050 }
36051
36052
36053 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36054 PyObject *resultobj = 0;
36055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36056 wxTreeItemId *arg2 = 0 ;
36057 void *argp1 = 0 ;
36058 int res1 = 0 ;
36059 void *argp2 = 0 ;
36060 int res2 = 0 ;
36061 PyObject * obj0 = 0 ;
36062 PyObject * obj1 = 0 ;
36063 char * kwnames[] = {
36064 (char *) "self",(char *) "item", NULL
36065 };
36066
36067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36069 if (!SWIG_IsOK(res1)) {
36070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36071 }
36072 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36074 if (!SWIG_IsOK(res2)) {
36075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36076 }
36077 if (!argp2) {
36078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36079 }
36080 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36081 {
36082 PyThreadState* __tstate = wxPyBeginAllowThreads();
36083 (arg1)->Expand((wxTreeItemId const &)*arg2);
36084 wxPyEndAllowThreads(__tstate);
36085 if (PyErr_Occurred()) SWIG_fail;
36086 }
36087 resultobj = SWIG_Py_Void();
36088 return resultobj;
36089 fail:
36090 return NULL;
36091 }
36092
36093
36094 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36095 PyObject *resultobj = 0;
36096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36097 wxTreeItemId *arg2 = 0 ;
36098 void *argp1 = 0 ;
36099 int res1 = 0 ;
36100 void *argp2 = 0 ;
36101 int res2 = 0 ;
36102 PyObject * obj0 = 0 ;
36103 PyObject * obj1 = 0 ;
36104 char * kwnames[] = {
36105 (char *) "self",(char *) "item", NULL
36106 };
36107
36108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36110 if (!SWIG_IsOK(res1)) {
36111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36112 }
36113 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36115 if (!SWIG_IsOK(res2)) {
36116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36117 }
36118 if (!argp2) {
36119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36120 }
36121 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36122 {
36123 PyThreadState* __tstate = wxPyBeginAllowThreads();
36124 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36125 wxPyEndAllowThreads(__tstate);
36126 if (PyErr_Occurred()) SWIG_fail;
36127 }
36128 resultobj = SWIG_Py_Void();
36129 return resultobj;
36130 fail:
36131 return NULL;
36132 }
36133
36134
36135 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36136 PyObject *resultobj = 0;
36137 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36138 wxTreeItemId *arg2 = 0 ;
36139 void *argp1 = 0 ;
36140 int res1 = 0 ;
36141 void *argp2 = 0 ;
36142 int res2 = 0 ;
36143 PyObject * obj0 = 0 ;
36144 PyObject * obj1 = 0 ;
36145 char * kwnames[] = {
36146 (char *) "self",(char *) "item", NULL
36147 };
36148
36149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36151 if (!SWIG_IsOK(res1)) {
36152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36153 }
36154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36156 if (!SWIG_IsOK(res2)) {
36157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36158 }
36159 if (!argp2) {
36160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36161 }
36162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36163 {
36164 PyThreadState* __tstate = wxPyBeginAllowThreads();
36165 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36166 wxPyEndAllowThreads(__tstate);
36167 if (PyErr_Occurred()) SWIG_fail;
36168 }
36169 resultobj = SWIG_Py_Void();
36170 return resultobj;
36171 fail:
36172 return NULL;
36173 }
36174
36175
36176 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36177 PyObject *resultobj = 0;
36178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36179 wxTreeItemId *arg2 = 0 ;
36180 void *argp1 = 0 ;
36181 int res1 = 0 ;
36182 void *argp2 = 0 ;
36183 int res2 = 0 ;
36184 PyObject * obj0 = 0 ;
36185 PyObject * obj1 = 0 ;
36186 char * kwnames[] = {
36187 (char *) "self",(char *) "item", NULL
36188 };
36189
36190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36192 if (!SWIG_IsOK(res1)) {
36193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36194 }
36195 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36197 if (!SWIG_IsOK(res2)) {
36198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36199 }
36200 if (!argp2) {
36201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36202 }
36203 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36204 {
36205 PyThreadState* __tstate = wxPyBeginAllowThreads();
36206 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36207 wxPyEndAllowThreads(__tstate);
36208 if (PyErr_Occurred()) SWIG_fail;
36209 }
36210 resultobj = SWIG_Py_Void();
36211 return resultobj;
36212 fail:
36213 return NULL;
36214 }
36215
36216
36217 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36218 PyObject *resultobj = 0;
36219 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36220 void *argp1 = 0 ;
36221 int res1 = 0 ;
36222 PyObject *swig_obj[1] ;
36223
36224 if (!args) SWIG_fail;
36225 swig_obj[0] = args;
36226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36227 if (!SWIG_IsOK(res1)) {
36228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36229 }
36230 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36231 {
36232 PyThreadState* __tstate = wxPyBeginAllowThreads();
36233 (arg1)->Unselect();
36234 wxPyEndAllowThreads(__tstate);
36235 if (PyErr_Occurred()) SWIG_fail;
36236 }
36237 resultobj = SWIG_Py_Void();
36238 return resultobj;
36239 fail:
36240 return NULL;
36241 }
36242
36243
36244 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36245 PyObject *resultobj = 0;
36246 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36247 wxTreeItemId *arg2 = 0 ;
36248 void *argp1 = 0 ;
36249 int res1 = 0 ;
36250 void *argp2 = 0 ;
36251 int res2 = 0 ;
36252 PyObject * obj0 = 0 ;
36253 PyObject * obj1 = 0 ;
36254 char * kwnames[] = {
36255 (char *) "self",(char *) "item", NULL
36256 };
36257
36258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36260 if (!SWIG_IsOK(res1)) {
36261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36262 }
36263 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36265 if (!SWIG_IsOK(res2)) {
36266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36267 }
36268 if (!argp2) {
36269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36270 }
36271 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36272 {
36273 PyThreadState* __tstate = wxPyBeginAllowThreads();
36274 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36275 wxPyEndAllowThreads(__tstate);
36276 if (PyErr_Occurred()) SWIG_fail;
36277 }
36278 resultobj = SWIG_Py_Void();
36279 return resultobj;
36280 fail:
36281 return NULL;
36282 }
36283
36284
36285 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36286 PyObject *resultobj = 0;
36287 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36288 void *argp1 = 0 ;
36289 int res1 = 0 ;
36290 PyObject *swig_obj[1] ;
36291
36292 if (!args) SWIG_fail;
36293 swig_obj[0] = args;
36294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36295 if (!SWIG_IsOK(res1)) {
36296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36297 }
36298 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36299 {
36300 PyThreadState* __tstate = wxPyBeginAllowThreads();
36301 (arg1)->UnselectAll();
36302 wxPyEndAllowThreads(__tstate);
36303 if (PyErr_Occurred()) SWIG_fail;
36304 }
36305 resultobj = SWIG_Py_Void();
36306 return resultobj;
36307 fail:
36308 return NULL;
36309 }
36310
36311
36312 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36313 PyObject *resultobj = 0;
36314 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36315 wxTreeItemId *arg2 = 0 ;
36316 bool arg3 = (bool) true ;
36317 void *argp1 = 0 ;
36318 int res1 = 0 ;
36319 void *argp2 = 0 ;
36320 int res2 = 0 ;
36321 bool val3 ;
36322 int ecode3 = 0 ;
36323 PyObject * obj0 = 0 ;
36324 PyObject * obj1 = 0 ;
36325 PyObject * obj2 = 0 ;
36326 char * kwnames[] = {
36327 (char *) "self",(char *) "item",(char *) "select", NULL
36328 };
36329
36330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36332 if (!SWIG_IsOK(res1)) {
36333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36334 }
36335 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36337 if (!SWIG_IsOK(res2)) {
36338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36339 }
36340 if (!argp2) {
36341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36342 }
36343 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36344 if (obj2) {
36345 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36346 if (!SWIG_IsOK(ecode3)) {
36347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36348 }
36349 arg3 = static_cast< bool >(val3);
36350 }
36351 {
36352 PyThreadState* __tstate = wxPyBeginAllowThreads();
36353 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36354 wxPyEndAllowThreads(__tstate);
36355 if (PyErr_Occurred()) SWIG_fail;
36356 }
36357 resultobj = SWIG_Py_Void();
36358 return resultobj;
36359 fail:
36360 return NULL;
36361 }
36362
36363
36364 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36365 PyObject *resultobj = 0;
36366 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36367 wxTreeItemId *arg2 = 0 ;
36368 void *argp1 = 0 ;
36369 int res1 = 0 ;
36370 void *argp2 = 0 ;
36371 int res2 = 0 ;
36372 PyObject * obj0 = 0 ;
36373 PyObject * obj1 = 0 ;
36374 char * kwnames[] = {
36375 (char *) "self",(char *) "item", NULL
36376 };
36377
36378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36380 if (!SWIG_IsOK(res1)) {
36381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36382 }
36383 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36384 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36385 if (!SWIG_IsOK(res2)) {
36386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36387 }
36388 if (!argp2) {
36389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36390 }
36391 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36392 {
36393 PyThreadState* __tstate = wxPyBeginAllowThreads();
36394 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36395 wxPyEndAllowThreads(__tstate);
36396 if (PyErr_Occurred()) SWIG_fail;
36397 }
36398 resultobj = SWIG_Py_Void();
36399 return resultobj;
36400 fail:
36401 return NULL;
36402 }
36403
36404
36405 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36406 PyObject *resultobj = 0;
36407 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36408 wxTreeItemId *arg2 = 0 ;
36409 void *argp1 = 0 ;
36410 int res1 = 0 ;
36411 void *argp2 = 0 ;
36412 int res2 = 0 ;
36413 PyObject * obj0 = 0 ;
36414 PyObject * obj1 = 0 ;
36415 char * kwnames[] = {
36416 (char *) "self",(char *) "item", NULL
36417 };
36418
36419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36421 if (!SWIG_IsOK(res1)) {
36422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36423 }
36424 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36426 if (!SWIG_IsOK(res2)) {
36427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36428 }
36429 if (!argp2) {
36430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36431 }
36432 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36433 {
36434 PyThreadState* __tstate = wxPyBeginAllowThreads();
36435 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36436 wxPyEndAllowThreads(__tstate);
36437 if (PyErr_Occurred()) SWIG_fail;
36438 }
36439 resultobj = SWIG_Py_Void();
36440 return resultobj;
36441 fail:
36442 return NULL;
36443 }
36444
36445
36446 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36447 PyObject *resultobj = 0;
36448 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36449 wxTreeItemId *arg2 = 0 ;
36450 void *argp1 = 0 ;
36451 int res1 = 0 ;
36452 void *argp2 = 0 ;
36453 int res2 = 0 ;
36454 PyObject * obj0 = 0 ;
36455 PyObject * obj1 = 0 ;
36456 char * kwnames[] = {
36457 (char *) "self",(char *) "item", NULL
36458 };
36459
36460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36462 if (!SWIG_IsOK(res1)) {
36463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36464 }
36465 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36467 if (!SWIG_IsOK(res2)) {
36468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36469 }
36470 if (!argp2) {
36471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36472 }
36473 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36474 {
36475 PyThreadState* __tstate = wxPyBeginAllowThreads();
36476 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36477 wxPyEndAllowThreads(__tstate);
36478 if (PyErr_Occurred()) SWIG_fail;
36479 }
36480 resultobj = SWIG_Py_Void();
36481 return resultobj;
36482 fail:
36483 return NULL;
36484 }
36485
36486
36487 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36488 PyObject *resultobj = 0;
36489 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36490 wxTreeItemId *arg2 = 0 ;
36491 void *argp1 = 0 ;
36492 int res1 = 0 ;
36493 void *argp2 = 0 ;
36494 int res2 = 0 ;
36495 PyObject * obj0 = 0 ;
36496 PyObject * obj1 = 0 ;
36497 char * kwnames[] = {
36498 (char *) "self",(char *) "item", NULL
36499 };
36500
36501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36503 if (!SWIG_IsOK(res1)) {
36504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36505 }
36506 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36508 if (!SWIG_IsOK(res2)) {
36509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36510 }
36511 if (!argp2) {
36512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36513 }
36514 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36515 {
36516 PyThreadState* __tstate = wxPyBeginAllowThreads();
36517 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36518 wxPyEndAllowThreads(__tstate);
36519 if (PyErr_Occurred()) SWIG_fail;
36520 }
36521 resultobj = SWIG_Py_Void();
36522 return resultobj;
36523 fail:
36524 return NULL;
36525 }
36526
36527
36528 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36529 PyObject *resultobj = 0;
36530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36531 wxTextCtrl *result = 0 ;
36532 void *argp1 = 0 ;
36533 int res1 = 0 ;
36534 PyObject *swig_obj[1] ;
36535
36536 if (!args) SWIG_fail;
36537 swig_obj[0] = args;
36538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36539 if (!SWIG_IsOK(res1)) {
36540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36541 }
36542 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36543 {
36544 PyThreadState* __tstate = wxPyBeginAllowThreads();
36545 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36546 wxPyEndAllowThreads(__tstate);
36547 if (PyErr_Occurred()) SWIG_fail;
36548 }
36549 {
36550 resultobj = wxPyMake_wxObject(result, 0);
36551 }
36552 return resultobj;
36553 fail:
36554 return NULL;
36555 }
36556
36557
36558 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36559 PyObject *resultobj = 0;
36560 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36561 wxTreeItemId *arg2 = 0 ;
36562 void *argp1 = 0 ;
36563 int res1 = 0 ;
36564 void *argp2 = 0 ;
36565 int res2 = 0 ;
36566 PyObject * obj0 = 0 ;
36567 PyObject * obj1 = 0 ;
36568 char * kwnames[] = {
36569 (char *) "self",(char *) "item", NULL
36570 };
36571
36572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36574 if (!SWIG_IsOK(res1)) {
36575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36576 }
36577 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36579 if (!SWIG_IsOK(res2)) {
36580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36581 }
36582 if (!argp2) {
36583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36584 }
36585 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36586 {
36587 PyThreadState* __tstate = wxPyBeginAllowThreads();
36588 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36589 wxPyEndAllowThreads(__tstate);
36590 if (PyErr_Occurred()) SWIG_fail;
36591 }
36592 resultobj = SWIG_Py_Void();
36593 return resultobj;
36594 fail:
36595 return NULL;
36596 }
36597
36598
36599 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36600 PyObject *resultobj = 0;
36601 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36602 wxPoint *arg2 = 0 ;
36603 int *arg3 = 0 ;
36604 wxTreeItemId result;
36605 void *argp1 = 0 ;
36606 int res1 = 0 ;
36607 wxPoint temp2 ;
36608 int temp3 ;
36609 int res3 = SWIG_TMPOBJ ;
36610 PyObject * obj0 = 0 ;
36611 PyObject * obj1 = 0 ;
36612 char * kwnames[] = {
36613 (char *) "self",(char *) "point", NULL
36614 };
36615
36616 arg3 = &temp3;
36617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36619 if (!SWIG_IsOK(res1)) {
36620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36621 }
36622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36623 {
36624 arg2 = &temp2;
36625 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36626 }
36627 {
36628 PyThreadState* __tstate = wxPyBeginAllowThreads();
36629 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36630 wxPyEndAllowThreads(__tstate);
36631 if (PyErr_Occurred()) SWIG_fail;
36632 }
36633 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36634 if (SWIG_IsTmpObj(res3)) {
36635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36636 } else {
36637 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36639 }
36640 return resultobj;
36641 fail:
36642 return NULL;
36643 }
36644
36645
36646 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36647 PyObject *resultobj = 0;
36648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36649 wxTreeItemId *arg2 = 0 ;
36650 bool arg3 = (bool) false ;
36651 PyObject *result = 0 ;
36652 void *argp1 = 0 ;
36653 int res1 = 0 ;
36654 void *argp2 = 0 ;
36655 int res2 = 0 ;
36656 bool val3 ;
36657 int ecode3 = 0 ;
36658 PyObject * obj0 = 0 ;
36659 PyObject * obj1 = 0 ;
36660 PyObject * obj2 = 0 ;
36661 char * kwnames[] = {
36662 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36663 };
36664
36665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36667 if (!SWIG_IsOK(res1)) {
36668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36669 }
36670 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36672 if (!SWIG_IsOK(res2)) {
36673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36674 }
36675 if (!argp2) {
36676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36677 }
36678 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36679 if (obj2) {
36680 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36681 if (!SWIG_IsOK(ecode3)) {
36682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36683 }
36684 arg3 = static_cast< bool >(val3);
36685 }
36686 {
36687 PyThreadState* __tstate = wxPyBeginAllowThreads();
36688 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36689 wxPyEndAllowThreads(__tstate);
36690 if (PyErr_Occurred()) SWIG_fail;
36691 }
36692 resultobj = result;
36693 return resultobj;
36694 fail:
36695 return NULL;
36696 }
36697
36698
36699 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36700 PyObject *resultobj = 0;
36701 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36702 SwigValueWrapper<wxVisualAttributes > result;
36703 int val1 ;
36704 int ecode1 = 0 ;
36705 PyObject * obj0 = 0 ;
36706 char * kwnames[] = {
36707 (char *) "variant", NULL
36708 };
36709
36710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36711 if (obj0) {
36712 ecode1 = SWIG_AsVal_int(obj0, &val1);
36713 if (!SWIG_IsOK(ecode1)) {
36714 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36715 }
36716 arg1 = static_cast< wxWindowVariant >(val1);
36717 }
36718 {
36719 if (!wxPyCheckForApp()) SWIG_fail;
36720 PyThreadState* __tstate = wxPyBeginAllowThreads();
36721 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36722 wxPyEndAllowThreads(__tstate);
36723 if (PyErr_Occurred()) SWIG_fail;
36724 }
36725 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36726 return resultobj;
36727 fail:
36728 return NULL;
36729 }
36730
36731
36732 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36733 PyObject *resultobj = 0;
36734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36735 bool arg2 ;
36736 void *argp1 = 0 ;
36737 int res1 = 0 ;
36738 bool val2 ;
36739 int ecode2 = 0 ;
36740 PyObject * obj0 = 0 ;
36741 PyObject * obj1 = 0 ;
36742 char * kwnames[] = {
36743 (char *) "self",(char *) "q", NULL
36744 };
36745
36746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36748 if (!SWIG_IsOK(res1)) {
36749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36750 }
36751 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36752 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36753 if (!SWIG_IsOK(ecode2)) {
36754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36755 }
36756 arg2 = static_cast< bool >(val2);
36757 {
36758 PyThreadState* __tstate = wxPyBeginAllowThreads();
36759 (arg1)->SetQuickBestSize(arg2);
36760 wxPyEndAllowThreads(__tstate);
36761 if (PyErr_Occurred()) SWIG_fail;
36762 }
36763 resultobj = SWIG_Py_Void();
36764 return resultobj;
36765 fail:
36766 return NULL;
36767 }
36768
36769
36770 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36771 PyObject *resultobj = 0;
36772 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36773 bool result;
36774 void *argp1 = 0 ;
36775 int res1 = 0 ;
36776 PyObject *swig_obj[1] ;
36777
36778 if (!args) SWIG_fail;
36779 swig_obj[0] = args;
36780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36781 if (!SWIG_IsOK(res1)) {
36782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36783 }
36784 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36785 {
36786 PyThreadState* __tstate = wxPyBeginAllowThreads();
36787 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
36788 wxPyEndAllowThreads(__tstate);
36789 if (PyErr_Occurred()) SWIG_fail;
36790 }
36791 {
36792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36793 }
36794 return resultobj;
36795 fail:
36796 return NULL;
36797 }
36798
36799
36800 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36801 PyObject *obj;
36802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36803 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36804 return SWIG_Py_Void();
36805 }
36806
36807 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36808 return SWIG_Python_InitShadowInstance(args);
36809 }
36810
36811 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36812 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36813 return 1;
36814 }
36815
36816
36817 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36818 PyObject *pyobj = 0;
36819
36820 {
36821 #if wxUSE_UNICODE
36822 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36823 #else
36824 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36825 #endif
36826 }
36827 return pyobj;
36828 }
36829
36830
36831 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36832 PyObject *resultobj = 0;
36833 wxWindow *arg1 = (wxWindow *) 0 ;
36834 int arg2 = (int) (int)-1 ;
36835 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36836 wxString *arg3 = (wxString *) &arg3_defvalue ;
36837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36839 wxSize const &arg5_defvalue = wxDefaultSize ;
36840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36841 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36842 wxString const &arg7_defvalue = wxPyEmptyString ;
36843 wxString *arg7 = (wxString *) &arg7_defvalue ;
36844 int arg8 = (int) 0 ;
36845 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36846 wxString *arg9 = (wxString *) &arg9_defvalue ;
36847 wxGenericDirCtrl *result = 0 ;
36848 void *argp1 = 0 ;
36849 int res1 = 0 ;
36850 int val2 ;
36851 int ecode2 = 0 ;
36852 bool temp3 = false ;
36853 wxPoint temp4 ;
36854 wxSize temp5 ;
36855 long val6 ;
36856 int ecode6 = 0 ;
36857 bool temp7 = false ;
36858 int val8 ;
36859 int ecode8 = 0 ;
36860 bool temp9 = false ;
36861 PyObject * obj0 = 0 ;
36862 PyObject * obj1 = 0 ;
36863 PyObject * obj2 = 0 ;
36864 PyObject * obj3 = 0 ;
36865 PyObject * obj4 = 0 ;
36866 PyObject * obj5 = 0 ;
36867 PyObject * obj6 = 0 ;
36868 PyObject * obj7 = 0 ;
36869 PyObject * obj8 = 0 ;
36870 char * kwnames[] = {
36871 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36872 };
36873
36874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36876 if (!SWIG_IsOK(res1)) {
36877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36878 }
36879 arg1 = reinterpret_cast< wxWindow * >(argp1);
36880 if (obj1) {
36881 ecode2 = SWIG_AsVal_int(obj1, &val2);
36882 if (!SWIG_IsOK(ecode2)) {
36883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36884 }
36885 arg2 = static_cast< int >(val2);
36886 }
36887 if (obj2) {
36888 {
36889 arg3 = wxString_in_helper(obj2);
36890 if (arg3 == NULL) SWIG_fail;
36891 temp3 = true;
36892 }
36893 }
36894 if (obj3) {
36895 {
36896 arg4 = &temp4;
36897 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36898 }
36899 }
36900 if (obj4) {
36901 {
36902 arg5 = &temp5;
36903 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36904 }
36905 }
36906 if (obj5) {
36907 ecode6 = SWIG_AsVal_long(obj5, &val6);
36908 if (!SWIG_IsOK(ecode6)) {
36909 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36910 }
36911 arg6 = static_cast< long >(val6);
36912 }
36913 if (obj6) {
36914 {
36915 arg7 = wxString_in_helper(obj6);
36916 if (arg7 == NULL) SWIG_fail;
36917 temp7 = true;
36918 }
36919 }
36920 if (obj7) {
36921 ecode8 = SWIG_AsVal_int(obj7, &val8);
36922 if (!SWIG_IsOK(ecode8)) {
36923 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36924 }
36925 arg8 = static_cast< int >(val8);
36926 }
36927 if (obj8) {
36928 {
36929 arg9 = wxString_in_helper(obj8);
36930 if (arg9 == NULL) SWIG_fail;
36931 temp9 = true;
36932 }
36933 }
36934 {
36935 if (!wxPyCheckForApp()) SWIG_fail;
36936 PyThreadState* __tstate = wxPyBeginAllowThreads();
36937 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36938 wxPyEndAllowThreads(__tstate);
36939 if (PyErr_Occurred()) SWIG_fail;
36940 }
36941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36942 {
36943 if (temp3)
36944 delete arg3;
36945 }
36946 {
36947 if (temp7)
36948 delete arg7;
36949 }
36950 {
36951 if (temp9)
36952 delete arg9;
36953 }
36954 return resultobj;
36955 fail:
36956 {
36957 if (temp3)
36958 delete arg3;
36959 }
36960 {
36961 if (temp7)
36962 delete arg7;
36963 }
36964 {
36965 if (temp9)
36966 delete arg9;
36967 }
36968 return NULL;
36969 }
36970
36971
36972 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36973 PyObject *resultobj = 0;
36974 wxGenericDirCtrl *result = 0 ;
36975
36976 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36977 {
36978 if (!wxPyCheckForApp()) SWIG_fail;
36979 PyThreadState* __tstate = wxPyBeginAllowThreads();
36980 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36981 wxPyEndAllowThreads(__tstate);
36982 if (PyErr_Occurred()) SWIG_fail;
36983 }
36984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36985 return resultobj;
36986 fail:
36987 return NULL;
36988 }
36989
36990
36991 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36992 PyObject *resultobj = 0;
36993 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36994 wxWindow *arg2 = (wxWindow *) 0 ;
36995 int arg3 = (int) (int)-1 ;
36996 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36997 wxString *arg4 = (wxString *) &arg4_defvalue ;
36998 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36999 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37000 wxSize const &arg6_defvalue = wxDefaultSize ;
37001 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37002 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37003 wxString const &arg8_defvalue = wxPyEmptyString ;
37004 wxString *arg8 = (wxString *) &arg8_defvalue ;
37005 int arg9 = (int) 0 ;
37006 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37007 wxString *arg10 = (wxString *) &arg10_defvalue ;
37008 bool result;
37009 void *argp1 = 0 ;
37010 int res1 = 0 ;
37011 void *argp2 = 0 ;
37012 int res2 = 0 ;
37013 int val3 ;
37014 int ecode3 = 0 ;
37015 bool temp4 = false ;
37016 wxPoint temp5 ;
37017 wxSize temp6 ;
37018 long val7 ;
37019 int ecode7 = 0 ;
37020 bool temp8 = false ;
37021 int val9 ;
37022 int ecode9 = 0 ;
37023 bool temp10 = false ;
37024 PyObject * obj0 = 0 ;
37025 PyObject * obj1 = 0 ;
37026 PyObject * obj2 = 0 ;
37027 PyObject * obj3 = 0 ;
37028 PyObject * obj4 = 0 ;
37029 PyObject * obj5 = 0 ;
37030 PyObject * obj6 = 0 ;
37031 PyObject * obj7 = 0 ;
37032 PyObject * obj8 = 0 ;
37033 PyObject * obj9 = 0 ;
37034 char * kwnames[] = {
37035 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37036 };
37037
37038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37040 if (!SWIG_IsOK(res1)) {
37041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37042 }
37043 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37044 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37045 if (!SWIG_IsOK(res2)) {
37046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37047 }
37048 arg2 = reinterpret_cast< wxWindow * >(argp2);
37049 if (obj2) {
37050 ecode3 = SWIG_AsVal_int(obj2, &val3);
37051 if (!SWIG_IsOK(ecode3)) {
37052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37053 }
37054 arg3 = static_cast< int >(val3);
37055 }
37056 if (obj3) {
37057 {
37058 arg4 = wxString_in_helper(obj3);
37059 if (arg4 == NULL) SWIG_fail;
37060 temp4 = true;
37061 }
37062 }
37063 if (obj4) {
37064 {
37065 arg5 = &temp5;
37066 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37067 }
37068 }
37069 if (obj5) {
37070 {
37071 arg6 = &temp6;
37072 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37073 }
37074 }
37075 if (obj6) {
37076 ecode7 = SWIG_AsVal_long(obj6, &val7);
37077 if (!SWIG_IsOK(ecode7)) {
37078 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37079 }
37080 arg7 = static_cast< long >(val7);
37081 }
37082 if (obj7) {
37083 {
37084 arg8 = wxString_in_helper(obj7);
37085 if (arg8 == NULL) SWIG_fail;
37086 temp8 = true;
37087 }
37088 }
37089 if (obj8) {
37090 ecode9 = SWIG_AsVal_int(obj8, &val9);
37091 if (!SWIG_IsOK(ecode9)) {
37092 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37093 }
37094 arg9 = static_cast< int >(val9);
37095 }
37096 if (obj9) {
37097 {
37098 arg10 = wxString_in_helper(obj9);
37099 if (arg10 == NULL) SWIG_fail;
37100 temp10 = true;
37101 }
37102 }
37103 {
37104 PyThreadState* __tstate = wxPyBeginAllowThreads();
37105 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37106 wxPyEndAllowThreads(__tstate);
37107 if (PyErr_Occurred()) SWIG_fail;
37108 }
37109 {
37110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37111 }
37112 {
37113 if (temp4)
37114 delete arg4;
37115 }
37116 {
37117 if (temp8)
37118 delete arg8;
37119 }
37120 {
37121 if (temp10)
37122 delete arg10;
37123 }
37124 return resultobj;
37125 fail:
37126 {
37127 if (temp4)
37128 delete arg4;
37129 }
37130 {
37131 if (temp8)
37132 delete arg8;
37133 }
37134 {
37135 if (temp10)
37136 delete arg10;
37137 }
37138 return NULL;
37139 }
37140
37141
37142 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37143 PyObject *resultobj = 0;
37144 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37145 wxString *arg2 = 0 ;
37146 bool result;
37147 void *argp1 = 0 ;
37148 int res1 = 0 ;
37149 bool temp2 = false ;
37150 PyObject * obj0 = 0 ;
37151 PyObject * obj1 = 0 ;
37152 char * kwnames[] = {
37153 (char *) "self",(char *) "path", NULL
37154 };
37155
37156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37158 if (!SWIG_IsOK(res1)) {
37159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37160 }
37161 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37162 {
37163 arg2 = wxString_in_helper(obj1);
37164 if (arg2 == NULL) SWIG_fail;
37165 temp2 = true;
37166 }
37167 {
37168 PyThreadState* __tstate = wxPyBeginAllowThreads();
37169 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37170 wxPyEndAllowThreads(__tstate);
37171 if (PyErr_Occurred()) SWIG_fail;
37172 }
37173 {
37174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37175 }
37176 {
37177 if (temp2)
37178 delete arg2;
37179 }
37180 return resultobj;
37181 fail:
37182 {
37183 if (temp2)
37184 delete arg2;
37185 }
37186 return NULL;
37187 }
37188
37189
37190 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37191 PyObject *resultobj = 0;
37192 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37193 wxString *arg2 = 0 ;
37194 bool result;
37195 void *argp1 = 0 ;
37196 int res1 = 0 ;
37197 bool temp2 = false ;
37198 PyObject * obj0 = 0 ;
37199 PyObject * obj1 = 0 ;
37200 char * kwnames[] = {
37201 (char *) "self",(char *) "path", NULL
37202 };
37203
37204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37206 if (!SWIG_IsOK(res1)) {
37207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37208 }
37209 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37210 {
37211 arg2 = wxString_in_helper(obj1);
37212 if (arg2 == NULL) SWIG_fail;
37213 temp2 = true;
37214 }
37215 {
37216 PyThreadState* __tstate = wxPyBeginAllowThreads();
37217 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37218 wxPyEndAllowThreads(__tstate);
37219 if (PyErr_Occurred()) SWIG_fail;
37220 }
37221 {
37222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37223 }
37224 {
37225 if (temp2)
37226 delete arg2;
37227 }
37228 return resultobj;
37229 fail:
37230 {
37231 if (temp2)
37232 delete arg2;
37233 }
37234 return NULL;
37235 }
37236
37237
37238 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37239 PyObject *resultobj = 0;
37240 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37241 wxString result;
37242 void *argp1 = 0 ;
37243 int res1 = 0 ;
37244 PyObject *swig_obj[1] ;
37245
37246 if (!args) SWIG_fail;
37247 swig_obj[0] = args;
37248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37249 if (!SWIG_IsOK(res1)) {
37250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37251 }
37252 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37253 {
37254 PyThreadState* __tstate = wxPyBeginAllowThreads();
37255 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37256 wxPyEndAllowThreads(__tstate);
37257 if (PyErr_Occurred()) SWIG_fail;
37258 }
37259 {
37260 #if wxUSE_UNICODE
37261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37262 #else
37263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37264 #endif
37265 }
37266 return resultobj;
37267 fail:
37268 return NULL;
37269 }
37270
37271
37272 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37273 PyObject *resultobj = 0;
37274 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37275 wxString *arg2 = 0 ;
37276 void *argp1 = 0 ;
37277 int res1 = 0 ;
37278 bool temp2 = false ;
37279 PyObject * obj0 = 0 ;
37280 PyObject * obj1 = 0 ;
37281 char * kwnames[] = {
37282 (char *) "self",(char *) "path", NULL
37283 };
37284
37285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37287 if (!SWIG_IsOK(res1)) {
37288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37289 }
37290 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37291 {
37292 arg2 = wxString_in_helper(obj1);
37293 if (arg2 == NULL) SWIG_fail;
37294 temp2 = true;
37295 }
37296 {
37297 PyThreadState* __tstate = wxPyBeginAllowThreads();
37298 (arg1)->SetDefaultPath((wxString const &)*arg2);
37299 wxPyEndAllowThreads(__tstate);
37300 if (PyErr_Occurred()) SWIG_fail;
37301 }
37302 resultobj = SWIG_Py_Void();
37303 {
37304 if (temp2)
37305 delete arg2;
37306 }
37307 return resultobj;
37308 fail:
37309 {
37310 if (temp2)
37311 delete arg2;
37312 }
37313 return NULL;
37314 }
37315
37316
37317 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37318 PyObject *resultobj = 0;
37319 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37320 wxString result;
37321 void *argp1 = 0 ;
37322 int res1 = 0 ;
37323 PyObject *swig_obj[1] ;
37324
37325 if (!args) SWIG_fail;
37326 swig_obj[0] = args;
37327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37328 if (!SWIG_IsOK(res1)) {
37329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37330 }
37331 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37332 {
37333 PyThreadState* __tstate = wxPyBeginAllowThreads();
37334 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37335 wxPyEndAllowThreads(__tstate);
37336 if (PyErr_Occurred()) SWIG_fail;
37337 }
37338 {
37339 #if wxUSE_UNICODE
37340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37341 #else
37342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37343 #endif
37344 }
37345 return resultobj;
37346 fail:
37347 return NULL;
37348 }
37349
37350
37351 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37352 PyObject *resultobj = 0;
37353 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37354 wxString result;
37355 void *argp1 = 0 ;
37356 int res1 = 0 ;
37357 PyObject *swig_obj[1] ;
37358
37359 if (!args) SWIG_fail;
37360 swig_obj[0] = args;
37361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37362 if (!SWIG_IsOK(res1)) {
37363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37364 }
37365 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37366 {
37367 PyThreadState* __tstate = wxPyBeginAllowThreads();
37368 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37369 wxPyEndAllowThreads(__tstate);
37370 if (PyErr_Occurred()) SWIG_fail;
37371 }
37372 {
37373 #if wxUSE_UNICODE
37374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37375 #else
37376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37377 #endif
37378 }
37379 return resultobj;
37380 fail:
37381 return NULL;
37382 }
37383
37384
37385 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37386 PyObject *resultobj = 0;
37387 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37388 wxString *arg2 = 0 ;
37389 void *argp1 = 0 ;
37390 int res1 = 0 ;
37391 bool temp2 = false ;
37392 PyObject * obj0 = 0 ;
37393 PyObject * obj1 = 0 ;
37394 char * kwnames[] = {
37395 (char *) "self",(char *) "path", NULL
37396 };
37397
37398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37400 if (!SWIG_IsOK(res1)) {
37401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37402 }
37403 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37404 {
37405 arg2 = wxString_in_helper(obj1);
37406 if (arg2 == NULL) SWIG_fail;
37407 temp2 = true;
37408 }
37409 {
37410 PyThreadState* __tstate = wxPyBeginAllowThreads();
37411 (arg1)->SetPath((wxString const &)*arg2);
37412 wxPyEndAllowThreads(__tstate);
37413 if (PyErr_Occurred()) SWIG_fail;
37414 }
37415 resultobj = SWIG_Py_Void();
37416 {
37417 if (temp2)
37418 delete arg2;
37419 }
37420 return resultobj;
37421 fail:
37422 {
37423 if (temp2)
37424 delete arg2;
37425 }
37426 return NULL;
37427 }
37428
37429
37430 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37431 PyObject *resultobj = 0;
37432 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37433 bool arg2 ;
37434 void *argp1 = 0 ;
37435 int res1 = 0 ;
37436 bool val2 ;
37437 int ecode2 = 0 ;
37438 PyObject * obj0 = 0 ;
37439 PyObject * obj1 = 0 ;
37440 char * kwnames[] = {
37441 (char *) "self",(char *) "show", NULL
37442 };
37443
37444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37446 if (!SWIG_IsOK(res1)) {
37447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37448 }
37449 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37450 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37451 if (!SWIG_IsOK(ecode2)) {
37452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37453 }
37454 arg2 = static_cast< bool >(val2);
37455 {
37456 PyThreadState* __tstate = wxPyBeginAllowThreads();
37457 (arg1)->ShowHidden(arg2);
37458 wxPyEndAllowThreads(__tstate);
37459 if (PyErr_Occurred()) SWIG_fail;
37460 }
37461 resultobj = SWIG_Py_Void();
37462 return resultobj;
37463 fail:
37464 return NULL;
37465 }
37466
37467
37468 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37469 PyObject *resultobj = 0;
37470 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37471 bool result;
37472 void *argp1 = 0 ;
37473 int res1 = 0 ;
37474 PyObject *swig_obj[1] ;
37475
37476 if (!args) SWIG_fail;
37477 swig_obj[0] = args;
37478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37479 if (!SWIG_IsOK(res1)) {
37480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37481 }
37482 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37483 {
37484 PyThreadState* __tstate = wxPyBeginAllowThreads();
37485 result = (bool)(arg1)->GetShowHidden();
37486 wxPyEndAllowThreads(__tstate);
37487 if (PyErr_Occurred()) SWIG_fail;
37488 }
37489 {
37490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37491 }
37492 return resultobj;
37493 fail:
37494 return NULL;
37495 }
37496
37497
37498 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37499 PyObject *resultobj = 0;
37500 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37501 wxString result;
37502 void *argp1 = 0 ;
37503 int res1 = 0 ;
37504 PyObject *swig_obj[1] ;
37505
37506 if (!args) SWIG_fail;
37507 swig_obj[0] = args;
37508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37509 if (!SWIG_IsOK(res1)) {
37510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37511 }
37512 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37513 {
37514 PyThreadState* __tstate = wxPyBeginAllowThreads();
37515 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37516 wxPyEndAllowThreads(__tstate);
37517 if (PyErr_Occurred()) SWIG_fail;
37518 }
37519 {
37520 #if wxUSE_UNICODE
37521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37522 #else
37523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37524 #endif
37525 }
37526 return resultobj;
37527 fail:
37528 return NULL;
37529 }
37530
37531
37532 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37533 PyObject *resultobj = 0;
37534 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37535 wxString *arg2 = 0 ;
37536 void *argp1 = 0 ;
37537 int res1 = 0 ;
37538 bool temp2 = false ;
37539 PyObject * obj0 = 0 ;
37540 PyObject * obj1 = 0 ;
37541 char * kwnames[] = {
37542 (char *) "self",(char *) "filter", NULL
37543 };
37544
37545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37547 if (!SWIG_IsOK(res1)) {
37548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37549 }
37550 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37551 {
37552 arg2 = wxString_in_helper(obj1);
37553 if (arg2 == NULL) SWIG_fail;
37554 temp2 = true;
37555 }
37556 {
37557 PyThreadState* __tstate = wxPyBeginAllowThreads();
37558 (arg1)->SetFilter((wxString const &)*arg2);
37559 wxPyEndAllowThreads(__tstate);
37560 if (PyErr_Occurred()) SWIG_fail;
37561 }
37562 resultobj = SWIG_Py_Void();
37563 {
37564 if (temp2)
37565 delete arg2;
37566 }
37567 return resultobj;
37568 fail:
37569 {
37570 if (temp2)
37571 delete arg2;
37572 }
37573 return NULL;
37574 }
37575
37576
37577 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37578 PyObject *resultobj = 0;
37579 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37580 int result;
37581 void *argp1 = 0 ;
37582 int res1 = 0 ;
37583 PyObject *swig_obj[1] ;
37584
37585 if (!args) SWIG_fail;
37586 swig_obj[0] = args;
37587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37588 if (!SWIG_IsOK(res1)) {
37589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37590 }
37591 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37592 {
37593 PyThreadState* __tstate = wxPyBeginAllowThreads();
37594 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37595 wxPyEndAllowThreads(__tstate);
37596 if (PyErr_Occurred()) SWIG_fail;
37597 }
37598 resultobj = SWIG_From_int(static_cast< int >(result));
37599 return resultobj;
37600 fail:
37601 return NULL;
37602 }
37603
37604
37605 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37606 PyObject *resultobj = 0;
37607 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37608 int arg2 ;
37609 void *argp1 = 0 ;
37610 int res1 = 0 ;
37611 int val2 ;
37612 int ecode2 = 0 ;
37613 PyObject * obj0 = 0 ;
37614 PyObject * obj1 = 0 ;
37615 char * kwnames[] = {
37616 (char *) "self",(char *) "n", NULL
37617 };
37618
37619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37621 if (!SWIG_IsOK(res1)) {
37622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37623 }
37624 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37625 ecode2 = SWIG_AsVal_int(obj1, &val2);
37626 if (!SWIG_IsOK(ecode2)) {
37627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37628 }
37629 arg2 = static_cast< int >(val2);
37630 {
37631 PyThreadState* __tstate = wxPyBeginAllowThreads();
37632 (arg1)->SetFilterIndex(arg2);
37633 wxPyEndAllowThreads(__tstate);
37634 if (PyErr_Occurred()) SWIG_fail;
37635 }
37636 resultobj = SWIG_Py_Void();
37637 return resultobj;
37638 fail:
37639 return NULL;
37640 }
37641
37642
37643 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37644 PyObject *resultobj = 0;
37645 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37646 wxTreeItemId result;
37647 void *argp1 = 0 ;
37648 int res1 = 0 ;
37649 PyObject *swig_obj[1] ;
37650
37651 if (!args) SWIG_fail;
37652 swig_obj[0] = args;
37653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37654 if (!SWIG_IsOK(res1)) {
37655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37656 }
37657 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37658 {
37659 PyThreadState* __tstate = wxPyBeginAllowThreads();
37660 result = (arg1)->GetRootId();
37661 wxPyEndAllowThreads(__tstate);
37662 if (PyErr_Occurred()) SWIG_fail;
37663 }
37664 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37665 return resultobj;
37666 fail:
37667 return NULL;
37668 }
37669
37670
37671 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37672 PyObject *resultobj = 0;
37673 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37674 wxPyTreeCtrl *result = 0 ;
37675 void *argp1 = 0 ;
37676 int res1 = 0 ;
37677 PyObject *swig_obj[1] ;
37678
37679 if (!args) SWIG_fail;
37680 swig_obj[0] = args;
37681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37682 if (!SWIG_IsOK(res1)) {
37683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37684 }
37685 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37686 {
37687 PyThreadState* __tstate = wxPyBeginAllowThreads();
37688 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37689 wxPyEndAllowThreads(__tstate);
37690 if (PyErr_Occurred()) SWIG_fail;
37691 }
37692 {
37693 resultobj = wxPyMake_wxObject(result, 0);
37694 }
37695 return resultobj;
37696 fail:
37697 return NULL;
37698 }
37699
37700
37701 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37702 PyObject *resultobj = 0;
37703 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37704 wxDirFilterListCtrl *result = 0 ;
37705 void *argp1 = 0 ;
37706 int res1 = 0 ;
37707 PyObject *swig_obj[1] ;
37708
37709 if (!args) SWIG_fail;
37710 swig_obj[0] = args;
37711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37712 if (!SWIG_IsOK(res1)) {
37713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37714 }
37715 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37716 {
37717 PyThreadState* __tstate = wxPyBeginAllowThreads();
37718 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37719 wxPyEndAllowThreads(__tstate);
37720 if (PyErr_Occurred()) SWIG_fail;
37721 }
37722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37723 return resultobj;
37724 fail:
37725 return NULL;
37726 }
37727
37728
37729 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37730 PyObject *resultobj = 0;
37731 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37732 wxTreeItemId arg2 ;
37733 wxString *arg3 = 0 ;
37734 bool *arg4 = 0 ;
37735 wxTreeItemId result;
37736 void *argp1 = 0 ;
37737 int res1 = 0 ;
37738 void *argp2 ;
37739 int res2 = 0 ;
37740 bool temp3 = false ;
37741 bool temp4 ;
37742 int res4 = SWIG_TMPOBJ ;
37743 PyObject * obj0 = 0 ;
37744 PyObject * obj1 = 0 ;
37745 PyObject * obj2 = 0 ;
37746 char * kwnames[] = {
37747 (char *) "self",(char *) "parentId",(char *) "path", NULL
37748 };
37749
37750 arg4 = &temp4;
37751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37753 if (!SWIG_IsOK(res1)) {
37754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37755 }
37756 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37757 {
37758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37759 if (!SWIG_IsOK(res2)) {
37760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37761 }
37762 if (!argp2) {
37763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37764 } else {
37765 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37766 arg2 = *temp;
37767 if (SWIG_IsNewObj(res2)) delete temp;
37768 }
37769 }
37770 {
37771 arg3 = wxString_in_helper(obj2);
37772 if (arg3 == NULL) SWIG_fail;
37773 temp3 = true;
37774 }
37775 {
37776 PyThreadState* __tstate = wxPyBeginAllowThreads();
37777 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37778 wxPyEndAllowThreads(__tstate);
37779 if (PyErr_Occurred()) SWIG_fail;
37780 }
37781 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37782 if (SWIG_IsTmpObj(res4)) {
37783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37784 } else {
37785 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37787 }
37788 {
37789 if (temp3)
37790 delete arg3;
37791 }
37792 return resultobj;
37793 fail:
37794 {
37795 if (temp3)
37796 delete arg3;
37797 }
37798 return NULL;
37799 }
37800
37801
37802 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37803 PyObject *resultobj = 0;
37804 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37805 void *argp1 = 0 ;
37806 int res1 = 0 ;
37807 PyObject *swig_obj[1] ;
37808
37809 if (!args) SWIG_fail;
37810 swig_obj[0] = args;
37811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37812 if (!SWIG_IsOK(res1)) {
37813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37814 }
37815 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37816 {
37817 PyThreadState* __tstate = wxPyBeginAllowThreads();
37818 (arg1)->DoResize();
37819 wxPyEndAllowThreads(__tstate);
37820 if (PyErr_Occurred()) SWIG_fail;
37821 }
37822 resultobj = SWIG_Py_Void();
37823 return resultobj;
37824 fail:
37825 return NULL;
37826 }
37827
37828
37829 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37830 PyObject *resultobj = 0;
37831 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37832 void *argp1 = 0 ;
37833 int res1 = 0 ;
37834 PyObject *swig_obj[1] ;
37835
37836 if (!args) SWIG_fail;
37837 swig_obj[0] = args;
37838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37839 if (!SWIG_IsOK(res1)) {
37840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37841 }
37842 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37843 {
37844 PyThreadState* __tstate = wxPyBeginAllowThreads();
37845 (arg1)->ReCreateTree();
37846 wxPyEndAllowThreads(__tstate);
37847 if (PyErr_Occurred()) SWIG_fail;
37848 }
37849 resultobj = SWIG_Py_Void();
37850 return resultobj;
37851 fail:
37852 return NULL;
37853 }
37854
37855
37856 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37857 PyObject *obj;
37858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37859 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37860 return SWIG_Py_Void();
37861 }
37862
37863 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37864 return SWIG_Python_InitShadowInstance(args);
37865 }
37866
37867 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37868 PyObject *resultobj = 0;
37869 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37870 int arg2 = (int) (int)-1 ;
37871 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37872 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37873 wxSize const &arg4_defvalue = wxDefaultSize ;
37874 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37875 long arg5 = (long) 0 ;
37876 wxDirFilterListCtrl *result = 0 ;
37877 void *argp1 = 0 ;
37878 int res1 = 0 ;
37879 int val2 ;
37880 int ecode2 = 0 ;
37881 wxPoint temp3 ;
37882 wxSize temp4 ;
37883 long val5 ;
37884 int ecode5 = 0 ;
37885 PyObject * obj0 = 0 ;
37886 PyObject * obj1 = 0 ;
37887 PyObject * obj2 = 0 ;
37888 PyObject * obj3 = 0 ;
37889 PyObject * obj4 = 0 ;
37890 char * kwnames[] = {
37891 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37892 };
37893
37894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37896 if (!SWIG_IsOK(res1)) {
37897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37898 }
37899 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37900 if (obj1) {
37901 ecode2 = SWIG_AsVal_int(obj1, &val2);
37902 if (!SWIG_IsOK(ecode2)) {
37903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37904 }
37905 arg2 = static_cast< int >(val2);
37906 }
37907 if (obj2) {
37908 {
37909 arg3 = &temp3;
37910 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37911 }
37912 }
37913 if (obj3) {
37914 {
37915 arg4 = &temp4;
37916 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37917 }
37918 }
37919 if (obj4) {
37920 ecode5 = SWIG_AsVal_long(obj4, &val5);
37921 if (!SWIG_IsOK(ecode5)) {
37922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37923 }
37924 arg5 = static_cast< long >(val5);
37925 }
37926 {
37927 if (!wxPyCheckForApp()) SWIG_fail;
37928 PyThreadState* __tstate = wxPyBeginAllowThreads();
37929 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37930 wxPyEndAllowThreads(__tstate);
37931 if (PyErr_Occurred()) SWIG_fail;
37932 }
37933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37934 return resultobj;
37935 fail:
37936 return NULL;
37937 }
37938
37939
37940 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37941 PyObject *resultobj = 0;
37942 wxDirFilterListCtrl *result = 0 ;
37943
37944 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37945 {
37946 if (!wxPyCheckForApp()) SWIG_fail;
37947 PyThreadState* __tstate = wxPyBeginAllowThreads();
37948 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37949 wxPyEndAllowThreads(__tstate);
37950 if (PyErr_Occurred()) SWIG_fail;
37951 }
37952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37953 return resultobj;
37954 fail:
37955 return NULL;
37956 }
37957
37958
37959 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37960 PyObject *resultobj = 0;
37961 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37962 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37963 int arg3 = (int) (int)-1 ;
37964 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37965 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37966 wxSize const &arg5_defvalue = wxDefaultSize ;
37967 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37968 long arg6 = (long) 0 ;
37969 bool result;
37970 void *argp1 = 0 ;
37971 int res1 = 0 ;
37972 void *argp2 = 0 ;
37973 int res2 = 0 ;
37974 int val3 ;
37975 int ecode3 = 0 ;
37976 wxPoint temp4 ;
37977 wxSize temp5 ;
37978 long val6 ;
37979 int ecode6 = 0 ;
37980 PyObject * obj0 = 0 ;
37981 PyObject * obj1 = 0 ;
37982 PyObject * obj2 = 0 ;
37983 PyObject * obj3 = 0 ;
37984 PyObject * obj4 = 0 ;
37985 PyObject * obj5 = 0 ;
37986 char * kwnames[] = {
37987 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37988 };
37989
37990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37992 if (!SWIG_IsOK(res1)) {
37993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37994 }
37995 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37997 if (!SWIG_IsOK(res2)) {
37998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37999 }
38000 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38001 if (obj2) {
38002 ecode3 = SWIG_AsVal_int(obj2, &val3);
38003 if (!SWIG_IsOK(ecode3)) {
38004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38005 }
38006 arg3 = static_cast< int >(val3);
38007 }
38008 if (obj3) {
38009 {
38010 arg4 = &temp4;
38011 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38012 }
38013 }
38014 if (obj4) {
38015 {
38016 arg5 = &temp5;
38017 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38018 }
38019 }
38020 if (obj5) {
38021 ecode6 = SWIG_AsVal_long(obj5, &val6);
38022 if (!SWIG_IsOK(ecode6)) {
38023 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38024 }
38025 arg6 = static_cast< long >(val6);
38026 }
38027 {
38028 PyThreadState* __tstate = wxPyBeginAllowThreads();
38029 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38030 wxPyEndAllowThreads(__tstate);
38031 if (PyErr_Occurred()) SWIG_fail;
38032 }
38033 {
38034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38035 }
38036 return resultobj;
38037 fail:
38038 return NULL;
38039 }
38040
38041
38042 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38043 PyObject *resultobj = 0;
38044 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38045 wxString *arg2 = 0 ;
38046 int arg3 ;
38047 void *argp1 = 0 ;
38048 int res1 = 0 ;
38049 bool temp2 = false ;
38050 int val3 ;
38051 int ecode3 = 0 ;
38052 PyObject * obj0 = 0 ;
38053 PyObject * obj1 = 0 ;
38054 PyObject * obj2 = 0 ;
38055 char * kwnames[] = {
38056 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38057 };
38058
38059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38061 if (!SWIG_IsOK(res1)) {
38062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38063 }
38064 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38065 {
38066 arg2 = wxString_in_helper(obj1);
38067 if (arg2 == NULL) SWIG_fail;
38068 temp2 = true;
38069 }
38070 ecode3 = SWIG_AsVal_int(obj2, &val3);
38071 if (!SWIG_IsOK(ecode3)) {
38072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38073 }
38074 arg3 = static_cast< int >(val3);
38075 {
38076 PyThreadState* __tstate = wxPyBeginAllowThreads();
38077 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38078 wxPyEndAllowThreads(__tstate);
38079 if (PyErr_Occurred()) SWIG_fail;
38080 }
38081 resultobj = SWIG_Py_Void();
38082 {
38083 if (temp2)
38084 delete arg2;
38085 }
38086 return resultobj;
38087 fail:
38088 {
38089 if (temp2)
38090 delete arg2;
38091 }
38092 return NULL;
38093 }
38094
38095
38096 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38097 PyObject *obj;
38098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38099 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38100 return SWIG_Py_Void();
38101 }
38102
38103 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38104 return SWIG_Python_InitShadowInstance(args);
38105 }
38106
38107 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38108 PyObject *resultobj = 0;
38109 wxWindow *arg1 = (wxWindow *) 0 ;
38110 int arg2 = (int) (int)-1 ;
38111 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38112 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38113 wxSize const &arg4_defvalue = wxDefaultSize ;
38114 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38115 long arg5 = (long) 0 ;
38116 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38117 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38118 wxString const &arg7_defvalue = wxPyControlNameStr ;
38119 wxString *arg7 = (wxString *) &arg7_defvalue ;
38120 wxPyControl *result = 0 ;
38121 void *argp1 = 0 ;
38122 int res1 = 0 ;
38123 int val2 ;
38124 int ecode2 = 0 ;
38125 wxPoint temp3 ;
38126 wxSize temp4 ;
38127 long val5 ;
38128 int ecode5 = 0 ;
38129 void *argp6 = 0 ;
38130 int res6 = 0 ;
38131 bool temp7 = false ;
38132 PyObject * obj0 = 0 ;
38133 PyObject * obj1 = 0 ;
38134 PyObject * obj2 = 0 ;
38135 PyObject * obj3 = 0 ;
38136 PyObject * obj4 = 0 ;
38137 PyObject * obj5 = 0 ;
38138 PyObject * obj6 = 0 ;
38139 char * kwnames[] = {
38140 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38141 };
38142
38143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38145 if (!SWIG_IsOK(res1)) {
38146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38147 }
38148 arg1 = reinterpret_cast< wxWindow * >(argp1);
38149 if (obj1) {
38150 ecode2 = SWIG_AsVal_int(obj1, &val2);
38151 if (!SWIG_IsOK(ecode2)) {
38152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38153 }
38154 arg2 = static_cast< int >(val2);
38155 }
38156 if (obj2) {
38157 {
38158 arg3 = &temp3;
38159 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38160 }
38161 }
38162 if (obj3) {
38163 {
38164 arg4 = &temp4;
38165 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38166 }
38167 }
38168 if (obj4) {
38169 ecode5 = SWIG_AsVal_long(obj4, &val5);
38170 if (!SWIG_IsOK(ecode5)) {
38171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38172 }
38173 arg5 = static_cast< long >(val5);
38174 }
38175 if (obj5) {
38176 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38177 if (!SWIG_IsOK(res6)) {
38178 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38179 }
38180 if (!argp6) {
38181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38182 }
38183 arg6 = reinterpret_cast< wxValidator * >(argp6);
38184 }
38185 if (obj6) {
38186 {
38187 arg7 = wxString_in_helper(obj6);
38188 if (arg7 == NULL) SWIG_fail;
38189 temp7 = true;
38190 }
38191 }
38192 {
38193 if (!wxPyCheckForApp()) SWIG_fail;
38194 PyThreadState* __tstate = wxPyBeginAllowThreads();
38195 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38196 wxPyEndAllowThreads(__tstate);
38197 if (PyErr_Occurred()) SWIG_fail;
38198 }
38199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38200 {
38201 if (temp7)
38202 delete arg7;
38203 }
38204 return resultobj;
38205 fail:
38206 {
38207 if (temp7)
38208 delete arg7;
38209 }
38210 return NULL;
38211 }
38212
38213
38214 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38215 PyObject *resultobj = 0;
38216 wxPyControl *result = 0 ;
38217
38218 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38219 {
38220 if (!wxPyCheckForApp()) SWIG_fail;
38221 PyThreadState* __tstate = wxPyBeginAllowThreads();
38222 result = (wxPyControl *)new wxPyControl();
38223 wxPyEndAllowThreads(__tstate);
38224 if (PyErr_Occurred()) SWIG_fail;
38225 }
38226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38227 return resultobj;
38228 fail:
38229 return NULL;
38230 }
38231
38232
38233 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38234 PyObject *resultobj = 0;
38235 wxPyControl *arg1 = (wxPyControl *) 0 ;
38236 PyObject *arg2 = (PyObject *) 0 ;
38237 PyObject *arg3 = (PyObject *) 0 ;
38238 void *argp1 = 0 ;
38239 int res1 = 0 ;
38240 PyObject * obj0 = 0 ;
38241 PyObject * obj1 = 0 ;
38242 PyObject * obj2 = 0 ;
38243 char * kwnames[] = {
38244 (char *) "self",(char *) "self",(char *) "_class", NULL
38245 };
38246
38247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38249 if (!SWIG_IsOK(res1)) {
38250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38251 }
38252 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38253 arg2 = obj1;
38254 arg3 = obj2;
38255 {
38256 PyThreadState* __tstate = wxPyBeginAllowThreads();
38257 (arg1)->_setCallbackInfo(arg2,arg3);
38258 wxPyEndAllowThreads(__tstate);
38259 if (PyErr_Occurred()) SWIG_fail;
38260 }
38261 resultobj = SWIG_Py_Void();
38262 return resultobj;
38263 fail:
38264 return NULL;
38265 }
38266
38267
38268 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38269 PyObject *resultobj = 0;
38270 wxPyControl *arg1 = (wxPyControl *) 0 ;
38271 wxSize *arg2 = 0 ;
38272 void *argp1 = 0 ;
38273 int res1 = 0 ;
38274 wxSize temp2 ;
38275 PyObject * obj0 = 0 ;
38276 PyObject * obj1 = 0 ;
38277 char * kwnames[] = {
38278 (char *) "self",(char *) "size", NULL
38279 };
38280
38281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38283 if (!SWIG_IsOK(res1)) {
38284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38285 }
38286 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38287 {
38288 arg2 = &temp2;
38289 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38290 }
38291 {
38292 PyThreadState* __tstate = wxPyBeginAllowThreads();
38293 (arg1)->SetBestSize((wxSize const &)*arg2);
38294 wxPyEndAllowThreads(__tstate);
38295 if (PyErr_Occurred()) SWIG_fail;
38296 }
38297 resultobj = SWIG_Py_Void();
38298 return resultobj;
38299 fail:
38300 return NULL;
38301 }
38302
38303
38304 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38305 PyObject *resultobj = 0;
38306 wxPyControl *arg1 = (wxPyControl *) 0 ;
38307 wxDC *arg2 = (wxDC *) 0 ;
38308 bool result;
38309 void *argp1 = 0 ;
38310 int res1 = 0 ;
38311 void *argp2 = 0 ;
38312 int res2 = 0 ;
38313 PyObject * obj0 = 0 ;
38314 PyObject * obj1 = 0 ;
38315 char * kwnames[] = {
38316 (char *) "self",(char *) "dc", NULL
38317 };
38318
38319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38321 if (!SWIG_IsOK(res1)) {
38322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38323 }
38324 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38325 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38326 if (!SWIG_IsOK(res2)) {
38327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38328 }
38329 arg2 = reinterpret_cast< wxDC * >(argp2);
38330 {
38331 PyThreadState* __tstate = wxPyBeginAllowThreads();
38332 result = (bool)(arg1)->DoEraseBackground(arg2);
38333 wxPyEndAllowThreads(__tstate);
38334 if (PyErr_Occurred()) SWIG_fail;
38335 }
38336 {
38337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38338 }
38339 return resultobj;
38340 fail:
38341 return NULL;
38342 }
38343
38344
38345 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38346 PyObject *resultobj = 0;
38347 wxPyControl *arg1 = (wxPyControl *) 0 ;
38348 int arg2 ;
38349 int arg3 ;
38350 int arg4 ;
38351 int arg5 ;
38352 void *argp1 = 0 ;
38353 int res1 = 0 ;
38354 int val2 ;
38355 int ecode2 = 0 ;
38356 int val3 ;
38357 int ecode3 = 0 ;
38358 int val4 ;
38359 int ecode4 = 0 ;
38360 int val5 ;
38361 int ecode5 = 0 ;
38362 PyObject * obj0 = 0 ;
38363 PyObject * obj1 = 0 ;
38364 PyObject * obj2 = 0 ;
38365 PyObject * obj3 = 0 ;
38366 PyObject * obj4 = 0 ;
38367 char * kwnames[] = {
38368 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38369 };
38370
38371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38373 if (!SWIG_IsOK(res1)) {
38374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38375 }
38376 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38377 ecode2 = SWIG_AsVal_int(obj1, &val2);
38378 if (!SWIG_IsOK(ecode2)) {
38379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38380 }
38381 arg2 = static_cast< int >(val2);
38382 ecode3 = SWIG_AsVal_int(obj2, &val3);
38383 if (!SWIG_IsOK(ecode3)) {
38384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38385 }
38386 arg3 = static_cast< int >(val3);
38387 ecode4 = SWIG_AsVal_int(obj3, &val4);
38388 if (!SWIG_IsOK(ecode4)) {
38389 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38390 }
38391 arg4 = static_cast< int >(val4);
38392 ecode5 = SWIG_AsVal_int(obj4, &val5);
38393 if (!SWIG_IsOK(ecode5)) {
38394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38395 }
38396 arg5 = static_cast< int >(val5);
38397 {
38398 PyThreadState* __tstate = wxPyBeginAllowThreads();
38399 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38400 wxPyEndAllowThreads(__tstate);
38401 if (PyErr_Occurred()) SWIG_fail;
38402 }
38403 resultobj = SWIG_Py_Void();
38404 return resultobj;
38405 fail:
38406 return NULL;
38407 }
38408
38409
38410 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38411 PyObject *resultobj = 0;
38412 wxPyControl *arg1 = (wxPyControl *) 0 ;
38413 int arg2 ;
38414 int arg3 ;
38415 int arg4 ;
38416 int arg5 ;
38417 int arg6 = (int) wxSIZE_AUTO ;
38418 void *argp1 = 0 ;
38419 int res1 = 0 ;
38420 int val2 ;
38421 int ecode2 = 0 ;
38422 int val3 ;
38423 int ecode3 = 0 ;
38424 int val4 ;
38425 int ecode4 = 0 ;
38426 int val5 ;
38427 int ecode5 = 0 ;
38428 int val6 ;
38429 int ecode6 = 0 ;
38430 PyObject * obj0 = 0 ;
38431 PyObject * obj1 = 0 ;
38432 PyObject * obj2 = 0 ;
38433 PyObject * obj3 = 0 ;
38434 PyObject * obj4 = 0 ;
38435 PyObject * obj5 = 0 ;
38436 char * kwnames[] = {
38437 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38438 };
38439
38440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38442 if (!SWIG_IsOK(res1)) {
38443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38444 }
38445 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38446 ecode2 = SWIG_AsVal_int(obj1, &val2);
38447 if (!SWIG_IsOK(ecode2)) {
38448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38449 }
38450 arg2 = static_cast< int >(val2);
38451 ecode3 = SWIG_AsVal_int(obj2, &val3);
38452 if (!SWIG_IsOK(ecode3)) {
38453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38454 }
38455 arg3 = static_cast< int >(val3);
38456 ecode4 = SWIG_AsVal_int(obj3, &val4);
38457 if (!SWIG_IsOK(ecode4)) {
38458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38459 }
38460 arg4 = static_cast< int >(val4);
38461 ecode5 = SWIG_AsVal_int(obj4, &val5);
38462 if (!SWIG_IsOK(ecode5)) {
38463 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38464 }
38465 arg5 = static_cast< int >(val5);
38466 if (obj5) {
38467 ecode6 = SWIG_AsVal_int(obj5, &val6);
38468 if (!SWIG_IsOK(ecode6)) {
38469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38470 }
38471 arg6 = static_cast< int >(val6);
38472 }
38473 {
38474 PyThreadState* __tstate = wxPyBeginAllowThreads();
38475 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38476 wxPyEndAllowThreads(__tstate);
38477 if (PyErr_Occurred()) SWIG_fail;
38478 }
38479 resultobj = SWIG_Py_Void();
38480 return resultobj;
38481 fail:
38482 return NULL;
38483 }
38484
38485
38486 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38487 PyObject *resultobj = 0;
38488 wxPyControl *arg1 = (wxPyControl *) 0 ;
38489 int arg2 ;
38490 int arg3 ;
38491 void *argp1 = 0 ;
38492 int res1 = 0 ;
38493 int val2 ;
38494 int ecode2 = 0 ;
38495 int val3 ;
38496 int ecode3 = 0 ;
38497 PyObject * obj0 = 0 ;
38498 PyObject * obj1 = 0 ;
38499 PyObject * obj2 = 0 ;
38500 char * kwnames[] = {
38501 (char *) "self",(char *) "width",(char *) "height", NULL
38502 };
38503
38504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38506 if (!SWIG_IsOK(res1)) {
38507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38508 }
38509 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38510 ecode2 = SWIG_AsVal_int(obj1, &val2);
38511 if (!SWIG_IsOK(ecode2)) {
38512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38513 }
38514 arg2 = static_cast< int >(val2);
38515 ecode3 = SWIG_AsVal_int(obj2, &val3);
38516 if (!SWIG_IsOK(ecode3)) {
38517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38518 }
38519 arg3 = static_cast< int >(val3);
38520 {
38521 PyThreadState* __tstate = wxPyBeginAllowThreads();
38522 (arg1)->DoSetClientSize(arg2,arg3);
38523 wxPyEndAllowThreads(__tstate);
38524 if (PyErr_Occurred()) SWIG_fail;
38525 }
38526 resultobj = SWIG_Py_Void();
38527 return resultobj;
38528 fail:
38529 return NULL;
38530 }
38531
38532
38533 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38534 PyObject *resultobj = 0;
38535 wxPyControl *arg1 = (wxPyControl *) 0 ;
38536 int arg2 ;
38537 int arg3 ;
38538 void *argp1 = 0 ;
38539 int res1 = 0 ;
38540 int val2 ;
38541 int ecode2 = 0 ;
38542 int val3 ;
38543 int ecode3 = 0 ;
38544 PyObject * obj0 = 0 ;
38545 PyObject * obj1 = 0 ;
38546 PyObject * obj2 = 0 ;
38547 char * kwnames[] = {
38548 (char *) "self",(char *) "x",(char *) "y", NULL
38549 };
38550
38551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38553 if (!SWIG_IsOK(res1)) {
38554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38555 }
38556 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38557 ecode2 = SWIG_AsVal_int(obj1, &val2);
38558 if (!SWIG_IsOK(ecode2)) {
38559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38560 }
38561 arg2 = static_cast< int >(val2);
38562 ecode3 = SWIG_AsVal_int(obj2, &val3);
38563 if (!SWIG_IsOK(ecode3)) {
38564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38565 }
38566 arg3 = static_cast< int >(val3);
38567 {
38568 PyThreadState* __tstate = wxPyBeginAllowThreads();
38569 (arg1)->DoSetVirtualSize(arg2,arg3);
38570 wxPyEndAllowThreads(__tstate);
38571 if (PyErr_Occurred()) SWIG_fail;
38572 }
38573 resultobj = SWIG_Py_Void();
38574 return resultobj;
38575 fail:
38576 return NULL;
38577 }
38578
38579
38580 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38581 PyObject *resultobj = 0;
38582 wxPyControl *arg1 = (wxPyControl *) 0 ;
38583 int *arg2 = (int *) 0 ;
38584 int *arg3 = (int *) 0 ;
38585 void *argp1 = 0 ;
38586 int res1 = 0 ;
38587 int temp2 ;
38588 int res2 = SWIG_TMPOBJ ;
38589 int temp3 ;
38590 int res3 = SWIG_TMPOBJ ;
38591 PyObject *swig_obj[1] ;
38592
38593 arg2 = &temp2;
38594 arg3 = &temp3;
38595 if (!args) SWIG_fail;
38596 swig_obj[0] = args;
38597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38598 if (!SWIG_IsOK(res1)) {
38599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38600 }
38601 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38602 {
38603 PyThreadState* __tstate = wxPyBeginAllowThreads();
38604 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38605 wxPyEndAllowThreads(__tstate);
38606 if (PyErr_Occurred()) SWIG_fail;
38607 }
38608 resultobj = SWIG_Py_Void();
38609 if (SWIG_IsTmpObj(res2)) {
38610 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38611 } else {
38612 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38614 }
38615 if (SWIG_IsTmpObj(res3)) {
38616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38617 } else {
38618 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38620 }
38621 return resultobj;
38622 fail:
38623 return NULL;
38624 }
38625
38626
38627 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38628 PyObject *resultobj = 0;
38629 wxPyControl *arg1 = (wxPyControl *) 0 ;
38630 int *arg2 = (int *) 0 ;
38631 int *arg3 = (int *) 0 ;
38632 void *argp1 = 0 ;
38633 int res1 = 0 ;
38634 int temp2 ;
38635 int res2 = SWIG_TMPOBJ ;
38636 int temp3 ;
38637 int res3 = SWIG_TMPOBJ ;
38638 PyObject *swig_obj[1] ;
38639
38640 arg2 = &temp2;
38641 arg3 = &temp3;
38642 if (!args) SWIG_fail;
38643 swig_obj[0] = args;
38644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38645 if (!SWIG_IsOK(res1)) {
38646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38647 }
38648 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38649 {
38650 PyThreadState* __tstate = wxPyBeginAllowThreads();
38651 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38652 wxPyEndAllowThreads(__tstate);
38653 if (PyErr_Occurred()) SWIG_fail;
38654 }
38655 resultobj = SWIG_Py_Void();
38656 if (SWIG_IsTmpObj(res2)) {
38657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38658 } else {
38659 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38661 }
38662 if (SWIG_IsTmpObj(res3)) {
38663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38664 } else {
38665 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38667 }
38668 return resultobj;
38669 fail:
38670 return NULL;
38671 }
38672
38673
38674 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38675 PyObject *resultobj = 0;
38676 wxPyControl *arg1 = (wxPyControl *) 0 ;
38677 int *arg2 = (int *) 0 ;
38678 int *arg3 = (int *) 0 ;
38679 void *argp1 = 0 ;
38680 int res1 = 0 ;
38681 int temp2 ;
38682 int res2 = SWIG_TMPOBJ ;
38683 int temp3 ;
38684 int res3 = SWIG_TMPOBJ ;
38685 PyObject *swig_obj[1] ;
38686
38687 arg2 = &temp2;
38688 arg3 = &temp3;
38689 if (!args) SWIG_fail;
38690 swig_obj[0] = args;
38691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38692 if (!SWIG_IsOK(res1)) {
38693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38694 }
38695 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38696 {
38697 PyThreadState* __tstate = wxPyBeginAllowThreads();
38698 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38699 wxPyEndAllowThreads(__tstate);
38700 if (PyErr_Occurred()) SWIG_fail;
38701 }
38702 resultobj = SWIG_Py_Void();
38703 if (SWIG_IsTmpObj(res2)) {
38704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38705 } else {
38706 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38708 }
38709 if (SWIG_IsTmpObj(res3)) {
38710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38711 } else {
38712 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38714 }
38715 return resultobj;
38716 fail:
38717 return NULL;
38718 }
38719
38720
38721 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38722 PyObject *resultobj = 0;
38723 wxPyControl *arg1 = (wxPyControl *) 0 ;
38724 wxSize result;
38725 void *argp1 = 0 ;
38726 int res1 = 0 ;
38727 PyObject *swig_obj[1] ;
38728
38729 if (!args) SWIG_fail;
38730 swig_obj[0] = args;
38731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38732 if (!SWIG_IsOK(res1)) {
38733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38734 }
38735 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38736 {
38737 PyThreadState* __tstate = wxPyBeginAllowThreads();
38738 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38739 wxPyEndAllowThreads(__tstate);
38740 if (PyErr_Occurred()) SWIG_fail;
38741 }
38742 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38743 return resultobj;
38744 fail:
38745 return NULL;
38746 }
38747
38748
38749 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38750 PyObject *resultobj = 0;
38751 wxPyControl *arg1 = (wxPyControl *) 0 ;
38752 wxSize result;
38753 void *argp1 = 0 ;
38754 int res1 = 0 ;
38755 PyObject *swig_obj[1] ;
38756
38757 if (!args) SWIG_fail;
38758 swig_obj[0] = args;
38759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38760 if (!SWIG_IsOK(res1)) {
38761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38762 }
38763 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38764 {
38765 PyThreadState* __tstate = wxPyBeginAllowThreads();
38766 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38767 wxPyEndAllowThreads(__tstate);
38768 if (PyErr_Occurred()) SWIG_fail;
38769 }
38770 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38771 return resultobj;
38772 fail:
38773 return NULL;
38774 }
38775
38776
38777 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38778 PyObject *resultobj = 0;
38779 wxPyControl *arg1 = (wxPyControl *) 0 ;
38780 SwigValueWrapper<wxVisualAttributes > result;
38781 void *argp1 = 0 ;
38782 int res1 = 0 ;
38783 PyObject *swig_obj[1] ;
38784
38785 if (!args) SWIG_fail;
38786 swig_obj[0] = args;
38787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38788 if (!SWIG_IsOK(res1)) {
38789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38790 }
38791 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38792 {
38793 PyThreadState* __tstate = wxPyBeginAllowThreads();
38794 result = (arg1)->GetDefaultAttributes();
38795 wxPyEndAllowThreads(__tstate);
38796 if (PyErr_Occurred()) SWIG_fail;
38797 }
38798 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38799 return resultobj;
38800 fail:
38801 return NULL;
38802 }
38803
38804
38805 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38806 PyObject *resultobj = 0;
38807 wxPyControl *arg1 = (wxPyControl *) 0 ;
38808 void *argp1 = 0 ;
38809 int res1 = 0 ;
38810 PyObject *swig_obj[1] ;
38811
38812 if (!args) SWIG_fail;
38813 swig_obj[0] = args;
38814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38815 if (!SWIG_IsOK(res1)) {
38816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38817 }
38818 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38819 {
38820 PyThreadState* __tstate = wxPyBeginAllowThreads();
38821 (arg1)->OnInternalIdle();
38822 wxPyEndAllowThreads(__tstate);
38823 if (PyErr_Occurred()) SWIG_fail;
38824 }
38825 resultobj = SWIG_Py_Void();
38826 return resultobj;
38827 fail:
38828 return NULL;
38829 }
38830
38831
38832 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38833 PyObject *obj;
38834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38835 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38836 return SWIG_Py_Void();
38837 }
38838
38839 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38840 return SWIG_Python_InitShadowInstance(args);
38841 }
38842
38843 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38844 PyObject *resultobj = 0;
38845 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38846 int arg2 = (int) 0 ;
38847 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38848 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38849 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
38850 wxHelpEvent *result = 0 ;
38851 int val1 ;
38852 int ecode1 = 0 ;
38853 int val2 ;
38854 int ecode2 = 0 ;
38855 wxPoint temp3 ;
38856 int val4 ;
38857 int ecode4 = 0 ;
38858 PyObject * obj0 = 0 ;
38859 PyObject * obj1 = 0 ;
38860 PyObject * obj2 = 0 ;
38861 PyObject * obj3 = 0 ;
38862 char * kwnames[] = {
38863 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
38864 };
38865
38866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38867 if (obj0) {
38868 ecode1 = SWIG_AsVal_int(obj0, &val1);
38869 if (!SWIG_IsOK(ecode1)) {
38870 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38871 }
38872 arg1 = static_cast< wxEventType >(val1);
38873 }
38874 if (obj1) {
38875 ecode2 = SWIG_AsVal_int(obj1, &val2);
38876 if (!SWIG_IsOK(ecode2)) {
38877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38878 }
38879 arg2 = static_cast< int >(val2);
38880 }
38881 if (obj2) {
38882 {
38883 arg3 = &temp3;
38884 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38885 }
38886 }
38887 if (obj3) {
38888 ecode4 = SWIG_AsVal_int(obj3, &val4);
38889 if (!SWIG_IsOK(ecode4)) {
38890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
38891 }
38892 arg4 = static_cast< wxHelpEvent::Origin >(val4);
38893 }
38894 {
38895 PyThreadState* __tstate = wxPyBeginAllowThreads();
38896 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
38897 wxPyEndAllowThreads(__tstate);
38898 if (PyErr_Occurred()) SWIG_fail;
38899 }
38900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38901 return resultobj;
38902 fail:
38903 return NULL;
38904 }
38905
38906
38907 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38908 PyObject *resultobj = 0;
38909 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38910 wxPoint result;
38911 void *argp1 = 0 ;
38912 int res1 = 0 ;
38913 PyObject *swig_obj[1] ;
38914
38915 if (!args) SWIG_fail;
38916 swig_obj[0] = args;
38917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38918 if (!SWIG_IsOK(res1)) {
38919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38920 }
38921 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38922 {
38923 PyThreadState* __tstate = wxPyBeginAllowThreads();
38924 result = ((wxHelpEvent const *)arg1)->GetPosition();
38925 wxPyEndAllowThreads(__tstate);
38926 if (PyErr_Occurred()) SWIG_fail;
38927 }
38928 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38929 return resultobj;
38930 fail:
38931 return NULL;
38932 }
38933
38934
38935 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38936 PyObject *resultobj = 0;
38937 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38938 wxPoint *arg2 = 0 ;
38939 void *argp1 = 0 ;
38940 int res1 = 0 ;
38941 wxPoint temp2 ;
38942 PyObject * obj0 = 0 ;
38943 PyObject * obj1 = 0 ;
38944 char * kwnames[] = {
38945 (char *) "self",(char *) "pos", NULL
38946 };
38947
38948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38950 if (!SWIG_IsOK(res1)) {
38951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38952 }
38953 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38954 {
38955 arg2 = &temp2;
38956 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38957 }
38958 {
38959 PyThreadState* __tstate = wxPyBeginAllowThreads();
38960 (arg1)->SetPosition((wxPoint const &)*arg2);
38961 wxPyEndAllowThreads(__tstate);
38962 if (PyErr_Occurred()) SWIG_fail;
38963 }
38964 resultobj = SWIG_Py_Void();
38965 return resultobj;
38966 fail:
38967 return NULL;
38968 }
38969
38970
38971 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38972 PyObject *resultobj = 0;
38973 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38974 wxString *result = 0 ;
38975 void *argp1 = 0 ;
38976 int res1 = 0 ;
38977 PyObject *swig_obj[1] ;
38978
38979 if (!args) SWIG_fail;
38980 swig_obj[0] = args;
38981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38982 if (!SWIG_IsOK(res1)) {
38983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38984 }
38985 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38986 {
38987 PyThreadState* __tstate = wxPyBeginAllowThreads();
38988 {
38989 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38990 result = (wxString *) &_result_ref;
38991 }
38992 wxPyEndAllowThreads(__tstate);
38993 if (PyErr_Occurred()) SWIG_fail;
38994 }
38995 {
38996 #if wxUSE_UNICODE
38997 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38998 #else
38999 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39000 #endif
39001 }
39002 return resultobj;
39003 fail:
39004 return NULL;
39005 }
39006
39007
39008 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39009 PyObject *resultobj = 0;
39010 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39011 wxString *arg2 = 0 ;
39012 void *argp1 = 0 ;
39013 int res1 = 0 ;
39014 bool temp2 = false ;
39015 PyObject * obj0 = 0 ;
39016 PyObject * obj1 = 0 ;
39017 char * kwnames[] = {
39018 (char *) "self",(char *) "link", NULL
39019 };
39020
39021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39023 if (!SWIG_IsOK(res1)) {
39024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39025 }
39026 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39027 {
39028 arg2 = wxString_in_helper(obj1);
39029 if (arg2 == NULL) SWIG_fail;
39030 temp2 = true;
39031 }
39032 {
39033 PyThreadState* __tstate = wxPyBeginAllowThreads();
39034 (arg1)->SetLink((wxString const &)*arg2);
39035 wxPyEndAllowThreads(__tstate);
39036 if (PyErr_Occurred()) SWIG_fail;
39037 }
39038 resultobj = SWIG_Py_Void();
39039 {
39040 if (temp2)
39041 delete arg2;
39042 }
39043 return resultobj;
39044 fail:
39045 {
39046 if (temp2)
39047 delete arg2;
39048 }
39049 return NULL;
39050 }
39051
39052
39053 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39054 PyObject *resultobj = 0;
39055 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39056 wxString *result = 0 ;
39057 void *argp1 = 0 ;
39058 int res1 = 0 ;
39059 PyObject *swig_obj[1] ;
39060
39061 if (!args) SWIG_fail;
39062 swig_obj[0] = args;
39063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39064 if (!SWIG_IsOK(res1)) {
39065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39066 }
39067 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39068 {
39069 PyThreadState* __tstate = wxPyBeginAllowThreads();
39070 {
39071 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39072 result = (wxString *) &_result_ref;
39073 }
39074 wxPyEndAllowThreads(__tstate);
39075 if (PyErr_Occurred()) SWIG_fail;
39076 }
39077 {
39078 #if wxUSE_UNICODE
39079 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39080 #else
39081 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39082 #endif
39083 }
39084 return resultobj;
39085 fail:
39086 return NULL;
39087 }
39088
39089
39090 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39091 PyObject *resultobj = 0;
39092 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39093 wxString *arg2 = 0 ;
39094 void *argp1 = 0 ;
39095 int res1 = 0 ;
39096 bool temp2 = false ;
39097 PyObject * obj0 = 0 ;
39098 PyObject * obj1 = 0 ;
39099 char * kwnames[] = {
39100 (char *) "self",(char *) "target", NULL
39101 };
39102
39103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39105 if (!SWIG_IsOK(res1)) {
39106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39107 }
39108 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39109 {
39110 arg2 = wxString_in_helper(obj1);
39111 if (arg2 == NULL) SWIG_fail;
39112 temp2 = true;
39113 }
39114 {
39115 PyThreadState* __tstate = wxPyBeginAllowThreads();
39116 (arg1)->SetTarget((wxString const &)*arg2);
39117 wxPyEndAllowThreads(__tstate);
39118 if (PyErr_Occurred()) SWIG_fail;
39119 }
39120 resultobj = SWIG_Py_Void();
39121 {
39122 if (temp2)
39123 delete arg2;
39124 }
39125 return resultobj;
39126 fail:
39127 {
39128 if (temp2)
39129 delete arg2;
39130 }
39131 return NULL;
39132 }
39133
39134
39135 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39136 PyObject *resultobj = 0;
39137 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39138 wxHelpEvent::Origin result;
39139 void *argp1 = 0 ;
39140 int res1 = 0 ;
39141 PyObject *swig_obj[1] ;
39142
39143 if (!args) SWIG_fail;
39144 swig_obj[0] = args;
39145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39146 if (!SWIG_IsOK(res1)) {
39147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39148 }
39149 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39150 {
39151 PyThreadState* __tstate = wxPyBeginAllowThreads();
39152 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39153 wxPyEndAllowThreads(__tstate);
39154 if (PyErr_Occurred()) SWIG_fail;
39155 }
39156 resultobj = SWIG_From_int(static_cast< int >(result));
39157 return resultobj;
39158 fail:
39159 return NULL;
39160 }
39161
39162
39163 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39164 PyObject *resultobj = 0;
39165 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39166 wxHelpEvent::Origin arg2 ;
39167 void *argp1 = 0 ;
39168 int res1 = 0 ;
39169 int val2 ;
39170 int ecode2 = 0 ;
39171 PyObject * obj0 = 0 ;
39172 PyObject * obj1 = 0 ;
39173 char * kwnames[] = {
39174 (char *) "self",(char *) "origin", NULL
39175 };
39176
39177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39179 if (!SWIG_IsOK(res1)) {
39180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39181 }
39182 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39183 ecode2 = SWIG_AsVal_int(obj1, &val2);
39184 if (!SWIG_IsOK(ecode2)) {
39185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39186 }
39187 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39188 {
39189 PyThreadState* __tstate = wxPyBeginAllowThreads();
39190 (arg1)->SetOrigin(arg2);
39191 wxPyEndAllowThreads(__tstate);
39192 if (PyErr_Occurred()) SWIG_fail;
39193 }
39194 resultobj = SWIG_Py_Void();
39195 return resultobj;
39196 fail:
39197 return NULL;
39198 }
39199
39200
39201 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39202 PyObject *obj;
39203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39204 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39205 return SWIG_Py_Void();
39206 }
39207
39208 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39209 return SWIG_Python_InitShadowInstance(args);
39210 }
39211
39212 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39213 PyObject *resultobj = 0;
39214 wxWindow *arg1 = (wxWindow *) NULL ;
39215 bool arg2 = (bool) true ;
39216 wxContextHelp *result = 0 ;
39217 void *argp1 = 0 ;
39218 int res1 = 0 ;
39219 bool val2 ;
39220 int ecode2 = 0 ;
39221 PyObject * obj0 = 0 ;
39222 PyObject * obj1 = 0 ;
39223 char * kwnames[] = {
39224 (char *) "window",(char *) "doNow", NULL
39225 };
39226
39227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39228 if (obj0) {
39229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39230 if (!SWIG_IsOK(res1)) {
39231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39232 }
39233 arg1 = reinterpret_cast< wxWindow * >(argp1);
39234 }
39235 if (obj1) {
39236 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39237 if (!SWIG_IsOK(ecode2)) {
39238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39239 }
39240 arg2 = static_cast< bool >(val2);
39241 }
39242 {
39243 if (!wxPyCheckForApp()) SWIG_fail;
39244 PyThreadState* __tstate = wxPyBeginAllowThreads();
39245 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39246 wxPyEndAllowThreads(__tstate);
39247 if (PyErr_Occurred()) SWIG_fail;
39248 }
39249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39250 return resultobj;
39251 fail:
39252 return NULL;
39253 }
39254
39255
39256 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39257 PyObject *resultobj = 0;
39258 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39259 void *argp1 = 0 ;
39260 int res1 = 0 ;
39261 PyObject *swig_obj[1] ;
39262
39263 if (!args) SWIG_fail;
39264 swig_obj[0] = args;
39265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39266 if (!SWIG_IsOK(res1)) {
39267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39268 }
39269 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39270 {
39271 PyThreadState* __tstate = wxPyBeginAllowThreads();
39272 delete arg1;
39273
39274 wxPyEndAllowThreads(__tstate);
39275 if (PyErr_Occurred()) SWIG_fail;
39276 }
39277 resultobj = SWIG_Py_Void();
39278 return resultobj;
39279 fail:
39280 return NULL;
39281 }
39282
39283
39284 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39285 PyObject *resultobj = 0;
39286 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39287 wxWindow *arg2 = (wxWindow *) NULL ;
39288 bool result;
39289 void *argp1 = 0 ;
39290 int res1 = 0 ;
39291 void *argp2 = 0 ;
39292 int res2 = 0 ;
39293 PyObject * obj0 = 0 ;
39294 PyObject * obj1 = 0 ;
39295 char * kwnames[] = {
39296 (char *) "self",(char *) "window", NULL
39297 };
39298
39299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39301 if (!SWIG_IsOK(res1)) {
39302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39303 }
39304 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39305 if (obj1) {
39306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39307 if (!SWIG_IsOK(res2)) {
39308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39309 }
39310 arg2 = reinterpret_cast< wxWindow * >(argp2);
39311 }
39312 {
39313 PyThreadState* __tstate = wxPyBeginAllowThreads();
39314 result = (bool)(arg1)->BeginContextHelp(arg2);
39315 wxPyEndAllowThreads(__tstate);
39316 if (PyErr_Occurred()) SWIG_fail;
39317 }
39318 {
39319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39320 }
39321 return resultobj;
39322 fail:
39323 return NULL;
39324 }
39325
39326
39327 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39328 PyObject *resultobj = 0;
39329 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39330 bool result;
39331 void *argp1 = 0 ;
39332 int res1 = 0 ;
39333 PyObject *swig_obj[1] ;
39334
39335 if (!args) SWIG_fail;
39336 swig_obj[0] = args;
39337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39338 if (!SWIG_IsOK(res1)) {
39339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39340 }
39341 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39342 {
39343 PyThreadState* __tstate = wxPyBeginAllowThreads();
39344 result = (bool)(arg1)->EndContextHelp();
39345 wxPyEndAllowThreads(__tstate);
39346 if (PyErr_Occurred()) SWIG_fail;
39347 }
39348 {
39349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39350 }
39351 return resultobj;
39352 fail:
39353 return NULL;
39354 }
39355
39356
39357 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39358 PyObject *obj;
39359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39360 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39361 return SWIG_Py_Void();
39362 }
39363
39364 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39365 return SWIG_Python_InitShadowInstance(args);
39366 }
39367
39368 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39369 PyObject *resultobj = 0;
39370 wxWindow *arg1 = (wxWindow *) 0 ;
39371 int arg2 = (int) wxID_CONTEXT_HELP ;
39372 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39373 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39374 wxSize const &arg4_defvalue = wxDefaultSize ;
39375 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39376 long arg5 = (long) wxBU_AUTODRAW ;
39377 wxContextHelpButton *result = 0 ;
39378 void *argp1 = 0 ;
39379 int res1 = 0 ;
39380 int val2 ;
39381 int ecode2 = 0 ;
39382 wxPoint temp3 ;
39383 wxSize temp4 ;
39384 long val5 ;
39385 int ecode5 = 0 ;
39386 PyObject * obj0 = 0 ;
39387 PyObject * obj1 = 0 ;
39388 PyObject * obj2 = 0 ;
39389 PyObject * obj3 = 0 ;
39390 PyObject * obj4 = 0 ;
39391 char * kwnames[] = {
39392 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39393 };
39394
39395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39397 if (!SWIG_IsOK(res1)) {
39398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39399 }
39400 arg1 = reinterpret_cast< wxWindow * >(argp1);
39401 if (obj1) {
39402 ecode2 = SWIG_AsVal_int(obj1, &val2);
39403 if (!SWIG_IsOK(ecode2)) {
39404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39405 }
39406 arg2 = static_cast< int >(val2);
39407 }
39408 if (obj2) {
39409 {
39410 arg3 = &temp3;
39411 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39412 }
39413 }
39414 if (obj3) {
39415 {
39416 arg4 = &temp4;
39417 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39418 }
39419 }
39420 if (obj4) {
39421 ecode5 = SWIG_AsVal_long(obj4, &val5);
39422 if (!SWIG_IsOK(ecode5)) {
39423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39424 }
39425 arg5 = static_cast< long >(val5);
39426 }
39427 {
39428 if (!wxPyCheckForApp()) SWIG_fail;
39429 PyThreadState* __tstate = wxPyBeginAllowThreads();
39430 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39431 wxPyEndAllowThreads(__tstate);
39432 if (PyErr_Occurred()) SWIG_fail;
39433 }
39434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39435 return resultobj;
39436 fail:
39437 return NULL;
39438 }
39439
39440
39441 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39442 PyObject *obj;
39443 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39444 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39445 return SWIG_Py_Void();
39446 }
39447
39448 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39449 return SWIG_Python_InitShadowInstance(args);
39450 }
39451
39452 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39453 PyObject *resultobj = 0;
39454 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39455 void *argp1 = 0 ;
39456 int res1 = 0 ;
39457 PyObject *swig_obj[1] ;
39458
39459 if (!args) SWIG_fail;
39460 swig_obj[0] = args;
39461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39462 if (!SWIG_IsOK(res1)) {
39463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39464 }
39465 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39466 {
39467 PyThreadState* __tstate = wxPyBeginAllowThreads();
39468 delete arg1;
39469
39470 wxPyEndAllowThreads(__tstate);
39471 if (PyErr_Occurred()) SWIG_fail;
39472 }
39473 resultobj = SWIG_Py_Void();
39474 return resultobj;
39475 fail:
39476 return NULL;
39477 }
39478
39479
39480 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39481 PyObject *resultobj = 0;
39482 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39483 wxHelpProvider *result = 0 ;
39484 int res1 = 0 ;
39485 PyObject * obj0 = 0 ;
39486 char * kwnames[] = {
39487 (char *) "helpProvider", NULL
39488 };
39489
39490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39491 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39492 if (!SWIG_IsOK(res1)) {
39493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39494 }
39495 {
39496 PyThreadState* __tstate = wxPyBeginAllowThreads();
39497 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39498 wxPyEndAllowThreads(__tstate);
39499 if (PyErr_Occurred()) SWIG_fail;
39500 }
39501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39502 return resultobj;
39503 fail:
39504 return NULL;
39505 }
39506
39507
39508 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39509 PyObject *resultobj = 0;
39510 wxHelpProvider *result = 0 ;
39511
39512 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39513 {
39514 PyThreadState* __tstate = wxPyBeginAllowThreads();
39515 result = (wxHelpProvider *)wxHelpProvider::Get();
39516 wxPyEndAllowThreads(__tstate);
39517 if (PyErr_Occurred()) SWIG_fail;
39518 }
39519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39520 return resultobj;
39521 fail:
39522 return NULL;
39523 }
39524
39525
39526 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39527 PyObject *resultobj = 0;
39528 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39529 wxWindow *arg2 = (wxWindow *) 0 ;
39530 wxString result;
39531 void *argp1 = 0 ;
39532 int res1 = 0 ;
39533 void *argp2 = 0 ;
39534 int res2 = 0 ;
39535 PyObject * obj0 = 0 ;
39536 PyObject * obj1 = 0 ;
39537 char * kwnames[] = {
39538 (char *) "self",(char *) "window", NULL
39539 };
39540
39541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39543 if (!SWIG_IsOK(res1)) {
39544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39545 }
39546 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39548 if (!SWIG_IsOK(res2)) {
39549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39550 }
39551 arg2 = reinterpret_cast< wxWindow * >(argp2);
39552 {
39553 PyThreadState* __tstate = wxPyBeginAllowThreads();
39554 result = (arg1)->GetHelp((wxWindow const *)arg2);
39555 wxPyEndAllowThreads(__tstate);
39556 if (PyErr_Occurred()) SWIG_fail;
39557 }
39558 {
39559 #if wxUSE_UNICODE
39560 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39561 #else
39562 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39563 #endif
39564 }
39565 return resultobj;
39566 fail:
39567 return NULL;
39568 }
39569
39570
39571 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39572 PyObject *resultobj = 0;
39573 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39574 wxWindow *arg2 = (wxWindow *) 0 ;
39575 bool result;
39576 void *argp1 = 0 ;
39577 int res1 = 0 ;
39578 void *argp2 = 0 ;
39579 int res2 = 0 ;
39580 PyObject * obj0 = 0 ;
39581 PyObject * obj1 = 0 ;
39582 char * kwnames[] = {
39583 (char *) "self",(char *) "window", NULL
39584 };
39585
39586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39588 if (!SWIG_IsOK(res1)) {
39589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39590 }
39591 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39593 if (!SWIG_IsOK(res2)) {
39594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39595 }
39596 arg2 = reinterpret_cast< wxWindow * >(argp2);
39597 {
39598 PyThreadState* __tstate = wxPyBeginAllowThreads();
39599 result = (bool)(arg1)->ShowHelp(arg2);
39600 wxPyEndAllowThreads(__tstate);
39601 if (PyErr_Occurred()) SWIG_fail;
39602 }
39603 {
39604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39605 }
39606 return resultobj;
39607 fail:
39608 return NULL;
39609 }
39610
39611
39612 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39613 PyObject *resultobj = 0;
39614 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39615 wxWindow *arg2 = (wxWindow *) 0 ;
39616 wxString *arg3 = 0 ;
39617 void *argp1 = 0 ;
39618 int res1 = 0 ;
39619 void *argp2 = 0 ;
39620 int res2 = 0 ;
39621 bool temp3 = false ;
39622 PyObject * obj0 = 0 ;
39623 PyObject * obj1 = 0 ;
39624 PyObject * obj2 = 0 ;
39625 char * kwnames[] = {
39626 (char *) "self",(char *) "window",(char *) "text", NULL
39627 };
39628
39629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39631 if (!SWIG_IsOK(res1)) {
39632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39633 }
39634 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39636 if (!SWIG_IsOK(res2)) {
39637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39638 }
39639 arg2 = reinterpret_cast< wxWindow * >(argp2);
39640 {
39641 arg3 = wxString_in_helper(obj2);
39642 if (arg3 == NULL) SWIG_fail;
39643 temp3 = true;
39644 }
39645 {
39646 PyThreadState* __tstate = wxPyBeginAllowThreads();
39647 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39648 wxPyEndAllowThreads(__tstate);
39649 if (PyErr_Occurred()) SWIG_fail;
39650 }
39651 resultobj = SWIG_Py_Void();
39652 {
39653 if (temp3)
39654 delete arg3;
39655 }
39656 return resultobj;
39657 fail:
39658 {
39659 if (temp3)
39660 delete arg3;
39661 }
39662 return NULL;
39663 }
39664
39665
39666 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39667 PyObject *resultobj = 0;
39668 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39669 int arg2 ;
39670 wxString *arg3 = 0 ;
39671 void *argp1 = 0 ;
39672 int res1 = 0 ;
39673 int val2 ;
39674 int ecode2 = 0 ;
39675 bool temp3 = false ;
39676 PyObject * obj0 = 0 ;
39677 PyObject * obj1 = 0 ;
39678 PyObject * obj2 = 0 ;
39679 char * kwnames[] = {
39680 (char *) "self",(char *) "id",(char *) "text", NULL
39681 };
39682
39683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39685 if (!SWIG_IsOK(res1)) {
39686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39687 }
39688 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39689 ecode2 = SWIG_AsVal_int(obj1, &val2);
39690 if (!SWIG_IsOK(ecode2)) {
39691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39692 }
39693 arg2 = static_cast< int >(val2);
39694 {
39695 arg3 = wxString_in_helper(obj2);
39696 if (arg3 == NULL) SWIG_fail;
39697 temp3 = true;
39698 }
39699 {
39700 PyThreadState* __tstate = wxPyBeginAllowThreads();
39701 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39702 wxPyEndAllowThreads(__tstate);
39703 if (PyErr_Occurred()) SWIG_fail;
39704 }
39705 resultobj = SWIG_Py_Void();
39706 {
39707 if (temp3)
39708 delete arg3;
39709 }
39710 return resultobj;
39711 fail:
39712 {
39713 if (temp3)
39714 delete arg3;
39715 }
39716 return NULL;
39717 }
39718
39719
39720 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39721 PyObject *resultobj = 0;
39722 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39723 wxWindow *arg2 = (wxWindow *) 0 ;
39724 void *argp1 = 0 ;
39725 int res1 = 0 ;
39726 void *argp2 = 0 ;
39727 int res2 = 0 ;
39728 PyObject * obj0 = 0 ;
39729 PyObject * obj1 = 0 ;
39730 char * kwnames[] = {
39731 (char *) "self",(char *) "window", NULL
39732 };
39733
39734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39736 if (!SWIG_IsOK(res1)) {
39737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39738 }
39739 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39740 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39741 if (!SWIG_IsOK(res2)) {
39742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39743 }
39744 arg2 = reinterpret_cast< wxWindow * >(argp2);
39745 {
39746 PyThreadState* __tstate = wxPyBeginAllowThreads();
39747 (arg1)->RemoveHelp(arg2);
39748 wxPyEndAllowThreads(__tstate);
39749 if (PyErr_Occurred()) SWIG_fail;
39750 }
39751 resultobj = SWIG_Py_Void();
39752 return resultobj;
39753 fail:
39754 return NULL;
39755 }
39756
39757
39758 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39759 PyObject *resultobj = 0;
39760 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39761 void *argp1 = 0 ;
39762 int res1 = 0 ;
39763 PyObject *swig_obj[1] ;
39764
39765 if (!args) SWIG_fail;
39766 swig_obj[0] = args;
39767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39768 if (!SWIG_IsOK(res1)) {
39769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39770 }
39771 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39772 {
39773 PyThreadState* __tstate = wxPyBeginAllowThreads();
39774 wxHelpProvider_Destroy(arg1);
39775 wxPyEndAllowThreads(__tstate);
39776 if (PyErr_Occurred()) SWIG_fail;
39777 }
39778 resultobj = SWIG_Py_Void();
39779 return resultobj;
39780 fail:
39781 return NULL;
39782 }
39783
39784
39785 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39786 PyObject *obj;
39787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39788 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39789 return SWIG_Py_Void();
39790 }
39791
39792 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39793 PyObject *resultobj = 0;
39794 wxSimpleHelpProvider *result = 0 ;
39795
39796 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39797 {
39798 PyThreadState* __tstate = wxPyBeginAllowThreads();
39799 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39800 wxPyEndAllowThreads(__tstate);
39801 if (PyErr_Occurred()) SWIG_fail;
39802 }
39803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39804 return resultobj;
39805 fail:
39806 return NULL;
39807 }
39808
39809
39810 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39811 PyObject *obj;
39812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39813 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39814 return SWIG_Py_Void();
39815 }
39816
39817 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39818 return SWIG_Python_InitShadowInstance(args);
39819 }
39820
39821 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39822 PyObject *resultobj = 0;
39823 wxBitmap *arg1 = 0 ;
39824 wxCursor const &arg2_defvalue = wxNullCursor ;
39825 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39826 wxGenericDragImage *result = 0 ;
39827 void *argp1 = 0 ;
39828 int res1 = 0 ;
39829 void *argp2 = 0 ;
39830 int res2 = 0 ;
39831 PyObject * obj0 = 0 ;
39832 PyObject * obj1 = 0 ;
39833 char * kwnames[] = {
39834 (char *) "image",(char *) "cursor", NULL
39835 };
39836
39837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39838 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39839 if (!SWIG_IsOK(res1)) {
39840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39841 }
39842 if (!argp1) {
39843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39844 }
39845 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39846 if (obj1) {
39847 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39848 if (!SWIG_IsOK(res2)) {
39849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39850 }
39851 if (!argp2) {
39852 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39853 }
39854 arg2 = reinterpret_cast< wxCursor * >(argp2);
39855 }
39856 {
39857 if (!wxPyCheckForApp()) SWIG_fail;
39858 PyThreadState* __tstate = wxPyBeginAllowThreads();
39859 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39860 wxPyEndAllowThreads(__tstate);
39861 if (PyErr_Occurred()) SWIG_fail;
39862 }
39863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39864 return resultobj;
39865 fail:
39866 return NULL;
39867 }
39868
39869
39870 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39871 PyObject *resultobj = 0;
39872 wxIcon *arg1 = 0 ;
39873 wxCursor const &arg2_defvalue = wxNullCursor ;
39874 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39875 wxGenericDragImage *result = 0 ;
39876 void *argp1 = 0 ;
39877 int res1 = 0 ;
39878 void *argp2 = 0 ;
39879 int res2 = 0 ;
39880 PyObject * obj0 = 0 ;
39881 PyObject * obj1 = 0 ;
39882 char * kwnames[] = {
39883 (char *) "image",(char *) "cursor", NULL
39884 };
39885
39886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39887 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39888 if (!SWIG_IsOK(res1)) {
39889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39890 }
39891 if (!argp1) {
39892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39893 }
39894 arg1 = reinterpret_cast< wxIcon * >(argp1);
39895 if (obj1) {
39896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39897 if (!SWIG_IsOK(res2)) {
39898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39899 }
39900 if (!argp2) {
39901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39902 }
39903 arg2 = reinterpret_cast< wxCursor * >(argp2);
39904 }
39905 {
39906 if (!wxPyCheckForApp()) SWIG_fail;
39907 PyThreadState* __tstate = wxPyBeginAllowThreads();
39908 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39909 wxPyEndAllowThreads(__tstate);
39910 if (PyErr_Occurred()) SWIG_fail;
39911 }
39912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39913 return resultobj;
39914 fail:
39915 return NULL;
39916 }
39917
39918
39919 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39920 PyObject *resultobj = 0;
39921 wxString *arg1 = 0 ;
39922 wxCursor const &arg2_defvalue = wxNullCursor ;
39923 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39924 wxGenericDragImage *result = 0 ;
39925 bool temp1 = false ;
39926 void *argp2 = 0 ;
39927 int res2 = 0 ;
39928 PyObject * obj0 = 0 ;
39929 PyObject * obj1 = 0 ;
39930 char * kwnames[] = {
39931 (char *) "str",(char *) "cursor", NULL
39932 };
39933
39934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39935 {
39936 arg1 = wxString_in_helper(obj0);
39937 if (arg1 == NULL) SWIG_fail;
39938 temp1 = true;
39939 }
39940 if (obj1) {
39941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39942 if (!SWIG_IsOK(res2)) {
39943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39944 }
39945 if (!argp2) {
39946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39947 }
39948 arg2 = reinterpret_cast< wxCursor * >(argp2);
39949 }
39950 {
39951 if (!wxPyCheckForApp()) SWIG_fail;
39952 PyThreadState* __tstate = wxPyBeginAllowThreads();
39953 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39954 wxPyEndAllowThreads(__tstate);
39955 if (PyErr_Occurred()) SWIG_fail;
39956 }
39957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39958 {
39959 if (temp1)
39960 delete arg1;
39961 }
39962 return resultobj;
39963 fail:
39964 {
39965 if (temp1)
39966 delete arg1;
39967 }
39968 return NULL;
39969 }
39970
39971
39972 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39973 PyObject *resultobj = 0;
39974 wxPyTreeCtrl *arg1 = 0 ;
39975 wxTreeItemId *arg2 = 0 ;
39976 wxGenericDragImage *result = 0 ;
39977 void *argp1 = 0 ;
39978 int res1 = 0 ;
39979 void *argp2 = 0 ;
39980 int res2 = 0 ;
39981 PyObject * obj0 = 0 ;
39982 PyObject * obj1 = 0 ;
39983 char * kwnames[] = {
39984 (char *) "treeCtrl",(char *) "id", NULL
39985 };
39986
39987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39988 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39989 if (!SWIG_IsOK(res1)) {
39990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39991 }
39992 if (!argp1) {
39993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39994 }
39995 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39997 if (!SWIG_IsOK(res2)) {
39998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39999 }
40000 if (!argp2) {
40001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40002 }
40003 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40004 {
40005 if (!wxPyCheckForApp()) SWIG_fail;
40006 PyThreadState* __tstate = wxPyBeginAllowThreads();
40007 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40008 wxPyEndAllowThreads(__tstate);
40009 if (PyErr_Occurred()) SWIG_fail;
40010 }
40011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40012 return resultobj;
40013 fail:
40014 return NULL;
40015 }
40016
40017
40018 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40019 PyObject *resultobj = 0;
40020 wxPyListCtrl *arg1 = 0 ;
40021 long arg2 ;
40022 wxGenericDragImage *result = 0 ;
40023 void *argp1 = 0 ;
40024 int res1 = 0 ;
40025 long val2 ;
40026 int ecode2 = 0 ;
40027 PyObject * obj0 = 0 ;
40028 PyObject * obj1 = 0 ;
40029 char * kwnames[] = {
40030 (char *) "listCtrl",(char *) "id", NULL
40031 };
40032
40033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40034 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40035 if (!SWIG_IsOK(res1)) {
40036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40037 }
40038 if (!argp1) {
40039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40040 }
40041 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40042 ecode2 = SWIG_AsVal_long(obj1, &val2);
40043 if (!SWIG_IsOK(ecode2)) {
40044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40045 }
40046 arg2 = static_cast< long >(val2);
40047 {
40048 if (!wxPyCheckForApp()) SWIG_fail;
40049 PyThreadState* __tstate = wxPyBeginAllowThreads();
40050 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40051 wxPyEndAllowThreads(__tstate);
40052 if (PyErr_Occurred()) SWIG_fail;
40053 }
40054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40055 return resultobj;
40056 fail:
40057 return NULL;
40058 }
40059
40060
40061 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40062 PyObject *resultobj = 0;
40063 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40064 void *argp1 = 0 ;
40065 int res1 = 0 ;
40066 PyObject *swig_obj[1] ;
40067
40068 if (!args) SWIG_fail;
40069 swig_obj[0] = args;
40070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40071 if (!SWIG_IsOK(res1)) {
40072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40073 }
40074 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40075 {
40076 PyThreadState* __tstate = wxPyBeginAllowThreads();
40077 delete arg1;
40078
40079 wxPyEndAllowThreads(__tstate);
40080 if (PyErr_Occurred()) SWIG_fail;
40081 }
40082 resultobj = SWIG_Py_Void();
40083 return resultobj;
40084 fail:
40085 return NULL;
40086 }
40087
40088
40089 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40090 PyObject *resultobj = 0;
40091 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40092 wxBitmap *arg2 = (wxBitmap *) 0 ;
40093 void *argp1 = 0 ;
40094 int res1 = 0 ;
40095 void *argp2 = 0 ;
40096 int res2 = 0 ;
40097 PyObject * obj0 = 0 ;
40098 PyObject * obj1 = 0 ;
40099 char * kwnames[] = {
40100 (char *) "self",(char *) "bitmap", NULL
40101 };
40102
40103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40105 if (!SWIG_IsOK(res1)) {
40106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40107 }
40108 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40109 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40110 if (!SWIG_IsOK(res2)) {
40111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40112 }
40113 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40114 {
40115 PyThreadState* __tstate = wxPyBeginAllowThreads();
40116 (arg1)->SetBackingBitmap(arg2);
40117 wxPyEndAllowThreads(__tstate);
40118 if (PyErr_Occurred()) SWIG_fail;
40119 }
40120 resultobj = SWIG_Py_Void();
40121 return resultobj;
40122 fail:
40123 return NULL;
40124 }
40125
40126
40127 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40128 PyObject *resultobj = 0;
40129 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40130 wxPoint *arg2 = 0 ;
40131 wxWindow *arg3 = (wxWindow *) 0 ;
40132 bool arg4 = (bool) false ;
40133 wxRect *arg5 = (wxRect *) NULL ;
40134 bool result;
40135 void *argp1 = 0 ;
40136 int res1 = 0 ;
40137 wxPoint temp2 ;
40138 void *argp3 = 0 ;
40139 int res3 = 0 ;
40140 bool val4 ;
40141 int ecode4 = 0 ;
40142 void *argp5 = 0 ;
40143 int res5 = 0 ;
40144 PyObject * obj0 = 0 ;
40145 PyObject * obj1 = 0 ;
40146 PyObject * obj2 = 0 ;
40147 PyObject * obj3 = 0 ;
40148 PyObject * obj4 = 0 ;
40149 char * kwnames[] = {
40150 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40151 };
40152
40153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40155 if (!SWIG_IsOK(res1)) {
40156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40157 }
40158 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40159 {
40160 arg2 = &temp2;
40161 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40162 }
40163 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40164 if (!SWIG_IsOK(res3)) {
40165 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40166 }
40167 arg3 = reinterpret_cast< wxWindow * >(argp3);
40168 if (obj3) {
40169 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40170 if (!SWIG_IsOK(ecode4)) {
40171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40172 }
40173 arg4 = static_cast< bool >(val4);
40174 }
40175 if (obj4) {
40176 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40177 if (!SWIG_IsOK(res5)) {
40178 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40179 }
40180 arg5 = reinterpret_cast< wxRect * >(argp5);
40181 }
40182 {
40183 PyThreadState* __tstate = wxPyBeginAllowThreads();
40184 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40185 wxPyEndAllowThreads(__tstate);
40186 if (PyErr_Occurred()) SWIG_fail;
40187 }
40188 {
40189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40190 }
40191 return resultobj;
40192 fail:
40193 return NULL;
40194 }
40195
40196
40197 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40198 PyObject *resultobj = 0;
40199 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40200 wxPoint *arg2 = 0 ;
40201 wxWindow *arg3 = (wxWindow *) 0 ;
40202 wxWindow *arg4 = (wxWindow *) 0 ;
40203 bool result;
40204 void *argp1 = 0 ;
40205 int res1 = 0 ;
40206 wxPoint temp2 ;
40207 void *argp3 = 0 ;
40208 int res3 = 0 ;
40209 void *argp4 = 0 ;
40210 int res4 = 0 ;
40211 PyObject * obj0 = 0 ;
40212 PyObject * obj1 = 0 ;
40213 PyObject * obj2 = 0 ;
40214 PyObject * obj3 = 0 ;
40215 char * kwnames[] = {
40216 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40217 };
40218
40219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40221 if (!SWIG_IsOK(res1)) {
40222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40223 }
40224 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40225 {
40226 arg2 = &temp2;
40227 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40228 }
40229 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40230 if (!SWIG_IsOK(res3)) {
40231 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40232 }
40233 arg3 = reinterpret_cast< wxWindow * >(argp3);
40234 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40235 if (!SWIG_IsOK(res4)) {
40236 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40237 }
40238 arg4 = reinterpret_cast< wxWindow * >(argp4);
40239 {
40240 PyThreadState* __tstate = wxPyBeginAllowThreads();
40241 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40242 wxPyEndAllowThreads(__tstate);
40243 if (PyErr_Occurred()) SWIG_fail;
40244 }
40245 {
40246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40247 }
40248 return resultobj;
40249 fail:
40250 return NULL;
40251 }
40252
40253
40254 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40255 PyObject *resultobj = 0;
40256 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40257 bool result;
40258 void *argp1 = 0 ;
40259 int res1 = 0 ;
40260 PyObject *swig_obj[1] ;
40261
40262 if (!args) SWIG_fail;
40263 swig_obj[0] = args;
40264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40265 if (!SWIG_IsOK(res1)) {
40266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40267 }
40268 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40269 {
40270 PyThreadState* __tstate = wxPyBeginAllowThreads();
40271 result = (bool)(arg1)->EndDrag();
40272 wxPyEndAllowThreads(__tstate);
40273 if (PyErr_Occurred()) SWIG_fail;
40274 }
40275 {
40276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40277 }
40278 return resultobj;
40279 fail:
40280 return NULL;
40281 }
40282
40283
40284 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40285 PyObject *resultobj = 0;
40286 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40287 wxPoint *arg2 = 0 ;
40288 bool result;
40289 void *argp1 = 0 ;
40290 int res1 = 0 ;
40291 wxPoint temp2 ;
40292 PyObject * obj0 = 0 ;
40293 PyObject * obj1 = 0 ;
40294 char * kwnames[] = {
40295 (char *) "self",(char *) "pt", NULL
40296 };
40297
40298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40300 if (!SWIG_IsOK(res1)) {
40301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40302 }
40303 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40304 {
40305 arg2 = &temp2;
40306 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40307 }
40308 {
40309 PyThreadState* __tstate = wxPyBeginAllowThreads();
40310 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40311 wxPyEndAllowThreads(__tstate);
40312 if (PyErr_Occurred()) SWIG_fail;
40313 }
40314 {
40315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40316 }
40317 return resultobj;
40318 fail:
40319 return NULL;
40320 }
40321
40322
40323 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40324 PyObject *resultobj = 0;
40325 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40326 bool result;
40327 void *argp1 = 0 ;
40328 int res1 = 0 ;
40329 PyObject *swig_obj[1] ;
40330
40331 if (!args) SWIG_fail;
40332 swig_obj[0] = args;
40333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40334 if (!SWIG_IsOK(res1)) {
40335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40336 }
40337 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40338 {
40339 PyThreadState* __tstate = wxPyBeginAllowThreads();
40340 result = (bool)(arg1)->Show();
40341 wxPyEndAllowThreads(__tstate);
40342 if (PyErr_Occurred()) SWIG_fail;
40343 }
40344 {
40345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40346 }
40347 return resultobj;
40348 fail:
40349 return NULL;
40350 }
40351
40352
40353 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40354 PyObject *resultobj = 0;
40355 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40356 bool result;
40357 void *argp1 = 0 ;
40358 int res1 = 0 ;
40359 PyObject *swig_obj[1] ;
40360
40361 if (!args) SWIG_fail;
40362 swig_obj[0] = args;
40363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40364 if (!SWIG_IsOK(res1)) {
40365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40366 }
40367 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40368 {
40369 PyThreadState* __tstate = wxPyBeginAllowThreads();
40370 result = (bool)(arg1)->Hide();
40371 wxPyEndAllowThreads(__tstate);
40372 if (PyErr_Occurred()) SWIG_fail;
40373 }
40374 {
40375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40376 }
40377 return resultobj;
40378 fail:
40379 return NULL;
40380 }
40381
40382
40383 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40384 PyObject *resultobj = 0;
40385 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40386 wxPoint *arg2 = 0 ;
40387 wxRect result;
40388 void *argp1 = 0 ;
40389 int res1 = 0 ;
40390 wxPoint temp2 ;
40391 PyObject * obj0 = 0 ;
40392 PyObject * obj1 = 0 ;
40393 char * kwnames[] = {
40394 (char *) "self",(char *) "pos", NULL
40395 };
40396
40397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40399 if (!SWIG_IsOK(res1)) {
40400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40401 }
40402 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40403 {
40404 arg2 = &temp2;
40405 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40406 }
40407 {
40408 PyThreadState* __tstate = wxPyBeginAllowThreads();
40409 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40410 wxPyEndAllowThreads(__tstate);
40411 if (PyErr_Occurred()) SWIG_fail;
40412 }
40413 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40414 return resultobj;
40415 fail:
40416 return NULL;
40417 }
40418
40419
40420 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40421 PyObject *resultobj = 0;
40422 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40423 wxDC *arg2 = 0 ;
40424 wxPoint *arg3 = 0 ;
40425 bool result;
40426 void *argp1 = 0 ;
40427 int res1 = 0 ;
40428 void *argp2 = 0 ;
40429 int res2 = 0 ;
40430 wxPoint temp3 ;
40431 PyObject * obj0 = 0 ;
40432 PyObject * obj1 = 0 ;
40433 PyObject * obj2 = 0 ;
40434 char * kwnames[] = {
40435 (char *) "self",(char *) "dc",(char *) "pos", NULL
40436 };
40437
40438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40440 if (!SWIG_IsOK(res1)) {
40441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40442 }
40443 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40445 if (!SWIG_IsOK(res2)) {
40446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40447 }
40448 if (!argp2) {
40449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40450 }
40451 arg2 = reinterpret_cast< wxDC * >(argp2);
40452 {
40453 arg3 = &temp3;
40454 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40455 }
40456 {
40457 PyThreadState* __tstate = wxPyBeginAllowThreads();
40458 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40459 wxPyEndAllowThreads(__tstate);
40460 if (PyErr_Occurred()) SWIG_fail;
40461 }
40462 {
40463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40464 }
40465 return resultobj;
40466 fail:
40467 return NULL;
40468 }
40469
40470
40471 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40472 PyObject *resultobj = 0;
40473 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40474 wxDC *arg2 = 0 ;
40475 wxMemoryDC *arg3 = 0 ;
40476 wxRect *arg4 = 0 ;
40477 wxRect *arg5 = 0 ;
40478 bool result;
40479 void *argp1 = 0 ;
40480 int res1 = 0 ;
40481 void *argp2 = 0 ;
40482 int res2 = 0 ;
40483 void *argp3 = 0 ;
40484 int res3 = 0 ;
40485 wxRect temp4 ;
40486 wxRect temp5 ;
40487 PyObject * obj0 = 0 ;
40488 PyObject * obj1 = 0 ;
40489 PyObject * obj2 = 0 ;
40490 PyObject * obj3 = 0 ;
40491 PyObject * obj4 = 0 ;
40492 char * kwnames[] = {
40493 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40494 };
40495
40496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40498 if (!SWIG_IsOK(res1)) {
40499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40500 }
40501 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40503 if (!SWIG_IsOK(res2)) {
40504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40505 }
40506 if (!argp2) {
40507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40508 }
40509 arg2 = reinterpret_cast< wxDC * >(argp2);
40510 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40511 if (!SWIG_IsOK(res3)) {
40512 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40513 }
40514 if (!argp3) {
40515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40516 }
40517 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40518 {
40519 arg4 = &temp4;
40520 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40521 }
40522 {
40523 arg5 = &temp5;
40524 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40525 }
40526 {
40527 PyThreadState* __tstate = wxPyBeginAllowThreads();
40528 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40529 wxPyEndAllowThreads(__tstate);
40530 if (PyErr_Occurred()) SWIG_fail;
40531 }
40532 {
40533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40534 }
40535 return resultobj;
40536 fail:
40537 return NULL;
40538 }
40539
40540
40541 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40542 PyObject *resultobj = 0;
40543 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40544 wxPoint *arg2 = 0 ;
40545 wxPoint *arg3 = 0 ;
40546 bool arg4 ;
40547 bool arg5 ;
40548 bool result;
40549 void *argp1 = 0 ;
40550 int res1 = 0 ;
40551 wxPoint temp2 ;
40552 wxPoint temp3 ;
40553 bool val4 ;
40554 int ecode4 = 0 ;
40555 bool val5 ;
40556 int ecode5 = 0 ;
40557 PyObject * obj0 = 0 ;
40558 PyObject * obj1 = 0 ;
40559 PyObject * obj2 = 0 ;
40560 PyObject * obj3 = 0 ;
40561 PyObject * obj4 = 0 ;
40562 char * kwnames[] = {
40563 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40564 };
40565
40566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40568 if (!SWIG_IsOK(res1)) {
40569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40570 }
40571 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40572 {
40573 arg2 = &temp2;
40574 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40575 }
40576 {
40577 arg3 = &temp3;
40578 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40579 }
40580 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40581 if (!SWIG_IsOK(ecode4)) {
40582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40583 }
40584 arg4 = static_cast< bool >(val4);
40585 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40586 if (!SWIG_IsOK(ecode5)) {
40587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40588 }
40589 arg5 = static_cast< bool >(val5);
40590 {
40591 PyThreadState* __tstate = wxPyBeginAllowThreads();
40592 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40593 wxPyEndAllowThreads(__tstate);
40594 if (PyErr_Occurred()) SWIG_fail;
40595 }
40596 {
40597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40598 }
40599 return resultobj;
40600 fail:
40601 return NULL;
40602 }
40603
40604
40605 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40606 PyObject *obj;
40607 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40608 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40609 return SWIG_Py_Void();
40610 }
40611
40612 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40613 return SWIG_Python_InitShadowInstance(args);
40614 }
40615
40616 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40617 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40618 return 1;
40619 }
40620
40621
40622 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40623 PyObject *pyobj = 0;
40624
40625 {
40626 #if wxUSE_UNICODE
40627 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40628 #else
40629 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40630 #endif
40631 }
40632 return pyobj;
40633 }
40634
40635
40636 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40637 PyObject *resultobj = 0;
40638 wxWindow *arg1 = (wxWindow *) 0 ;
40639 int arg2 = (int) -1 ;
40640 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40641 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40642 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40643 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40644 wxSize const &arg5_defvalue = wxDefaultSize ;
40645 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40646 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40647 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40648 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40649 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40650 wxString *arg8 = (wxString *) &arg8_defvalue ;
40651 wxDatePickerCtrl *result = 0 ;
40652 void *argp1 = 0 ;
40653 int res1 = 0 ;
40654 int val2 ;
40655 int ecode2 = 0 ;
40656 void *argp3 = 0 ;
40657 int res3 = 0 ;
40658 wxPoint temp4 ;
40659 wxSize temp5 ;
40660 long val6 ;
40661 int ecode6 = 0 ;
40662 void *argp7 = 0 ;
40663 int res7 = 0 ;
40664 bool temp8 = false ;
40665 PyObject * obj0 = 0 ;
40666 PyObject * obj1 = 0 ;
40667 PyObject * obj2 = 0 ;
40668 PyObject * obj3 = 0 ;
40669 PyObject * obj4 = 0 ;
40670 PyObject * obj5 = 0 ;
40671 PyObject * obj6 = 0 ;
40672 PyObject * obj7 = 0 ;
40673 char * kwnames[] = {
40674 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40675 };
40676
40677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40679 if (!SWIG_IsOK(res1)) {
40680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40681 }
40682 arg1 = reinterpret_cast< wxWindow * >(argp1);
40683 if (obj1) {
40684 ecode2 = SWIG_AsVal_int(obj1, &val2);
40685 if (!SWIG_IsOK(ecode2)) {
40686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40687 }
40688 arg2 = static_cast< int >(val2);
40689 }
40690 if (obj2) {
40691 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40692 if (!SWIG_IsOK(res3)) {
40693 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40694 }
40695 if (!argp3) {
40696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40697 }
40698 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40699 }
40700 if (obj3) {
40701 {
40702 arg4 = &temp4;
40703 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40704 }
40705 }
40706 if (obj4) {
40707 {
40708 arg5 = &temp5;
40709 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40710 }
40711 }
40712 if (obj5) {
40713 ecode6 = SWIG_AsVal_long(obj5, &val6);
40714 if (!SWIG_IsOK(ecode6)) {
40715 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40716 }
40717 arg6 = static_cast< long >(val6);
40718 }
40719 if (obj6) {
40720 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40721 if (!SWIG_IsOK(res7)) {
40722 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40723 }
40724 if (!argp7) {
40725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40726 }
40727 arg7 = reinterpret_cast< wxValidator * >(argp7);
40728 }
40729 if (obj7) {
40730 {
40731 arg8 = wxString_in_helper(obj7);
40732 if (arg8 == NULL) SWIG_fail;
40733 temp8 = true;
40734 }
40735 }
40736 {
40737 if (!wxPyCheckForApp()) SWIG_fail;
40738 PyThreadState* __tstate = wxPyBeginAllowThreads();
40739 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40740 wxPyEndAllowThreads(__tstate);
40741 if (PyErr_Occurred()) SWIG_fail;
40742 }
40743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40744 {
40745 if (temp8)
40746 delete arg8;
40747 }
40748 return resultobj;
40749 fail:
40750 {
40751 if (temp8)
40752 delete arg8;
40753 }
40754 return NULL;
40755 }
40756
40757
40758 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40759 PyObject *resultobj = 0;
40760 wxDatePickerCtrl *result = 0 ;
40761
40762 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40763 {
40764 if (!wxPyCheckForApp()) SWIG_fail;
40765 PyThreadState* __tstate = wxPyBeginAllowThreads();
40766 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40767 wxPyEndAllowThreads(__tstate);
40768 if (PyErr_Occurred()) SWIG_fail;
40769 }
40770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40771 return resultobj;
40772 fail:
40773 return NULL;
40774 }
40775
40776
40777 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40778 PyObject *resultobj = 0;
40779 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40780 wxWindow *arg2 = (wxWindow *) 0 ;
40781 int arg3 = (int) -1 ;
40782 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40783 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40784 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40785 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40786 wxSize const &arg6_defvalue = wxDefaultSize ;
40787 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40788 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40789 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40790 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40791 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40792 wxString *arg9 = (wxString *) &arg9_defvalue ;
40793 bool result;
40794 void *argp1 = 0 ;
40795 int res1 = 0 ;
40796 void *argp2 = 0 ;
40797 int res2 = 0 ;
40798 int val3 ;
40799 int ecode3 = 0 ;
40800 void *argp4 = 0 ;
40801 int res4 = 0 ;
40802 wxPoint temp5 ;
40803 wxSize temp6 ;
40804 long val7 ;
40805 int ecode7 = 0 ;
40806 void *argp8 = 0 ;
40807 int res8 = 0 ;
40808 bool temp9 = false ;
40809 PyObject * obj0 = 0 ;
40810 PyObject * obj1 = 0 ;
40811 PyObject * obj2 = 0 ;
40812 PyObject * obj3 = 0 ;
40813 PyObject * obj4 = 0 ;
40814 PyObject * obj5 = 0 ;
40815 PyObject * obj6 = 0 ;
40816 PyObject * obj7 = 0 ;
40817 PyObject * obj8 = 0 ;
40818 char * kwnames[] = {
40819 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40820 };
40821
40822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40824 if (!SWIG_IsOK(res1)) {
40825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40826 }
40827 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40828 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40829 if (!SWIG_IsOK(res2)) {
40830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40831 }
40832 arg2 = reinterpret_cast< wxWindow * >(argp2);
40833 if (obj2) {
40834 ecode3 = SWIG_AsVal_int(obj2, &val3);
40835 if (!SWIG_IsOK(ecode3)) {
40836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40837 }
40838 arg3 = static_cast< int >(val3);
40839 }
40840 if (obj3) {
40841 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40842 if (!SWIG_IsOK(res4)) {
40843 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40844 }
40845 if (!argp4) {
40846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40847 }
40848 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40849 }
40850 if (obj4) {
40851 {
40852 arg5 = &temp5;
40853 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40854 }
40855 }
40856 if (obj5) {
40857 {
40858 arg6 = &temp6;
40859 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40860 }
40861 }
40862 if (obj6) {
40863 ecode7 = SWIG_AsVal_long(obj6, &val7);
40864 if (!SWIG_IsOK(ecode7)) {
40865 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40866 }
40867 arg7 = static_cast< long >(val7);
40868 }
40869 if (obj7) {
40870 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40871 if (!SWIG_IsOK(res8)) {
40872 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40873 }
40874 if (!argp8) {
40875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40876 }
40877 arg8 = reinterpret_cast< wxValidator * >(argp8);
40878 }
40879 if (obj8) {
40880 {
40881 arg9 = wxString_in_helper(obj8);
40882 if (arg9 == NULL) SWIG_fail;
40883 temp9 = true;
40884 }
40885 }
40886 {
40887 PyThreadState* __tstate = wxPyBeginAllowThreads();
40888 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40889 wxPyEndAllowThreads(__tstate);
40890 if (PyErr_Occurred()) SWIG_fail;
40891 }
40892 {
40893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40894 }
40895 {
40896 if (temp9)
40897 delete arg9;
40898 }
40899 return resultobj;
40900 fail:
40901 {
40902 if (temp9)
40903 delete arg9;
40904 }
40905 return NULL;
40906 }
40907
40908
40909 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40910 PyObject *resultobj = 0;
40911 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40912 wxDateTime *arg2 = 0 ;
40913 void *argp1 = 0 ;
40914 int res1 = 0 ;
40915 void *argp2 = 0 ;
40916 int res2 = 0 ;
40917 PyObject * obj0 = 0 ;
40918 PyObject * obj1 = 0 ;
40919 char * kwnames[] = {
40920 (char *) "self",(char *) "dt", NULL
40921 };
40922
40923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40925 if (!SWIG_IsOK(res1)) {
40926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40927 }
40928 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40930 if (!SWIG_IsOK(res2)) {
40931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40932 }
40933 if (!argp2) {
40934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40935 }
40936 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40937 {
40938 PyThreadState* __tstate = wxPyBeginAllowThreads();
40939 (arg1)->SetValue((wxDateTime const &)*arg2);
40940 wxPyEndAllowThreads(__tstate);
40941 if (PyErr_Occurred()) SWIG_fail;
40942 }
40943 resultobj = SWIG_Py_Void();
40944 return resultobj;
40945 fail:
40946 return NULL;
40947 }
40948
40949
40950 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40951 PyObject *resultobj = 0;
40952 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40953 wxDateTime result;
40954 void *argp1 = 0 ;
40955 int res1 = 0 ;
40956 PyObject *swig_obj[1] ;
40957
40958 if (!args) SWIG_fail;
40959 swig_obj[0] = args;
40960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40961 if (!SWIG_IsOK(res1)) {
40962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40963 }
40964 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40965 {
40966 PyThreadState* __tstate = wxPyBeginAllowThreads();
40967 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40968 wxPyEndAllowThreads(__tstate);
40969 if (PyErr_Occurred()) SWIG_fail;
40970 }
40971 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40972 return resultobj;
40973 fail:
40974 return NULL;
40975 }
40976
40977
40978 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40979 PyObject *resultobj = 0;
40980 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40981 wxDateTime *arg2 = 0 ;
40982 wxDateTime *arg3 = 0 ;
40983 void *argp1 = 0 ;
40984 int res1 = 0 ;
40985 void *argp2 = 0 ;
40986 int res2 = 0 ;
40987 void *argp3 = 0 ;
40988 int res3 = 0 ;
40989 PyObject * obj0 = 0 ;
40990 PyObject * obj1 = 0 ;
40991 PyObject * obj2 = 0 ;
40992 char * kwnames[] = {
40993 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40994 };
40995
40996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40998 if (!SWIG_IsOK(res1)) {
40999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41000 }
41001 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41002 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41003 if (!SWIG_IsOK(res2)) {
41004 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41005 }
41006 if (!argp2) {
41007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41008 }
41009 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41010 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41011 if (!SWIG_IsOK(res3)) {
41012 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41013 }
41014 if (!argp3) {
41015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41016 }
41017 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41018 {
41019 PyThreadState* __tstate = wxPyBeginAllowThreads();
41020 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41021 wxPyEndAllowThreads(__tstate);
41022 if (PyErr_Occurred()) SWIG_fail;
41023 }
41024 resultobj = SWIG_Py_Void();
41025 return resultobj;
41026 fail:
41027 return NULL;
41028 }
41029
41030
41031 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41032 PyObject *resultobj = 0;
41033 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41034 wxDateTime result;
41035 void *argp1 = 0 ;
41036 int res1 = 0 ;
41037 PyObject *swig_obj[1] ;
41038
41039 if (!args) SWIG_fail;
41040 swig_obj[0] = args;
41041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41042 if (!SWIG_IsOK(res1)) {
41043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41044 }
41045 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41046 {
41047 PyThreadState* __tstate = wxPyBeginAllowThreads();
41048 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41049 wxPyEndAllowThreads(__tstate);
41050 if (PyErr_Occurred()) SWIG_fail;
41051 }
41052 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41053 return resultobj;
41054 fail:
41055 return NULL;
41056 }
41057
41058
41059 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41060 PyObject *resultobj = 0;
41061 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41062 wxDateTime result;
41063 void *argp1 = 0 ;
41064 int res1 = 0 ;
41065 PyObject *swig_obj[1] ;
41066
41067 if (!args) SWIG_fail;
41068 swig_obj[0] = args;
41069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41070 if (!SWIG_IsOK(res1)) {
41071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41072 }
41073 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41074 {
41075 PyThreadState* __tstate = wxPyBeginAllowThreads();
41076 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41077 wxPyEndAllowThreads(__tstate);
41078 if (PyErr_Occurred()) SWIG_fail;
41079 }
41080 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41081 return resultobj;
41082 fail:
41083 return NULL;
41084 }
41085
41086
41087 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41088 PyObject *obj;
41089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41090 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41091 return SWIG_Py_Void();
41092 }
41093
41094 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41095 return SWIG_Python_InitShadowInstance(args);
41096 }
41097
41098 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41099 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41100 return 1;
41101 }
41102
41103
41104 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41105 PyObject *pyobj = 0;
41106
41107 {
41108 #if wxUSE_UNICODE
41109 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41110 #else
41111 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41112 #endif
41113 }
41114 return pyobj;
41115 }
41116
41117
41118 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41119 PyObject *resultobj = 0;
41120 wxWindow *arg1 = (wxWindow *) 0 ;
41121 int arg2 ;
41122 wxString *arg3 = 0 ;
41123 wxString *arg4 = 0 ;
41124 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41125 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41126 wxSize const &arg6_defvalue = wxDefaultSize ;
41127 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41128 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41129 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41130 wxString *arg8 = (wxString *) &arg8_defvalue ;
41131 wxHyperlinkCtrl *result = 0 ;
41132 void *argp1 = 0 ;
41133 int res1 = 0 ;
41134 int val2 ;
41135 int ecode2 = 0 ;
41136 bool temp3 = false ;
41137 bool temp4 = false ;
41138 wxPoint temp5 ;
41139 wxSize temp6 ;
41140 long val7 ;
41141 int ecode7 = 0 ;
41142 bool temp8 = false ;
41143 PyObject * obj0 = 0 ;
41144 PyObject * obj1 = 0 ;
41145 PyObject * obj2 = 0 ;
41146 PyObject * obj3 = 0 ;
41147 PyObject * obj4 = 0 ;
41148 PyObject * obj5 = 0 ;
41149 PyObject * obj6 = 0 ;
41150 PyObject * obj7 = 0 ;
41151 char * kwnames[] = {
41152 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41153 };
41154
41155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41157 if (!SWIG_IsOK(res1)) {
41158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41159 }
41160 arg1 = reinterpret_cast< wxWindow * >(argp1);
41161 ecode2 = SWIG_AsVal_int(obj1, &val2);
41162 if (!SWIG_IsOK(ecode2)) {
41163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41164 }
41165 arg2 = static_cast< int >(val2);
41166 {
41167 arg3 = wxString_in_helper(obj2);
41168 if (arg3 == NULL) SWIG_fail;
41169 temp3 = true;
41170 }
41171 {
41172 arg4 = wxString_in_helper(obj3);
41173 if (arg4 == NULL) SWIG_fail;
41174 temp4 = true;
41175 }
41176 if (obj4) {
41177 {
41178 arg5 = &temp5;
41179 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41180 }
41181 }
41182 if (obj5) {
41183 {
41184 arg6 = &temp6;
41185 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41186 }
41187 }
41188 if (obj6) {
41189 ecode7 = SWIG_AsVal_long(obj6, &val7);
41190 if (!SWIG_IsOK(ecode7)) {
41191 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41192 }
41193 arg7 = static_cast< long >(val7);
41194 }
41195 if (obj7) {
41196 {
41197 arg8 = wxString_in_helper(obj7);
41198 if (arg8 == NULL) SWIG_fail;
41199 temp8 = true;
41200 }
41201 }
41202 {
41203 if (!wxPyCheckForApp()) SWIG_fail;
41204 PyThreadState* __tstate = wxPyBeginAllowThreads();
41205 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41206 wxPyEndAllowThreads(__tstate);
41207 if (PyErr_Occurred()) SWIG_fail;
41208 }
41209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41210 {
41211 if (temp3)
41212 delete arg3;
41213 }
41214 {
41215 if (temp4)
41216 delete arg4;
41217 }
41218 {
41219 if (temp8)
41220 delete arg8;
41221 }
41222 return resultobj;
41223 fail:
41224 {
41225 if (temp3)
41226 delete arg3;
41227 }
41228 {
41229 if (temp4)
41230 delete arg4;
41231 }
41232 {
41233 if (temp8)
41234 delete arg8;
41235 }
41236 return NULL;
41237 }
41238
41239
41240 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41241 PyObject *resultobj = 0;
41242 wxHyperlinkCtrl *result = 0 ;
41243
41244 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41245 {
41246 if (!wxPyCheckForApp()) SWIG_fail;
41247 PyThreadState* __tstate = wxPyBeginAllowThreads();
41248 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41249 wxPyEndAllowThreads(__tstate);
41250 if (PyErr_Occurred()) SWIG_fail;
41251 }
41252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41253 return resultobj;
41254 fail:
41255 return NULL;
41256 }
41257
41258
41259 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41260 PyObject *resultobj = 0;
41261 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41262 wxWindow *arg2 = (wxWindow *) 0 ;
41263 int arg3 ;
41264 wxString *arg4 = 0 ;
41265 wxString *arg5 = 0 ;
41266 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41267 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41268 wxSize const &arg7_defvalue = wxDefaultSize ;
41269 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41270 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41271 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41272 wxString *arg9 = (wxString *) &arg9_defvalue ;
41273 bool result;
41274 void *argp1 = 0 ;
41275 int res1 = 0 ;
41276 void *argp2 = 0 ;
41277 int res2 = 0 ;
41278 int val3 ;
41279 int ecode3 = 0 ;
41280 bool temp4 = false ;
41281 bool temp5 = false ;
41282 wxPoint temp6 ;
41283 wxSize temp7 ;
41284 long val8 ;
41285 int ecode8 = 0 ;
41286 bool temp9 = false ;
41287 PyObject * obj0 = 0 ;
41288 PyObject * obj1 = 0 ;
41289 PyObject * obj2 = 0 ;
41290 PyObject * obj3 = 0 ;
41291 PyObject * obj4 = 0 ;
41292 PyObject * obj5 = 0 ;
41293 PyObject * obj6 = 0 ;
41294 PyObject * obj7 = 0 ;
41295 PyObject * obj8 = 0 ;
41296 char * kwnames[] = {
41297 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41298 };
41299
41300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41302 if (!SWIG_IsOK(res1)) {
41303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41304 }
41305 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41307 if (!SWIG_IsOK(res2)) {
41308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41309 }
41310 arg2 = reinterpret_cast< wxWindow * >(argp2);
41311 ecode3 = SWIG_AsVal_int(obj2, &val3);
41312 if (!SWIG_IsOK(ecode3)) {
41313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41314 }
41315 arg3 = static_cast< int >(val3);
41316 {
41317 arg4 = wxString_in_helper(obj3);
41318 if (arg4 == NULL) SWIG_fail;
41319 temp4 = true;
41320 }
41321 {
41322 arg5 = wxString_in_helper(obj4);
41323 if (arg5 == NULL) SWIG_fail;
41324 temp5 = true;
41325 }
41326 if (obj5) {
41327 {
41328 arg6 = &temp6;
41329 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41330 }
41331 }
41332 if (obj6) {
41333 {
41334 arg7 = &temp7;
41335 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41336 }
41337 }
41338 if (obj7) {
41339 ecode8 = SWIG_AsVal_long(obj7, &val8);
41340 if (!SWIG_IsOK(ecode8)) {
41341 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41342 }
41343 arg8 = static_cast< long >(val8);
41344 }
41345 if (obj8) {
41346 {
41347 arg9 = wxString_in_helper(obj8);
41348 if (arg9 == NULL) SWIG_fail;
41349 temp9 = true;
41350 }
41351 }
41352 {
41353 PyThreadState* __tstate = wxPyBeginAllowThreads();
41354 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41355 wxPyEndAllowThreads(__tstate);
41356 if (PyErr_Occurred()) SWIG_fail;
41357 }
41358 {
41359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41360 }
41361 {
41362 if (temp4)
41363 delete arg4;
41364 }
41365 {
41366 if (temp5)
41367 delete arg5;
41368 }
41369 {
41370 if (temp9)
41371 delete arg9;
41372 }
41373 return resultobj;
41374 fail:
41375 {
41376 if (temp4)
41377 delete arg4;
41378 }
41379 {
41380 if (temp5)
41381 delete arg5;
41382 }
41383 {
41384 if (temp9)
41385 delete arg9;
41386 }
41387 return NULL;
41388 }
41389
41390
41391 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41392 PyObject *resultobj = 0;
41393 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41394 wxColour result;
41395 void *argp1 = 0 ;
41396 int res1 = 0 ;
41397 PyObject *swig_obj[1] ;
41398
41399 if (!args) SWIG_fail;
41400 swig_obj[0] = args;
41401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41402 if (!SWIG_IsOK(res1)) {
41403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41404 }
41405 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41406 {
41407 PyThreadState* __tstate = wxPyBeginAllowThreads();
41408 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41409 wxPyEndAllowThreads(__tstate);
41410 if (PyErr_Occurred()) SWIG_fail;
41411 }
41412 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41413 return resultobj;
41414 fail:
41415 return NULL;
41416 }
41417
41418
41419 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41420 PyObject *resultobj = 0;
41421 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41422 wxColour *arg2 = 0 ;
41423 void *argp1 = 0 ;
41424 int res1 = 0 ;
41425 wxColour temp2 ;
41426 PyObject * obj0 = 0 ;
41427 PyObject * obj1 = 0 ;
41428 char * kwnames[] = {
41429 (char *) "self",(char *) "colour", NULL
41430 };
41431
41432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41434 if (!SWIG_IsOK(res1)) {
41435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41436 }
41437 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41438 {
41439 arg2 = &temp2;
41440 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41441 }
41442 {
41443 PyThreadState* __tstate = wxPyBeginAllowThreads();
41444 (arg1)->SetHoverColour((wxColour const &)*arg2);
41445 wxPyEndAllowThreads(__tstate);
41446 if (PyErr_Occurred()) SWIG_fail;
41447 }
41448 resultobj = SWIG_Py_Void();
41449 return resultobj;
41450 fail:
41451 return NULL;
41452 }
41453
41454
41455 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41456 PyObject *resultobj = 0;
41457 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41458 wxColour result;
41459 void *argp1 = 0 ;
41460 int res1 = 0 ;
41461 PyObject *swig_obj[1] ;
41462
41463 if (!args) SWIG_fail;
41464 swig_obj[0] = args;
41465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41466 if (!SWIG_IsOK(res1)) {
41467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41468 }
41469 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41470 {
41471 PyThreadState* __tstate = wxPyBeginAllowThreads();
41472 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41473 wxPyEndAllowThreads(__tstate);
41474 if (PyErr_Occurred()) SWIG_fail;
41475 }
41476 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41477 return resultobj;
41478 fail:
41479 return NULL;
41480 }
41481
41482
41483 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41484 PyObject *resultobj = 0;
41485 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41486 wxColour *arg2 = 0 ;
41487 void *argp1 = 0 ;
41488 int res1 = 0 ;
41489 wxColour temp2 ;
41490 PyObject * obj0 = 0 ;
41491 PyObject * obj1 = 0 ;
41492 char * kwnames[] = {
41493 (char *) "self",(char *) "colour", NULL
41494 };
41495
41496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41498 if (!SWIG_IsOK(res1)) {
41499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41500 }
41501 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41502 {
41503 arg2 = &temp2;
41504 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41505 }
41506 {
41507 PyThreadState* __tstate = wxPyBeginAllowThreads();
41508 (arg1)->SetNormalColour((wxColour const &)*arg2);
41509 wxPyEndAllowThreads(__tstate);
41510 if (PyErr_Occurred()) SWIG_fail;
41511 }
41512 resultobj = SWIG_Py_Void();
41513 return resultobj;
41514 fail:
41515 return NULL;
41516 }
41517
41518
41519 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41520 PyObject *resultobj = 0;
41521 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41522 wxColour result;
41523 void *argp1 = 0 ;
41524 int res1 = 0 ;
41525 PyObject *swig_obj[1] ;
41526
41527 if (!args) SWIG_fail;
41528 swig_obj[0] = args;
41529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41530 if (!SWIG_IsOK(res1)) {
41531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41532 }
41533 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41534 {
41535 PyThreadState* __tstate = wxPyBeginAllowThreads();
41536 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41537 wxPyEndAllowThreads(__tstate);
41538 if (PyErr_Occurred()) SWIG_fail;
41539 }
41540 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41541 return resultobj;
41542 fail:
41543 return NULL;
41544 }
41545
41546
41547 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41548 PyObject *resultobj = 0;
41549 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41550 wxColour *arg2 = 0 ;
41551 void *argp1 = 0 ;
41552 int res1 = 0 ;
41553 wxColour temp2 ;
41554 PyObject * obj0 = 0 ;
41555 PyObject * obj1 = 0 ;
41556 char * kwnames[] = {
41557 (char *) "self",(char *) "colour", NULL
41558 };
41559
41560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41562 if (!SWIG_IsOK(res1)) {
41563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41564 }
41565 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41566 {
41567 arg2 = &temp2;
41568 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41569 }
41570 {
41571 PyThreadState* __tstate = wxPyBeginAllowThreads();
41572 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41573 wxPyEndAllowThreads(__tstate);
41574 if (PyErr_Occurred()) SWIG_fail;
41575 }
41576 resultobj = SWIG_Py_Void();
41577 return resultobj;
41578 fail:
41579 return NULL;
41580 }
41581
41582
41583 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41584 PyObject *resultobj = 0;
41585 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41586 wxString result;
41587 void *argp1 = 0 ;
41588 int res1 = 0 ;
41589 PyObject *swig_obj[1] ;
41590
41591 if (!args) SWIG_fail;
41592 swig_obj[0] = args;
41593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41594 if (!SWIG_IsOK(res1)) {
41595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41596 }
41597 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41598 {
41599 PyThreadState* __tstate = wxPyBeginAllowThreads();
41600 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41601 wxPyEndAllowThreads(__tstate);
41602 if (PyErr_Occurred()) SWIG_fail;
41603 }
41604 {
41605 #if wxUSE_UNICODE
41606 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41607 #else
41608 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41609 #endif
41610 }
41611 return resultobj;
41612 fail:
41613 return NULL;
41614 }
41615
41616
41617 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41618 PyObject *resultobj = 0;
41619 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41620 wxString *arg2 = 0 ;
41621 void *argp1 = 0 ;
41622 int res1 = 0 ;
41623 bool temp2 = false ;
41624 PyObject * obj0 = 0 ;
41625 PyObject * obj1 = 0 ;
41626 char * kwnames[] = {
41627 (char *) "self",(char *) "url", NULL
41628 };
41629
41630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41632 if (!SWIG_IsOK(res1)) {
41633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41634 }
41635 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41636 {
41637 arg2 = wxString_in_helper(obj1);
41638 if (arg2 == NULL) SWIG_fail;
41639 temp2 = true;
41640 }
41641 {
41642 PyThreadState* __tstate = wxPyBeginAllowThreads();
41643 (arg1)->SetURL((wxString const &)*arg2);
41644 wxPyEndAllowThreads(__tstate);
41645 if (PyErr_Occurred()) SWIG_fail;
41646 }
41647 resultobj = SWIG_Py_Void();
41648 {
41649 if (temp2)
41650 delete arg2;
41651 }
41652 return resultobj;
41653 fail:
41654 {
41655 if (temp2)
41656 delete arg2;
41657 }
41658 return NULL;
41659 }
41660
41661
41662 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41663 PyObject *resultobj = 0;
41664 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41665 bool arg2 = (bool) true ;
41666 void *argp1 = 0 ;
41667 int res1 = 0 ;
41668 bool val2 ;
41669 int ecode2 = 0 ;
41670 PyObject * obj0 = 0 ;
41671 PyObject * obj1 = 0 ;
41672 char * kwnames[] = {
41673 (char *) "self",(char *) "visited", NULL
41674 };
41675
41676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41678 if (!SWIG_IsOK(res1)) {
41679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41680 }
41681 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41682 if (obj1) {
41683 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41684 if (!SWIG_IsOK(ecode2)) {
41685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
41686 }
41687 arg2 = static_cast< bool >(val2);
41688 }
41689 {
41690 PyThreadState* __tstate = wxPyBeginAllowThreads();
41691 (arg1)->SetVisited(arg2);
41692 wxPyEndAllowThreads(__tstate);
41693 if (PyErr_Occurred()) SWIG_fail;
41694 }
41695 resultobj = SWIG_Py_Void();
41696 return resultobj;
41697 fail:
41698 return NULL;
41699 }
41700
41701
41702 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41703 PyObject *resultobj = 0;
41704 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41705 bool result;
41706 void *argp1 = 0 ;
41707 int res1 = 0 ;
41708 PyObject *swig_obj[1] ;
41709
41710 if (!args) SWIG_fail;
41711 swig_obj[0] = args;
41712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41713 if (!SWIG_IsOK(res1)) {
41714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41715 }
41716 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41717 {
41718 PyThreadState* __tstate = wxPyBeginAllowThreads();
41719 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
41720 wxPyEndAllowThreads(__tstate);
41721 if (PyErr_Occurred()) SWIG_fail;
41722 }
41723 {
41724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41725 }
41726 return resultobj;
41727 fail:
41728 return NULL;
41729 }
41730
41731
41732 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41733 PyObject *obj;
41734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41735 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
41736 return SWIG_Py_Void();
41737 }
41738
41739 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41740 return SWIG_Python_InitShadowInstance(args);
41741 }
41742
41743 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41744 PyObject *resultobj = 0;
41745 wxObject *arg1 = (wxObject *) 0 ;
41746 int arg2 ;
41747 wxString *arg3 = 0 ;
41748 wxHyperlinkEvent *result = 0 ;
41749 void *argp1 = 0 ;
41750 int res1 = 0 ;
41751 int val2 ;
41752 int ecode2 = 0 ;
41753 bool temp3 = false ;
41754 PyObject * obj0 = 0 ;
41755 PyObject * obj1 = 0 ;
41756 PyObject * obj2 = 0 ;
41757 char * kwnames[] = {
41758 (char *) "generator",(char *) "id",(char *) "url", NULL
41759 };
41760
41761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
41763 if (!SWIG_IsOK(res1)) {
41764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
41765 }
41766 arg1 = reinterpret_cast< wxObject * >(argp1);
41767 ecode2 = SWIG_AsVal_int(obj1, &val2);
41768 if (!SWIG_IsOK(ecode2)) {
41769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
41770 }
41771 arg2 = static_cast< int >(val2);
41772 {
41773 arg3 = wxString_in_helper(obj2);
41774 if (arg3 == NULL) SWIG_fail;
41775 temp3 = true;
41776 }
41777 {
41778 PyThreadState* __tstate = wxPyBeginAllowThreads();
41779 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
41780 wxPyEndAllowThreads(__tstate);
41781 if (PyErr_Occurred()) SWIG_fail;
41782 }
41783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
41784 {
41785 if (temp3)
41786 delete arg3;
41787 }
41788 return resultobj;
41789 fail:
41790 {
41791 if (temp3)
41792 delete arg3;
41793 }
41794 return NULL;
41795 }
41796
41797
41798 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41799 PyObject *resultobj = 0;
41800 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41801 wxString result;
41802 void *argp1 = 0 ;
41803 int res1 = 0 ;
41804 PyObject *swig_obj[1] ;
41805
41806 if (!args) SWIG_fail;
41807 swig_obj[0] = args;
41808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41809 if (!SWIG_IsOK(res1)) {
41810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
41811 }
41812 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41813 {
41814 PyThreadState* __tstate = wxPyBeginAllowThreads();
41815 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
41816 wxPyEndAllowThreads(__tstate);
41817 if (PyErr_Occurred()) SWIG_fail;
41818 }
41819 {
41820 #if wxUSE_UNICODE
41821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41822 #else
41823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41824 #endif
41825 }
41826 return resultobj;
41827 fail:
41828 return NULL;
41829 }
41830
41831
41832 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41833 PyObject *resultobj = 0;
41834 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41835 wxString *arg2 = 0 ;
41836 void *argp1 = 0 ;
41837 int res1 = 0 ;
41838 bool temp2 = false ;
41839 PyObject * obj0 = 0 ;
41840 PyObject * obj1 = 0 ;
41841 char * kwnames[] = {
41842 (char *) "self",(char *) "url", NULL
41843 };
41844
41845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41847 if (!SWIG_IsOK(res1)) {
41848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
41849 }
41850 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41851 {
41852 arg2 = wxString_in_helper(obj1);
41853 if (arg2 == NULL) SWIG_fail;
41854 temp2 = true;
41855 }
41856 {
41857 PyThreadState* __tstate = wxPyBeginAllowThreads();
41858 (arg1)->SetURL((wxString const &)*arg2);
41859 wxPyEndAllowThreads(__tstate);
41860 if (PyErr_Occurred()) SWIG_fail;
41861 }
41862 resultobj = SWIG_Py_Void();
41863 {
41864 if (temp2)
41865 delete arg2;
41866 }
41867 return resultobj;
41868 fail:
41869 {
41870 if (temp2)
41871 delete arg2;
41872 }
41873 return NULL;
41874 }
41875
41876
41877 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41878 PyObject *obj;
41879 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41880 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
41881 return SWIG_Py_Void();
41882 }
41883
41884 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41885 return SWIG_Python_InitShadowInstance(args);
41886 }
41887
41888 static PyMethodDef SwigMethods[] = {
41889 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
41890 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
41891 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41892 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
41893 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
41894 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41895 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
41896 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
41897 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
41898 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
41899 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41900 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
41901 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
41902 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
41903 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
41904 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
41905 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
41906 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
41907 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41908 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41909 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
41910 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41911 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
41912 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
41913 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
41914 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
41915 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
41916 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
41917 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41918 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
41919 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
41920 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41921 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
41922 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
41923 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
41924 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
41925 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41926 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
41927 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
41928 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
41929 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
41930 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41931 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
41932 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41933 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
41934 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
41935 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
41936 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
41937 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41938 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
41939 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41940 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
41941 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
41942 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
41943 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41944 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
41945 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
41946 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41947 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
41948 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
41949 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
41950 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41951 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41952 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41953 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
41954 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41955 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
41956 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
41957 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
41958 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
41959 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
41960 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
41961 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
41962 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
41963 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
41964 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41965 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
41966 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
41967 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
41968 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
41969 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41970 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41971 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
41972 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41973 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
41974 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41975 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41976 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41977 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41978 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41979 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41980 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41981 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41982 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41983 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41984 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41985 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41986 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41987 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41988 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41989 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41990 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41991 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41992 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41993 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41994 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41995 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41996 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
41997 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
41998 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41999 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
42000 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42001 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
42002 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
42003 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42004 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
42005 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42006 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
42007 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42008 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42009 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42010 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
42011 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
42012 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
42013 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
42014 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42015 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
42016 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
42017 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42018 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42019 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42020 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42021 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
42022 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
42023 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42024 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
42025 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
42026 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
42027 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42028 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42029 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
42030 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42031 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42032 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42033 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42034 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42035 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
42036 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
42037 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
42038 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
42039 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42040 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
42041 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
42042 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
42043 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
42044 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
42045 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42046 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
42047 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
42048 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
42049 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42050 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42051 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42052 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
42053 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
42054 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42055 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42056 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
42057 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
42058 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
42059 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
42060 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
42061 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
42062 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
42063 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
42064 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
42065 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
42066 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
42067 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
42068 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
42069 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
42070 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
42071 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
42072 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
42073 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
42074 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
42075 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
42076 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
42077 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
42078 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42079 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
42080 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42081 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
42082 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42083 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42084 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
42085 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
42086 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
42087 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
42088 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
42089 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
42090 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
42091 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
42092 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
42093 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
42094 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
42095 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
42096 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
42097 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
42098 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
42099 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
42100 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
42101 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
42102 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
42103 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
42104 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42105 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42106 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42107 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
42108 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42109 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
42110 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42111 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42112 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
42113 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
42114 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
42115 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
42116 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
42117 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
42118 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
42119 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
42120 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
42121 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
42122 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
42123 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42124 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
42125 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
42126 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
42127 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42128 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
42129 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
42130 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
42131 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42132 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42133 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
42134 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
42135 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42136 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
42137 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
42138 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
42139 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
42140 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
42141 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
42142 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
42143 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42144 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
42145 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
42146 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
42147 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
42148 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
42149 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42150 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42151 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
42152 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
42153 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
42154 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
42155 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42156 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
42157 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
42158 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
42159 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42160 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42161 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42162 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42163 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
42164 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42165 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
42166 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
42167 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42168 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
42169 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42170 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
42171 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42172 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
42173 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42174 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
42175 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
42176 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42177 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42178 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
42179 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
42180 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42181 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
42182 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42183 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
42184 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
42185 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
42186 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
42187 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42188 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42189 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
42190 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
42191 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42192 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
42193 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
42194 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42195 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
42196 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
42197 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
42198 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42199 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
42200 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
42201 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
42202 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42203 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42204 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42205 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42206 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
42207 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
42208 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
42209 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
42210 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42211 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
42212 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42213 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42214 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
42215 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
42216 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
42217 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
42218 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42219 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
42220 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42221 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42222 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
42223 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
42224 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42225 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42226 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
42227 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42228 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
42229 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
42230 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
42231 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
42232 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
42233 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
42234 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
42235 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
42236 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
42237 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
42238 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
42239 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42240 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42241 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
42242 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
42243 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
42244 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
42245 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42246 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42247 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
42248 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42249 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
42250 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
42251 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
42252 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
42253 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
42254 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
42255 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42256 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42257 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42258 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42259 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
42260 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42261 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42262 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42263 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
42264 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
42265 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
42266 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
42267 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
42268 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
42269 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
42270 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
42271 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
42272 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
42273 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
42274 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
42275 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
42276 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
42277 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42278 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42279 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42280 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42281 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
42282 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42283 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
42284 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42285 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
42286 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42287 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
42288 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
42289 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
42290 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
42291 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42292 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
42293 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
42294 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
42295 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
42296 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42297 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
42298 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
42299 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42300 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
42301 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
42302 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
42303 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
42304 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42305 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
42306 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
42307 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
42308 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42309 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
42310 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
42311 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
42312 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
42313 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42314 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
42315 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
42316 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
42317 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42318 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
42319 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
42320 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
42321 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
42322 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42323 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42324 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42325 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42326 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
42327 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
42328 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
42329 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
42330 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
42331 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
42332 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42333 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
42334 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
42335 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
42336 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
42337 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42338 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
42339 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
42340 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
42341 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
42342 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42343 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
42344 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
42345 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
42346 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
42347 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
42348 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
42349 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
42350 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
42351 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
42352 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
42353 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
42354 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
42355 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
42356 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
42357 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
42358 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
42359 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
42360 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
42361 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
42362 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
42363 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
42364 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42365 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42366 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42367 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42368 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42369 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42370 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
42371 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
42372 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
42373 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42374 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
42375 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
42376 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
42377 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42378 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42379 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
42380 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
42381 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
42382 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
42383 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
42384 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
42385 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
42386 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
42387 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
42388 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
42389 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
42390 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
42391 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42392 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42393 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42394 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
42395 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
42396 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42397 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42398 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42399 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42400 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42401 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
42402 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
42403 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
42404 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
42405 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
42406 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
42407 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
42408 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
42409 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
42410 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
42411 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
42412 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
42413 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
42414 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
42415 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
42416 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42417 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
42418 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
42419 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
42420 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
42421 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
42422 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
42423 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42424 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42425 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
42426 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
42427 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42428 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
42429 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42430 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42431 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42432 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
42433 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
42434 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
42435 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
42436 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
42437 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
42438 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
42439 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
42440 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
42441 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
42442 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
42443 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
42444 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
42445 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
42446 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
42447 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42448 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42449 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
42450 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
42451 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
42452 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
42453 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42454 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42455 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
42456 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42457 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42458 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42459 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
42460 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
42461 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
42462 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
42463 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
42464 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
42465 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
42466 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
42467 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
42468 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
42469 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
42470 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
42471 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
42472 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
42473 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
42474 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
42475 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
42476 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
42477 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
42478 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
42479 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
42480 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
42481 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
42482 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
42483 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
42484 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
42485 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
42486 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
42487 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
42488 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
42489 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
42490 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
42491 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
42492 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
42493 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
42494 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
42495 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42496 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
42497 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
42498 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
42499 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
42500 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
42501 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
42502 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
42503 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
42504 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
42505 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
42506 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
42507 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
42508 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
42509 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
42510 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
42511 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
42512 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
42513 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
42514 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
42515 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
42516 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
42517 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
42518 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
42519 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
42520 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42521 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
42522 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
42523 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42524 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
42525 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42526 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42527 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42528 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42529 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42530 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42531 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
42532 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
42533 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
42534 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42535 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42536 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42537 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42538 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42539 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42540 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42541 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42542 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42543 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42544 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42545 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42546 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
42547 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42548 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
42549 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
42550 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
42551 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42552 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
42553 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
42554 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42555 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
42556 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42557 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42558 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42559 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42560 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42561 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
42562 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
42563 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
42564 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
42565 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
42566 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
42567 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
42568 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42569 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
42570 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
42571 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42572 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42573 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
42574 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42575 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
42576 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42577 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
42578 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42579 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42580 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
42581 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42582 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
42583 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42584 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
42585 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
42586 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42587 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42588 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42589 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42590 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42591 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42592 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
42593 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
42594 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42595 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
42596 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
42597 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
42598 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
42599 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42600 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42601 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
42602 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
42603 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42604 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
42605 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42606 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42607 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42608 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
42609 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
42610 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
42611 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
42612 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
42613 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
42614 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
42615 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
42616 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
42617 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
42618 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
42619 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42620 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
42621 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
42622 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42623 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
42624 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42625 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
42626 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
42627 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
42628 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42629 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
42630 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42631 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
42632 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
42633 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
42634 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42635 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
42636 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
42637 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42638 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
42639 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42640 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
42641 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42642 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42643 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
42644 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
42645 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
42646 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42647 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
42648 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42649 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42650 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
42651 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
42652 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42653 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
42654 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42655 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
42656 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
42657 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42658 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42659 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42660 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42661 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42662 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42663 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42664 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42665 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42666 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42667 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42668 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42669 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42670 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42671 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42672 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42673 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
42674 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
42675 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42676 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42677 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42678 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42679 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42680 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42681 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42682 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
42683 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
42684 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
42685 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
42686 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
42687 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
42688 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
42689 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
42690 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
42691 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42692 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42693 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
42694 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42695 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42696 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
42697 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
42698 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42699 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
42700 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
42701 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
42702 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42703 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
42704 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
42705 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
42706 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
42707 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
42708 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
42709 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42710 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
42711 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42712 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42713 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42714 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
42715 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42716 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
42717 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42718 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42719 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
42720 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42721 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42722 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
42723 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
42724 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
42725 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42726 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
42727 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42728 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
42729 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
42730 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
42731 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
42732 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
42733 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
42734 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
42735 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
42736 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
42737 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
42738 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
42739 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
42740 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
42741 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
42742 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
42743 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
42744 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
42745 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
42746 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
42747 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
42748 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
42749 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42750 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
42751 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42752 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
42753 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
42754 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
42755 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
42756 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
42757 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42758 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42759 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
42760 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42761 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
42762 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
42763 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
42764 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
42765 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
42766 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
42767 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
42768 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
42769 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
42770 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
42771 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
42772 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
42773 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42774 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
42775 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42776 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
42777 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
42778 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
42779 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
42780 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
42781 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
42782 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
42783 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
42784 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42785 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
42786 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42787 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
42788 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
42789 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
42790 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
42791 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
42792 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
42793 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
42794 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42795 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
42796 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42797 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42798 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42799 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
42800 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42801 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
42802 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
42803 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
42804 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
42805 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
42806 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
42807 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42808 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
42809 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
42810 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
42811 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
42812 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42813 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
42814 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
42815 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
42816 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
42817 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
42818 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
42819 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
42820 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42821 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42822 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42823 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
42824 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
42825 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42826 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
42827 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42828 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42829 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
42830 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42831 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
42832 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
42833 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
42834 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
42835 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42836 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
42837 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42838 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
42839 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
42840 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
42841 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
42842 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
42843 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
42844 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
42845 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42846 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
42847 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
42848 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
42849 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
42850 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42851 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
42852 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42853 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
42854 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
42855 { NULL, NULL, 0, NULL }
42856 };
42857
42858
42859 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42860
42861 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42862 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42863 }
42864 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42865 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42866 }
42867 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42868 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42869 }
42870 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42871 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42872 }
42873 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42874 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42875 }
42876 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
42877 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42878 }
42879 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
42880 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42881 }
42882 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42883 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42884 }
42885 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42886 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42887 }
42888 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42889 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42890 }
42891 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
42892 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
42893 }
42894 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42895 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42896 }
42897 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42898 return (void *)((wxEvent *) ((wxPyEvent *) x));
42899 }
42900 static void *_p_wxListEventTo_p_wxEvent(void *x) {
42901 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42902 }
42903 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
42904 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42905 }
42906 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
42907 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42908 }
42909 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
42910 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42911 }
42912 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
42913 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42914 }
42915 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
42916 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42917 }
42918 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
42919 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
42920 }
42921 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42922 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42923 }
42924 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42925 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42926 }
42927 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42928 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42929 }
42930 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42931 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42932 }
42933 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42934 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42935 }
42936 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42937 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42938 }
42939 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42940 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42941 }
42942 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42943 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42944 }
42945 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
42946 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
42947 }
42948 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
42949 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
42950 }
42951 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42952 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42953 }
42954 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42955 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42956 }
42957 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42958 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42959 }
42960 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42961 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42962 }
42963 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42964 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42965 }
42966 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42967 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42968 }
42969 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42970 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42971 }
42972 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
42973 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
42974 }
42975 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42976 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42977 }
42978 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42979 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42980 }
42981 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42982 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42983 }
42984 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42985 return (void *)((wxEvent *) ((wxShowEvent *) x));
42986 }
42987 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42988 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42989 }
42990 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42991 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42992 }
42993 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42994 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42995 }
42996 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
42997 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
42998 }
42999 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
43000 return (void *)((wxEvent *) ((wxKeyEvent *) x));
43001 }
43002 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
43003 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
43004 }
43005 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
43006 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43007 }
43008 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
43009 return (void *)((wxItemContainer *) ((wxComboBox *) x));
43010 }
43011 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
43012 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43013 }
43014 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
43015 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
43016 }
43017 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
43018 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
43019 }
43020 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
43021 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
43022 }
43023 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
43024 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43025 }
43026 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
43027 return (void *)((wxPyListCtrl *) ((wxListView *) x));
43028 }
43029 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
43030 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
43031 }
43032 static void *_p_wxToolBarTo_p_wxControl(void *x) {
43033 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
43034 }
43035 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
43036 return (void *)((wxControl *) ((wxToggleButton *) x));
43037 }
43038 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
43039 return (void *)((wxControl *) ((wxRadioButton *) x));
43040 }
43041 static void *_p_wxToolbookTo_p_wxControl(void *x) {
43042 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
43043 }
43044 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
43045 return (void *)((wxControl *) ((wxToolBarBase *) x));
43046 }
43047 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
43048 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43049 }
43050 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
43051 return (void *)((wxControl *) ((wxPyListCtrl *) x));
43052 }
43053 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
43054 return (void *)((wxControl *) ((wxComboBox *) x));
43055 }
43056 static void *_p_wxPyControlTo_p_wxControl(void *x) {
43057 return (void *)((wxControl *) ((wxPyControl *) x));
43058 }
43059 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
43060 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
43061 }
43062 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
43063 return (void *)((wxControl *) ((wxScrollBar *) x));
43064 }
43065 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
43066 return (void *)((wxControl *) ((wxControlWithItems *) x));
43067 }
43068 static void *_p_wxGaugeTo_p_wxControl(void *x) {
43069 return (void *)((wxControl *) ((wxGauge *) x));
43070 }
43071 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
43072 return (void *)((wxControl *) ((wxStaticLine *) x));
43073 }
43074 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
43075 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
43076 }
43077 static void *_p_wxListbookTo_p_wxControl(void *x) {
43078 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
43079 }
43080 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
43081 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
43082 }
43083 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
43084 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
43085 }
43086 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
43087 return (void *)((wxControl *) ((wxCheckBox *) x));
43088 }
43089 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
43090 return (void *)((wxControl *) ((wxRadioBox *) x));
43091 }
43092 static void *_p_wxChoiceTo_p_wxControl(void *x) {
43093 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
43094 }
43095 static void *_p_wxListBoxTo_p_wxControl(void *x) {
43096 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
43097 }
43098 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
43099 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43100 }
43101 static void *_p_wxListViewTo_p_wxControl(void *x) {
43102 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
43103 }
43104 static void *_p_wxNotebookTo_p_wxControl(void *x) {
43105 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
43106 }
43107 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
43108 return (void *)((wxControl *) ((wxStaticBitmap *) x));
43109 }
43110 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
43111 return (void *)((wxControl *) ((wxSpinCtrl *) x));
43112 }
43113 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
43114 return (void *)((wxControl *) ((wxStaticText *) x));
43115 }
43116 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
43117 return (void *)((wxControl *) ((wxStaticBox *) x));
43118 }
43119 static void *_p_wxSliderTo_p_wxControl(void *x) {
43120 return (void *)((wxControl *) ((wxSlider *) x));
43121 }
43122 static void *_p_wxTreebookTo_p_wxControl(void *x) {
43123 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
43124 }
43125 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
43126 return (void *)((wxControl *) ((wxSpinButton *) x));
43127 }
43128 static void *_p_wxButtonTo_p_wxControl(void *x) {
43129 return (void *)((wxControl *) ((wxButton *) x));
43130 }
43131 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
43132 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
43133 }
43134 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
43135 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43136 }
43137 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
43138 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
43139 }
43140 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
43141 return (void *)((wxControl *) ((wxTextCtrl *) x));
43142 }
43143 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
43144 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
43145 }
43146 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
43147 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
43148 }
43149 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
43150 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43151 }
43152 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
43153 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
43154 }
43155 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
43156 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
43157 }
43158 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
43159 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
43160 }
43161 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
43162 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43163 }
43164 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
43165 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43166 }
43167 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
43168 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43169 }
43170 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
43171 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43172 }
43173 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
43174 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43175 }
43176 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
43177 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
43178 }
43179 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
43180 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
43181 }
43182 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
43183 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
43184 }
43185 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
43186 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
43187 }
43188 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
43189 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
43190 }
43191 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
43192 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
43193 }
43194 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
43195 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43196 }
43197 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
43198 return (void *)((wxEvtHandler *) ((wxValidator *) x));
43199 }
43200 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
43201 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
43202 }
43203 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
43204 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43205 }
43206 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
43207 return (void *)((wxEvtHandler *) ((wxMenu *) x));
43208 }
43209 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
43210 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
43211 }
43212 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
43213 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
43214 }
43215 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
43216 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43217 }
43218 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
43219 return (void *)((wxEvtHandler *) ((wxWindow *) x));
43220 }
43221 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
43222 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
43223 }
43224 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
43225 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
43226 }
43227 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
43228 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43229 }
43230 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
43231 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43232 }
43233 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
43234 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43235 }
43236 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
43237 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
43238 }
43239 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
43240 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
43241 }
43242 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
43243 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43244 }
43245 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
43246 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
43247 }
43248 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
43249 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43250 }
43251 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
43252 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
43253 }
43254 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
43255 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
43256 }
43257 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
43258 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43259 }
43260 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
43261 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43262 }
43263 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
43264 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43265 }
43266 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
43267 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43268 }
43269 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
43270 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
43271 }
43272 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
43273 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
43274 }
43275 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
43276 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43277 }
43278 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
43279 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43280 }
43281 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
43282 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43283 }
43284 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
43285 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43286 }
43287 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
43288 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43289 }
43290 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
43291 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43292 }
43293 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
43294 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43295 }
43296 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
43297 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
43298 }
43299 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
43300 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
43301 }
43302 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
43303 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
43304 }
43305 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
43306 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43307 }
43308 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
43309 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
43310 }
43311 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
43312 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
43313 }
43314 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
43315 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43316 }
43317 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
43318 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43319 }
43320 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
43321 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43322 }
43323 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
43324 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43325 }
43326 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
43327 return (void *)((wxListBox *) ((wxCheckListBox *) x));
43328 }
43329 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
43330 return (void *)((wxButton *) ((wxBitmapButton *) x));
43331 }
43332 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
43333 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
43334 }
43335 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
43336 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
43337 }
43338 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
43339 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
43340 }
43341 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
43342 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
43343 }
43344 static void *_p_wxToolbookTo_p_wxObject(void *x) {
43345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43346 }
43347 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
43348 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
43349 }
43350 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
43351 return (void *)((wxObject *) ((wxSizerItem *) x));
43352 }
43353 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
43354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
43355 }
43356 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
43357 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
43358 }
43359 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
43360 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
43361 }
43362 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
43363 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
43364 }
43365 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
43366 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
43367 }
43368 static void *_p_wxSizerTo_p_wxObject(void *x) {
43369 return (void *)((wxObject *) ((wxSizer *) x));
43370 }
43371 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
43372 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
43373 }
43374 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
43375 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
43376 }
43377 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
43378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43379 }
43380 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
43381 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
43382 }
43383 static void *_p_wxEventTo_p_wxObject(void *x) {
43384 return (void *)((wxObject *) ((wxEvent *) x));
43385 }
43386 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
43387 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
43388 }
43389 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
43390 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
43391 }
43392 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
43393 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
43394 }
43395 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
43396 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43397 }
43398 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
43399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43400 }
43401 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
43402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43403 }
43404 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
43405 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
43406 }
43407 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
43408 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
43409 }
43410 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
43411 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
43412 }
43413 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
43414 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
43415 }
43416 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
43417 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
43418 }
43419 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
43420 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
43421 }
43422 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
43423 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
43424 }
43425 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
43426 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
43427 }
43428 static void *_p_wxControlTo_p_wxObject(void *x) {
43429 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
43430 }
43431 static void *_p_wxPyControlTo_p_wxObject(void *x) {
43432 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
43433 }
43434 static void *_p_wxGaugeTo_p_wxObject(void *x) {
43435 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
43436 }
43437 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
43438 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
43439 }
43440 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
43441 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
43442 }
43443 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
43444 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43445 }
43446 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
43447 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
43448 }
43449 static void *_p_wxChoiceTo_p_wxObject(void *x) {
43450 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43451 }
43452 static void *_p_wxFSFileTo_p_wxObject(void *x) {
43453 return (void *)((wxObject *) ((wxFSFile *) x));
43454 }
43455 static void *_p_wxPySizerTo_p_wxObject(void *x) {
43456 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
43457 }
43458 static void *_p_wxTreebookTo_p_wxObject(void *x) {
43459 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43460 }
43461 static void *_p_wxListViewTo_p_wxObject(void *x) {
43462 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43463 }
43464 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
43465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
43466 }
43467 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
43468 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43469 }
43470 static void *_p_wxNotebookTo_p_wxObject(void *x) {
43471 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43472 }
43473 static void *_p_wxPyEventTo_p_wxObject(void *x) {
43474 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
43475 }
43476 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
43477 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
43478 }
43479 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
43480 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43481 }
43482 static void *_p_wxListbookTo_p_wxObject(void *x) {
43483 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43484 }
43485 static void *_p_wxShowEventTo_p_wxObject(void *x) {
43486 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
43487 }
43488 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
43489 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43490 }
43491 static void *_p_wxSliderTo_p_wxObject(void *x) {
43492 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
43493 }
43494 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
43495 return (void *)((wxObject *) ((wxMenuItem *) x));
43496 }
43497 static void *_p_wxDateEventTo_p_wxObject(void *x) {
43498 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
43499 }
43500 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
43501 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
43502 }
43503 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
43504 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
43505 }
43506 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
43507 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
43508 }
43509 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
43510 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
43511 }
43512 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
43513 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
43514 }
43515 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
43516 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
43517 }
43518 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
43519 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
43520 }
43521 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
43522 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
43523 }
43524 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
43525 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
43526 }
43527 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
43528 return (void *)((wxObject *) ((wxContextHelp *) x));
43529 }
43530 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
43531 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43532 }
43533 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
43534 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
43535 }
43536 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
43537 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
43538 }
43539 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
43540 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
43541 }
43542 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
43543 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
43544 }
43545 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
43546 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
43547 }
43548 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
43549 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
43550 }
43551 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
43552 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
43553 }
43554 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
43555 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
43556 }
43557 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
43558 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
43559 }
43560 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
43561 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
43562 }
43563 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
43564 return (void *)((wxObject *) ((wxImageHandler *) x));
43565 }
43566 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
43567 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
43568 }
43569 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
43570 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
43571 }
43572 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
43573 return (void *)((wxObject *) ((wxEvtHandler *) x));
43574 }
43575 static void *_p_wxListEventTo_p_wxObject(void *x) {
43576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
43577 }
43578 static void *_p_wxListBoxTo_p_wxObject(void *x) {
43579 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43580 }
43581 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
43582 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43583 }
43584 static void *_p_wxButtonTo_p_wxObject(void *x) {
43585 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
43586 }
43587 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
43588 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43589 }
43590 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
43591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
43592 }
43593 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
43594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43595 }
43596 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
43597 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
43598 }
43599 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
43600 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
43601 }
43602 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
43603 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
43604 }
43605 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
43606 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
43607 }
43608 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
43609 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
43610 }
43611 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
43612 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
43613 }
43614 static void *_p_wxListItemTo_p_wxObject(void *x) {
43615 return (void *)((wxObject *) ((wxListItem *) x));
43616 }
43617 static void *_p_wxImageTo_p_wxObject(void *x) {
43618 return (void *)((wxObject *) ((wxImage *) x));
43619 }
43620 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
43621 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
43622 }
43623 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
43624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43625 }
43626 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
43627 return (void *)((wxObject *) ((wxGenericDragImage *) x));
43628 }
43629 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
43630 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43631 }
43632 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
43633 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43634 }
43635 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
43636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43637 }
43638 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
43639 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43640 }
43641 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
43642 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43643 }
43644 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
43645 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43646 }
43647 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
43648 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43649 }
43650 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
43651 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
43652 }
43653 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
43654 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
43655 }
43656 static void *_p_wxWindowTo_p_wxObject(void *x) {
43657 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
43658 }
43659 static void *_p_wxMenuTo_p_wxObject(void *x) {
43660 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
43661 }
43662 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
43663 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
43664 }
43665 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
43666 return (void *)((wxObject *) ((wxFileSystem *) x));
43667 }
43668 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
43669 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
43670 }
43671 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
43672 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
43673 }
43674 static void *_p_wxPyAppTo_p_wxObject(void *x) {
43675 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
43676 }
43677 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
43678 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
43679 }
43680 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
43681 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
43682 }
43683 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
43684 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
43685 }
43686 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
43687 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43688 }
43689 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
43690 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
43691 }
43692 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
43693 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
43694 }
43695 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
43696 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
43697 }
43698 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
43699 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
43700 }
43701 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
43702 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
43703 }
43704 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
43705 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
43706 }
43707 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
43708 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
43709 }
43710 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
43711 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43712 }
43713 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
43714 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43715 }
43716 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
43717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43718 }
43719 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
43720 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
43721 }
43722 static void *_p_wxToolBarTo_p_wxObject(void *x) {
43723 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43724 }
43725 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
43726 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
43727 }
43728 static void *_p_wxValidatorTo_p_wxObject(void *x) {
43729 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
43730 }
43731 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
43732 return (void *)((wxWindow *) ((wxMenuBar *) x));
43733 }
43734 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
43735 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
43736 }
43737 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
43738 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43739 }
43740 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
43741 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
43742 }
43743 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
43744 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
43745 }
43746 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
43747 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43748 }
43749 static void *_p_wxControlTo_p_wxWindow(void *x) {
43750 return (void *)((wxWindow *) ((wxControl *) x));
43751 }
43752 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
43753 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
43754 }
43755 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
43756 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
43757 }
43758 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
43759 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
43760 }
43761 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
43762 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43763 }
43764 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
43765 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
43766 }
43767 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
43768 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
43769 }
43770 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
43771 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
43772 }
43773 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
43774 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
43775 }
43776 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
43777 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
43778 }
43779 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
43780 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
43781 }
43782 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
43783 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43784 }
43785 static void *_p_wxListbookTo_p_wxWindow(void *x) {
43786 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43787 }
43788 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
43789 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
43790 }
43791 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
43792 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
43793 }
43794 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
43795 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
43796 }
43797 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
43798 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
43799 }
43800 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
43801 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43802 }
43803 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
43804 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43805 }
43806 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
43807 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43808 }
43809 static void *_p_wxListViewTo_p_wxWindow(void *x) {
43810 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43811 }
43812 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
43813 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43814 }
43815 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
43816 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
43817 }
43818 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
43819 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
43820 }
43821 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
43822 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
43823 }
43824 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
43825 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
43826 }
43827 static void *_p_wxSliderTo_p_wxWindow(void *x) {
43828 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
43829 }
43830 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
43831 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43832 }
43833 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
43834 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
43835 }
43836 static void *_p_wxButtonTo_p_wxWindow(void *x) {
43837 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
43838 }
43839 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
43840 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
43841 }
43842 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
43843 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43844 }
43845 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
43846 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
43847 }
43848 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
43849 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
43850 }
43851 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43852 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43853 }
43854 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43855 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43856 }
43857 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43858 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43859 }
43860 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43861 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43862 }
43863 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43864 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43865 }
43866 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
43867 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43868 }
43869 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
43870 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
43871 }
43872 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
43873 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
43874 }
43875 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
43876 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
43877 }
43878 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
43879 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
43880 }
43881 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
43882 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
43883 }
43884 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
43885 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
43886 }
43887 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
43888 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
43889 }
43890 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
43891 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43892 }
43893 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
43894 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43895 }
43896 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
43897 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43898 }
43899 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
43900 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43901 }
43902 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
43903 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43904 }
43905 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
43906 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
43907 }
43908 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
43909 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
43910 }
43911 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
43912 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
43913 }
43914 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
43915 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43916 }
43917 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
43918 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
43919 }
43920 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
43921 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
43922 }
43923 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
43924 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
43925 }
43926 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
43927 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
43928 }
43929 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
43930 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
43931 }
43932 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
43933 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
43934 }
43935 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
43936 return (void *)((wxControlWithItems *) ((wxChoice *) x));
43937 }
43938 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
43939 return (void *)((wxControlWithItems *) ((wxListBox *) x));
43940 }
43941 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
43942 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
43943 }
43944 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
43945 return (void *)((wxValidator *) ((wxPyValidator *) x));
43946 }
43947 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
43948 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
43949 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};
43950 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
43951 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
43952 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
43953 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
43954 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
43955 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
43956 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
43957 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
43958 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
43959 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
43960 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
43961 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
43962 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
43963 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
43964 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
43965 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
43966 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
43967 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
43968 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
43969 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
43970 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
43971 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
43972 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
43973 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
43974 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
43975 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
43976 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
43977 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
43978 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
43979 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
43980 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
43981 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
43982 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
43983 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
43984 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
43985 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
43986 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
43987 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
43988 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
43989 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
43990 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
43991 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
43992 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
43993 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
43994 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
43995 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
43996 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
43997 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
43998 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
43999 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
44000 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
44001 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
44002 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
44003 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
44004 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
44005 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
44006 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
44007 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
44008 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
44009 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
44010 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
44011 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
44012 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
44013 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
44014 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
44015 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
44016 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
44017 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
44018 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
44019 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
44020 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
44021 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
44022 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
44023 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
44024 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
44025 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
44026 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
44027 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
44028 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
44029 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
44030 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
44031 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
44032 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
44033 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
44034 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
44035 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
44036 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
44037 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
44038 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
44039 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
44040 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
44041 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
44042 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
44043 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
44044 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
44045 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
44046 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
44047 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
44048 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
44049 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
44050 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
44051 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
44052 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
44053 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
44054 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
44055 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
44056 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
44057 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
44058 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
44059 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
44060 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
44061 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
44062 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
44063 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
44064 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
44065 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
44066 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
44067 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
44068 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
44069 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
44070 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
44071 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
44072 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
44073 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
44074 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
44075 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
44076 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
44077 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
44078 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
44079 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
44080 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
44081 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
44082 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
44083 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
44084 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
44085 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
44086 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
44087 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
44088 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
44089 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
44090 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
44091 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
44092 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
44093 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
44094 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
44095 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
44096 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
44097 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
44098 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
44099 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
44100 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
44101 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
44102 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
44103 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
44104 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
44105 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
44106 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
44107 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
44108 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
44109 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
44110 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
44111 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
44112 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
44113
44114 static swig_type_info *swig_type_initial[] = {
44115 &_swigt__p_bool,
44116 &_swigt__p_char,
44117 &_swigt__p_form_ops_t,
44118 &_swigt__p_int,
44119 &_swigt__p_long,
44120 &_swigt__p_unsigned_char,
44121 &_swigt__p_unsigned_int,
44122 &_swigt__p_unsigned_long,
44123 &_swigt__p_void,
44124 &_swigt__p_wxANIHandler,
44125 &_swigt__p_wxAcceleratorTable,
44126 &_swigt__p_wxActivateEvent,
44127 &_swigt__p_wxArrayInt,
44128 &_swigt__p_wxArrayString,
44129 &_swigt__p_wxBMPHandler,
44130 &_swigt__p_wxBitmap,
44131 &_swigt__p_wxBitmapButton,
44132 &_swigt__p_wxBookCtrlBase,
44133 &_swigt__p_wxBookCtrlBaseEvent,
44134 &_swigt__p_wxBoxSizer,
44135 &_swigt__p_wxButton,
44136 &_swigt__p_wxCURHandler,
44137 &_swigt__p_wxCheckBox,
44138 &_swigt__p_wxCheckListBox,
44139 &_swigt__p_wxChildFocusEvent,
44140 &_swigt__p_wxChoice,
44141 &_swigt__p_wxChoicebook,
44142 &_swigt__p_wxChoicebookEvent,
44143 &_swigt__p_wxClipboardTextEvent,
44144 &_swigt__p_wxCloseEvent,
44145 &_swigt__p_wxColour,
44146 &_swigt__p_wxComboBox,
44147 &_swigt__p_wxCommandEvent,
44148 &_swigt__p_wxContextHelp,
44149 &_swigt__p_wxContextHelpButton,
44150 &_swigt__p_wxContextMenuEvent,
44151 &_swigt__p_wxControl,
44152 &_swigt__p_wxControlWithItems,
44153 &_swigt__p_wxCursor,
44154 &_swigt__p_wxDC,
44155 &_swigt__p_wxDateEvent,
44156 &_swigt__p_wxDatePickerCtrl,
44157 &_swigt__p_wxDateTime,
44158 &_swigt__p_wxDirFilterListCtrl,
44159 &_swigt__p_wxDisplayChangedEvent,
44160 &_swigt__p_wxDropFilesEvent,
44161 &_swigt__p_wxDuplexMode,
44162 &_swigt__p_wxEraseEvent,
44163 &_swigt__p_wxEvent,
44164 &_swigt__p_wxEvtHandler,
44165 &_swigt__p_wxFSFile,
44166 &_swigt__p_wxFileSystem,
44167 &_swigt__p_wxFlexGridSizer,
44168 &_swigt__p_wxFocusEvent,
44169 &_swigt__p_wxFont,
44170 &_swigt__p_wxGBSizerItem,
44171 &_swigt__p_wxGIFHandler,
44172 &_swigt__p_wxGauge,
44173 &_swigt__p_wxGenericDirCtrl,
44174 &_swigt__p_wxGenericDragImage,
44175 &_swigt__p_wxGridBagSizer,
44176 &_swigt__p_wxGridSizer,
44177 &_swigt__p_wxHelpEvent,
44178 &_swigt__p_wxHelpProvider,
44179 &_swigt__p_wxHyperlinkCtrl,
44180 &_swigt__p_wxHyperlinkEvent,
44181 &_swigt__p_wxICOHandler,
44182 &_swigt__p_wxIcon,
44183 &_swigt__p_wxIconizeEvent,
44184 &_swigt__p_wxIdleEvent,
44185 &_swigt__p_wxImage,
44186 &_swigt__p_wxImageHandler,
44187 &_swigt__p_wxImageList,
44188 &_swigt__p_wxIndividualLayoutConstraint,
44189 &_swigt__p_wxInitDialogEvent,
44190 &_swigt__p_wxItemContainer,
44191 &_swigt__p_wxJPEGHandler,
44192 &_swigt__p_wxKeyEvent,
44193 &_swigt__p_wxLayoutConstraints,
44194 &_swigt__p_wxListBox,
44195 &_swigt__p_wxListEvent,
44196 &_swigt__p_wxListItem,
44197 &_swigt__p_wxListItemAttr,
44198 &_swigt__p_wxListView,
44199 &_swigt__p_wxListbook,
44200 &_swigt__p_wxListbookEvent,
44201 &_swigt__p_wxMaximizeEvent,
44202 &_swigt__p_wxMemoryDC,
44203 &_swigt__p_wxMenu,
44204 &_swigt__p_wxMenuBar,
44205 &_swigt__p_wxMenuEvent,
44206 &_swigt__p_wxMenuItem,
44207 &_swigt__p_wxMouseCaptureChangedEvent,
44208 &_swigt__p_wxMouseEvent,
44209 &_swigt__p_wxMoveEvent,
44210 &_swigt__p_wxNavigationKeyEvent,
44211 &_swigt__p_wxNcPaintEvent,
44212 &_swigt__p_wxNotebook,
44213 &_swigt__p_wxNotebookEvent,
44214 &_swigt__p_wxNotifyEvent,
44215 &_swigt__p_wxObject,
44216 &_swigt__p_wxPCXHandler,
44217 &_swigt__p_wxPNGHandler,
44218 &_swigt__p_wxPNMHandler,
44219 &_swigt__p_wxPaintEvent,
44220 &_swigt__p_wxPaletteChangedEvent,
44221 &_swigt__p_wxPaperSize,
44222 &_swigt__p_wxPoint,
44223 &_swigt__p_wxPyApp,
44224 &_swigt__p_wxPyCommandEvent,
44225 &_swigt__p_wxPyControl,
44226 &_swigt__p_wxPyEvent,
44227 &_swigt__p_wxPyImageHandler,
44228 &_swigt__p_wxPyListCtrl,
44229 &_swigt__p_wxPySizer,
44230 &_swigt__p_wxPyTreeCtrl,
44231 &_swigt__p_wxPyTreeItemData,
44232 &_swigt__p_wxPyValidator,
44233 &_swigt__p_wxQueryNewPaletteEvent,
44234 &_swigt__p_wxRadioBox,
44235 &_swigt__p_wxRadioButton,
44236 &_swigt__p_wxRect,
44237 &_swigt__p_wxScrollBar,
44238 &_swigt__p_wxScrollEvent,
44239 &_swigt__p_wxScrollWinEvent,
44240 &_swigt__p_wxSetCursorEvent,
44241 &_swigt__p_wxShowEvent,
44242 &_swigt__p_wxSimpleHelpProvider,
44243 &_swigt__p_wxSize,
44244 &_swigt__p_wxSizeEvent,
44245 &_swigt__p_wxSizer,
44246 &_swigt__p_wxSizerItem,
44247 &_swigt__p_wxSlider,
44248 &_swigt__p_wxSpinButton,
44249 &_swigt__p_wxSpinCtrl,
44250 &_swigt__p_wxSpinEvent,
44251 &_swigt__p_wxStaticBitmap,
44252 &_swigt__p_wxStaticBox,
44253 &_swigt__p_wxStaticBoxSizer,
44254 &_swigt__p_wxStaticLine,
44255 &_swigt__p_wxStaticText,
44256 &_swigt__p_wxStdDialogButtonSizer,
44257 &_swigt__p_wxString,
44258 &_swigt__p_wxSysColourChangedEvent,
44259 &_swigt__p_wxTIFFHandler,
44260 &_swigt__p_wxTextAttr,
44261 &_swigt__p_wxTextCtrl,
44262 &_swigt__p_wxTextUrlEvent,
44263 &_swigt__p_wxToggleButton,
44264 &_swigt__p_wxToolBar,
44265 &_swigt__p_wxToolBarBase,
44266 &_swigt__p_wxToolBarToolBase,
44267 &_swigt__p_wxToolbook,
44268 &_swigt__p_wxToolbookEvent,
44269 &_swigt__p_wxTreeCtrl,
44270 &_swigt__p_wxTreeEvent,
44271 &_swigt__p_wxTreeItemId,
44272 &_swigt__p_wxTreebook,
44273 &_swigt__p_wxTreebookEvent,
44274 &_swigt__p_wxUpdateUIEvent,
44275 &_swigt__p_wxValidator,
44276 &_swigt__p_wxVisualAttributes,
44277 &_swigt__p_wxWindow,
44278 &_swigt__p_wxWindowCreateEvent,
44279 &_swigt__p_wxWindowDestroyEvent,
44280 &_swigt__p_wxXPMHandler,
44281 };
44282
44283 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
44284 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
44285 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
44286 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
44287 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
44288 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
44289 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
44290 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
44291 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
44292 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
44293 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
44294 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
44295 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}};
44296 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}};
44297 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}};
44298 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}};
44299 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
44300 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
44301 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}};
44302 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
44303 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44304 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
44305 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
44306 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
44307 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
44308 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
44309 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
44310 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44311 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44312 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
44313 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
44314 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
44315 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_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}};
44316 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
44317 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
44318 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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
44319 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}};
44320 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
44321 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
44322 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
44323 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
44324 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
44325 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
44326 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44327 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
44328 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
44329 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
44330 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
44331 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
44332 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
44333 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
44334 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44335 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44336 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
44337 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44338 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
44339 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44340 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44341 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44342 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44343 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44344 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44345 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
44346 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44347 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
44348 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44349 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
44350 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_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
44351 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
44352 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
44353 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
44354 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
44355 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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
44356 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
44357 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
44358 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
44359 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
44360 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
44361 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}};
44362 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
44363 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
44364 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
44365 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
44366 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}};
44367 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44368 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}};
44369 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
44370 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
44371 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
44372 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
44373 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
44374 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44375 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
44376 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
44377 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
44378 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44379 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}};
44380 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
44381 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44382 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44383 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
44384 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44385 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44386 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
44387 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
44388 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44389 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44390 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
44391 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
44392 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
44393 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
44394 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
44395 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
44396 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
44397 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
44398 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
44399 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
44400 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
44401 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
44402 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44403 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44404 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
44405 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
44406 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
44407 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
44408 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
44409 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
44410 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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_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_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_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
44411 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
44412 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
44413 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
44414 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}};
44415 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44416 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
44417 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
44418 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
44419 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
44420 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
44421 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
44422 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
44423 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
44424 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
44425 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
44426 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
44427 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
44428 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
44429 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
44430 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
44431 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
44432 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
44433 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
44434 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
44435 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
44436 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
44437 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}};
44438 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
44439 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
44440 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44441 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44442 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
44443 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
44444 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
44445 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44446 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}};
44447 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
44448 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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
44449
44450 static swig_cast_info *swig_cast_initial[] = {
44451 _swigc__p_bool,
44452 _swigc__p_char,
44453 _swigc__p_form_ops_t,
44454 _swigc__p_int,
44455 _swigc__p_long,
44456 _swigc__p_unsigned_char,
44457 _swigc__p_unsigned_int,
44458 _swigc__p_unsigned_long,
44459 _swigc__p_void,
44460 _swigc__p_wxANIHandler,
44461 _swigc__p_wxAcceleratorTable,
44462 _swigc__p_wxActivateEvent,
44463 _swigc__p_wxArrayInt,
44464 _swigc__p_wxArrayString,
44465 _swigc__p_wxBMPHandler,
44466 _swigc__p_wxBitmap,
44467 _swigc__p_wxBitmapButton,
44468 _swigc__p_wxBookCtrlBase,
44469 _swigc__p_wxBookCtrlBaseEvent,
44470 _swigc__p_wxBoxSizer,
44471 _swigc__p_wxButton,
44472 _swigc__p_wxCURHandler,
44473 _swigc__p_wxCheckBox,
44474 _swigc__p_wxCheckListBox,
44475 _swigc__p_wxChildFocusEvent,
44476 _swigc__p_wxChoice,
44477 _swigc__p_wxChoicebook,
44478 _swigc__p_wxChoicebookEvent,
44479 _swigc__p_wxClipboardTextEvent,
44480 _swigc__p_wxCloseEvent,
44481 _swigc__p_wxColour,
44482 _swigc__p_wxComboBox,
44483 _swigc__p_wxCommandEvent,
44484 _swigc__p_wxContextHelp,
44485 _swigc__p_wxContextHelpButton,
44486 _swigc__p_wxContextMenuEvent,
44487 _swigc__p_wxControl,
44488 _swigc__p_wxControlWithItems,
44489 _swigc__p_wxCursor,
44490 _swigc__p_wxDC,
44491 _swigc__p_wxDateEvent,
44492 _swigc__p_wxDatePickerCtrl,
44493 _swigc__p_wxDateTime,
44494 _swigc__p_wxDirFilterListCtrl,
44495 _swigc__p_wxDisplayChangedEvent,
44496 _swigc__p_wxDropFilesEvent,
44497 _swigc__p_wxDuplexMode,
44498 _swigc__p_wxEraseEvent,
44499 _swigc__p_wxEvent,
44500 _swigc__p_wxEvtHandler,
44501 _swigc__p_wxFSFile,
44502 _swigc__p_wxFileSystem,
44503 _swigc__p_wxFlexGridSizer,
44504 _swigc__p_wxFocusEvent,
44505 _swigc__p_wxFont,
44506 _swigc__p_wxGBSizerItem,
44507 _swigc__p_wxGIFHandler,
44508 _swigc__p_wxGauge,
44509 _swigc__p_wxGenericDirCtrl,
44510 _swigc__p_wxGenericDragImage,
44511 _swigc__p_wxGridBagSizer,
44512 _swigc__p_wxGridSizer,
44513 _swigc__p_wxHelpEvent,
44514 _swigc__p_wxHelpProvider,
44515 _swigc__p_wxHyperlinkCtrl,
44516 _swigc__p_wxHyperlinkEvent,
44517 _swigc__p_wxICOHandler,
44518 _swigc__p_wxIcon,
44519 _swigc__p_wxIconizeEvent,
44520 _swigc__p_wxIdleEvent,
44521 _swigc__p_wxImage,
44522 _swigc__p_wxImageHandler,
44523 _swigc__p_wxImageList,
44524 _swigc__p_wxIndividualLayoutConstraint,
44525 _swigc__p_wxInitDialogEvent,
44526 _swigc__p_wxItemContainer,
44527 _swigc__p_wxJPEGHandler,
44528 _swigc__p_wxKeyEvent,
44529 _swigc__p_wxLayoutConstraints,
44530 _swigc__p_wxListBox,
44531 _swigc__p_wxListEvent,
44532 _swigc__p_wxListItem,
44533 _swigc__p_wxListItemAttr,
44534 _swigc__p_wxListView,
44535 _swigc__p_wxListbook,
44536 _swigc__p_wxListbookEvent,
44537 _swigc__p_wxMaximizeEvent,
44538 _swigc__p_wxMemoryDC,
44539 _swigc__p_wxMenu,
44540 _swigc__p_wxMenuBar,
44541 _swigc__p_wxMenuEvent,
44542 _swigc__p_wxMenuItem,
44543 _swigc__p_wxMouseCaptureChangedEvent,
44544 _swigc__p_wxMouseEvent,
44545 _swigc__p_wxMoveEvent,
44546 _swigc__p_wxNavigationKeyEvent,
44547 _swigc__p_wxNcPaintEvent,
44548 _swigc__p_wxNotebook,
44549 _swigc__p_wxNotebookEvent,
44550 _swigc__p_wxNotifyEvent,
44551 _swigc__p_wxObject,
44552 _swigc__p_wxPCXHandler,
44553 _swigc__p_wxPNGHandler,
44554 _swigc__p_wxPNMHandler,
44555 _swigc__p_wxPaintEvent,
44556 _swigc__p_wxPaletteChangedEvent,
44557 _swigc__p_wxPaperSize,
44558 _swigc__p_wxPoint,
44559 _swigc__p_wxPyApp,
44560 _swigc__p_wxPyCommandEvent,
44561 _swigc__p_wxPyControl,
44562 _swigc__p_wxPyEvent,
44563 _swigc__p_wxPyImageHandler,
44564 _swigc__p_wxPyListCtrl,
44565 _swigc__p_wxPySizer,
44566 _swigc__p_wxPyTreeCtrl,
44567 _swigc__p_wxPyTreeItemData,
44568 _swigc__p_wxPyValidator,
44569 _swigc__p_wxQueryNewPaletteEvent,
44570 _swigc__p_wxRadioBox,
44571 _swigc__p_wxRadioButton,
44572 _swigc__p_wxRect,
44573 _swigc__p_wxScrollBar,
44574 _swigc__p_wxScrollEvent,
44575 _swigc__p_wxScrollWinEvent,
44576 _swigc__p_wxSetCursorEvent,
44577 _swigc__p_wxShowEvent,
44578 _swigc__p_wxSimpleHelpProvider,
44579 _swigc__p_wxSize,
44580 _swigc__p_wxSizeEvent,
44581 _swigc__p_wxSizer,
44582 _swigc__p_wxSizerItem,
44583 _swigc__p_wxSlider,
44584 _swigc__p_wxSpinButton,
44585 _swigc__p_wxSpinCtrl,
44586 _swigc__p_wxSpinEvent,
44587 _swigc__p_wxStaticBitmap,
44588 _swigc__p_wxStaticBox,
44589 _swigc__p_wxStaticBoxSizer,
44590 _swigc__p_wxStaticLine,
44591 _swigc__p_wxStaticText,
44592 _swigc__p_wxStdDialogButtonSizer,
44593 _swigc__p_wxString,
44594 _swigc__p_wxSysColourChangedEvent,
44595 _swigc__p_wxTIFFHandler,
44596 _swigc__p_wxTextAttr,
44597 _swigc__p_wxTextCtrl,
44598 _swigc__p_wxTextUrlEvent,
44599 _swigc__p_wxToggleButton,
44600 _swigc__p_wxToolBar,
44601 _swigc__p_wxToolBarBase,
44602 _swigc__p_wxToolBarToolBase,
44603 _swigc__p_wxToolbook,
44604 _swigc__p_wxToolbookEvent,
44605 _swigc__p_wxTreeCtrl,
44606 _swigc__p_wxTreeEvent,
44607 _swigc__p_wxTreeItemId,
44608 _swigc__p_wxTreebook,
44609 _swigc__p_wxTreebookEvent,
44610 _swigc__p_wxUpdateUIEvent,
44611 _swigc__p_wxValidator,
44612 _swigc__p_wxVisualAttributes,
44613 _swigc__p_wxWindow,
44614 _swigc__p_wxWindowCreateEvent,
44615 _swigc__p_wxWindowDestroyEvent,
44616 _swigc__p_wxXPMHandler,
44617 };
44618
44619
44620 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
44621
44622 static swig_const_info swig_const_table[] = {
44623 {0, 0, 0, 0.0, 0, 0}};
44624
44625 #ifdef __cplusplus
44626 }
44627 #endif
44628 /* -----------------------------------------------------------------------------
44629 * Type initialization:
44630 * This problem is tough by the requirement that no dynamic
44631 * memory is used. Also, since swig_type_info structures store pointers to
44632 * swig_cast_info structures and swig_cast_info structures store pointers back
44633 * to swig_type_info structures, we need some lookup code at initialization.
44634 * The idea is that swig generates all the structures that are needed.
44635 * The runtime then collects these partially filled structures.
44636 * The SWIG_InitializeModule function takes these initial arrays out of
44637 * swig_module, and does all the lookup, filling in the swig_module.types
44638 * array with the correct data and linking the correct swig_cast_info
44639 * structures together.
44640 *
44641 * The generated swig_type_info structures are assigned staticly to an initial
44642 * array. We just loop though that array, and handle each type individually.
44643 * First we lookup if this type has been already loaded, and if so, use the
44644 * loaded structure instead of the generated one. Then we have to fill in the
44645 * cast linked list. The cast data is initially stored in something like a
44646 * two-dimensional array. Each row corresponds to a type (there are the same
44647 * number of rows as there are in the swig_type_initial array). Each entry in
44648 * a column is one of the swig_cast_info structures for that type.
44649 * The cast_initial array is actually an array of arrays, because each row has
44650 * a variable number of columns. So to actually build the cast linked list,
44651 * we find the array of casts associated with the type, and loop through it
44652 * adding the casts to the list. The one last trick we need to do is making
44653 * sure the type pointer in the swig_cast_info struct is correct.
44654 *
44655 * First off, we lookup the cast->type name to see if it is already loaded.
44656 * There are three cases to handle:
44657 * 1) If the cast->type has already been loaded AND the type we are adding
44658 * casting info to has not been loaded (it is in this module), THEN we
44659 * replace the cast->type pointer with the type pointer that has already
44660 * been loaded.
44661 * 2) If BOTH types (the one we are adding casting info to, and the
44662 * cast->type) are loaded, THEN the cast info has already been loaded by
44663 * the previous module so we just ignore it.
44664 * 3) Finally, if cast->type has not already been loaded, then we add that
44665 * swig_cast_info to the linked list (because the cast->type) pointer will
44666 * be correct.
44667 * ----------------------------------------------------------------------------- */
44668
44669 #ifdef __cplusplus
44670 extern "C" {
44671 #if 0
44672 } /* c-mode */
44673 #endif
44674 #endif
44675
44676 #if 0
44677 #define SWIGRUNTIME_DEBUG
44678 #endif
44679
44680 SWIGRUNTIME void
44681 SWIG_InitializeModule(void *clientdata) {
44682 size_t i;
44683 swig_module_info *module_head;
44684 static int init_run = 0;
44685
44686 clientdata = clientdata;
44687
44688 if (init_run) return;
44689 init_run = 1;
44690
44691 /* Initialize the swig_module */
44692 swig_module.type_initial = swig_type_initial;
44693 swig_module.cast_initial = swig_cast_initial;
44694
44695 /* Try and load any already created modules */
44696 module_head = SWIG_GetModule(clientdata);
44697 if (module_head) {
44698 swig_module.next = module_head->next;
44699 module_head->next = &swig_module;
44700 } else {
44701 /* This is the first module loaded */
44702 swig_module.next = &swig_module;
44703 SWIG_SetModule(clientdata, &swig_module);
44704 }
44705
44706 /* Now work on filling in swig_module.types */
44707 #ifdef SWIGRUNTIME_DEBUG
44708 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
44709 #endif
44710 for (i = 0; i < swig_module.size; ++i) {
44711 swig_type_info *type = 0;
44712 swig_type_info *ret;
44713 swig_cast_info *cast;
44714
44715 #ifdef SWIGRUNTIME_DEBUG
44716 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44717 #endif
44718
44719 /* if there is another module already loaded */
44720 if (swig_module.next != &swig_module) {
44721 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
44722 }
44723 if (type) {
44724 /* Overwrite clientdata field */
44725 #ifdef SWIGRUNTIME_DEBUG
44726 printf("SWIG_InitializeModule: found type %s\n", type->name);
44727 #endif
44728 if (swig_module.type_initial[i]->clientdata) {
44729 type->clientdata = swig_module.type_initial[i]->clientdata;
44730 #ifdef SWIGRUNTIME_DEBUG
44731 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
44732 #endif
44733 }
44734 } else {
44735 type = swig_module.type_initial[i];
44736 }
44737
44738 /* Insert casting types */
44739 cast = swig_module.cast_initial[i];
44740 while (cast->type) {
44741 /* Don't need to add information already in the list */
44742 ret = 0;
44743 #ifdef SWIGRUNTIME_DEBUG
44744 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
44745 #endif
44746 if (swig_module.next != &swig_module) {
44747 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
44748 #ifdef SWIGRUNTIME_DEBUG
44749 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
44750 #endif
44751 }
44752 if (ret) {
44753 if (type == swig_module.type_initial[i]) {
44754 #ifdef SWIGRUNTIME_DEBUG
44755 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
44756 #endif
44757 cast->type = ret;
44758 ret = 0;
44759 } else {
44760 /* Check for casting already in the list */
44761 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
44762 #ifdef SWIGRUNTIME_DEBUG
44763 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
44764 #endif
44765 if (!ocast) ret = 0;
44766 }
44767 }
44768
44769 if (!ret) {
44770 #ifdef SWIGRUNTIME_DEBUG
44771 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
44772 #endif
44773 if (type->cast) {
44774 type->cast->prev = cast;
44775 cast->next = type->cast;
44776 }
44777 type->cast = cast;
44778 }
44779 cast++;
44780 }
44781 /* Set entry in modules->types array equal to the type */
44782 swig_module.types[i] = type;
44783 }
44784 swig_module.types[i] = 0;
44785
44786 #ifdef SWIGRUNTIME_DEBUG
44787 printf("**** SWIG_InitializeModule: Cast List ******\n");
44788 for (i = 0; i < swig_module.size; ++i) {
44789 int j = 0;
44790 swig_cast_info *cast = swig_module.cast_initial[i];
44791 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44792 while (cast->type) {
44793 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
44794 cast++;
44795 ++j;
44796 }
44797 printf("---- Total casts: %d\n",j);
44798 }
44799 printf("**** SWIG_InitializeModule: Cast List ******\n");
44800 #endif
44801 }
44802
44803 /* This function will propagate the clientdata field of type to
44804 * any new swig_type_info structures that have been added into the list
44805 * of equivalent types. It is like calling
44806 * SWIG_TypeClientData(type, clientdata) a second time.
44807 */
44808 SWIGRUNTIME void
44809 SWIG_PropagateClientData(void) {
44810 size_t i;
44811 swig_cast_info *equiv;
44812 static int init_run = 0;
44813
44814 if (init_run) return;
44815 init_run = 1;
44816
44817 for (i = 0; i < swig_module.size; i++) {
44818 if (swig_module.types[i]->clientdata) {
44819 equiv = swig_module.types[i]->cast;
44820 while (equiv) {
44821 if (!equiv->converter) {
44822 if (equiv->type && !equiv->type->clientdata)
44823 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
44824 }
44825 equiv = equiv->next;
44826 }
44827 }
44828 }
44829 }
44830
44831 #ifdef __cplusplus
44832 #if 0
44833 {
44834 /* c-mode */
44835 #endif
44836 }
44837 #endif
44838
44839
44840
44841 #ifdef __cplusplus
44842 extern "C" {
44843 #endif
44844
44845 /* Python-specific SWIG API */
44846 #define SWIG_newvarlink() SWIG_Python_newvarlink()
44847 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
44848 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
44849
44850 /* -----------------------------------------------------------------------------
44851 * global variable support code.
44852 * ----------------------------------------------------------------------------- */
44853
44854 typedef struct swig_globalvar {
44855 char *name; /* Name of global variable */
44856 PyObject *(*get_attr)(void); /* Return the current value */
44857 int (*set_attr)(PyObject *); /* Set the value */
44858 struct swig_globalvar *next;
44859 } swig_globalvar;
44860
44861 typedef struct swig_varlinkobject {
44862 PyObject_HEAD
44863 swig_globalvar *vars;
44864 } swig_varlinkobject;
44865
44866 SWIGINTERN PyObject *
44867 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
44868 return PyString_FromString("<Swig global variables>");
44869 }
44870
44871 SWIGINTERN PyObject *
44872 swig_varlink_str(swig_varlinkobject *v) {
44873 PyObject *str = PyString_FromString("(");
44874 swig_globalvar *var;
44875 for (var = v->vars; var; var=var->next) {
44876 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
44877 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
44878 }
44879 PyString_ConcatAndDel(&str,PyString_FromString(")"));
44880 return str;
44881 }
44882
44883 SWIGINTERN int
44884 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
44885 PyObject *str = swig_varlink_str(v);
44886 fprintf(fp,"Swig global variables ");
44887 fprintf(fp,"%s\n", PyString_AsString(str));
44888 Py_DECREF(str);
44889 return 0;
44890 }
44891
44892 SWIGINTERN void
44893 swig_varlink_dealloc(swig_varlinkobject *v) {
44894 swig_globalvar *var = v->vars;
44895 while (var) {
44896 swig_globalvar *n = var->next;
44897 free(var->name);
44898 free(var);
44899 var = n;
44900 }
44901 }
44902
44903 SWIGINTERN PyObject *
44904 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
44905 PyObject *res = NULL;
44906 swig_globalvar *var = v->vars;
44907 while (var) {
44908 if (strcmp(var->name,n) == 0) {
44909 res = (*var->get_attr)();
44910 break;
44911 }
44912 var = var->next;
44913 }
44914 if (res == NULL && !PyErr_Occurred()) {
44915 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44916 }
44917 return res;
44918 }
44919
44920 SWIGINTERN int
44921 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
44922 int res = 1;
44923 swig_globalvar *var = v->vars;
44924 while (var) {
44925 if (strcmp(var->name,n) == 0) {
44926 res = (*var->set_attr)(p);
44927 break;
44928 }
44929 var = var->next;
44930 }
44931 if (res == 1 && !PyErr_Occurred()) {
44932 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44933 }
44934 return res;
44935 }
44936
44937 SWIGINTERN PyTypeObject*
44938 swig_varlink_type(void) {
44939 static char varlink__doc__[] = "Swig var link object";
44940 static PyTypeObject varlink_type;
44941 static int type_init = 0;
44942 if (!type_init) {
44943 const PyTypeObject tmp
44944 = {
44945 PyObject_HEAD_INIT(NULL)
44946 0, /* Number of items in variable part (ob_size) */
44947 (char *)"swigvarlink", /* Type name (tp_name) */
44948 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
44949 0, /* Itemsize (tp_itemsize) */
44950 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
44951 (printfunc) swig_varlink_print, /* Print (tp_print) */
44952 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
44953 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
44954 0, /* tp_compare */
44955 (reprfunc) swig_varlink_repr, /* tp_repr */
44956 0, /* tp_as_number */
44957 0, /* tp_as_sequence */
44958 0, /* tp_as_mapping */
44959 0, /* tp_hash */
44960 0, /* tp_call */
44961 (reprfunc)swig_varlink_str, /* tp_str */
44962 0, /* tp_getattro */
44963 0, /* tp_setattro */
44964 0, /* tp_as_buffer */
44965 0, /* tp_flags */
44966 varlink__doc__, /* tp_doc */
44967 0, /* tp_traverse */
44968 0, /* tp_clear */
44969 0, /* tp_richcompare */
44970 0, /* tp_weaklistoffset */
44971 #if PY_VERSION_HEX >= 0x02020000
44972 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
44973 #endif
44974 #if PY_VERSION_HEX >= 0x02030000
44975 0, /* tp_del */
44976 #endif
44977 #ifdef COUNT_ALLOCS
44978 0,0,0,0 /* tp_alloc -> tp_next */
44979 #endif
44980 };
44981 varlink_type = tmp;
44982 varlink_type.ob_type = &PyType_Type;
44983 type_init = 1;
44984 }
44985 return &varlink_type;
44986 }
44987
44988 /* Create a variable linking object for use later */
44989 SWIGINTERN PyObject *
44990 SWIG_Python_newvarlink(void) {
44991 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
44992 if (result) {
44993 result->vars = 0;
44994 }
44995 return ((PyObject*) result);
44996 }
44997
44998 SWIGINTERN void
44999 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
45000 swig_varlinkobject *v = (swig_varlinkobject *) p;
45001 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
45002 if (gv) {
45003 size_t size = strlen(name)+1;
45004 gv->name = (char *)malloc(size);
45005 if (gv->name) {
45006 strncpy(gv->name,name,size);
45007 gv->get_attr = get_attr;
45008 gv->set_attr = set_attr;
45009 gv->next = v->vars;
45010 }
45011 }
45012 v->vars = gv;
45013 }
45014
45015 SWIGINTERN PyObject *
45016 SWIG_globals() {
45017 static PyObject *_SWIG_globals = 0;
45018 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
45019 return _SWIG_globals;
45020 }
45021
45022 /* -----------------------------------------------------------------------------
45023 * constants/methods manipulation
45024 * ----------------------------------------------------------------------------- */
45025
45026 /* Install Constants */
45027 SWIGINTERN void
45028 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
45029 PyObject *obj = 0;
45030 size_t i;
45031 for (i = 0; constants[i].type; ++i) {
45032 switch(constants[i].type) {
45033 case SWIG_PY_POINTER:
45034 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
45035 break;
45036 case SWIG_PY_BINARY:
45037 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
45038 break;
45039 default:
45040 obj = 0;
45041 break;
45042 }
45043 if (obj) {
45044 PyDict_SetItemString(d, constants[i].name, obj);
45045 Py_DECREF(obj);
45046 }
45047 }
45048 }
45049
45050 /* -----------------------------------------------------------------------------*/
45051 /* Fix SwigMethods to carry the callback ptrs when needed */
45052 /* -----------------------------------------------------------------------------*/
45053
45054 SWIGINTERN void
45055 SWIG_Python_FixMethods(PyMethodDef *methods,
45056 swig_const_info *const_table,
45057 swig_type_info **types,
45058 swig_type_info **types_initial) {
45059 size_t i;
45060 for (i = 0; methods[i].ml_name; ++i) {
45061 char *c = methods[i].ml_doc;
45062 if (c && (c = strstr(c, "swig_ptr: "))) {
45063 int j;
45064 swig_const_info *ci = 0;
45065 char *name = c + 10;
45066 for (j = 0; const_table[j].type; ++j) {
45067 if (strncmp(const_table[j].name, name,
45068 strlen(const_table[j].name)) == 0) {
45069 ci = &(const_table[j]);
45070 break;
45071 }
45072 }
45073 if (ci) {
45074 size_t shift = (ci->ptype) - types;
45075 swig_type_info *ty = types_initial[shift];
45076 size_t ldoc = (c - methods[i].ml_doc);
45077 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
45078 char *ndoc = (char*)malloc(ldoc + lptr + 10);
45079 if (ndoc) {
45080 char *buff = ndoc;
45081 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
45082 if (ptr) {
45083 strncpy(buff, methods[i].ml_doc, ldoc);
45084 buff += ldoc;
45085 strncpy(buff, "swig_ptr: ", 10);
45086 buff += 10;
45087 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
45088 methods[i].ml_doc = ndoc;
45089 }
45090 }
45091 }
45092 }
45093 }
45094 }
45095
45096 #ifdef __cplusplus
45097 }
45098 #endif
45099
45100 /* -----------------------------------------------------------------------------*
45101 * Partial Init method
45102 * -----------------------------------------------------------------------------*/
45103
45104 #ifdef __cplusplus
45105 extern "C"
45106 #endif
45107 SWIGEXPORT void SWIG_init(void) {
45108 PyObject *m, *d;
45109
45110 /* Fix SwigMethods to carry the callback ptrs when needed */
45111 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
45112
45113 m = Py_InitModule((char *) SWIG_name, SwigMethods);
45114 d = PyModule_GetDict(m);
45115
45116 SWIG_InitializeModule(0);
45117 SWIG_InstallConstants(d,swig_const_table);
45118
45119
45120 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
45121 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
45122 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
45123 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
45124 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
45125 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
45126 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
45127 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
45128 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
45129 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
45130 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
45131 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
45132 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
45133 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
45134 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
45135 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
45136 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
45137 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
45138 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
45139 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
45140 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
45141 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
45142 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
45143 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
45144 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
45145 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
45146 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
45147 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
45148 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
45149 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
45150 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
45151 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
45152 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
45153 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
45154 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
45155 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
45156 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
45157 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
45158 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
45159 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
45160 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
45161 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
45162 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
45163 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
45164 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
45165 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
45166 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
45167 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
45168 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
45169 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
45170 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
45171 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
45172 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
45173 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
45174 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
45175 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
45176 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
45177 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
45178 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
45179 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
45180 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
45181 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
45182 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
45183 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
45184 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
45185 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
45186 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
45187 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
45188 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
45189 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
45190 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
45191 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
45192 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
45193 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
45194 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
45195 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
45196 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
45197 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
45198 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
45199 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
45200 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
45201 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
45202 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
45203 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
45204 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
45205 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
45206 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
45207 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
45208 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
45209 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
45210 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
45211 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
45212 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
45213 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
45214 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
45215 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
45216 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
45217 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
45218 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
45219 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
45220 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
45221 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
45222 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
45223 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
45224 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
45225 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
45226 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
45227 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
45228 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
45229 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
45230 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
45231 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
45232 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
45233 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
45234 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
45235 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
45236 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
45237 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
45238 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
45239 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
45240 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
45241 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
45242 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
45243 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
45244 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
45245 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
45246 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
45247 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
45248 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
45249 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
45250 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
45251 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
45252 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
45253 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
45254 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
45255 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
45256 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
45257 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
45258 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
45259 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
45260 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
45261 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
45262 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
45263 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
45264 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
45265 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
45266 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
45267 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
45268 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
45269 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
45270 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
45271 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
45272 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
45273 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
45274 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
45275 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
45276 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
45277 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
45278 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
45279 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
45280 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
45281 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
45282 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
45283 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
45284 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
45285 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
45286 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
45287 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
45288 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
45289 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
45290 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
45291 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
45292 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
45293 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
45294 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
45295 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
45296 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
45297 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
45298 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
45299 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
45300 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
45301 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
45302 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
45303 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
45304 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
45305 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
45306 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
45307 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
45308 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
45309 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
45310 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
45311 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
45312 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
45313 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
45314 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
45315 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
45316 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
45317 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
45318 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
45319 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
45320 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
45321 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
45322 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
45323 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
45324 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
45325 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
45326 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
45327 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
45328 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
45329 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
45330 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
45331 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
45332 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
45333 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
45334 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
45335 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
45336 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
45337 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
45338 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
45339 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
45340 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
45341 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
45342 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
45343 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
45344 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
45345 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
45346 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
45347 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
45348 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
45349 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
45350 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
45351 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
45352 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
45353 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
45354 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
45355 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
45356 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
45357 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
45358 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
45359 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
45360 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
45361 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
45362 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
45363 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
45364 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
45365 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
45366 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
45367 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
45368 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
45369
45370 // Map renamed classes back to their common name for OOR
45371 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
45372
45373 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
45374 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
45375 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
45376 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
45377 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
45378 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
45379 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
45380 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
45381 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
45382 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
45383 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
45384 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
45385 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
45386 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
45387 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
45388 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
45389 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
45390 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
45391 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
45392 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
45393 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
45394 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
45395 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
45396 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
45397 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
45398 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
45399 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
45400 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
45401 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
45402 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
45403 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
45404 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
45405 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
45406 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
45407 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
45408 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
45409 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
45410 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
45411 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
45412 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
45413 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
45414 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
45415 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
45416 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
45417 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
45418 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
45419 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
45420 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
45421 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
45422 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
45423 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
45424 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
45425 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
45426 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
45427 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
45428
45429 // Map renamed classes back to their common name for OOR
45430 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
45431 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
45432
45433 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
45434 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
45435 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
45436 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
45437 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
45438 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
45439 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
45440 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
45441 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
45442 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
45443 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
45444 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
45445 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
45446
45447 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
45448
45449 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
45450 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
45451 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
45452 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
45453 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
45454 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
45455 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
45456 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
45457 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
45458 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
45459 }
45460