]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* 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_wxICOHandler swig_types[64]
2527 #define SWIGTYPE_p_wxIcon swig_types[65]
2528 #define SWIGTYPE_p_wxIconizeEvent swig_types[66]
2529 #define SWIGTYPE_p_wxIdleEvent swig_types[67]
2530 #define SWIGTYPE_p_wxImage swig_types[68]
2531 #define SWIGTYPE_p_wxImageHandler swig_types[69]
2532 #define SWIGTYPE_p_wxImageList swig_types[70]
2533 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71]
2534 #define SWIGTYPE_p_wxInitDialogEvent swig_types[72]
2535 #define SWIGTYPE_p_wxItemContainer swig_types[73]
2536 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2537 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2538 #define SWIGTYPE_p_wxLayoutConstraints swig_types[76]
2539 #define SWIGTYPE_p_wxListBox swig_types[77]
2540 #define SWIGTYPE_p_wxListEvent swig_types[78]
2541 #define SWIGTYPE_p_wxListItem swig_types[79]
2542 #define SWIGTYPE_p_wxListItemAttr swig_types[80]
2543 #define SWIGTYPE_p_wxListView swig_types[81]
2544 #define SWIGTYPE_p_wxListbook swig_types[82]
2545 #define SWIGTYPE_p_wxListbookEvent swig_types[83]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[84]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[85]
2548 #define SWIGTYPE_p_wxMenu swig_types[86]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[87]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[88]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[89]
2552 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2554 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2555 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93]
2556 #define SWIGTYPE_p_wxNcPaintEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNotebook swig_types[95]
2558 #define SWIGTYPE_p_wxNotebookEvent swig_types[96]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[97]
2560 #define SWIGTYPE_p_wxObject swig_types[98]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[99]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[100]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[101]
2564 #define SWIGTYPE_p_wxPaintEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPaperSize swig_types[104]
2567 #define SWIGTYPE_p_wxPoint swig_types[105]
2568 #define SWIGTYPE_p_wxPyApp swig_types[106]
2569 #define SWIGTYPE_p_wxPyCommandEvent swig_types[107]
2570 #define SWIGTYPE_p_wxPyControl swig_types[108]
2571 #define SWIGTYPE_p_wxPyEvent swig_types[109]
2572 #define SWIGTYPE_p_wxPyImageHandler swig_types[110]
2573 #define SWIGTYPE_p_wxPyListCtrl swig_types[111]
2574 #define SWIGTYPE_p_wxPySizer swig_types[112]
2575 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[113]
2576 #define SWIGTYPE_p_wxPyTreeItemData swig_types[114]
2577 #define SWIGTYPE_p_wxPyValidator swig_types[115]
2578 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[116]
2579 #define SWIGTYPE_p_wxRadioBox swig_types[117]
2580 #define SWIGTYPE_p_wxRadioButton swig_types[118]
2581 #define SWIGTYPE_p_wxRect swig_types[119]
2582 #define SWIGTYPE_p_wxScrollBar swig_types[120]
2583 #define SWIGTYPE_p_wxScrollEvent swig_types[121]
2584 #define SWIGTYPE_p_wxScrollWinEvent swig_types[122]
2585 #define SWIGTYPE_p_wxSetCursorEvent swig_types[123]
2586 #define SWIGTYPE_p_wxShowEvent swig_types[124]
2587 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[125]
2588 #define SWIGTYPE_p_wxSize swig_types[126]
2589 #define SWIGTYPE_p_wxSizeEvent swig_types[127]
2590 #define SWIGTYPE_p_wxSizer swig_types[128]
2591 #define SWIGTYPE_p_wxSizerItem swig_types[129]
2592 #define SWIGTYPE_p_wxSlider swig_types[130]
2593 #define SWIGTYPE_p_wxSpinButton swig_types[131]
2594 #define SWIGTYPE_p_wxSpinCtrl swig_types[132]
2595 #define SWIGTYPE_p_wxSpinEvent swig_types[133]
2596 #define SWIGTYPE_p_wxStaticBitmap swig_types[134]
2597 #define SWIGTYPE_p_wxStaticBox swig_types[135]
2598 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[136]
2599 #define SWIGTYPE_p_wxStaticLine swig_types[137]
2600 #define SWIGTYPE_p_wxStaticText swig_types[138]
2601 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[139]
2602 #define SWIGTYPE_p_wxString swig_types[140]
2603 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[141]
2604 #define SWIGTYPE_p_wxTIFFHandler swig_types[142]
2605 #define SWIGTYPE_p_wxTextAttr swig_types[143]
2606 #define SWIGTYPE_p_wxTextCtrl swig_types[144]
2607 #define SWIGTYPE_p_wxTextUrlEvent swig_types[145]
2608 #define SWIGTYPE_p_wxToggleButton swig_types[146]
2609 #define SWIGTYPE_p_wxToolBar swig_types[147]
2610 #define SWIGTYPE_p_wxToolBarBase swig_types[148]
2611 #define SWIGTYPE_p_wxToolBarToolBase swig_types[149]
2612 #define SWIGTYPE_p_wxToolbook swig_types[150]
2613 #define SWIGTYPE_p_wxToolbookEvent swig_types[151]
2614 #define SWIGTYPE_p_wxTreeCtrl swig_types[152]
2615 #define SWIGTYPE_p_wxTreeEvent swig_types[153]
2616 #define SWIGTYPE_p_wxTreeItemId swig_types[154]
2617 #define SWIGTYPE_p_wxTreebook swig_types[155]
2618 #define SWIGTYPE_p_wxTreebookEvent swig_types[156]
2619 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[157]
2620 #define SWIGTYPE_p_wxValidator swig_types[158]
2621 #define SWIGTYPE_p_wxVisualAttributes swig_types[159]
2622 #define SWIGTYPE_p_wxWindow swig_types[160]
2623 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[161]
2624 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[162]
2625 #define SWIGTYPE_p_wxXPMHandler swig_types[163]
2626 static swig_type_info *swig_types[165];
2627 static swig_module_info swig_module = {swig_types, 164, 0, 0, 0, 0};
2628 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2629 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2630
2631 /* -------- TYPES TABLE (END) -------- */
2632
2633 #if (PY_VERSION_HEX <= 0x02000000)
2634 # if !defined(SWIG_PYTHON_CLASSIC)
2635 # error "This python version requires to use swig with the '-classic' option"
2636 # endif
2637 #endif
2638 #if (PY_VERSION_HEX <= 0x02020000)
2639 # error "This python version requires to use swig with the '-nomodern' option"
2640 #endif
2641 #if (PY_VERSION_HEX <= 0x02020000)
2642 # error "This python version requires to use swig with the '-nomodernargs' option"
2643 #endif
2644 #ifndef METH_O
2645 # error "This python version requires to use swig with the '-nofastunpack' option"
2646 #endif
2647
2648 /*-----------------------------------------------
2649 @(target):= _controls_.so
2650 ------------------------------------------------*/
2651 #define SWIG_init init_controls_
2652
2653 #define SWIG_name "_controls_"
2654
2655 #define SWIGVERSION 0x010329
2656
2657
2658 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2659 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2660
2661
2662 #include <stdexcept>
2663
2664
2665 namespace swig {
2666 class PyObject_ptr {
2667 protected:
2668 PyObject *_obj;
2669
2670 public:
2671 PyObject_ptr() :_obj(0)
2672 {
2673 }
2674
2675 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2676 {
2677 Py_XINCREF(_obj);
2678 }
2679
2680 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2681 {
2682 if (initial_ref) Py_XINCREF(_obj);
2683 }
2684
2685 PyObject_ptr & operator=(const PyObject_ptr& item)
2686 {
2687 Py_XINCREF(item._obj);
2688 Py_XDECREF(_obj);
2689 _obj = item._obj;
2690 return *this;
2691 }
2692
2693 ~PyObject_ptr()
2694 {
2695 Py_XDECREF(_obj);
2696 }
2697
2698 operator PyObject *() const
2699 {
2700 return _obj;
2701 }
2702
2703 PyObject *operator->() const
2704 {
2705 return _obj;
2706 }
2707 };
2708 }
2709
2710
2711 namespace swig {
2712 struct PyObject_var : PyObject_ptr {
2713 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2714
2715 PyObject_var & operator = (PyObject* obj)
2716 {
2717 Py_XDECREF(_obj);
2718 _obj = obj;
2719 return *this;
2720 }
2721 };
2722 }
2723
2724
2725 #include "wx/wxPython/wxPython.h"
2726 #include "wx/wxPython/pyclasses.h"
2727
2728 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2729 static const wxString wxPyEmptyString(wxEmptyString);
2730 static const wxString wxPyControlNameStr(wxControlNameStr);
2731
2732 const wxArrayString wxPyEmptyStringArray;
2733
2734 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2735
2736 #define SWIG_From_long PyInt_FromLong
2737
2738
2739 SWIGINTERNINLINE PyObject *
2740 SWIG_From_int (int value)
2741 {
2742 return SWIG_From_long (value);
2743 }
2744
2745
2746 #include <limits.h>
2747 #ifndef LLONG_MIN
2748 # define LLONG_MIN LONG_LONG_MIN
2749 #endif
2750 #ifndef LLONG_MAX
2751 # define LLONG_MAX LONG_LONG_MAX
2752 #endif
2753 #ifndef ULLONG_MAX
2754 # define ULLONG_MAX ULONG_LONG_MAX
2755 #endif
2756
2757
2758 SWIGINTERN int
2759 SWIG_AsVal_long (PyObject* obj, long* val)
2760 {
2761 if (PyNumber_Check(obj)) {
2762 if (val) *val = PyInt_AsLong(obj);
2763 return SWIG_OK;
2764 }
2765 return SWIG_TypeError;
2766 }
2767
2768
2769 SWIGINTERN int
2770 SWIG_AsVal_int (PyObject * obj, int *val)
2771 {
2772 long v;
2773 int res = SWIG_AsVal_long (obj, &v);
2774 if (SWIG_IsOK(res)) {
2775 if ((v < INT_MIN || v > INT_MAX)) {
2776 return SWIG_OverflowError;
2777 } else {
2778 if (val) *val = static_cast< int >(v);
2779 }
2780 }
2781 return res;
2782 }
2783
2784 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_bool (PyObject *obj, bool *val)
2788 {
2789 if (obj == Py_True) {
2790 if (val) *val = true;
2791 return SWIG_OK;
2792 } else if (obj == Py_False) {
2793 if (val) *val = false;
2794 return SWIG_OK;
2795 } else {
2796 long v = 0;
2797 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2798 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2799 return res;
2800 }
2801 }
2802
2803 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2804 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2805 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2806 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2807 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2808 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2809
2810 #include <wx/checklst.h>
2811
2812 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2813 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2814 if (clientData)
2815 {
2816 wxPyClientData* data = new wxPyClientData(clientData);
2817 self->Insert(item, pos, data);
2818 }
2819 else
2820 self->Insert(item, pos);
2821 }
2822
2823 SWIGINTERN int
2824 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2825 {
2826 long v = 0;
2827 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2828 return SWIG_TypeError;
2829 }
2830 else if (val)
2831 *val = (unsigned long)v;
2832 return SWIG_OK;
2833 }
2834
2835
2836 SWIGINTERN int
2837 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2838 {
2839 unsigned long v;
2840 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2841 if (SWIG_IsOK(res)) {
2842 if ((v > UINT_MAX)) {
2843 return SWIG_OverflowError;
2844 } else {
2845 if (val) *val = static_cast< unsigned int >(v);
2846 }
2847 }
2848 return res;
2849 }
2850
2851 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2852 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2853 wxArrayInt lst;
2854 self->GetSelections(lst);
2855 PyObject *tup = PyTuple_New(lst.GetCount());
2856 for (size_t i=0; i<lst.GetCount(); i++)
2857 {
2858 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2859 }
2860 wxPyEndBlockThreads(blocked);
2861 return tup;
2862 }
2863 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2864 #ifdef __WXMSW__
2865 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2866 self->GetItem(item)->SetTextColour(c);
2867 #endif
2868 }
2869 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2870 #ifdef __WXMSW__
2871 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2872 self->GetItem(item)->SetBackgroundColour(c);
2873 #endif
2874 }
2875 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2876 #ifdef __WXMSW__
2877 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2878 self->GetItem(item)->SetFont(f);
2879 #endif
2880 }
2881 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2882 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2883 self->AppendText(text);
2884 }
2885 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2886 return self->GetValue().Mid(from, to - from);
2887 }
2888 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2889 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2890 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2891 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2892 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2893
2894 SWIGINTERNINLINE PyObject*
2895 SWIG_From_unsigned_SS_long (unsigned long value)
2896 {
2897 return (value > LONG_MAX) ?
2898 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2899 }
2900
2901
2902 SWIGINTERNINLINE PyObject *
2903 SWIG_From_size_t (size_t value)
2904 {
2905 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2906 }
2907
2908
2909 SWIGINTERNINLINE PyObject *
2910 SWIG_From_unsigned_SS_int (unsigned int value)
2911 {
2912 return SWIG_From_unsigned_SS_long (value);
2913 }
2914
2915
2916 #include <wx/slider.h>
2917
2918
2919 static const wxString wxPySliderNameStr(wxSliderNameStr);
2920 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2921
2922 #if !wxUSE_TOGGLEBTN
2923 // implement dummy items for platforms that don't have this class
2924
2925 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2926
2927 class wxToggleButton : public wxControl
2928 {
2929 public:
2930 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2931 const wxPoint&, const wxSize&, long,
2932 const wxValidator&, const wxString&)
2933 { wxPyRaiseNotImplemented(); }
2934
2935 wxToggleButton()
2936 { wxPyRaiseNotImplemented(); }
2937 };
2938 #endif
2939
2940 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2941
2942 SWIGINTERNINLINE int
2943 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2944 {
2945 unsigned long v;
2946 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2947 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2948 return res;
2949 }
2950
2951 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2952 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2953 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2954 if (udata) {
2955 Py_INCREF(udata->m_obj);
2956 return udata->m_obj;
2957 } else {
2958 Py_INCREF(Py_None);
2959 return Py_None;
2960 }
2961 }
2962 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2963 self->SetClientData(new wxPyUserData(clientData));
2964 }
2965 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){
2966 wxPyUserData* udata = NULL;
2967 if (clientData && clientData != Py_None)
2968 udata = new wxPyUserData(clientData);
2969 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2970 shortHelp, longHelp, udata);
2971 }
2972 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){
2973 wxPyUserData* udata = NULL;
2974 if (clientData && clientData != Py_None)
2975 udata = new wxPyUserData(clientData);
2976 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2977 shortHelp, longHelp, udata);
2978 }
2979 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2980 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2981 if (udata) {
2982 Py_INCREF(udata->m_obj);
2983 return udata->m_obj;
2984 } else {
2985 Py_INCREF(Py_None);
2986 return Py_None;
2987 }
2988 }
2989 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2990 self->SetToolClientData(id, new wxPyUserData(clientData));
2991 }
2992
2993 #include <wx/listctrl.h>
2994
2995 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2996 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2997 // Python aware sorting function for wxPyListCtrl
2998 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2999 int retval = 0;
3000 PyObject* func = (PyObject*)funcPtr;
3001 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3002
3003 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3004 PyObject* result = PyEval_CallObject(func, args);
3005 Py_DECREF(args);
3006 if (result) {
3007 retval = PyInt_AsLong(result);
3008 Py_DECREF(result);
3009 }
3010
3011 wxPyEndBlockThreads(blocked);
3012 return retval;
3013 }
3014
3015 // C++ Version of a Python aware class
3016 class wxPyListCtrl : public wxListCtrl {
3017 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3018 public:
3019 wxPyListCtrl() : wxListCtrl() {}
3020 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3021 const wxPoint& pos,
3022 const wxSize& size,
3023 long style,
3024 const wxValidator& validator,
3025 const wxString& name) :
3026 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3027
3028 bool Create(wxWindow* parent, wxWindowID id,
3029 const wxPoint& pos,
3030 const wxSize& size,
3031 long style,
3032 const wxValidator& validator,
3033 const wxString& name) {
3034 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3035 }
3036
3037 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3038 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3039
3040 // use the virtual version to avoid a confusing assert in the base class
3041 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3042 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3043
3044 PYPRIVATE;
3045 };
3046
3047 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3048
3049 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3050 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3051 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3052 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3053
3054
3055 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3056 wxListItem item;
3057 item.SetMask( wxLIST_MASK_STATE |
3058 wxLIST_MASK_TEXT |
3059 wxLIST_MASK_IMAGE |
3060 wxLIST_MASK_DATA |
3061 wxLIST_SET_ITEM |
3062 wxLIST_MASK_WIDTH |
3063 wxLIST_MASK_FORMAT
3064 );
3065 if (self->GetColumn(col, item))
3066 return new wxListItem(item);
3067 else
3068 return NULL;
3069 }
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3071 wxListItem* info = new wxListItem;
3072 info->m_itemId = itemId;
3073 info->m_col = col;
3074 info->m_mask = 0xFFFF;
3075 self->GetItem(*info);
3076 return info;
3077 }
3078 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3079 wxPoint pos;
3080 self->GetItemPosition(item, pos);
3081 return pos;
3082 }
3083 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3084 wxRect rect;
3085 self->GetItemRect(item, rect, code);
3086 return rect;
3087 }
3088 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3089 if (!PyCallable_Check(func))
3090 return false;
3091 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3092 }
3093 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3094
3095 return self;
3096
3097
3098
3099 }
3100
3101 #include <wx/treectrl.h>
3102 #include "wx/wxPython/pytree.h"
3103
3104 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3105 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3106 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3107 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3108 // C++ version of Python aware wxTreeCtrl
3109 class wxPyTreeCtrl : public wxTreeCtrl {
3110 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3111 public:
3112 wxPyTreeCtrl() : wxTreeCtrl() {}
3113 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3114 const wxPoint& pos,
3115 const wxSize& size,
3116 long style,
3117 const wxValidator& validator,
3118 const wxString& name) :
3119 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3120
3121 bool Create(wxWindow *parent, wxWindowID id,
3122 const wxPoint& pos,
3123 const wxSize& size,
3124 long style,
3125 const wxValidator& validator,
3126 const wxString& name) {
3127 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3128 }
3129
3130
3131 int OnCompareItems(const wxTreeItemId& item1,
3132 const wxTreeItemId& item2) {
3133 int rval = 0;
3134 bool found;
3135 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3136 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3137 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3138 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3139 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3140 Py_DECREF(o1);
3141 Py_DECREF(o2);
3142 }
3143 wxPyEndBlockThreads(blocked);
3144 if (! found)
3145 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3146 return rval;
3147 }
3148 PYPRIVATE;
3149 };
3150
3151 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3152
3153
3154 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3155 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3156 if (data == NULL) {
3157 data = new wxPyTreeItemData();
3158 data->SetId(item); // set the id
3159 self->SetItemData(item, data);
3160 }
3161 return data;
3162 }
3163 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3164 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3165 if (data == NULL) {
3166 data = new wxPyTreeItemData();
3167 data->SetId(item); // set the id
3168 self->SetItemData(item, data);
3169 }
3170 return data->GetData();
3171 }
3172 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3173 data->SetId(item); // set the id
3174 self->SetItemData(item, data);
3175 }
3176 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3177 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3178 if (data == NULL) {
3179 data = new wxPyTreeItemData(obj);
3180 data->SetId(item); // set the id
3181 self->SetItemData(item, data);
3182 } else
3183 data->SetData(obj);
3184 }
3185 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3186 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3187 PyObject* rval = PyList_New(0);
3188 wxArrayTreeItemIds array;
3189 size_t num, x;
3190 num = self->GetSelections(array);
3191 for (x=0; x < num; x++) {
3192 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3193 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3194 PyList_Append(rval, item);
3195 Py_DECREF(item);
3196 }
3197 wxPyEndBlockThreads(blocked);
3198 return rval;
3199 }
3200 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3201 void* cookie = 0;
3202 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3203 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3204 PyObject* tup = PyTuple_New(2);
3205 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3206 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3207 wxPyEndBlockThreads(blocked);
3208 return tup;
3209 }
3210 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3211 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3212 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3213 PyObject* tup = PyTuple_New(2);
3214 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3215 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3216 wxPyEndBlockThreads(blocked);
3217 return tup;
3218 }
3219 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3220 wxRect rect;
3221 if (self->GetBoundingRect(item, rect, textOnly)) {
3222 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3223 wxRect* r = new wxRect(rect);
3224 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3225 wxPyEndBlockThreads(blocked);
3226 return val;
3227 }
3228 else
3229 RETURN_NONE();
3230 }
3231 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3232
3233 SWIGINTERNINLINE PyObject*
3234 SWIG_From_bool (bool value)
3235 {
3236 return PyBool_FromLong(value ? 1 : 0);
3237 }
3238
3239 // C++ version of Python aware wxControl
3240 class wxPyControl : public wxControl
3241 {
3242 DECLARE_DYNAMIC_CLASS(wxPyControl)
3243 public:
3244 wxPyControl() : wxControl() {}
3245 wxPyControl(wxWindow* parent, const wxWindowID id,
3246 const wxPoint& pos = wxDefaultPosition,
3247 const wxSize& size = wxDefaultSize,
3248 long style = 0,
3249 const wxValidator& validator=wxDefaultValidator,
3250 const wxString& name = wxPyControlNameStr)
3251 : wxControl(parent, id, pos, size, style, validator, name) {}
3252
3253 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3254
3255 bool DoEraseBackground(wxDC* dc) {
3256 #ifdef __WXMSW__
3257 return wxWindow::DoEraseBackground(dc->GetHDC());
3258 #else
3259 dc->SetBackground(wxBrush(GetBackgroundColour()));
3260 dc->Clear();
3261 return true;
3262 #endif
3263 }
3264
3265 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3266 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3267 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3268 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3269
3270 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3271 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3272 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3273
3274 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3275 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3276
3277 DEC_PYCALLBACK__(InitDialog);
3278 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3279 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3280 DEC_PYCALLBACK_BOOL_(Validate);
3281
3282 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3283 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3284 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3285
3286 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3287 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3288
3289 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3290 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3291
3292 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3293
3294 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3295
3296 PYPRIVATE;
3297 };
3298
3299 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3300
3301 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3302 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3303 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3304 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3305
3306 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3307 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3308 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3309
3310 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3311 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3312
3313 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3314 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3315 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3316 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3317
3318 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3319 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3320 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3321
3322 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3323 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3324
3325 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3326 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3327
3328 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3329
3330 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3331
3332
3333
3334 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3335
3336 #include <wx/generic/dragimgg.h>
3337
3338 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3339 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3340 wxDateTime rv;
3341 self->GetRange(&rv, NULL);
3342 return rv;
3343 }
3344 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3345 wxDateTime rv;
3346 self->GetRange(NULL, &rv);
3347 return rv;
3348 }
3349 #ifdef __cplusplus
3350 extern "C" {
3351 #endif
3352 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3353 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3354 return 1;
3355 }
3356
3357
3358 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3359 PyObject *pyobj = 0;
3360
3361 {
3362 #if wxUSE_UNICODE
3363 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3364 #else
3365 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3366 #endif
3367 }
3368 return pyobj;
3369 }
3370
3371
3372 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj = 0;
3374 wxWindow *arg1 = (wxWindow *) 0 ;
3375 int arg2 = (int) -1 ;
3376 wxString const &arg3_defvalue = wxPyEmptyString ;
3377 wxString *arg3 = (wxString *) &arg3_defvalue ;
3378 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3379 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3380 wxSize const &arg5_defvalue = wxDefaultSize ;
3381 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3382 long arg6 = (long) 0 ;
3383 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3384 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3385 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3386 wxString *arg8 = (wxString *) &arg8_defvalue ;
3387 wxButton *result = 0 ;
3388 void *argp1 = 0 ;
3389 int res1 = 0 ;
3390 int val2 ;
3391 int ecode2 = 0 ;
3392 bool temp3 = false ;
3393 wxPoint temp4 ;
3394 wxSize temp5 ;
3395 long val6 ;
3396 int ecode6 = 0 ;
3397 void *argp7 = 0 ;
3398 int res7 = 0 ;
3399 bool temp8 = false ;
3400 PyObject * obj0 = 0 ;
3401 PyObject * obj1 = 0 ;
3402 PyObject * obj2 = 0 ;
3403 PyObject * obj3 = 0 ;
3404 PyObject * obj4 = 0 ;
3405 PyObject * obj5 = 0 ;
3406 PyObject * obj6 = 0 ;
3407 PyObject * obj7 = 0 ;
3408 char * kwnames[] = {
3409 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3410 };
3411
3412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3414 if (!SWIG_IsOK(res1)) {
3415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3416 }
3417 arg1 = reinterpret_cast< wxWindow * >(argp1);
3418 if (obj1) {
3419 ecode2 = SWIG_AsVal_int(obj1, &val2);
3420 if (!SWIG_IsOK(ecode2)) {
3421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3422 }
3423 arg2 = static_cast< int >(val2);
3424 }
3425 if (obj2) {
3426 {
3427 arg3 = wxString_in_helper(obj2);
3428 if (arg3 == NULL) SWIG_fail;
3429 temp3 = true;
3430 }
3431 }
3432 if (obj3) {
3433 {
3434 arg4 = &temp4;
3435 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3436 }
3437 }
3438 if (obj4) {
3439 {
3440 arg5 = &temp5;
3441 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3442 }
3443 }
3444 if (obj5) {
3445 ecode6 = SWIG_AsVal_long(obj5, &val6);
3446 if (!SWIG_IsOK(ecode6)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3448 }
3449 arg6 = static_cast< long >(val6);
3450 }
3451 if (obj6) {
3452 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3453 if (!SWIG_IsOK(res7)) {
3454 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3455 }
3456 if (!argp7) {
3457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3458 }
3459 arg7 = reinterpret_cast< wxValidator * >(argp7);
3460 }
3461 if (obj7) {
3462 {
3463 arg8 = wxString_in_helper(obj7);
3464 if (arg8 == NULL) SWIG_fail;
3465 temp8 = true;
3466 }
3467 }
3468 {
3469 if (!wxPyCheckForApp()) SWIG_fail;
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3472 wxPyEndAllowThreads(__tstate);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3476 {
3477 if (temp3)
3478 delete arg3;
3479 }
3480 {
3481 if (temp8)
3482 delete arg8;
3483 }
3484 return resultobj;
3485 fail:
3486 {
3487 if (temp3)
3488 delete arg3;
3489 }
3490 {
3491 if (temp8)
3492 delete arg8;
3493 }
3494 return NULL;
3495 }
3496
3497
3498 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3499 PyObject *resultobj = 0;
3500 wxButton *result = 0 ;
3501
3502 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3503 {
3504 if (!wxPyCheckForApp()) SWIG_fail;
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (wxButton *)new wxButton();
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3511 return resultobj;
3512 fail:
3513 return NULL;
3514 }
3515
3516
3517 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3518 PyObject *resultobj = 0;
3519 wxButton *arg1 = (wxButton *) 0 ;
3520 wxWindow *arg2 = (wxWindow *) 0 ;
3521 int arg3 = (int) -1 ;
3522 wxString const &arg4_defvalue = wxPyEmptyString ;
3523 wxString *arg4 = (wxString *) &arg4_defvalue ;
3524 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3525 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3526 wxSize const &arg6_defvalue = wxDefaultSize ;
3527 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3528 long arg7 = (long) 0 ;
3529 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3530 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3531 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3532 wxString *arg9 = (wxString *) &arg9_defvalue ;
3533 bool result;
3534 void *argp1 = 0 ;
3535 int res1 = 0 ;
3536 void *argp2 = 0 ;
3537 int res2 = 0 ;
3538 int val3 ;
3539 int ecode3 = 0 ;
3540 bool temp4 = false ;
3541 wxPoint temp5 ;
3542 wxSize temp6 ;
3543 long val7 ;
3544 int ecode7 = 0 ;
3545 void *argp8 = 0 ;
3546 int res8 = 0 ;
3547 bool temp9 = false ;
3548 PyObject * obj0 = 0 ;
3549 PyObject * obj1 = 0 ;
3550 PyObject * obj2 = 0 ;
3551 PyObject * obj3 = 0 ;
3552 PyObject * obj4 = 0 ;
3553 PyObject * obj5 = 0 ;
3554 PyObject * obj6 = 0 ;
3555 PyObject * obj7 = 0 ;
3556 PyObject * obj8 = 0 ;
3557 char * kwnames[] = {
3558 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3559 };
3560
3561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3563 if (!SWIG_IsOK(res1)) {
3564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3565 }
3566 arg1 = reinterpret_cast< wxButton * >(argp1);
3567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3568 if (!SWIG_IsOK(res2)) {
3569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3570 }
3571 arg2 = reinterpret_cast< wxWindow * >(argp2);
3572 if (obj2) {
3573 ecode3 = SWIG_AsVal_int(obj2, &val3);
3574 if (!SWIG_IsOK(ecode3)) {
3575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3576 }
3577 arg3 = static_cast< int >(val3);
3578 }
3579 if (obj3) {
3580 {
3581 arg4 = wxString_in_helper(obj3);
3582 if (arg4 == NULL) SWIG_fail;
3583 temp4 = true;
3584 }
3585 }
3586 if (obj4) {
3587 {
3588 arg5 = &temp5;
3589 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3590 }
3591 }
3592 if (obj5) {
3593 {
3594 arg6 = &temp6;
3595 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3596 }
3597 }
3598 if (obj6) {
3599 ecode7 = SWIG_AsVal_long(obj6, &val7);
3600 if (!SWIG_IsOK(ecode7)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3602 }
3603 arg7 = static_cast< long >(val7);
3604 }
3605 if (obj7) {
3606 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3607 if (!SWIG_IsOK(res8)) {
3608 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3609 }
3610 if (!argp8) {
3611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3612 }
3613 arg8 = reinterpret_cast< wxValidator * >(argp8);
3614 }
3615 if (obj8) {
3616 {
3617 arg9 = wxString_in_helper(obj8);
3618 if (arg9 == NULL) SWIG_fail;
3619 temp9 = true;
3620 }
3621 }
3622 {
3623 PyThreadState* __tstate = wxPyBeginAllowThreads();
3624 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3625 wxPyEndAllowThreads(__tstate);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
3628 {
3629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3630 }
3631 {
3632 if (temp4)
3633 delete arg4;
3634 }
3635 {
3636 if (temp9)
3637 delete arg9;
3638 }
3639 return resultobj;
3640 fail:
3641 {
3642 if (temp4)
3643 delete arg4;
3644 }
3645 {
3646 if (temp9)
3647 delete arg9;
3648 }
3649 return NULL;
3650 }
3651
3652
3653 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3654 PyObject *resultobj = 0;
3655 wxButton *arg1 = (wxButton *) 0 ;
3656 void *argp1 = 0 ;
3657 int res1 = 0 ;
3658 PyObject *swig_obj[1] ;
3659
3660 if (!args) SWIG_fail;
3661 swig_obj[0] = args;
3662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3663 if (!SWIG_IsOK(res1)) {
3664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3665 }
3666 arg1 = reinterpret_cast< wxButton * >(argp1);
3667 {
3668 PyThreadState* __tstate = wxPyBeginAllowThreads();
3669 (arg1)->SetDefault();
3670 wxPyEndAllowThreads(__tstate);
3671 if (PyErr_Occurred()) SWIG_fail;
3672 }
3673 resultobj = SWIG_Py_Void();
3674 return resultobj;
3675 fail:
3676 return NULL;
3677 }
3678
3679
3680 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3681 PyObject *resultobj = 0;
3682 wxSize result;
3683
3684 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3685 {
3686 PyThreadState* __tstate = wxPyBeginAllowThreads();
3687 result = wxButton::GetDefaultSize();
3688 wxPyEndAllowThreads(__tstate);
3689 if (PyErr_Occurred()) SWIG_fail;
3690 }
3691 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3692 return resultobj;
3693 fail:
3694 return NULL;
3695 }
3696
3697
3698 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3699 PyObject *resultobj = 0;
3700 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3701 SwigValueWrapper<wxVisualAttributes > result;
3702 int val1 ;
3703 int ecode1 = 0 ;
3704 PyObject * obj0 = 0 ;
3705 char * kwnames[] = {
3706 (char *) "variant", NULL
3707 };
3708
3709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3710 if (obj0) {
3711 ecode1 = SWIG_AsVal_int(obj0, &val1);
3712 if (!SWIG_IsOK(ecode1)) {
3713 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3714 }
3715 arg1 = static_cast< wxWindowVariant >(val1);
3716 }
3717 {
3718 if (!wxPyCheckForApp()) SWIG_fail;
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = wxButton::GetClassDefaultAttributes(arg1);
3721 wxPyEndAllowThreads(__tstate);
3722 if (PyErr_Occurred()) SWIG_fail;
3723 }
3724 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3725 return resultobj;
3726 fail:
3727 return NULL;
3728 }
3729
3730
3731 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3732 PyObject *obj;
3733 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3734 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3735 return SWIG_Py_Void();
3736 }
3737
3738 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3739 return SWIG_Python_InitShadowInstance(args);
3740 }
3741
3742 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj = 0;
3744 wxWindow *arg1 = (wxWindow *) 0 ;
3745 int arg2 = (int) -1 ;
3746 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3747 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3748 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3749 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3750 wxSize const &arg5_defvalue = wxDefaultSize ;
3751 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3752 long arg6 = (long) wxBU_AUTODRAW ;
3753 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3754 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3755 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3756 wxString *arg8 = (wxString *) &arg8_defvalue ;
3757 wxBitmapButton *result = 0 ;
3758 void *argp1 = 0 ;
3759 int res1 = 0 ;
3760 int val2 ;
3761 int ecode2 = 0 ;
3762 void *argp3 = 0 ;
3763 int res3 = 0 ;
3764 wxPoint temp4 ;
3765 wxSize temp5 ;
3766 long val6 ;
3767 int ecode6 = 0 ;
3768 void *argp7 = 0 ;
3769 int res7 = 0 ;
3770 bool temp8 = false ;
3771 PyObject * obj0 = 0 ;
3772 PyObject * obj1 = 0 ;
3773 PyObject * obj2 = 0 ;
3774 PyObject * obj3 = 0 ;
3775 PyObject * obj4 = 0 ;
3776 PyObject * obj5 = 0 ;
3777 PyObject * obj6 = 0 ;
3778 PyObject * obj7 = 0 ;
3779 char * kwnames[] = {
3780 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3781 };
3782
3783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3785 if (!SWIG_IsOK(res1)) {
3786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3787 }
3788 arg1 = reinterpret_cast< wxWindow * >(argp1);
3789 if (obj1) {
3790 ecode2 = SWIG_AsVal_int(obj1, &val2);
3791 if (!SWIG_IsOK(ecode2)) {
3792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3793 }
3794 arg2 = static_cast< int >(val2);
3795 }
3796 if (obj2) {
3797 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3798 if (!SWIG_IsOK(res3)) {
3799 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3800 }
3801 if (!argp3) {
3802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3803 }
3804 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3805 }
3806 if (obj3) {
3807 {
3808 arg4 = &temp4;
3809 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3810 }
3811 }
3812 if (obj4) {
3813 {
3814 arg5 = &temp5;
3815 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3816 }
3817 }
3818 if (obj5) {
3819 ecode6 = SWIG_AsVal_long(obj5, &val6);
3820 if (!SWIG_IsOK(ecode6)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3822 }
3823 arg6 = static_cast< long >(val6);
3824 }
3825 if (obj6) {
3826 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3827 if (!SWIG_IsOK(res7)) {
3828 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3829 }
3830 if (!argp7) {
3831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3832 }
3833 arg7 = reinterpret_cast< wxValidator * >(argp7);
3834 }
3835 if (obj7) {
3836 {
3837 arg8 = wxString_in_helper(obj7);
3838 if (arg8 == NULL) SWIG_fail;
3839 temp8 = true;
3840 }
3841 }
3842 {
3843 if (!wxPyCheckForApp()) SWIG_fail;
3844 PyThreadState* __tstate = wxPyBeginAllowThreads();
3845 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3846 wxPyEndAllowThreads(__tstate);
3847 if (PyErr_Occurred()) SWIG_fail;
3848 }
3849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3850 {
3851 if (temp8)
3852 delete arg8;
3853 }
3854 return resultobj;
3855 fail:
3856 {
3857 if (temp8)
3858 delete arg8;
3859 }
3860 return NULL;
3861 }
3862
3863
3864 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3865 PyObject *resultobj = 0;
3866 wxBitmapButton *result = 0 ;
3867
3868 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3869 {
3870 if (!wxPyCheckForApp()) SWIG_fail;
3871 PyThreadState* __tstate = wxPyBeginAllowThreads();
3872 result = (wxBitmapButton *)new wxBitmapButton();
3873 wxPyEndAllowThreads(__tstate);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3877 return resultobj;
3878 fail:
3879 return NULL;
3880 }
3881
3882
3883 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3884 PyObject *resultobj = 0;
3885 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3886 wxWindow *arg2 = (wxWindow *) 0 ;
3887 int arg3 = (int) -1 ;
3888 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3889 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3890 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3891 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3892 wxSize const &arg6_defvalue = wxDefaultSize ;
3893 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3894 long arg7 = (long) wxBU_AUTODRAW ;
3895 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3896 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3897 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3898 wxString *arg9 = (wxString *) &arg9_defvalue ;
3899 bool result;
3900 void *argp1 = 0 ;
3901 int res1 = 0 ;
3902 void *argp2 = 0 ;
3903 int res2 = 0 ;
3904 int val3 ;
3905 int ecode3 = 0 ;
3906 void *argp4 = 0 ;
3907 int res4 = 0 ;
3908 wxPoint temp5 ;
3909 wxSize temp6 ;
3910 long val7 ;
3911 int ecode7 = 0 ;
3912 void *argp8 = 0 ;
3913 int res8 = 0 ;
3914 bool temp9 = false ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 PyObject * obj2 = 0 ;
3918 PyObject * obj3 = 0 ;
3919 PyObject * obj4 = 0 ;
3920 PyObject * obj5 = 0 ;
3921 PyObject * obj6 = 0 ;
3922 PyObject * obj7 = 0 ;
3923 PyObject * obj8 = 0 ;
3924 char * kwnames[] = {
3925 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3926 };
3927
3928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3930 if (!SWIG_IsOK(res1)) {
3931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3932 }
3933 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3935 if (!SWIG_IsOK(res2)) {
3936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3937 }
3938 arg2 = reinterpret_cast< wxWindow * >(argp2);
3939 if (obj2) {
3940 ecode3 = SWIG_AsVal_int(obj2, &val3);
3941 if (!SWIG_IsOK(ecode3)) {
3942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3943 }
3944 arg3 = static_cast< int >(val3);
3945 }
3946 if (obj3) {
3947 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3948 if (!SWIG_IsOK(res4)) {
3949 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3950 }
3951 if (!argp4) {
3952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3953 }
3954 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3955 }
3956 if (obj4) {
3957 {
3958 arg5 = &temp5;
3959 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3960 }
3961 }
3962 if (obj5) {
3963 {
3964 arg6 = &temp6;
3965 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3966 }
3967 }
3968 if (obj6) {
3969 ecode7 = SWIG_AsVal_long(obj6, &val7);
3970 if (!SWIG_IsOK(ecode7)) {
3971 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3972 }
3973 arg7 = static_cast< long >(val7);
3974 }
3975 if (obj7) {
3976 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3977 if (!SWIG_IsOK(res8)) {
3978 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3979 }
3980 if (!argp8) {
3981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3982 }
3983 arg8 = reinterpret_cast< wxValidator * >(argp8);
3984 }
3985 if (obj8) {
3986 {
3987 arg9 = wxString_in_helper(obj8);
3988 if (arg9 == NULL) SWIG_fail;
3989 temp9 = true;
3990 }
3991 }
3992 {
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 {
3999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4000 }
4001 {
4002 if (temp9)
4003 delete arg9;
4004 }
4005 return resultobj;
4006 fail:
4007 {
4008 if (temp9)
4009 delete arg9;
4010 }
4011 return NULL;
4012 }
4013
4014
4015 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4016 PyObject *resultobj = 0;
4017 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4018 wxBitmap result;
4019 void *argp1 = 0 ;
4020 int res1 = 0 ;
4021 PyObject *swig_obj[1] ;
4022
4023 if (!args) SWIG_fail;
4024 swig_obj[0] = args;
4025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4026 if (!SWIG_IsOK(res1)) {
4027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4028 }
4029 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 result = (arg1)->GetBitmapLabel();
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4037 return resultobj;
4038 fail:
4039 return NULL;
4040 }
4041
4042
4043 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4044 PyObject *resultobj = 0;
4045 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4046 wxBitmap result;
4047 void *argp1 = 0 ;
4048 int res1 = 0 ;
4049 PyObject *swig_obj[1] ;
4050
4051 if (!args) SWIG_fail;
4052 swig_obj[0] = args;
4053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4054 if (!SWIG_IsOK(res1)) {
4055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4056 }
4057 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 result = (arg1)->GetBitmapDisabled();
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4065 return resultobj;
4066 fail:
4067 return NULL;
4068 }
4069
4070
4071 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4072 PyObject *resultobj = 0;
4073 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4074 wxBitmap result;
4075 void *argp1 = 0 ;
4076 int res1 = 0 ;
4077 PyObject *swig_obj[1] ;
4078
4079 if (!args) SWIG_fail;
4080 swig_obj[0] = args;
4081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4082 if (!SWIG_IsOK(res1)) {
4083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4084 }
4085 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (arg1)->GetBitmapFocus();
4089 wxPyEndAllowThreads(__tstate);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4093 return resultobj;
4094 fail:
4095 return NULL;
4096 }
4097
4098
4099 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4100 PyObject *resultobj = 0;
4101 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4102 wxBitmap result;
4103 void *argp1 = 0 ;
4104 int res1 = 0 ;
4105 PyObject *swig_obj[1] ;
4106
4107 if (!args) SWIG_fail;
4108 swig_obj[0] = args;
4109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4110 if (!SWIG_IsOK(res1)) {
4111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4112 }
4113 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4114 {
4115 PyThreadState* __tstate = wxPyBeginAllowThreads();
4116 result = (arg1)->GetBitmapSelected();
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 }
4120 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4121 return resultobj;
4122 fail:
4123 return NULL;
4124 }
4125
4126
4127 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4128 PyObject *resultobj = 0;
4129 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4130 wxBitmap result;
4131 void *argp1 = 0 ;
4132 int res1 = 0 ;
4133 PyObject *swig_obj[1] ;
4134
4135 if (!args) SWIG_fail;
4136 swig_obj[0] = args;
4137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4138 if (!SWIG_IsOK(res1)) {
4139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4140 }
4141 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 result = (arg1)->GetBitmapHover();
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4149 return resultobj;
4150 fail:
4151 return NULL;
4152 }
4153
4154
4155 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4156 PyObject *resultobj = 0;
4157 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4158 wxBitmap *arg2 = 0 ;
4159 void *argp1 = 0 ;
4160 int res1 = 0 ;
4161 void *argp2 = 0 ;
4162 int res2 = 0 ;
4163 PyObject * obj0 = 0 ;
4164 PyObject * obj1 = 0 ;
4165 char * kwnames[] = {
4166 (char *) "self",(char *) "bitmap", NULL
4167 };
4168
4169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4171 if (!SWIG_IsOK(res1)) {
4172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4173 }
4174 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4176 if (!SWIG_IsOK(res2)) {
4177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4178 }
4179 if (!argp2) {
4180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4181 }
4182 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4183 {
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_Py_Void();
4190 return resultobj;
4191 fail:
4192 return NULL;
4193 }
4194
4195
4196 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4197 PyObject *resultobj = 0;
4198 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4199 wxBitmap *arg2 = 0 ;
4200 void *argp1 = 0 ;
4201 int res1 = 0 ;
4202 void *argp2 = 0 ;
4203 int res2 = 0 ;
4204 PyObject * obj0 = 0 ;
4205 PyObject * obj1 = 0 ;
4206 char * kwnames[] = {
4207 (char *) "self",(char *) "bitmap", NULL
4208 };
4209
4210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4212 if (!SWIG_IsOK(res1)) {
4213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4214 }
4215 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4217 if (!SWIG_IsOK(res2)) {
4218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4219 }
4220 if (!argp2) {
4221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4222 }
4223 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_Py_Void();
4231 return resultobj;
4232 fail:
4233 return NULL;
4234 }
4235
4236
4237 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj = 0;
4239 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4240 wxBitmap *arg2 = 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 void *argp2 = 0 ;
4244 int res2 = 0 ;
4245 PyObject * obj0 = 0 ;
4246 PyObject * obj1 = 0 ;
4247 char * kwnames[] = {
4248 (char *) "self",(char *) "bitmap", NULL
4249 };
4250
4251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4253 if (!SWIG_IsOK(res1)) {
4254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4255 }
4256 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4258 if (!SWIG_IsOK(res2)) {
4259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4260 }
4261 if (!argp2) {
4262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4263 }
4264 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_Py_Void();
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4279 PyObject *resultobj = 0;
4280 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4281 wxBitmap *arg2 = 0 ;
4282 void *argp1 = 0 ;
4283 int res1 = 0 ;
4284 void *argp2 = 0 ;
4285 int res2 = 0 ;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 char * kwnames[] = {
4289 (char *) "self",(char *) "bitmap", NULL
4290 };
4291
4292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4294 if (!SWIG_IsOK(res1)) {
4295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4296 }
4297 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4299 if (!SWIG_IsOK(res2)) {
4300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4301 }
4302 if (!argp2) {
4303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4304 }
4305 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_Py_Void();
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj = 0;
4321 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4322 wxBitmap *arg2 = 0 ;
4323 void *argp1 = 0 ;
4324 int res1 = 0 ;
4325 void *argp2 = 0 ;
4326 int res2 = 0 ;
4327 PyObject * obj0 = 0 ;
4328 PyObject * obj1 = 0 ;
4329 char * kwnames[] = {
4330 (char *) "self",(char *) "hover", NULL
4331 };
4332
4333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4335 if (!SWIG_IsOK(res1)) {
4336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4337 }
4338 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4340 if (!SWIG_IsOK(res2)) {
4341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4342 }
4343 if (!argp2) {
4344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4345 }
4346 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_Py_Void();
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj = 0;
4362 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4363 int arg2 ;
4364 int arg3 ;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
4367 int val2 ;
4368 int ecode2 = 0 ;
4369 int val3 ;
4370 int ecode3 = 0 ;
4371 PyObject * obj0 = 0 ;
4372 PyObject * obj1 = 0 ;
4373 PyObject * obj2 = 0 ;
4374 char * kwnames[] = {
4375 (char *) "self",(char *) "x",(char *) "y", NULL
4376 };
4377
4378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4380 if (!SWIG_IsOK(res1)) {
4381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4382 }
4383 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4384 ecode2 = SWIG_AsVal_int(obj1, &val2);
4385 if (!SWIG_IsOK(ecode2)) {
4386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4387 }
4388 arg2 = static_cast< int >(val2);
4389 ecode3 = SWIG_AsVal_int(obj2, &val3);
4390 if (!SWIG_IsOK(ecode3)) {
4391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4392 }
4393 arg3 = static_cast< int >(val3);
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 (arg1)->SetMargins(arg2,arg3);
4397 wxPyEndAllowThreads(__tstate);
4398 if (PyErr_Occurred()) SWIG_fail;
4399 }
4400 resultobj = SWIG_Py_Void();
4401 return resultobj;
4402 fail:
4403 return NULL;
4404 }
4405
4406
4407 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4408 PyObject *resultobj = 0;
4409 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4410 int result;
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
4413 PyObject *swig_obj[1] ;
4414
4415 if (!args) SWIG_fail;
4416 swig_obj[0] = args;
4417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4418 if (!SWIG_IsOK(res1)) {
4419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4420 }
4421 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4425 wxPyEndAllowThreads(__tstate);
4426 if (PyErr_Occurred()) SWIG_fail;
4427 }
4428 resultobj = SWIG_From_int(static_cast< int >(result));
4429 return resultobj;
4430 fail:
4431 return NULL;
4432 }
4433
4434
4435 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4436 PyObject *resultobj = 0;
4437 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4438 int result;
4439 void *argp1 = 0 ;
4440 int res1 = 0 ;
4441 PyObject *swig_obj[1] ;
4442
4443 if (!args) SWIG_fail;
4444 swig_obj[0] = args;
4445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4446 if (!SWIG_IsOK(res1)) {
4447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4448 }
4449 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4453 wxPyEndAllowThreads(__tstate);
4454 if (PyErr_Occurred()) SWIG_fail;
4455 }
4456 resultobj = SWIG_From_int(static_cast< int >(result));
4457 return resultobj;
4458 fail:
4459 return NULL;
4460 }
4461
4462
4463 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4464 PyObject *obj;
4465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4466 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4467 return SWIG_Py_Void();
4468 }
4469
4470 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4471 return SWIG_Python_InitShadowInstance(args);
4472 }
4473
4474 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4475 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4476 return 1;
4477 }
4478
4479
4480 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4481 PyObject *pyobj = 0;
4482
4483 {
4484 #if wxUSE_UNICODE
4485 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4486 #else
4487 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4488 #endif
4489 }
4490 return pyobj;
4491 }
4492
4493
4494 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4495 PyObject *resultobj = 0;
4496 wxWindow *arg1 = (wxWindow *) 0 ;
4497 int arg2 = (int) -1 ;
4498 wxString const &arg3_defvalue = wxPyEmptyString ;
4499 wxString *arg3 = (wxString *) &arg3_defvalue ;
4500 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4501 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4502 wxSize const &arg5_defvalue = wxDefaultSize ;
4503 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4504 long arg6 = (long) 0 ;
4505 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4506 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4507 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4508 wxString *arg8 = (wxString *) &arg8_defvalue ;
4509 wxCheckBox *result = 0 ;
4510 void *argp1 = 0 ;
4511 int res1 = 0 ;
4512 int val2 ;
4513 int ecode2 = 0 ;
4514 bool temp3 = false ;
4515 wxPoint temp4 ;
4516 wxSize temp5 ;
4517 long val6 ;
4518 int ecode6 = 0 ;
4519 void *argp7 = 0 ;
4520 int res7 = 0 ;
4521 bool temp8 = false ;
4522 PyObject * obj0 = 0 ;
4523 PyObject * obj1 = 0 ;
4524 PyObject * obj2 = 0 ;
4525 PyObject * obj3 = 0 ;
4526 PyObject * obj4 = 0 ;
4527 PyObject * obj5 = 0 ;
4528 PyObject * obj6 = 0 ;
4529 PyObject * obj7 = 0 ;
4530 char * kwnames[] = {
4531 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4532 };
4533
4534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4536 if (!SWIG_IsOK(res1)) {
4537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4538 }
4539 arg1 = reinterpret_cast< wxWindow * >(argp1);
4540 if (obj1) {
4541 ecode2 = SWIG_AsVal_int(obj1, &val2);
4542 if (!SWIG_IsOK(ecode2)) {
4543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4544 }
4545 arg2 = static_cast< int >(val2);
4546 }
4547 if (obj2) {
4548 {
4549 arg3 = wxString_in_helper(obj2);
4550 if (arg3 == NULL) SWIG_fail;
4551 temp3 = true;
4552 }
4553 }
4554 if (obj3) {
4555 {
4556 arg4 = &temp4;
4557 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4558 }
4559 }
4560 if (obj4) {
4561 {
4562 arg5 = &temp5;
4563 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4564 }
4565 }
4566 if (obj5) {
4567 ecode6 = SWIG_AsVal_long(obj5, &val6);
4568 if (!SWIG_IsOK(ecode6)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4570 }
4571 arg6 = static_cast< long >(val6);
4572 }
4573 if (obj6) {
4574 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4575 if (!SWIG_IsOK(res7)) {
4576 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4577 }
4578 if (!argp7) {
4579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4580 }
4581 arg7 = reinterpret_cast< wxValidator * >(argp7);
4582 }
4583 if (obj7) {
4584 {
4585 arg8 = wxString_in_helper(obj7);
4586 if (arg8 == NULL) SWIG_fail;
4587 temp8 = true;
4588 }
4589 }
4590 {
4591 if (!wxPyCheckForApp()) SWIG_fail;
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4598 {
4599 if (temp3)
4600 delete arg3;
4601 }
4602 {
4603 if (temp8)
4604 delete arg8;
4605 }
4606 return resultobj;
4607 fail:
4608 {
4609 if (temp3)
4610 delete arg3;
4611 }
4612 {
4613 if (temp8)
4614 delete arg8;
4615 }
4616 return NULL;
4617 }
4618
4619
4620 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4621 PyObject *resultobj = 0;
4622 wxCheckBox *result = 0 ;
4623
4624 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4625 {
4626 if (!wxPyCheckForApp()) SWIG_fail;
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 result = (wxCheckBox *)new wxCheckBox();
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4633 return resultobj;
4634 fail:
4635 return NULL;
4636 }
4637
4638
4639 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4640 PyObject *resultobj = 0;
4641 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4642 wxWindow *arg2 = (wxWindow *) 0 ;
4643 int arg3 = (int) -1 ;
4644 wxString const &arg4_defvalue = wxPyEmptyString ;
4645 wxString *arg4 = (wxString *) &arg4_defvalue ;
4646 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4647 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4648 wxSize const &arg6_defvalue = wxDefaultSize ;
4649 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4650 long arg7 = (long) 0 ;
4651 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4652 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4653 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4654 wxString *arg9 = (wxString *) &arg9_defvalue ;
4655 bool result;
4656 void *argp1 = 0 ;
4657 int res1 = 0 ;
4658 void *argp2 = 0 ;
4659 int res2 = 0 ;
4660 int val3 ;
4661 int ecode3 = 0 ;
4662 bool temp4 = false ;
4663 wxPoint temp5 ;
4664 wxSize temp6 ;
4665 long val7 ;
4666 int ecode7 = 0 ;
4667 void *argp8 = 0 ;
4668 int res8 = 0 ;
4669 bool temp9 = false ;
4670 PyObject * obj0 = 0 ;
4671 PyObject * obj1 = 0 ;
4672 PyObject * obj2 = 0 ;
4673 PyObject * obj3 = 0 ;
4674 PyObject * obj4 = 0 ;
4675 PyObject * obj5 = 0 ;
4676 PyObject * obj6 = 0 ;
4677 PyObject * obj7 = 0 ;
4678 PyObject * obj8 = 0 ;
4679 char * kwnames[] = {
4680 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4681 };
4682
4683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4685 if (!SWIG_IsOK(res1)) {
4686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4687 }
4688 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4690 if (!SWIG_IsOK(res2)) {
4691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4692 }
4693 arg2 = reinterpret_cast< wxWindow * >(argp2);
4694 if (obj2) {
4695 ecode3 = SWIG_AsVal_int(obj2, &val3);
4696 if (!SWIG_IsOK(ecode3)) {
4697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4698 }
4699 arg3 = static_cast< int >(val3);
4700 }
4701 if (obj3) {
4702 {
4703 arg4 = wxString_in_helper(obj3);
4704 if (arg4 == NULL) SWIG_fail;
4705 temp4 = true;
4706 }
4707 }
4708 if (obj4) {
4709 {
4710 arg5 = &temp5;
4711 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4712 }
4713 }
4714 if (obj5) {
4715 {
4716 arg6 = &temp6;
4717 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4718 }
4719 }
4720 if (obj6) {
4721 ecode7 = SWIG_AsVal_long(obj6, &val7);
4722 if (!SWIG_IsOK(ecode7)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4724 }
4725 arg7 = static_cast< long >(val7);
4726 }
4727 if (obj7) {
4728 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4729 if (!SWIG_IsOK(res8)) {
4730 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4731 }
4732 if (!argp8) {
4733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4734 }
4735 arg8 = reinterpret_cast< wxValidator * >(argp8);
4736 }
4737 if (obj8) {
4738 {
4739 arg9 = wxString_in_helper(obj8);
4740 if (arg9 == NULL) SWIG_fail;
4741 temp9 = true;
4742 }
4743 }
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 }
4753 {
4754 if (temp4)
4755 delete arg4;
4756 }
4757 {
4758 if (temp9)
4759 delete arg9;
4760 }
4761 return resultobj;
4762 fail:
4763 {
4764 if (temp4)
4765 delete arg4;
4766 }
4767 {
4768 if (temp9)
4769 delete arg9;
4770 }
4771 return NULL;
4772 }
4773
4774
4775 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4776 PyObject *resultobj = 0;
4777 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4778 bool result;
4779 void *argp1 = 0 ;
4780 int res1 = 0 ;
4781 PyObject *swig_obj[1] ;
4782
4783 if (!args) SWIG_fail;
4784 swig_obj[0] = args;
4785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4786 if (!SWIG_IsOK(res1)) {
4787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4788 }
4789 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4790 {
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 result = (bool)(arg1)->GetValue();
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) SWIG_fail;
4795 }
4796 {
4797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4798 }
4799 return resultobj;
4800 fail:
4801 return NULL;
4802 }
4803
4804
4805 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4806 PyObject *resultobj = 0;
4807 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4808 bool result;
4809 void *argp1 = 0 ;
4810 int res1 = 0 ;
4811 PyObject *swig_obj[1] ;
4812
4813 if (!args) SWIG_fail;
4814 swig_obj[0] = args;
4815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4816 if (!SWIG_IsOK(res1)) {
4817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4818 }
4819 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (bool)(arg1)->IsChecked();
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 {
4827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4828 }
4829 return resultobj;
4830 fail:
4831 return NULL;
4832 }
4833
4834
4835 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4836 PyObject *resultobj = 0;
4837 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4838 bool arg2 ;
4839 void *argp1 = 0 ;
4840 int res1 = 0 ;
4841 bool val2 ;
4842 int ecode2 = 0 ;
4843 PyObject * obj0 = 0 ;
4844 PyObject * obj1 = 0 ;
4845 char * kwnames[] = {
4846 (char *) "self",(char *) "state", NULL
4847 };
4848
4849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4851 if (!SWIG_IsOK(res1)) {
4852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4853 }
4854 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4855 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4856 if (!SWIG_IsOK(ecode2)) {
4857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4858 }
4859 arg2 = static_cast< bool >(val2);
4860 {
4861 PyThreadState* __tstate = wxPyBeginAllowThreads();
4862 (arg1)->SetValue(arg2);
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 resultobj = SWIG_Py_Void();
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4874 PyObject *resultobj = 0;
4875 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4876 wxCheckBoxState result;
4877 void *argp1 = 0 ;
4878 int res1 = 0 ;
4879 PyObject *swig_obj[1] ;
4880
4881 if (!args) SWIG_fail;
4882 swig_obj[0] = args;
4883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4884 if (!SWIG_IsOK(res1)) {
4885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4886 }
4887 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4888 {
4889 PyThreadState* __tstate = wxPyBeginAllowThreads();
4890 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4891 wxPyEndAllowThreads(__tstate);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 resultobj = SWIG_From_int(static_cast< int >(result));
4895 return resultobj;
4896 fail:
4897 return NULL;
4898 }
4899
4900
4901 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4902 PyObject *resultobj = 0;
4903 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4904 wxCheckBoxState arg2 ;
4905 void *argp1 = 0 ;
4906 int res1 = 0 ;
4907 int val2 ;
4908 int ecode2 = 0 ;
4909 PyObject * obj0 = 0 ;
4910 PyObject * obj1 = 0 ;
4911 char * kwnames[] = {
4912 (char *) "self",(char *) "state", NULL
4913 };
4914
4915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4917 if (!SWIG_IsOK(res1)) {
4918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4919 }
4920 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4921 ecode2 = SWIG_AsVal_int(obj1, &val2);
4922 if (!SWIG_IsOK(ecode2)) {
4923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4924 }
4925 arg2 = static_cast< wxCheckBoxState >(val2);
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 (arg1)->Set3StateValue(arg2);
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 resultobj = SWIG_Py_Void();
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4940 PyObject *resultobj = 0;
4941 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4942 bool result;
4943 void *argp1 = 0 ;
4944 int res1 = 0 ;
4945 PyObject *swig_obj[1] ;
4946
4947 if (!args) SWIG_fail;
4948 swig_obj[0] = args;
4949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4950 if (!SWIG_IsOK(res1)) {
4951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4952 }
4953 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 {
4961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4962 }
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4970 PyObject *resultobj = 0;
4971 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4972 bool result;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject *swig_obj[1] ;
4976
4977 if (!args) SWIG_fail;
4978 swig_obj[0] = args;
4979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4980 if (!SWIG_IsOK(res1)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4982 }
4983 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 {
4991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4992 }
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj = 0;
5001 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5002 SwigValueWrapper<wxVisualAttributes > result;
5003 int val1 ;
5004 int ecode1 = 0 ;
5005 PyObject * obj0 = 0 ;
5006 char * kwnames[] = {
5007 (char *) "variant", NULL
5008 };
5009
5010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5011 if (obj0) {
5012 ecode1 = SWIG_AsVal_int(obj0, &val1);
5013 if (!SWIG_IsOK(ecode1)) {
5014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5015 }
5016 arg1 = static_cast< wxWindowVariant >(val1);
5017 }
5018 {
5019 if (!wxPyCheckForApp()) SWIG_fail;
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5026 return resultobj;
5027 fail:
5028 return NULL;
5029 }
5030
5031
5032 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5033 PyObject *obj;
5034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5035 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5036 return SWIG_Py_Void();
5037 }
5038
5039 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5040 return SWIG_Python_InitShadowInstance(args);
5041 }
5042
5043 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5044 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5045 return 1;
5046 }
5047
5048
5049 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5050 PyObject *pyobj = 0;
5051
5052 {
5053 #if wxUSE_UNICODE
5054 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5055 #else
5056 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5057 #endif
5058 }
5059 return pyobj;
5060 }
5061
5062
5063 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5064 PyObject *resultobj = 0;
5065 wxWindow *arg1 = (wxWindow *) 0 ;
5066 int arg2 = (int) -1 ;
5067 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5068 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5069 wxSize const &arg4_defvalue = wxDefaultSize ;
5070 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5071 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5072 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5073 long arg6 = (long) 0 ;
5074 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5075 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5076 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5077 wxString *arg8 = (wxString *) &arg8_defvalue ;
5078 wxChoice *result = 0 ;
5079 void *argp1 = 0 ;
5080 int res1 = 0 ;
5081 int val2 ;
5082 int ecode2 = 0 ;
5083 wxPoint temp3 ;
5084 wxSize temp4 ;
5085 bool temp5 = false ;
5086 long val6 ;
5087 int ecode6 = 0 ;
5088 void *argp7 = 0 ;
5089 int res7 = 0 ;
5090 bool temp8 = false ;
5091 PyObject * obj0 = 0 ;
5092 PyObject * obj1 = 0 ;
5093 PyObject * obj2 = 0 ;
5094 PyObject * obj3 = 0 ;
5095 PyObject * obj4 = 0 ;
5096 PyObject * obj5 = 0 ;
5097 PyObject * obj6 = 0 ;
5098 PyObject * obj7 = 0 ;
5099 char * kwnames[] = {
5100 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5101 };
5102
5103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5107 }
5108 arg1 = reinterpret_cast< wxWindow * >(argp1);
5109 if (obj1) {
5110 ecode2 = SWIG_AsVal_int(obj1, &val2);
5111 if (!SWIG_IsOK(ecode2)) {
5112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5113 }
5114 arg2 = static_cast< int >(val2);
5115 }
5116 if (obj2) {
5117 {
5118 arg3 = &temp3;
5119 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5120 }
5121 }
5122 if (obj3) {
5123 {
5124 arg4 = &temp4;
5125 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5126 }
5127 }
5128 if (obj4) {
5129 {
5130 if (! PySequence_Check(obj4)) {
5131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5132 SWIG_fail;
5133 }
5134 arg5 = new wxArrayString;
5135 temp5 = true;
5136 int i, len=PySequence_Length(obj4);
5137 for (i=0; i<len; i++) {
5138 PyObject* item = PySequence_GetItem(obj4, i);
5139 wxString* s = wxString_in_helper(item);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 arg5->Add(*s);
5142 delete s;
5143 Py_DECREF(item);
5144 }
5145 }
5146 }
5147 if (obj5) {
5148 ecode6 = SWIG_AsVal_long(obj5, &val6);
5149 if (!SWIG_IsOK(ecode6)) {
5150 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5151 }
5152 arg6 = static_cast< long >(val6);
5153 }
5154 if (obj6) {
5155 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5156 if (!SWIG_IsOK(res7)) {
5157 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5158 }
5159 if (!argp7) {
5160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5161 }
5162 arg7 = reinterpret_cast< wxValidator * >(argp7);
5163 }
5164 if (obj7) {
5165 {
5166 arg8 = wxString_in_helper(obj7);
5167 if (arg8 == NULL) SWIG_fail;
5168 temp8 = true;
5169 }
5170 }
5171 {
5172 if (!wxPyCheckForApp()) SWIG_fail;
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
5174 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5179 {
5180 if (temp5) delete arg5;
5181 }
5182 {
5183 if (temp8)
5184 delete arg8;
5185 }
5186 return resultobj;
5187 fail:
5188 {
5189 if (temp5) delete arg5;
5190 }
5191 {
5192 if (temp8)
5193 delete arg8;
5194 }
5195 return NULL;
5196 }
5197
5198
5199 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5200 PyObject *resultobj = 0;
5201 wxChoice *result = 0 ;
5202
5203 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5204 {
5205 if (!wxPyCheckForApp()) SWIG_fail;
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 result = (wxChoice *)new wxChoice();
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
5211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5212 return resultobj;
5213 fail:
5214 return NULL;
5215 }
5216
5217
5218 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5219 PyObject *resultobj = 0;
5220 wxChoice *arg1 = (wxChoice *) 0 ;
5221 wxWindow *arg2 = (wxWindow *) 0 ;
5222 int arg3 = (int) -1 ;
5223 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5224 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5225 wxSize const &arg5_defvalue = wxDefaultSize ;
5226 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5227 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5228 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5229 long arg7 = (long) 0 ;
5230 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5231 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5232 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5233 wxString *arg9 = (wxString *) &arg9_defvalue ;
5234 bool result;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 void *argp2 = 0 ;
5238 int res2 = 0 ;
5239 int val3 ;
5240 int ecode3 = 0 ;
5241 wxPoint temp4 ;
5242 wxSize temp5 ;
5243 bool temp6 = false ;
5244 long val7 ;
5245 int ecode7 = 0 ;
5246 void *argp8 = 0 ;
5247 int res8 = 0 ;
5248 bool temp9 = false ;
5249 PyObject * obj0 = 0 ;
5250 PyObject * obj1 = 0 ;
5251 PyObject * obj2 = 0 ;
5252 PyObject * obj3 = 0 ;
5253 PyObject * obj4 = 0 ;
5254 PyObject * obj5 = 0 ;
5255 PyObject * obj6 = 0 ;
5256 PyObject * obj7 = 0 ;
5257 PyObject * obj8 = 0 ;
5258 char * kwnames[] = {
5259 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5260 };
5261
5262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5266 }
5267 arg1 = reinterpret_cast< wxChoice * >(argp1);
5268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5269 if (!SWIG_IsOK(res2)) {
5270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5271 }
5272 arg2 = reinterpret_cast< wxWindow * >(argp2);
5273 if (obj2) {
5274 ecode3 = SWIG_AsVal_int(obj2, &val3);
5275 if (!SWIG_IsOK(ecode3)) {
5276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5277 }
5278 arg3 = static_cast< int >(val3);
5279 }
5280 if (obj3) {
5281 {
5282 arg4 = &temp4;
5283 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5284 }
5285 }
5286 if (obj4) {
5287 {
5288 arg5 = &temp5;
5289 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5290 }
5291 }
5292 if (obj5) {
5293 {
5294 if (! PySequence_Check(obj5)) {
5295 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5296 SWIG_fail;
5297 }
5298 arg6 = new wxArrayString;
5299 temp6 = true;
5300 int i, len=PySequence_Length(obj5);
5301 for (i=0; i<len; i++) {
5302 PyObject* item = PySequence_GetItem(obj5, i);
5303 wxString* s = wxString_in_helper(item);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 arg6->Add(*s);
5306 delete s;
5307 Py_DECREF(item);
5308 }
5309 }
5310 }
5311 if (obj6) {
5312 ecode7 = SWIG_AsVal_long(obj6, &val7);
5313 if (!SWIG_IsOK(ecode7)) {
5314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5315 }
5316 arg7 = static_cast< long >(val7);
5317 }
5318 if (obj7) {
5319 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5320 if (!SWIG_IsOK(res8)) {
5321 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5322 }
5323 if (!argp8) {
5324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5325 }
5326 arg8 = reinterpret_cast< wxValidator * >(argp8);
5327 }
5328 if (obj8) {
5329 {
5330 arg9 = wxString_in_helper(obj8);
5331 if (arg9 == NULL) SWIG_fail;
5332 temp9 = true;
5333 }
5334 }
5335 {
5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
5337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 {
5342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5343 }
5344 {
5345 if (temp6) delete arg6;
5346 }
5347 {
5348 if (temp9)
5349 delete arg9;
5350 }
5351 return resultobj;
5352 fail:
5353 {
5354 if (temp6) delete arg6;
5355 }
5356 {
5357 if (temp9)
5358 delete arg9;
5359 }
5360 return NULL;
5361 }
5362
5363
5364 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5365 PyObject *resultobj = 0;
5366 wxChoice *arg1 = (wxChoice *) 0 ;
5367 int result;
5368 void *argp1 = 0 ;
5369 int res1 = 0 ;
5370 PyObject *swig_obj[1] ;
5371
5372 if (!args) SWIG_fail;
5373 swig_obj[0] = args;
5374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5377 }
5378 arg1 = reinterpret_cast< wxChoice * >(argp1);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 resultobj = SWIG_From_int(static_cast< int >(result));
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj = 0;
5394 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5395 SwigValueWrapper<wxVisualAttributes > result;
5396 int val1 ;
5397 int ecode1 = 0 ;
5398 PyObject * obj0 = 0 ;
5399 char * kwnames[] = {
5400 (char *) "variant", NULL
5401 };
5402
5403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5404 if (obj0) {
5405 ecode1 = SWIG_AsVal_int(obj0, &val1);
5406 if (!SWIG_IsOK(ecode1)) {
5407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5408 }
5409 arg1 = static_cast< wxWindowVariant >(val1);
5410 }
5411 {
5412 if (!wxPyCheckForApp()) SWIG_fail;
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 result = wxChoice::GetClassDefaultAttributes(arg1);
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5419 return resultobj;
5420 fail:
5421 return NULL;
5422 }
5423
5424
5425 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5426 PyObject *obj;
5427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5428 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5429 return SWIG_Py_Void();
5430 }
5431
5432 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5433 return SWIG_Python_InitShadowInstance(args);
5434 }
5435
5436 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5437 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5438 return 1;
5439 }
5440
5441
5442 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5443 PyObject *pyobj = 0;
5444
5445 {
5446 #if wxUSE_UNICODE
5447 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5448 #else
5449 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5450 #endif
5451 }
5452 return pyobj;
5453 }
5454
5455
5456 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj = 0;
5458 wxWindow *arg1 = (wxWindow *) 0 ;
5459 int arg2 = (int) -1 ;
5460 wxString const &arg3_defvalue = wxPyEmptyString ;
5461 wxString *arg3 = (wxString *) &arg3_defvalue ;
5462 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5463 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5464 wxSize const &arg5_defvalue = wxDefaultSize ;
5465 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5466 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5467 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5468 long arg7 = (long) 0 ;
5469 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5470 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5471 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5472 wxString *arg9 = (wxString *) &arg9_defvalue ;
5473 wxComboBox *result = 0 ;
5474 void *argp1 = 0 ;
5475 int res1 = 0 ;
5476 int val2 ;
5477 int ecode2 = 0 ;
5478 bool temp3 = false ;
5479 wxPoint temp4 ;
5480 wxSize temp5 ;
5481 bool temp6 = false ;
5482 long val7 ;
5483 int ecode7 = 0 ;
5484 void *argp8 = 0 ;
5485 int res8 = 0 ;
5486 bool temp9 = false ;
5487 PyObject * obj0 = 0 ;
5488 PyObject * obj1 = 0 ;
5489 PyObject * obj2 = 0 ;
5490 PyObject * obj3 = 0 ;
5491 PyObject * obj4 = 0 ;
5492 PyObject * obj5 = 0 ;
5493 PyObject * obj6 = 0 ;
5494 PyObject * obj7 = 0 ;
5495 PyObject * obj8 = 0 ;
5496 char * kwnames[] = {
5497 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5498 };
5499
5500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5502 if (!SWIG_IsOK(res1)) {
5503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5504 }
5505 arg1 = reinterpret_cast< wxWindow * >(argp1);
5506 if (obj1) {
5507 ecode2 = SWIG_AsVal_int(obj1, &val2);
5508 if (!SWIG_IsOK(ecode2)) {
5509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5510 }
5511 arg2 = static_cast< int >(val2);
5512 }
5513 if (obj2) {
5514 {
5515 arg3 = wxString_in_helper(obj2);
5516 if (arg3 == NULL) SWIG_fail;
5517 temp3 = true;
5518 }
5519 }
5520 if (obj3) {
5521 {
5522 arg4 = &temp4;
5523 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5524 }
5525 }
5526 if (obj4) {
5527 {
5528 arg5 = &temp5;
5529 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5530 }
5531 }
5532 if (obj5) {
5533 {
5534 if (! PySequence_Check(obj5)) {
5535 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5536 SWIG_fail;
5537 }
5538 arg6 = new wxArrayString;
5539 temp6 = true;
5540 int i, len=PySequence_Length(obj5);
5541 for (i=0; i<len; i++) {
5542 PyObject* item = PySequence_GetItem(obj5, i);
5543 wxString* s = wxString_in_helper(item);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 arg6->Add(*s);
5546 delete s;
5547 Py_DECREF(item);
5548 }
5549 }
5550 }
5551 if (obj6) {
5552 ecode7 = SWIG_AsVal_long(obj6, &val7);
5553 if (!SWIG_IsOK(ecode7)) {
5554 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5555 }
5556 arg7 = static_cast< long >(val7);
5557 }
5558 if (obj7) {
5559 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5560 if (!SWIG_IsOK(res8)) {
5561 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5562 }
5563 if (!argp8) {
5564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5565 }
5566 arg8 = reinterpret_cast< wxValidator * >(argp8);
5567 }
5568 if (obj8) {
5569 {
5570 arg9 = wxString_in_helper(obj8);
5571 if (arg9 == NULL) SWIG_fail;
5572 temp9 = true;
5573 }
5574 }
5575 {
5576 if (!wxPyCheckForApp()) SWIG_fail;
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 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);
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5583 {
5584 if (temp3)
5585 delete arg3;
5586 }
5587 {
5588 if (temp6) delete arg6;
5589 }
5590 {
5591 if (temp9)
5592 delete arg9;
5593 }
5594 return resultobj;
5595 fail:
5596 {
5597 if (temp3)
5598 delete arg3;
5599 }
5600 {
5601 if (temp6) delete arg6;
5602 }
5603 {
5604 if (temp9)
5605 delete arg9;
5606 }
5607 return NULL;
5608 }
5609
5610
5611 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxComboBox *result = 0 ;
5614
5615 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5616 {
5617 if (!wxPyCheckForApp()) SWIG_fail;
5618 PyThreadState* __tstate = wxPyBeginAllowThreads();
5619 result = (wxComboBox *)new wxComboBox();
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 }
5623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj = 0;
5632 wxComboBox *arg1 = (wxComboBox *) 0 ;
5633 wxWindow *arg2 = (wxWindow *) 0 ;
5634 int arg3 = (int) -1 ;
5635 wxString const &arg4_defvalue = wxPyEmptyString ;
5636 wxString *arg4 = (wxString *) &arg4_defvalue ;
5637 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5638 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5639 wxSize const &arg6_defvalue = wxDefaultSize ;
5640 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5641 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5642 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5643 long arg8 = (long) 0 ;
5644 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5645 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5646 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5647 wxString *arg10 = (wxString *) &arg10_defvalue ;
5648 bool result;
5649 void *argp1 = 0 ;
5650 int res1 = 0 ;
5651 void *argp2 = 0 ;
5652 int res2 = 0 ;
5653 int val3 ;
5654 int ecode3 = 0 ;
5655 bool temp4 = false ;
5656 wxPoint temp5 ;
5657 wxSize temp6 ;
5658 bool temp7 = false ;
5659 long val8 ;
5660 int ecode8 = 0 ;
5661 void *argp9 = 0 ;
5662 int res9 = 0 ;
5663 bool temp10 = false ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 PyObject * obj2 = 0 ;
5667 PyObject * obj3 = 0 ;
5668 PyObject * obj4 = 0 ;
5669 PyObject * obj5 = 0 ;
5670 PyObject * obj6 = 0 ;
5671 PyObject * obj7 = 0 ;
5672 PyObject * obj8 = 0 ;
5673 PyObject * obj9 = 0 ;
5674 char * kwnames[] = {
5675 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5676 };
5677
5678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5682 }
5683 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5685 if (!SWIG_IsOK(res2)) {
5686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5687 }
5688 arg2 = reinterpret_cast< wxWindow * >(argp2);
5689 if (obj2) {
5690 ecode3 = SWIG_AsVal_int(obj2, &val3);
5691 if (!SWIG_IsOK(ecode3)) {
5692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5693 }
5694 arg3 = static_cast< int >(val3);
5695 }
5696 if (obj3) {
5697 {
5698 arg4 = wxString_in_helper(obj3);
5699 if (arg4 == NULL) SWIG_fail;
5700 temp4 = true;
5701 }
5702 }
5703 if (obj4) {
5704 {
5705 arg5 = &temp5;
5706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5707 }
5708 }
5709 if (obj5) {
5710 {
5711 arg6 = &temp6;
5712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5713 }
5714 }
5715 if (obj6) {
5716 {
5717 if (! PySequence_Check(obj6)) {
5718 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5719 SWIG_fail;
5720 }
5721 arg7 = new wxArrayString;
5722 temp7 = true;
5723 int i, len=PySequence_Length(obj6);
5724 for (i=0; i<len; i++) {
5725 PyObject* item = PySequence_GetItem(obj6, i);
5726 wxString* s = wxString_in_helper(item);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 arg7->Add(*s);
5729 delete s;
5730 Py_DECREF(item);
5731 }
5732 }
5733 }
5734 if (obj7) {
5735 ecode8 = SWIG_AsVal_long(obj7, &val8);
5736 if (!SWIG_IsOK(ecode8)) {
5737 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5738 }
5739 arg8 = static_cast< long >(val8);
5740 }
5741 if (obj8) {
5742 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5743 if (!SWIG_IsOK(res9)) {
5744 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5745 }
5746 if (!argp9) {
5747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5748 }
5749 arg9 = reinterpret_cast< wxValidator * >(argp9);
5750 }
5751 if (obj9) {
5752 {
5753 arg10 = wxString_in_helper(obj9);
5754 if (arg10 == NULL) SWIG_fail;
5755 temp10 = true;
5756 }
5757 }
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 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);
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 {
5765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5766 }
5767 {
5768 if (temp4)
5769 delete arg4;
5770 }
5771 {
5772 if (temp7) delete arg7;
5773 }
5774 {
5775 if (temp10)
5776 delete arg10;
5777 }
5778 return resultobj;
5779 fail:
5780 {
5781 if (temp4)
5782 delete arg4;
5783 }
5784 {
5785 if (temp7) delete arg7;
5786 }
5787 {
5788 if (temp10)
5789 delete arg10;
5790 }
5791 return NULL;
5792 }
5793
5794
5795 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5796 PyObject *resultobj = 0;
5797 wxComboBox *arg1 = (wxComboBox *) 0 ;
5798 wxString result;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 PyObject *swig_obj[1] ;
5802
5803 if (!args) SWIG_fail;
5804 swig_obj[0] = args;
5805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5806 if (!SWIG_IsOK(res1)) {
5807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5808 }
5809 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = ((wxComboBox const *)arg1)->GetValue();
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 {
5817 #if wxUSE_UNICODE
5818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5819 #else
5820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5821 #endif
5822 }
5823 return resultobj;
5824 fail:
5825 return NULL;
5826 }
5827
5828
5829 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5830 PyObject *resultobj = 0;
5831 wxComboBox *arg1 = (wxComboBox *) 0 ;
5832 wxString *arg2 = 0 ;
5833 void *argp1 = 0 ;
5834 int res1 = 0 ;
5835 bool temp2 = false ;
5836 PyObject * obj0 = 0 ;
5837 PyObject * obj1 = 0 ;
5838 char * kwnames[] = {
5839 (char *) "self",(char *) "value", NULL
5840 };
5841
5842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5844 if (!SWIG_IsOK(res1)) {
5845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5846 }
5847 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5848 {
5849 arg2 = wxString_in_helper(obj1);
5850 if (arg2 == NULL) SWIG_fail;
5851 temp2 = true;
5852 }
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 (arg1)->SetValue((wxString const &)*arg2);
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 resultobj = SWIG_Py_Void();
5860 {
5861 if (temp2)
5862 delete arg2;
5863 }
5864 return resultobj;
5865 fail:
5866 {
5867 if (temp2)
5868 delete arg2;
5869 }
5870 return NULL;
5871 }
5872
5873
5874 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5875 PyObject *resultobj = 0;
5876 wxComboBox *arg1 = (wxComboBox *) 0 ;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 PyObject *swig_obj[1] ;
5880
5881 if (!args) SWIG_fail;
5882 swig_obj[0] = args;
5883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5884 if (!SWIG_IsOK(res1)) {
5885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5886 }
5887 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 (arg1)->Copy();
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_Py_Void();
5895 return resultobj;
5896 fail:
5897 return NULL;
5898 }
5899
5900
5901 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5902 PyObject *resultobj = 0;
5903 wxComboBox *arg1 = (wxComboBox *) 0 ;
5904 void *argp1 = 0 ;
5905 int res1 = 0 ;
5906 PyObject *swig_obj[1] ;
5907
5908 if (!args) SWIG_fail;
5909 swig_obj[0] = args;
5910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5911 if (!SWIG_IsOK(res1)) {
5912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5913 }
5914 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 (arg1)->Cut();
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_Py_Void();
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5929 PyObject *resultobj = 0;
5930 wxComboBox *arg1 = (wxComboBox *) 0 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 PyObject *swig_obj[1] ;
5934
5935 if (!args) SWIG_fail;
5936 swig_obj[0] = args;
5937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5938 if (!SWIG_IsOK(res1)) {
5939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5940 }
5941 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 (arg1)->Paste();
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 resultobj = SWIG_Py_Void();
5949 return resultobj;
5950 fail:
5951 return NULL;
5952 }
5953
5954
5955 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5956 PyObject *resultobj = 0;
5957 wxComboBox *arg1 = (wxComboBox *) 0 ;
5958 long arg2 ;
5959 void *argp1 = 0 ;
5960 int res1 = 0 ;
5961 long val2 ;
5962 int ecode2 = 0 ;
5963 PyObject * obj0 = 0 ;
5964 PyObject * obj1 = 0 ;
5965 char * kwnames[] = {
5966 (char *) "self",(char *) "pos", NULL
5967 };
5968
5969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5971 if (!SWIG_IsOK(res1)) {
5972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5973 }
5974 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5975 ecode2 = SWIG_AsVal_long(obj1, &val2);
5976 if (!SWIG_IsOK(ecode2)) {
5977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5978 }
5979 arg2 = static_cast< long >(val2);
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 (arg1)->SetInsertionPoint(arg2);
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 resultobj = SWIG_Py_Void();
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5994 PyObject *resultobj = 0;
5995 wxComboBox *arg1 = (wxComboBox *) 0 ;
5996 long result;
5997 void *argp1 = 0 ;
5998 int res1 = 0 ;
5999 PyObject *swig_obj[1] ;
6000
6001 if (!args) SWIG_fail;
6002 swig_obj[0] = args;
6003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6004 if (!SWIG_IsOK(res1)) {
6005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6006 }
6007 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 resultobj = SWIG_From_long(static_cast< long >(result));
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6022 PyObject *resultobj = 0;
6023 wxComboBox *arg1 = (wxComboBox *) 0 ;
6024 long result;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 PyObject *swig_obj[1] ;
6028
6029 if (!args) SWIG_fail;
6030 swig_obj[0] = args;
6031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6032 if (!SWIG_IsOK(res1)) {
6033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6034 }
6035 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = SWIG_From_long(static_cast< long >(result));
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj = 0;
6051 wxComboBox *arg1 = (wxComboBox *) 0 ;
6052 long arg2 ;
6053 long arg3 ;
6054 wxString *arg4 = 0 ;
6055 void *argp1 = 0 ;
6056 int res1 = 0 ;
6057 long val2 ;
6058 int ecode2 = 0 ;
6059 long val3 ;
6060 int ecode3 = 0 ;
6061 bool temp4 = false ;
6062 PyObject * obj0 = 0 ;
6063 PyObject * obj1 = 0 ;
6064 PyObject * obj2 = 0 ;
6065 PyObject * obj3 = 0 ;
6066 char * kwnames[] = {
6067 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6068 };
6069
6070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6072 if (!SWIG_IsOK(res1)) {
6073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6074 }
6075 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6076 ecode2 = SWIG_AsVal_long(obj1, &val2);
6077 if (!SWIG_IsOK(ecode2)) {
6078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6079 }
6080 arg2 = static_cast< long >(val2);
6081 ecode3 = SWIG_AsVal_long(obj2, &val3);
6082 if (!SWIG_IsOK(ecode3)) {
6083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6084 }
6085 arg3 = static_cast< long >(val3);
6086 {
6087 arg4 = wxString_in_helper(obj3);
6088 if (arg4 == NULL) SWIG_fail;
6089 temp4 = true;
6090 }
6091 {
6092 PyThreadState* __tstate = wxPyBeginAllowThreads();
6093 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 resultobj = SWIG_Py_Void();
6098 {
6099 if (temp4)
6100 delete arg4;
6101 }
6102 return resultobj;
6103 fail:
6104 {
6105 if (temp4)
6106 delete arg4;
6107 }
6108 return NULL;
6109 }
6110
6111
6112 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj = 0;
6114 wxComboBox *arg1 = (wxComboBox *) 0 ;
6115 long arg2 ;
6116 long arg3 ;
6117 void *argp1 = 0 ;
6118 int res1 = 0 ;
6119 long val2 ;
6120 int ecode2 = 0 ;
6121 long val3 ;
6122 int ecode3 = 0 ;
6123 PyObject * obj0 = 0 ;
6124 PyObject * obj1 = 0 ;
6125 PyObject * obj2 = 0 ;
6126 char * kwnames[] = {
6127 (char *) "self",(char *) "from",(char *) "to", NULL
6128 };
6129
6130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6132 if (!SWIG_IsOK(res1)) {
6133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6134 }
6135 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6136 ecode2 = SWIG_AsVal_long(obj1, &val2);
6137 if (!SWIG_IsOK(ecode2)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6139 }
6140 arg2 = static_cast< long >(val2);
6141 ecode3 = SWIG_AsVal_long(obj2, &val3);
6142 if (!SWIG_IsOK(ecode3)) {
6143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6144 }
6145 arg3 = static_cast< long >(val3);
6146 {
6147 PyThreadState* __tstate = wxPyBeginAllowThreads();
6148 (arg1)->SetSelection(arg2,arg3);
6149 wxPyEndAllowThreads(__tstate);
6150 if (PyErr_Occurred()) SWIG_fail;
6151 }
6152 resultobj = SWIG_Py_Void();
6153 return resultobj;
6154 fail:
6155 return NULL;
6156 }
6157
6158
6159 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6160 PyObject *resultobj = 0;
6161 wxComboBox *arg1 = (wxComboBox *) 0 ;
6162 long *arg2 = (long *) 0 ;
6163 long *arg3 = (long *) 0 ;
6164 void *argp1 = 0 ;
6165 int res1 = 0 ;
6166 long temp2 ;
6167 int res2 = SWIG_TMPOBJ ;
6168 long temp3 ;
6169 int res3 = SWIG_TMPOBJ ;
6170 PyObject *swig_obj[1] ;
6171
6172 arg2 = &temp2;
6173 arg3 = &temp3;
6174 if (!args) SWIG_fail;
6175 swig_obj[0] = args;
6176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6177 if (!SWIG_IsOK(res1)) {
6178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6179 }
6180 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 (arg1)->GetSelection(arg2,arg3);
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 resultobj = SWIG_Py_Void();
6188 if (SWIG_IsTmpObj(res2)) {
6189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6190 } else {
6191 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6193 }
6194 if (SWIG_IsTmpObj(res3)) {
6195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6196 } else {
6197 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6199 }
6200 return resultobj;
6201 fail:
6202 return NULL;
6203 }
6204
6205
6206 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6207 PyObject *resultobj = 0;
6208 wxComboBox *arg1 = (wxComboBox *) 0 ;
6209 int result;
6210 void *argp1 = 0 ;
6211 int res1 = 0 ;
6212 PyObject *swig_obj[1] ;
6213
6214 if (!args) SWIG_fail;
6215 swig_obj[0] = args;
6216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6217 if (!SWIG_IsOK(res1)) {
6218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6219 }
6220 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6221 {
6222 PyThreadState* __tstate = wxPyBeginAllowThreads();
6223 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 resultobj = SWIG_From_int(static_cast< int >(result));
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj = 0;
6236 wxComboBox *arg1 = (wxComboBox *) 0 ;
6237 wxString *arg2 = 0 ;
6238 bool result;
6239 void *argp1 = 0 ;
6240 int res1 = 0 ;
6241 bool temp2 = false ;
6242 PyObject * obj0 = 0 ;
6243 PyObject * obj1 = 0 ;
6244 char * kwnames[] = {
6245 (char *) "self",(char *) "string", NULL
6246 };
6247
6248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6250 if (!SWIG_IsOK(res1)) {
6251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6252 }
6253 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6254 {
6255 arg2 = wxString_in_helper(obj1);
6256 if (arg2 == NULL) SWIG_fail;
6257 temp2 = true;
6258 }
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6262 wxPyEndAllowThreads(__tstate);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 }
6265 {
6266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6267 }
6268 {
6269 if (temp2)
6270 delete arg2;
6271 }
6272 return resultobj;
6273 fail:
6274 {
6275 if (temp2)
6276 delete arg2;
6277 }
6278 return NULL;
6279 }
6280
6281
6282 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6283 PyObject *resultobj = 0;
6284 wxComboBox *arg1 = (wxComboBox *) 0 ;
6285 int arg2 ;
6286 wxString *arg3 = 0 ;
6287 void *argp1 = 0 ;
6288 int res1 = 0 ;
6289 int val2 ;
6290 int ecode2 = 0 ;
6291 bool temp3 = false ;
6292 PyObject * obj0 = 0 ;
6293 PyObject * obj1 = 0 ;
6294 PyObject * obj2 = 0 ;
6295 char * kwnames[] = {
6296 (char *) "self",(char *) "n",(char *) "string", NULL
6297 };
6298
6299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6301 if (!SWIG_IsOK(res1)) {
6302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6303 }
6304 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6305 ecode2 = SWIG_AsVal_int(obj1, &val2);
6306 if (!SWIG_IsOK(ecode2)) {
6307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6308 }
6309 arg2 = static_cast< int >(val2);
6310 {
6311 arg3 = wxString_in_helper(obj2);
6312 if (arg3 == NULL) SWIG_fail;
6313 temp3 = true;
6314 }
6315 {
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 (arg1)->SetString(arg2,(wxString const &)*arg3);
6318 wxPyEndAllowThreads(__tstate);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 resultobj = SWIG_Py_Void();
6322 {
6323 if (temp3)
6324 delete arg3;
6325 }
6326 return resultobj;
6327 fail:
6328 {
6329 if (temp3)
6330 delete arg3;
6331 }
6332 return NULL;
6333 }
6334
6335
6336 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6337 PyObject *resultobj = 0;
6338 wxComboBox *arg1 = (wxComboBox *) 0 ;
6339 bool arg2 ;
6340 void *argp1 = 0 ;
6341 int res1 = 0 ;
6342 bool val2 ;
6343 int ecode2 = 0 ;
6344 PyObject * obj0 = 0 ;
6345 PyObject * obj1 = 0 ;
6346 char * kwnames[] = {
6347 (char *) "self",(char *) "editable", NULL
6348 };
6349
6350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6352 if (!SWIG_IsOK(res1)) {
6353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6354 }
6355 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6356 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6357 if (!SWIG_IsOK(ecode2)) {
6358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6359 }
6360 arg2 = static_cast< bool >(val2);
6361 {
6362 PyThreadState* __tstate = wxPyBeginAllowThreads();
6363 (arg1)->SetEditable(arg2);
6364 wxPyEndAllowThreads(__tstate);
6365 if (PyErr_Occurred()) SWIG_fail;
6366 }
6367 resultobj = SWIG_Py_Void();
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6375 PyObject *resultobj = 0;
6376 wxComboBox *arg1 = (wxComboBox *) 0 ;
6377 void *argp1 = 0 ;
6378 int res1 = 0 ;
6379 PyObject *swig_obj[1] ;
6380
6381 if (!args) SWIG_fail;
6382 swig_obj[0] = args;
6383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6386 }
6387 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 (arg1)->SetInsertionPointEnd();
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_Py_Void();
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6402 PyObject *resultobj = 0;
6403 wxComboBox *arg1 = (wxComboBox *) 0 ;
6404 long arg2 ;
6405 long arg3 ;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 long val2 ;
6409 int ecode2 = 0 ;
6410 long val3 ;
6411 int ecode3 = 0 ;
6412 PyObject * obj0 = 0 ;
6413 PyObject * obj1 = 0 ;
6414 PyObject * obj2 = 0 ;
6415 char * kwnames[] = {
6416 (char *) "self",(char *) "from",(char *) "to", NULL
6417 };
6418
6419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6421 if (!SWIG_IsOK(res1)) {
6422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6423 }
6424 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6425 ecode2 = SWIG_AsVal_long(obj1, &val2);
6426 if (!SWIG_IsOK(ecode2)) {
6427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6428 }
6429 arg2 = static_cast< long >(val2);
6430 ecode3 = SWIG_AsVal_long(obj2, &val3);
6431 if (!SWIG_IsOK(ecode3)) {
6432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6433 }
6434 arg3 = static_cast< long >(val3);
6435 {
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 (arg1)->Remove(arg2,arg3);
6438 wxPyEndAllowThreads(__tstate);
6439 if (PyErr_Occurred()) SWIG_fail;
6440 }
6441 resultobj = SWIG_Py_Void();
6442 return resultobj;
6443 fail:
6444 return NULL;
6445 }
6446
6447
6448 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6449 PyObject *resultobj = 0;
6450 wxComboBox *arg1 = (wxComboBox *) 0 ;
6451 bool result;
6452 void *argp1 = 0 ;
6453 int res1 = 0 ;
6454 PyObject *swig_obj[1] ;
6455
6456 if (!args) SWIG_fail;
6457 swig_obj[0] = args;
6458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6459 if (!SWIG_IsOK(res1)) {
6460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6461 }
6462 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6466 wxPyEndAllowThreads(__tstate);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6471 }
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6479 PyObject *resultobj = 0;
6480 wxComboBox *arg1 = (wxComboBox *) 0 ;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6490 }
6491 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 (arg1)->Undo();
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 resultobj = SWIG_Py_Void();
6499 return resultobj;
6500 fail:
6501 return NULL;
6502 }
6503
6504
6505 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6506 PyObject *resultobj = 0;
6507 wxComboBox *arg1 = (wxComboBox *) 0 ;
6508 void *argp1 = 0 ;
6509 int res1 = 0 ;
6510 PyObject *swig_obj[1] ;
6511
6512 if (!args) SWIG_fail;
6513 swig_obj[0] = args;
6514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6515 if (!SWIG_IsOK(res1)) {
6516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6517 }
6518 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 (arg1)->Redo();
6522 wxPyEndAllowThreads(__tstate);
6523 if (PyErr_Occurred()) SWIG_fail;
6524 }
6525 resultobj = SWIG_Py_Void();
6526 return resultobj;
6527 fail:
6528 return NULL;
6529 }
6530
6531
6532 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6533 PyObject *resultobj = 0;
6534 wxComboBox *arg1 = (wxComboBox *) 0 ;
6535 void *argp1 = 0 ;
6536 int res1 = 0 ;
6537 PyObject *swig_obj[1] ;
6538
6539 if (!args) SWIG_fail;
6540 swig_obj[0] = args;
6541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6542 if (!SWIG_IsOK(res1)) {
6543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6544 }
6545 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6546 {
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 (arg1)->SelectAll();
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 resultobj = SWIG_Py_Void();
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6560 PyObject *resultobj = 0;
6561 wxComboBox *arg1 = (wxComboBox *) 0 ;
6562 bool result;
6563 void *argp1 = 0 ;
6564 int res1 = 0 ;
6565 PyObject *swig_obj[1] ;
6566
6567 if (!args) SWIG_fail;
6568 swig_obj[0] = args;
6569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6570 if (!SWIG_IsOK(res1)) {
6571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6572 }
6573 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6574 {
6575 PyThreadState* __tstate = wxPyBeginAllowThreads();
6576 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6577 wxPyEndAllowThreads(__tstate);
6578 if (PyErr_Occurred()) SWIG_fail;
6579 }
6580 {
6581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6582 }
6583 return resultobj;
6584 fail:
6585 return NULL;
6586 }
6587
6588
6589 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6590 PyObject *resultobj = 0;
6591 wxComboBox *arg1 = (wxComboBox *) 0 ;
6592 bool result;
6593 void *argp1 = 0 ;
6594 int res1 = 0 ;
6595 PyObject *swig_obj[1] ;
6596
6597 if (!args) SWIG_fail;
6598 swig_obj[0] = args;
6599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6600 if (!SWIG_IsOK(res1)) {
6601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6602 }
6603 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 result = (bool)((wxComboBox const *)arg1)->CanCut();
6607 wxPyEndAllowThreads(__tstate);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 {
6611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6612 }
6613 return resultobj;
6614 fail:
6615 return NULL;
6616 }
6617
6618
6619 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6620 PyObject *resultobj = 0;
6621 wxComboBox *arg1 = (wxComboBox *) 0 ;
6622 bool result;
6623 void *argp1 = 0 ;
6624 int res1 = 0 ;
6625 PyObject *swig_obj[1] ;
6626
6627 if (!args) SWIG_fail;
6628 swig_obj[0] = args;
6629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6632 }
6633 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6634 {
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 {
6641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6642 }
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6650 PyObject *resultobj = 0;
6651 wxComboBox *arg1 = (wxComboBox *) 0 ;
6652 bool result;
6653 void *argp1 = 0 ;
6654 int res1 = 0 ;
6655 PyObject *swig_obj[1] ;
6656
6657 if (!args) SWIG_fail;
6658 swig_obj[0] = args;
6659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6662 }
6663 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 {
6671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6672 }
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6680 PyObject *resultobj = 0;
6681 wxComboBox *arg1 = (wxComboBox *) 0 ;
6682 bool result;
6683 void *argp1 = 0 ;
6684 int res1 = 0 ;
6685 PyObject *swig_obj[1] ;
6686
6687 if (!args) SWIG_fail;
6688 swig_obj[0] = args;
6689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6692 }
6693 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6694 {
6695 PyThreadState* __tstate = wxPyBeginAllowThreads();
6696 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6697 wxPyEndAllowThreads(__tstate);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 {
6701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6702 }
6703 return resultobj;
6704 fail:
6705 return NULL;
6706 }
6707
6708
6709 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6710 PyObject *resultobj = 0;
6711 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6712 SwigValueWrapper<wxVisualAttributes > result;
6713 int val1 ;
6714 int ecode1 = 0 ;
6715 PyObject * obj0 = 0 ;
6716 char * kwnames[] = {
6717 (char *) "variant", NULL
6718 };
6719
6720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6721 if (obj0) {
6722 ecode1 = SWIG_AsVal_int(obj0, &val1);
6723 if (!SWIG_IsOK(ecode1)) {
6724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6725 }
6726 arg1 = static_cast< wxWindowVariant >(val1);
6727 }
6728 {
6729 if (!wxPyCheckForApp()) SWIG_fail;
6730 PyThreadState* __tstate = wxPyBeginAllowThreads();
6731 result = wxComboBox::GetClassDefaultAttributes(arg1);
6732 wxPyEndAllowThreads(__tstate);
6733 if (PyErr_Occurred()) SWIG_fail;
6734 }
6735 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6736 return resultobj;
6737 fail:
6738 return NULL;
6739 }
6740
6741
6742 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6743 PyObject *obj;
6744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6745 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6746 return SWIG_Py_Void();
6747 }
6748
6749 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6750 return SWIG_Python_InitShadowInstance(args);
6751 }
6752
6753 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6754 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6755 return 1;
6756 }
6757
6758
6759 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6760 PyObject *pyobj = 0;
6761
6762 {
6763 #if wxUSE_UNICODE
6764 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6765 #else
6766 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6767 #endif
6768 }
6769 return pyobj;
6770 }
6771
6772
6773 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj = 0;
6775 wxWindow *arg1 = (wxWindow *) 0 ;
6776 int arg2 = (int) -1 ;
6777 int arg3 = (int) 100 ;
6778 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6779 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6780 wxSize const &arg5_defvalue = wxDefaultSize ;
6781 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6782 long arg6 = (long) wxGA_HORIZONTAL ;
6783 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6784 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6785 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6786 wxString *arg8 = (wxString *) &arg8_defvalue ;
6787 wxGauge *result = 0 ;
6788 void *argp1 = 0 ;
6789 int res1 = 0 ;
6790 int val2 ;
6791 int ecode2 = 0 ;
6792 int val3 ;
6793 int ecode3 = 0 ;
6794 wxPoint temp4 ;
6795 wxSize temp5 ;
6796 long val6 ;
6797 int ecode6 = 0 ;
6798 void *argp7 = 0 ;
6799 int res7 = 0 ;
6800 bool temp8 = false ;
6801 PyObject * obj0 = 0 ;
6802 PyObject * obj1 = 0 ;
6803 PyObject * obj2 = 0 ;
6804 PyObject * obj3 = 0 ;
6805 PyObject * obj4 = 0 ;
6806 PyObject * obj5 = 0 ;
6807 PyObject * obj6 = 0 ;
6808 PyObject * obj7 = 0 ;
6809 char * kwnames[] = {
6810 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6811 };
6812
6813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6815 if (!SWIG_IsOK(res1)) {
6816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6817 }
6818 arg1 = reinterpret_cast< wxWindow * >(argp1);
6819 if (obj1) {
6820 ecode2 = SWIG_AsVal_int(obj1, &val2);
6821 if (!SWIG_IsOK(ecode2)) {
6822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6823 }
6824 arg2 = static_cast< int >(val2);
6825 }
6826 if (obj2) {
6827 ecode3 = SWIG_AsVal_int(obj2, &val3);
6828 if (!SWIG_IsOK(ecode3)) {
6829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6830 }
6831 arg3 = static_cast< int >(val3);
6832 }
6833 if (obj3) {
6834 {
6835 arg4 = &temp4;
6836 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6837 }
6838 }
6839 if (obj4) {
6840 {
6841 arg5 = &temp5;
6842 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6843 }
6844 }
6845 if (obj5) {
6846 ecode6 = SWIG_AsVal_long(obj5, &val6);
6847 if (!SWIG_IsOK(ecode6)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6849 }
6850 arg6 = static_cast< long >(val6);
6851 }
6852 if (obj6) {
6853 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6854 if (!SWIG_IsOK(res7)) {
6855 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6856 }
6857 if (!argp7) {
6858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6859 }
6860 arg7 = reinterpret_cast< wxValidator * >(argp7);
6861 }
6862 if (obj7) {
6863 {
6864 arg8 = wxString_in_helper(obj7);
6865 if (arg8 == NULL) SWIG_fail;
6866 temp8 = true;
6867 }
6868 }
6869 {
6870 if (!wxPyCheckForApp()) SWIG_fail;
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6873 wxPyEndAllowThreads(__tstate);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6877 {
6878 if (temp8)
6879 delete arg8;
6880 }
6881 return resultobj;
6882 fail:
6883 {
6884 if (temp8)
6885 delete arg8;
6886 }
6887 return NULL;
6888 }
6889
6890
6891 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6892 PyObject *resultobj = 0;
6893 wxGauge *result = 0 ;
6894
6895 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6896 {
6897 if (!wxPyCheckForApp()) SWIG_fail;
6898 PyThreadState* __tstate = wxPyBeginAllowThreads();
6899 result = (wxGauge *)new wxGauge();
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj = 0;
6912 wxGauge *arg1 = (wxGauge *) 0 ;
6913 wxWindow *arg2 = (wxWindow *) 0 ;
6914 int arg3 = (int) -1 ;
6915 int arg4 = (int) 100 ;
6916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6918 wxSize const &arg6_defvalue = wxDefaultSize ;
6919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6920 long arg7 = (long) wxGA_HORIZONTAL ;
6921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6923 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6924 wxString *arg9 = (wxString *) &arg9_defvalue ;
6925 bool result;
6926 void *argp1 = 0 ;
6927 int res1 = 0 ;
6928 void *argp2 = 0 ;
6929 int res2 = 0 ;
6930 int val3 ;
6931 int ecode3 = 0 ;
6932 int val4 ;
6933 int ecode4 = 0 ;
6934 wxPoint temp5 ;
6935 wxSize temp6 ;
6936 long val7 ;
6937 int ecode7 = 0 ;
6938 void *argp8 = 0 ;
6939 int res8 = 0 ;
6940 bool temp9 = false ;
6941 PyObject * obj0 = 0 ;
6942 PyObject * obj1 = 0 ;
6943 PyObject * obj2 = 0 ;
6944 PyObject * obj3 = 0 ;
6945 PyObject * obj4 = 0 ;
6946 PyObject * obj5 = 0 ;
6947 PyObject * obj6 = 0 ;
6948 PyObject * obj7 = 0 ;
6949 PyObject * obj8 = 0 ;
6950 char * kwnames[] = {
6951 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6952 };
6953
6954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6956 if (!SWIG_IsOK(res1)) {
6957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6958 }
6959 arg1 = reinterpret_cast< wxGauge * >(argp1);
6960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6961 if (!SWIG_IsOK(res2)) {
6962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6963 }
6964 arg2 = reinterpret_cast< wxWindow * >(argp2);
6965 if (obj2) {
6966 ecode3 = SWIG_AsVal_int(obj2, &val3);
6967 if (!SWIG_IsOK(ecode3)) {
6968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6969 }
6970 arg3 = static_cast< int >(val3);
6971 }
6972 if (obj3) {
6973 ecode4 = SWIG_AsVal_int(obj3, &val4);
6974 if (!SWIG_IsOK(ecode4)) {
6975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6976 }
6977 arg4 = static_cast< int >(val4);
6978 }
6979 if (obj4) {
6980 {
6981 arg5 = &temp5;
6982 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6983 }
6984 }
6985 if (obj5) {
6986 {
6987 arg6 = &temp6;
6988 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6989 }
6990 }
6991 if (obj6) {
6992 ecode7 = SWIG_AsVal_long(obj6, &val7);
6993 if (!SWIG_IsOK(ecode7)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6995 }
6996 arg7 = static_cast< long >(val7);
6997 }
6998 if (obj7) {
6999 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7000 if (!SWIG_IsOK(res8)) {
7001 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7002 }
7003 if (!argp8) {
7004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7005 }
7006 arg8 = reinterpret_cast< wxValidator * >(argp8);
7007 }
7008 if (obj8) {
7009 {
7010 arg9 = wxString_in_helper(obj8);
7011 if (arg9 == NULL) SWIG_fail;
7012 temp9 = true;
7013 }
7014 }
7015 {
7016 PyThreadState* __tstate = wxPyBeginAllowThreads();
7017 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7018 wxPyEndAllowThreads(__tstate);
7019 if (PyErr_Occurred()) SWIG_fail;
7020 }
7021 {
7022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7023 }
7024 {
7025 if (temp9)
7026 delete arg9;
7027 }
7028 return resultobj;
7029 fail:
7030 {
7031 if (temp9)
7032 delete arg9;
7033 }
7034 return NULL;
7035 }
7036
7037
7038 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxGauge *arg1 = (wxGauge *) 0 ;
7041 int arg2 ;
7042 void *argp1 = 0 ;
7043 int res1 = 0 ;
7044 int val2 ;
7045 int ecode2 = 0 ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char * kwnames[] = {
7049 (char *) "self",(char *) "range", NULL
7050 };
7051
7052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7056 }
7057 arg1 = reinterpret_cast< wxGauge * >(argp1);
7058 ecode2 = SWIG_AsVal_int(obj1, &val2);
7059 if (!SWIG_IsOK(ecode2)) {
7060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7061 }
7062 arg2 = static_cast< int >(val2);
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 (arg1)->SetRange(arg2);
7066 wxPyEndAllowThreads(__tstate);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 resultobj = SWIG_Py_Void();
7070 return resultobj;
7071 fail:
7072 return NULL;
7073 }
7074
7075
7076 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7077 PyObject *resultobj = 0;
7078 wxGauge *arg1 = (wxGauge *) 0 ;
7079 int result;
7080 void *argp1 = 0 ;
7081 int res1 = 0 ;
7082 PyObject *swig_obj[1] ;
7083
7084 if (!args) SWIG_fail;
7085 swig_obj[0] = args;
7086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7087 if (!SWIG_IsOK(res1)) {
7088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7089 }
7090 arg1 = reinterpret_cast< wxGauge * >(argp1);
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 result = (int)((wxGauge const *)arg1)->GetRange();
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 resultobj = SWIG_From_int(static_cast< int >(result));
7098 return resultobj;
7099 fail:
7100 return NULL;
7101 }
7102
7103
7104 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj = 0;
7106 wxGauge *arg1 = (wxGauge *) 0 ;
7107 int arg2 ;
7108 void *argp1 = 0 ;
7109 int res1 = 0 ;
7110 int val2 ;
7111 int ecode2 = 0 ;
7112 PyObject * obj0 = 0 ;
7113 PyObject * obj1 = 0 ;
7114 char * kwnames[] = {
7115 (char *) "self",(char *) "pos", NULL
7116 };
7117
7118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7120 if (!SWIG_IsOK(res1)) {
7121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7122 }
7123 arg1 = reinterpret_cast< wxGauge * >(argp1);
7124 ecode2 = SWIG_AsVal_int(obj1, &val2);
7125 if (!SWIG_IsOK(ecode2)) {
7126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7127 }
7128 arg2 = static_cast< int >(val2);
7129 {
7130 PyThreadState* __tstate = wxPyBeginAllowThreads();
7131 (arg1)->SetValue(arg2);
7132 wxPyEndAllowThreads(__tstate);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 resultobj = SWIG_Py_Void();
7136 return resultobj;
7137 fail:
7138 return NULL;
7139 }
7140
7141
7142 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7143 PyObject *resultobj = 0;
7144 wxGauge *arg1 = (wxGauge *) 0 ;
7145 int result;
7146 void *argp1 = 0 ;
7147 int res1 = 0 ;
7148 PyObject *swig_obj[1] ;
7149
7150 if (!args) SWIG_fail;
7151 swig_obj[0] = args;
7152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7153 if (!SWIG_IsOK(res1)) {
7154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7155 }
7156 arg1 = reinterpret_cast< wxGauge * >(argp1);
7157 {
7158 PyThreadState* __tstate = wxPyBeginAllowThreads();
7159 result = (int)((wxGauge const *)arg1)->GetValue();
7160 wxPyEndAllowThreads(__tstate);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 resultobj = SWIG_From_int(static_cast< int >(result));
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7171 PyObject *resultobj = 0;
7172 wxGauge *arg1 = (wxGauge *) 0 ;
7173 bool result;
7174 void *argp1 = 0 ;
7175 int res1 = 0 ;
7176 PyObject *swig_obj[1] ;
7177
7178 if (!args) SWIG_fail;
7179 swig_obj[0] = args;
7180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7181 if (!SWIG_IsOK(res1)) {
7182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7183 }
7184 arg1 = reinterpret_cast< wxGauge * >(argp1);
7185 {
7186 PyThreadState* __tstate = wxPyBeginAllowThreads();
7187 result = (bool)((wxGauge const *)arg1)->IsVertical();
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 {
7192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7193 }
7194 return resultobj;
7195 fail:
7196 return NULL;
7197 }
7198
7199
7200 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7201 PyObject *resultobj = 0;
7202 wxGauge *arg1 = (wxGauge *) 0 ;
7203 int arg2 ;
7204 void *argp1 = 0 ;
7205 int res1 = 0 ;
7206 int val2 ;
7207 int ecode2 = 0 ;
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 char * kwnames[] = {
7211 (char *) "self",(char *) "w", NULL
7212 };
7213
7214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7216 if (!SWIG_IsOK(res1)) {
7217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7218 }
7219 arg1 = reinterpret_cast< wxGauge * >(argp1);
7220 ecode2 = SWIG_AsVal_int(obj1, &val2);
7221 if (!SWIG_IsOK(ecode2)) {
7222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7223 }
7224 arg2 = static_cast< int >(val2);
7225 {
7226 PyThreadState* __tstate = wxPyBeginAllowThreads();
7227 (arg1)->SetShadowWidth(arg2);
7228 wxPyEndAllowThreads(__tstate);
7229 if (PyErr_Occurred()) SWIG_fail;
7230 }
7231 resultobj = SWIG_Py_Void();
7232 return resultobj;
7233 fail:
7234 return NULL;
7235 }
7236
7237
7238 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7239 PyObject *resultobj = 0;
7240 wxGauge *arg1 = (wxGauge *) 0 ;
7241 int result;
7242 void *argp1 = 0 ;
7243 int res1 = 0 ;
7244 PyObject *swig_obj[1] ;
7245
7246 if (!args) SWIG_fail;
7247 swig_obj[0] = args;
7248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7249 if (!SWIG_IsOK(res1)) {
7250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7251 }
7252 arg1 = reinterpret_cast< wxGauge * >(argp1);
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7256 wxPyEndAllowThreads(__tstate);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 resultobj = SWIG_From_int(static_cast< int >(result));
7260 return resultobj;
7261 fail:
7262 return NULL;
7263 }
7264
7265
7266 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7267 PyObject *resultobj = 0;
7268 wxGauge *arg1 = (wxGauge *) 0 ;
7269 int arg2 ;
7270 void *argp1 = 0 ;
7271 int res1 = 0 ;
7272 int val2 ;
7273 int ecode2 = 0 ;
7274 PyObject * obj0 = 0 ;
7275 PyObject * obj1 = 0 ;
7276 char * kwnames[] = {
7277 (char *) "self",(char *) "w", NULL
7278 };
7279
7280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7282 if (!SWIG_IsOK(res1)) {
7283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7284 }
7285 arg1 = reinterpret_cast< wxGauge * >(argp1);
7286 ecode2 = SWIG_AsVal_int(obj1, &val2);
7287 if (!SWIG_IsOK(ecode2)) {
7288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7289 }
7290 arg2 = static_cast< int >(val2);
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 (arg1)->SetBezelFace(arg2);
7294 wxPyEndAllowThreads(__tstate);
7295 if (PyErr_Occurred()) SWIG_fail;
7296 }
7297 resultobj = SWIG_Py_Void();
7298 return resultobj;
7299 fail:
7300 return NULL;
7301 }
7302
7303
7304 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7305 PyObject *resultobj = 0;
7306 wxGauge *arg1 = (wxGauge *) 0 ;
7307 int result;
7308 void *argp1 = 0 ;
7309 int res1 = 0 ;
7310 PyObject *swig_obj[1] ;
7311
7312 if (!args) SWIG_fail;
7313 swig_obj[0] = args;
7314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7315 if (!SWIG_IsOK(res1)) {
7316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7317 }
7318 arg1 = reinterpret_cast< wxGauge * >(argp1);
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7322 wxPyEndAllowThreads(__tstate);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 resultobj = SWIG_From_int(static_cast< int >(result));
7326 return resultobj;
7327 fail:
7328 return NULL;
7329 }
7330
7331
7332 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7333 PyObject *resultobj = 0;
7334 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7335 SwigValueWrapper<wxVisualAttributes > result;
7336 int val1 ;
7337 int ecode1 = 0 ;
7338 PyObject * obj0 = 0 ;
7339 char * kwnames[] = {
7340 (char *) "variant", NULL
7341 };
7342
7343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7344 if (obj0) {
7345 ecode1 = SWIG_AsVal_int(obj0, &val1);
7346 if (!SWIG_IsOK(ecode1)) {
7347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7348 }
7349 arg1 = static_cast< wxWindowVariant >(val1);
7350 }
7351 {
7352 if (!wxPyCheckForApp()) SWIG_fail;
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 result = wxGauge::GetClassDefaultAttributes(arg1);
7355 wxPyEndAllowThreads(__tstate);
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7359 return resultobj;
7360 fail:
7361 return NULL;
7362 }
7363
7364
7365 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7366 PyObject *obj;
7367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7368 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7369 return SWIG_Py_Void();
7370 }
7371
7372 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7373 return SWIG_Python_InitShadowInstance(args);
7374 }
7375
7376 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7377 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7378 return 1;
7379 }
7380
7381
7382 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7383 PyObject *pyobj = 0;
7384
7385 {
7386 #if wxUSE_UNICODE
7387 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7388 #else
7389 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7390 #endif
7391 }
7392 return pyobj;
7393 }
7394
7395
7396 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7397 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7398 return 1;
7399 }
7400
7401
7402 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7403 PyObject *pyobj = 0;
7404
7405 {
7406 #if wxUSE_UNICODE
7407 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7408 #else
7409 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7410 #endif
7411 }
7412 return pyobj;
7413 }
7414
7415
7416 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7417 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7418 return 1;
7419 }
7420
7421
7422 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7423 PyObject *pyobj = 0;
7424
7425 {
7426 #if wxUSE_UNICODE
7427 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7428 #else
7429 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7430 #endif
7431 }
7432 return pyobj;
7433 }
7434
7435
7436 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7437 PyObject *resultobj = 0;
7438 wxWindow *arg1 = (wxWindow *) 0 ;
7439 int arg2 = (int) -1 ;
7440 wxString const &arg3_defvalue = wxPyEmptyString ;
7441 wxString *arg3 = (wxString *) &arg3_defvalue ;
7442 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7443 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7444 wxSize const &arg5_defvalue = wxDefaultSize ;
7445 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7446 long arg6 = (long) 0 ;
7447 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7448 wxString *arg7 = (wxString *) &arg7_defvalue ;
7449 wxStaticBox *result = 0 ;
7450 void *argp1 = 0 ;
7451 int res1 = 0 ;
7452 int val2 ;
7453 int ecode2 = 0 ;
7454 bool temp3 = false ;
7455 wxPoint temp4 ;
7456 wxSize temp5 ;
7457 long val6 ;
7458 int ecode6 = 0 ;
7459 bool temp7 = false ;
7460 PyObject * obj0 = 0 ;
7461 PyObject * obj1 = 0 ;
7462 PyObject * obj2 = 0 ;
7463 PyObject * obj3 = 0 ;
7464 PyObject * obj4 = 0 ;
7465 PyObject * obj5 = 0 ;
7466 PyObject * obj6 = 0 ;
7467 char * kwnames[] = {
7468 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7469 };
7470
7471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7473 if (!SWIG_IsOK(res1)) {
7474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7475 }
7476 arg1 = reinterpret_cast< wxWindow * >(argp1);
7477 if (obj1) {
7478 ecode2 = SWIG_AsVal_int(obj1, &val2);
7479 if (!SWIG_IsOK(ecode2)) {
7480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7481 }
7482 arg2 = static_cast< int >(val2);
7483 }
7484 if (obj2) {
7485 {
7486 arg3 = wxString_in_helper(obj2);
7487 if (arg3 == NULL) SWIG_fail;
7488 temp3 = true;
7489 }
7490 }
7491 if (obj3) {
7492 {
7493 arg4 = &temp4;
7494 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7495 }
7496 }
7497 if (obj4) {
7498 {
7499 arg5 = &temp5;
7500 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7501 }
7502 }
7503 if (obj5) {
7504 ecode6 = SWIG_AsVal_long(obj5, &val6);
7505 if (!SWIG_IsOK(ecode6)) {
7506 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7507 }
7508 arg6 = static_cast< long >(val6);
7509 }
7510 if (obj6) {
7511 {
7512 arg7 = wxString_in_helper(obj6);
7513 if (arg7 == NULL) SWIG_fail;
7514 temp7 = true;
7515 }
7516 }
7517 {
7518 if (!wxPyCheckForApp()) SWIG_fail;
7519 PyThreadState* __tstate = wxPyBeginAllowThreads();
7520 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7521 wxPyEndAllowThreads(__tstate);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7525 {
7526 if (temp3)
7527 delete arg3;
7528 }
7529 {
7530 if (temp7)
7531 delete arg7;
7532 }
7533 return resultobj;
7534 fail:
7535 {
7536 if (temp3)
7537 delete arg3;
7538 }
7539 {
7540 if (temp7)
7541 delete arg7;
7542 }
7543 return NULL;
7544 }
7545
7546
7547 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7548 PyObject *resultobj = 0;
7549 wxStaticBox *result = 0 ;
7550
7551 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7552 {
7553 if (!wxPyCheckForApp()) SWIG_fail;
7554 PyThreadState* __tstate = wxPyBeginAllowThreads();
7555 result = (wxStaticBox *)new wxStaticBox();
7556 wxPyEndAllowThreads(__tstate);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7560 return resultobj;
7561 fail:
7562 return NULL;
7563 }
7564
7565
7566 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7567 PyObject *resultobj = 0;
7568 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7569 wxWindow *arg2 = (wxWindow *) 0 ;
7570 int arg3 = (int) -1 ;
7571 wxString const &arg4_defvalue = wxPyEmptyString ;
7572 wxString *arg4 = (wxString *) &arg4_defvalue ;
7573 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7574 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7575 wxSize const &arg6_defvalue = wxDefaultSize ;
7576 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7577 long arg7 = (long) 0 ;
7578 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7579 wxString *arg8 = (wxString *) &arg8_defvalue ;
7580 bool result;
7581 void *argp1 = 0 ;
7582 int res1 = 0 ;
7583 void *argp2 = 0 ;
7584 int res2 = 0 ;
7585 int val3 ;
7586 int ecode3 = 0 ;
7587 bool temp4 = false ;
7588 wxPoint temp5 ;
7589 wxSize temp6 ;
7590 long val7 ;
7591 int ecode7 = 0 ;
7592 bool temp8 = false ;
7593 PyObject * obj0 = 0 ;
7594 PyObject * obj1 = 0 ;
7595 PyObject * obj2 = 0 ;
7596 PyObject * obj3 = 0 ;
7597 PyObject * obj4 = 0 ;
7598 PyObject * obj5 = 0 ;
7599 PyObject * obj6 = 0 ;
7600 PyObject * obj7 = 0 ;
7601 char * kwnames[] = {
7602 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7603 };
7604
7605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7607 if (!SWIG_IsOK(res1)) {
7608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7609 }
7610 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7612 if (!SWIG_IsOK(res2)) {
7613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7614 }
7615 arg2 = reinterpret_cast< wxWindow * >(argp2);
7616 if (obj2) {
7617 ecode3 = SWIG_AsVal_int(obj2, &val3);
7618 if (!SWIG_IsOK(ecode3)) {
7619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7620 }
7621 arg3 = static_cast< int >(val3);
7622 }
7623 if (obj3) {
7624 {
7625 arg4 = wxString_in_helper(obj3);
7626 if (arg4 == NULL) SWIG_fail;
7627 temp4 = true;
7628 }
7629 }
7630 if (obj4) {
7631 {
7632 arg5 = &temp5;
7633 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7634 }
7635 }
7636 if (obj5) {
7637 {
7638 arg6 = &temp6;
7639 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7640 }
7641 }
7642 if (obj6) {
7643 ecode7 = SWIG_AsVal_long(obj6, &val7);
7644 if (!SWIG_IsOK(ecode7)) {
7645 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7646 }
7647 arg7 = static_cast< long >(val7);
7648 }
7649 if (obj7) {
7650 {
7651 arg8 = wxString_in_helper(obj7);
7652 if (arg8 == NULL) SWIG_fail;
7653 temp8 = true;
7654 }
7655 }
7656 {
7657 PyThreadState* __tstate = wxPyBeginAllowThreads();
7658 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7659 wxPyEndAllowThreads(__tstate);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 {
7663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7664 }
7665 {
7666 if (temp4)
7667 delete arg4;
7668 }
7669 {
7670 if (temp8)
7671 delete arg8;
7672 }
7673 return resultobj;
7674 fail:
7675 {
7676 if (temp4)
7677 delete arg4;
7678 }
7679 {
7680 if (temp8)
7681 delete arg8;
7682 }
7683 return NULL;
7684 }
7685
7686
7687 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7688 PyObject *resultobj = 0;
7689 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7690 SwigValueWrapper<wxVisualAttributes > result;
7691 int val1 ;
7692 int ecode1 = 0 ;
7693 PyObject * obj0 = 0 ;
7694 char * kwnames[] = {
7695 (char *) "variant", NULL
7696 };
7697
7698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7699 if (obj0) {
7700 ecode1 = SWIG_AsVal_int(obj0, &val1);
7701 if (!SWIG_IsOK(ecode1)) {
7702 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7703 }
7704 arg1 = static_cast< wxWindowVariant >(val1);
7705 }
7706 {
7707 if (!wxPyCheckForApp()) SWIG_fail;
7708 PyThreadState* __tstate = wxPyBeginAllowThreads();
7709 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7710 wxPyEndAllowThreads(__tstate);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7721 PyObject *obj;
7722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7723 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7724 return SWIG_Py_Void();
7725 }
7726
7727 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7728 return SWIG_Python_InitShadowInstance(args);
7729 }
7730
7731 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj = 0;
7733 wxWindow *arg1 = (wxWindow *) 0 ;
7734 int arg2 = (int) -1 ;
7735 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7736 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7737 wxSize const &arg4_defvalue = wxDefaultSize ;
7738 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7739 long arg5 = (long) wxLI_HORIZONTAL ;
7740 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7741 wxString *arg6 = (wxString *) &arg6_defvalue ;
7742 wxStaticLine *result = 0 ;
7743 void *argp1 = 0 ;
7744 int res1 = 0 ;
7745 int val2 ;
7746 int ecode2 = 0 ;
7747 wxPoint temp3 ;
7748 wxSize temp4 ;
7749 long val5 ;
7750 int ecode5 = 0 ;
7751 bool temp6 = false ;
7752 PyObject * obj0 = 0 ;
7753 PyObject * obj1 = 0 ;
7754 PyObject * obj2 = 0 ;
7755 PyObject * obj3 = 0 ;
7756 PyObject * obj4 = 0 ;
7757 PyObject * obj5 = 0 ;
7758 char * kwnames[] = {
7759 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7760 };
7761
7762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7764 if (!SWIG_IsOK(res1)) {
7765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7766 }
7767 arg1 = reinterpret_cast< wxWindow * >(argp1);
7768 if (obj1) {
7769 ecode2 = SWIG_AsVal_int(obj1, &val2);
7770 if (!SWIG_IsOK(ecode2)) {
7771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7772 }
7773 arg2 = static_cast< int >(val2);
7774 }
7775 if (obj2) {
7776 {
7777 arg3 = &temp3;
7778 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7779 }
7780 }
7781 if (obj3) {
7782 {
7783 arg4 = &temp4;
7784 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7785 }
7786 }
7787 if (obj4) {
7788 ecode5 = SWIG_AsVal_long(obj4, &val5);
7789 if (!SWIG_IsOK(ecode5)) {
7790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7791 }
7792 arg5 = static_cast< long >(val5);
7793 }
7794 if (obj5) {
7795 {
7796 arg6 = wxString_in_helper(obj5);
7797 if (arg6 == NULL) SWIG_fail;
7798 temp6 = true;
7799 }
7800 }
7801 {
7802 if (!wxPyCheckForApp()) SWIG_fail;
7803 PyThreadState* __tstate = wxPyBeginAllowThreads();
7804 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7805 wxPyEndAllowThreads(__tstate);
7806 if (PyErr_Occurred()) SWIG_fail;
7807 }
7808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7809 {
7810 if (temp6)
7811 delete arg6;
7812 }
7813 return resultobj;
7814 fail:
7815 {
7816 if (temp6)
7817 delete arg6;
7818 }
7819 return NULL;
7820 }
7821
7822
7823 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7824 PyObject *resultobj = 0;
7825 wxStaticLine *result = 0 ;
7826
7827 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7828 {
7829 if (!wxPyCheckForApp()) SWIG_fail;
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 result = (wxStaticLine *)new wxStaticLine();
7832 wxPyEndAllowThreads(__tstate);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7843 PyObject *resultobj = 0;
7844 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7845 wxWindow *arg2 = (wxWindow *) 0 ;
7846 int arg3 = (int) -1 ;
7847 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7848 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7849 wxSize const &arg5_defvalue = wxDefaultSize ;
7850 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7851 long arg6 = (long) wxLI_HORIZONTAL ;
7852 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7853 wxString *arg7 = (wxString *) &arg7_defvalue ;
7854 bool result;
7855 void *argp1 = 0 ;
7856 int res1 = 0 ;
7857 void *argp2 = 0 ;
7858 int res2 = 0 ;
7859 int val3 ;
7860 int ecode3 = 0 ;
7861 wxPoint temp4 ;
7862 wxSize temp5 ;
7863 long val6 ;
7864 int ecode6 = 0 ;
7865 bool temp7 = false ;
7866 PyObject * obj0 = 0 ;
7867 PyObject * obj1 = 0 ;
7868 PyObject * obj2 = 0 ;
7869 PyObject * obj3 = 0 ;
7870 PyObject * obj4 = 0 ;
7871 PyObject * obj5 = 0 ;
7872 PyObject * obj6 = 0 ;
7873 char * kwnames[] = {
7874 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7875 };
7876
7877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7879 if (!SWIG_IsOK(res1)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7881 }
7882 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7884 if (!SWIG_IsOK(res2)) {
7885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7886 }
7887 arg2 = reinterpret_cast< wxWindow * >(argp2);
7888 if (obj2) {
7889 ecode3 = SWIG_AsVal_int(obj2, &val3);
7890 if (!SWIG_IsOK(ecode3)) {
7891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7892 }
7893 arg3 = static_cast< int >(val3);
7894 }
7895 if (obj3) {
7896 {
7897 arg4 = &temp4;
7898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7899 }
7900 }
7901 if (obj4) {
7902 {
7903 arg5 = &temp5;
7904 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7905 }
7906 }
7907 if (obj5) {
7908 ecode6 = SWIG_AsVal_long(obj5, &val6);
7909 if (!SWIG_IsOK(ecode6)) {
7910 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7911 }
7912 arg6 = static_cast< long >(val6);
7913 }
7914 if (obj6) {
7915 {
7916 arg7 = wxString_in_helper(obj6);
7917 if (arg7 == NULL) SWIG_fail;
7918 temp7 = true;
7919 }
7920 }
7921 {
7922 PyThreadState* __tstate = wxPyBeginAllowThreads();
7923 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 {
7928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7929 }
7930 {
7931 if (temp7)
7932 delete arg7;
7933 }
7934 return resultobj;
7935 fail:
7936 {
7937 if (temp7)
7938 delete arg7;
7939 }
7940 return NULL;
7941 }
7942
7943
7944 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7945 PyObject *resultobj = 0;
7946 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7947 bool result;
7948 void *argp1 = 0 ;
7949 int res1 = 0 ;
7950 PyObject *swig_obj[1] ;
7951
7952 if (!args) SWIG_fail;
7953 swig_obj[0] = args;
7954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7955 if (!SWIG_IsOK(res1)) {
7956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7957 }
7958 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 {
7966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7967 }
7968 return resultobj;
7969 fail:
7970 return NULL;
7971 }
7972
7973
7974 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7975 PyObject *resultobj = 0;
7976 int result;
7977
7978 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7979 {
7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
7981 result = (int)wxStaticLine::GetDefaultSize();
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 resultobj = SWIG_From_int(static_cast< int >(result));
7986 return resultobj;
7987 fail:
7988 return NULL;
7989 }
7990
7991
7992 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = 0;
7994 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7995 SwigValueWrapper<wxVisualAttributes > result;
7996 int val1 ;
7997 int ecode1 = 0 ;
7998 PyObject * obj0 = 0 ;
7999 char * kwnames[] = {
8000 (char *) "variant", NULL
8001 };
8002
8003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8004 if (obj0) {
8005 ecode1 = SWIG_AsVal_int(obj0, &val1);
8006 if (!SWIG_IsOK(ecode1)) {
8007 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8008 }
8009 arg1 = static_cast< wxWindowVariant >(val1);
8010 }
8011 {
8012 if (!wxPyCheckForApp()) SWIG_fail;
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8019 return resultobj;
8020 fail:
8021 return NULL;
8022 }
8023
8024
8025 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8026 PyObject *obj;
8027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8028 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8029 return SWIG_Py_Void();
8030 }
8031
8032 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8033 return SWIG_Python_InitShadowInstance(args);
8034 }
8035
8036 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8037 PyObject *resultobj = 0;
8038 wxWindow *arg1 = (wxWindow *) 0 ;
8039 int arg2 = (int) -1 ;
8040 wxString const &arg3_defvalue = wxPyEmptyString ;
8041 wxString *arg3 = (wxString *) &arg3_defvalue ;
8042 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8043 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8044 wxSize const &arg5_defvalue = wxDefaultSize ;
8045 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8046 long arg6 = (long) 0 ;
8047 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8048 wxString *arg7 = (wxString *) &arg7_defvalue ;
8049 wxStaticText *result = 0 ;
8050 void *argp1 = 0 ;
8051 int res1 = 0 ;
8052 int val2 ;
8053 int ecode2 = 0 ;
8054 bool temp3 = false ;
8055 wxPoint temp4 ;
8056 wxSize temp5 ;
8057 long val6 ;
8058 int ecode6 = 0 ;
8059 bool temp7 = false ;
8060 PyObject * obj0 = 0 ;
8061 PyObject * obj1 = 0 ;
8062 PyObject * obj2 = 0 ;
8063 PyObject * obj3 = 0 ;
8064 PyObject * obj4 = 0 ;
8065 PyObject * obj5 = 0 ;
8066 PyObject * obj6 = 0 ;
8067 char * kwnames[] = {
8068 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8069 };
8070
8071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8073 if (!SWIG_IsOK(res1)) {
8074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8075 }
8076 arg1 = reinterpret_cast< wxWindow * >(argp1);
8077 if (obj1) {
8078 ecode2 = SWIG_AsVal_int(obj1, &val2);
8079 if (!SWIG_IsOK(ecode2)) {
8080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8081 }
8082 arg2 = static_cast< int >(val2);
8083 }
8084 if (obj2) {
8085 {
8086 arg3 = wxString_in_helper(obj2);
8087 if (arg3 == NULL) SWIG_fail;
8088 temp3 = true;
8089 }
8090 }
8091 if (obj3) {
8092 {
8093 arg4 = &temp4;
8094 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8095 }
8096 }
8097 if (obj4) {
8098 {
8099 arg5 = &temp5;
8100 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8101 }
8102 }
8103 if (obj5) {
8104 ecode6 = SWIG_AsVal_long(obj5, &val6);
8105 if (!SWIG_IsOK(ecode6)) {
8106 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8107 }
8108 arg6 = static_cast< long >(val6);
8109 }
8110 if (obj6) {
8111 {
8112 arg7 = wxString_in_helper(obj6);
8113 if (arg7 == NULL) SWIG_fail;
8114 temp7 = true;
8115 }
8116 }
8117 {
8118 if (!wxPyCheckForApp()) SWIG_fail;
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8121 wxPyEndAllowThreads(__tstate);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8125 {
8126 if (temp3)
8127 delete arg3;
8128 }
8129 {
8130 if (temp7)
8131 delete arg7;
8132 }
8133 return resultobj;
8134 fail:
8135 {
8136 if (temp3)
8137 delete arg3;
8138 }
8139 {
8140 if (temp7)
8141 delete arg7;
8142 }
8143 return NULL;
8144 }
8145
8146
8147 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8148 PyObject *resultobj = 0;
8149 wxStaticText *result = 0 ;
8150
8151 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8152 {
8153 if (!wxPyCheckForApp()) SWIG_fail;
8154 PyThreadState* __tstate = wxPyBeginAllowThreads();
8155 result = (wxStaticText *)new wxStaticText();
8156 wxPyEndAllowThreads(__tstate);
8157 if (PyErr_Occurred()) SWIG_fail;
8158 }
8159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8160 return resultobj;
8161 fail:
8162 return NULL;
8163 }
8164
8165
8166 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8167 PyObject *resultobj = 0;
8168 wxStaticText *arg1 = (wxStaticText *) 0 ;
8169 wxWindow *arg2 = (wxWindow *) 0 ;
8170 int arg3 = (int) -1 ;
8171 wxString const &arg4_defvalue = wxPyEmptyString ;
8172 wxString *arg4 = (wxString *) &arg4_defvalue ;
8173 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8174 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8175 wxSize const &arg6_defvalue = wxDefaultSize ;
8176 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8177 long arg7 = (long) 0 ;
8178 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8179 wxString *arg8 = (wxString *) &arg8_defvalue ;
8180 bool result;
8181 void *argp1 = 0 ;
8182 int res1 = 0 ;
8183 void *argp2 = 0 ;
8184 int res2 = 0 ;
8185 int val3 ;
8186 int ecode3 = 0 ;
8187 bool temp4 = false ;
8188 wxPoint temp5 ;
8189 wxSize temp6 ;
8190 long val7 ;
8191 int ecode7 = 0 ;
8192 bool temp8 = false ;
8193 PyObject * obj0 = 0 ;
8194 PyObject * obj1 = 0 ;
8195 PyObject * obj2 = 0 ;
8196 PyObject * obj3 = 0 ;
8197 PyObject * obj4 = 0 ;
8198 PyObject * obj5 = 0 ;
8199 PyObject * obj6 = 0 ;
8200 PyObject * obj7 = 0 ;
8201 char * kwnames[] = {
8202 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8203 };
8204
8205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8207 if (!SWIG_IsOK(res1)) {
8208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8209 }
8210 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8212 if (!SWIG_IsOK(res2)) {
8213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8214 }
8215 arg2 = reinterpret_cast< wxWindow * >(argp2);
8216 if (obj2) {
8217 ecode3 = SWIG_AsVal_int(obj2, &val3);
8218 if (!SWIG_IsOK(ecode3)) {
8219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8220 }
8221 arg3 = static_cast< int >(val3);
8222 }
8223 if (obj3) {
8224 {
8225 arg4 = wxString_in_helper(obj3);
8226 if (arg4 == NULL) SWIG_fail;
8227 temp4 = true;
8228 }
8229 }
8230 if (obj4) {
8231 {
8232 arg5 = &temp5;
8233 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8234 }
8235 }
8236 if (obj5) {
8237 {
8238 arg6 = &temp6;
8239 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8240 }
8241 }
8242 if (obj6) {
8243 ecode7 = SWIG_AsVal_long(obj6, &val7);
8244 if (!SWIG_IsOK(ecode7)) {
8245 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8246 }
8247 arg7 = static_cast< long >(val7);
8248 }
8249 if (obj7) {
8250 {
8251 arg8 = wxString_in_helper(obj7);
8252 if (arg8 == NULL) SWIG_fail;
8253 temp8 = true;
8254 }
8255 }
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 {
8263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8264 }
8265 {
8266 if (temp4)
8267 delete arg4;
8268 }
8269 {
8270 if (temp8)
8271 delete arg8;
8272 }
8273 return resultobj;
8274 fail:
8275 {
8276 if (temp4)
8277 delete arg4;
8278 }
8279 {
8280 if (temp8)
8281 delete arg8;
8282 }
8283 return NULL;
8284 }
8285
8286
8287 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8288 PyObject *resultobj = 0;
8289 wxStaticText *arg1 = (wxStaticText *) 0 ;
8290 int arg2 ;
8291 void *argp1 = 0 ;
8292 int res1 = 0 ;
8293 int val2 ;
8294 int ecode2 = 0 ;
8295 PyObject * obj0 = 0 ;
8296 PyObject * obj1 = 0 ;
8297 char * kwnames[] = {
8298 (char *) "self",(char *) "width", NULL
8299 };
8300
8301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8303 if (!SWIG_IsOK(res1)) {
8304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8305 }
8306 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8307 ecode2 = SWIG_AsVal_int(obj1, &val2);
8308 if (!SWIG_IsOK(ecode2)) {
8309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8310 }
8311 arg2 = static_cast< int >(val2);
8312 {
8313 PyThreadState* __tstate = wxPyBeginAllowThreads();
8314 (arg1)->Wrap(arg2);
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 resultobj = SWIG_Py_Void();
8319 return resultobj;
8320 fail:
8321 return NULL;
8322 }
8323
8324
8325 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8326 PyObject *resultobj = 0;
8327 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8328 SwigValueWrapper<wxVisualAttributes > result;
8329 int val1 ;
8330 int ecode1 = 0 ;
8331 PyObject * obj0 = 0 ;
8332 char * kwnames[] = {
8333 (char *) "variant", NULL
8334 };
8335
8336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8337 if (obj0) {
8338 ecode1 = SWIG_AsVal_int(obj0, &val1);
8339 if (!SWIG_IsOK(ecode1)) {
8340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8341 }
8342 arg1 = static_cast< wxWindowVariant >(val1);
8343 }
8344 {
8345 if (!wxPyCheckForApp()) SWIG_fail;
8346 PyThreadState* __tstate = wxPyBeginAllowThreads();
8347 result = wxStaticText::GetClassDefaultAttributes(arg1);
8348 wxPyEndAllowThreads(__tstate);
8349 if (PyErr_Occurred()) SWIG_fail;
8350 }
8351 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8352 return resultobj;
8353 fail:
8354 return NULL;
8355 }
8356
8357
8358 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8359 PyObject *obj;
8360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8361 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8362 return SWIG_Py_Void();
8363 }
8364
8365 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8366 return SWIG_Python_InitShadowInstance(args);
8367 }
8368
8369 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8370 PyObject *resultobj = 0;
8371 wxWindow *arg1 = (wxWindow *) 0 ;
8372 int arg2 = (int) -1 ;
8373 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8374 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8375 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8376 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8377 wxSize const &arg5_defvalue = wxDefaultSize ;
8378 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8379 long arg6 = (long) 0 ;
8380 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8381 wxString *arg7 = (wxString *) &arg7_defvalue ;
8382 wxStaticBitmap *result = 0 ;
8383 void *argp1 = 0 ;
8384 int res1 = 0 ;
8385 int val2 ;
8386 int ecode2 = 0 ;
8387 void *argp3 = 0 ;
8388 int res3 = 0 ;
8389 wxPoint temp4 ;
8390 wxSize temp5 ;
8391 long val6 ;
8392 int ecode6 = 0 ;
8393 bool temp7 = false ;
8394 PyObject * obj0 = 0 ;
8395 PyObject * obj1 = 0 ;
8396 PyObject * obj2 = 0 ;
8397 PyObject * obj3 = 0 ;
8398 PyObject * obj4 = 0 ;
8399 PyObject * obj5 = 0 ;
8400 PyObject * obj6 = 0 ;
8401 char * kwnames[] = {
8402 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8403 };
8404
8405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8407 if (!SWIG_IsOK(res1)) {
8408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8409 }
8410 arg1 = reinterpret_cast< wxWindow * >(argp1);
8411 if (obj1) {
8412 ecode2 = SWIG_AsVal_int(obj1, &val2);
8413 if (!SWIG_IsOK(ecode2)) {
8414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8415 }
8416 arg2 = static_cast< int >(val2);
8417 }
8418 if (obj2) {
8419 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8420 if (!SWIG_IsOK(res3)) {
8421 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8422 }
8423 if (!argp3) {
8424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8425 }
8426 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8427 }
8428 if (obj3) {
8429 {
8430 arg4 = &temp4;
8431 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8432 }
8433 }
8434 if (obj4) {
8435 {
8436 arg5 = &temp5;
8437 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8438 }
8439 }
8440 if (obj5) {
8441 ecode6 = SWIG_AsVal_long(obj5, &val6);
8442 if (!SWIG_IsOK(ecode6)) {
8443 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8444 }
8445 arg6 = static_cast< long >(val6);
8446 }
8447 if (obj6) {
8448 {
8449 arg7 = wxString_in_helper(obj6);
8450 if (arg7 == NULL) SWIG_fail;
8451 temp7 = true;
8452 }
8453 }
8454 {
8455 if (!wxPyCheckForApp()) SWIG_fail;
8456 PyThreadState* __tstate = wxPyBeginAllowThreads();
8457 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8458 wxPyEndAllowThreads(__tstate);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8462 {
8463 if (temp7)
8464 delete arg7;
8465 }
8466 return resultobj;
8467 fail:
8468 {
8469 if (temp7)
8470 delete arg7;
8471 }
8472 return NULL;
8473 }
8474
8475
8476 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8477 PyObject *resultobj = 0;
8478 wxStaticBitmap *result = 0 ;
8479
8480 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8481 {
8482 if (!wxPyCheckForApp()) SWIG_fail;
8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
8484 result = (wxStaticBitmap *)new wxStaticBitmap();
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8489 return resultobj;
8490 fail:
8491 return NULL;
8492 }
8493
8494
8495 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj = 0;
8497 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8498 wxWindow *arg2 = (wxWindow *) 0 ;
8499 int arg3 = (int) -1 ;
8500 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8501 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8502 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8503 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8504 wxSize const &arg6_defvalue = wxDefaultSize ;
8505 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8506 long arg7 = (long) 0 ;
8507 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8508 wxString *arg8 = (wxString *) &arg8_defvalue ;
8509 bool result;
8510 void *argp1 = 0 ;
8511 int res1 = 0 ;
8512 void *argp2 = 0 ;
8513 int res2 = 0 ;
8514 int val3 ;
8515 int ecode3 = 0 ;
8516 void *argp4 = 0 ;
8517 int res4 = 0 ;
8518 wxPoint temp5 ;
8519 wxSize temp6 ;
8520 long val7 ;
8521 int ecode7 = 0 ;
8522 bool temp8 = false ;
8523 PyObject * obj0 = 0 ;
8524 PyObject * obj1 = 0 ;
8525 PyObject * obj2 = 0 ;
8526 PyObject * obj3 = 0 ;
8527 PyObject * obj4 = 0 ;
8528 PyObject * obj5 = 0 ;
8529 PyObject * obj6 = 0 ;
8530 PyObject * obj7 = 0 ;
8531 char * kwnames[] = {
8532 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8533 };
8534
8535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8537 if (!SWIG_IsOK(res1)) {
8538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8539 }
8540 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8542 if (!SWIG_IsOK(res2)) {
8543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8544 }
8545 arg2 = reinterpret_cast< wxWindow * >(argp2);
8546 if (obj2) {
8547 ecode3 = SWIG_AsVal_int(obj2, &val3);
8548 if (!SWIG_IsOK(ecode3)) {
8549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8550 }
8551 arg3 = static_cast< int >(val3);
8552 }
8553 if (obj3) {
8554 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8555 if (!SWIG_IsOK(res4)) {
8556 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8557 }
8558 if (!argp4) {
8559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8560 }
8561 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8562 }
8563 if (obj4) {
8564 {
8565 arg5 = &temp5;
8566 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8567 }
8568 }
8569 if (obj5) {
8570 {
8571 arg6 = &temp6;
8572 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8573 }
8574 }
8575 if (obj6) {
8576 ecode7 = SWIG_AsVal_long(obj6, &val7);
8577 if (!SWIG_IsOK(ecode7)) {
8578 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8579 }
8580 arg7 = static_cast< long >(val7);
8581 }
8582 if (obj7) {
8583 {
8584 arg8 = wxString_in_helper(obj7);
8585 if (arg8 == NULL) SWIG_fail;
8586 temp8 = true;
8587 }
8588 }
8589 {
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8592 wxPyEndAllowThreads(__tstate);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 {
8596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8597 }
8598 {
8599 if (temp8)
8600 delete arg8;
8601 }
8602 return resultobj;
8603 fail:
8604 {
8605 if (temp8)
8606 delete arg8;
8607 }
8608 return NULL;
8609 }
8610
8611
8612 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8613 PyObject *resultobj = 0;
8614 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8615 wxBitmap result;
8616 void *argp1 = 0 ;
8617 int res1 = 0 ;
8618 PyObject *swig_obj[1] ;
8619
8620 if (!args) SWIG_fail;
8621 swig_obj[0] = args;
8622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8623 if (!SWIG_IsOK(res1)) {
8624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8625 }
8626 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 result = (arg1)->GetBitmap();
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8634 return resultobj;
8635 fail:
8636 return NULL;
8637 }
8638
8639
8640 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj = 0;
8642 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8643 wxBitmap *arg2 = 0 ;
8644 void *argp1 = 0 ;
8645 int res1 = 0 ;
8646 void *argp2 = 0 ;
8647 int res2 = 0 ;
8648 PyObject * obj0 = 0 ;
8649 PyObject * obj1 = 0 ;
8650 char * kwnames[] = {
8651 (char *) "self",(char *) "bitmap", NULL
8652 };
8653
8654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8656 if (!SWIG_IsOK(res1)) {
8657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8658 }
8659 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8661 if (!SWIG_IsOK(res2)) {
8662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8663 }
8664 if (!argp2) {
8665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8666 }
8667 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8671 wxPyEndAllowThreads(__tstate);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 }
8674 resultobj = SWIG_Py_Void();
8675 return resultobj;
8676 fail:
8677 return NULL;
8678 }
8679
8680
8681 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj = 0;
8683 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8684 wxIcon *arg2 = 0 ;
8685 void *argp1 = 0 ;
8686 int res1 = 0 ;
8687 void *argp2 = 0 ;
8688 int res2 = 0 ;
8689 PyObject * obj0 = 0 ;
8690 PyObject * obj1 = 0 ;
8691 char * kwnames[] = {
8692 (char *) "self",(char *) "icon", NULL
8693 };
8694
8695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8697 if (!SWIG_IsOK(res1)) {
8698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8699 }
8700 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8702 if (!SWIG_IsOK(res2)) {
8703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8704 }
8705 if (!argp2) {
8706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8707 }
8708 arg2 = reinterpret_cast< wxIcon * >(argp2);
8709 {
8710 PyThreadState* __tstate = wxPyBeginAllowThreads();
8711 (arg1)->SetIcon((wxIcon const &)*arg2);
8712 wxPyEndAllowThreads(__tstate);
8713 if (PyErr_Occurred()) SWIG_fail;
8714 }
8715 resultobj = SWIG_Py_Void();
8716 return resultobj;
8717 fail:
8718 return NULL;
8719 }
8720
8721
8722 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj = 0;
8724 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8725 SwigValueWrapper<wxVisualAttributes > result;
8726 int val1 ;
8727 int ecode1 = 0 ;
8728 PyObject * obj0 = 0 ;
8729 char * kwnames[] = {
8730 (char *) "variant", NULL
8731 };
8732
8733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8734 if (obj0) {
8735 ecode1 = SWIG_AsVal_int(obj0, &val1);
8736 if (!SWIG_IsOK(ecode1)) {
8737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8738 }
8739 arg1 = static_cast< wxWindowVariant >(val1);
8740 }
8741 {
8742 if (!wxPyCheckForApp()) SWIG_fail;
8743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8744 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8749 return resultobj;
8750 fail:
8751 return NULL;
8752 }
8753
8754
8755 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8756 PyObject *obj;
8757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8758 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8759 return SWIG_Py_Void();
8760 }
8761
8762 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8763 return SWIG_Python_InitShadowInstance(args);
8764 }
8765
8766 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8767 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8768 return 1;
8769 }
8770
8771
8772 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8773 PyObject *pyobj = 0;
8774
8775 {
8776 #if wxUSE_UNICODE
8777 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8778 #else
8779 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8780 #endif
8781 }
8782 return pyobj;
8783 }
8784
8785
8786 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8787 PyObject *resultobj = 0;
8788 wxWindow *arg1 = (wxWindow *) 0 ;
8789 int arg2 = (int) -1 ;
8790 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8791 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8792 wxSize const &arg4_defvalue = wxDefaultSize ;
8793 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8794 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8795 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8796 long arg6 = (long) 0 ;
8797 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8798 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8799 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8800 wxString *arg8 = (wxString *) &arg8_defvalue ;
8801 wxListBox *result = 0 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 int val2 ;
8805 int ecode2 = 0 ;
8806 wxPoint temp3 ;
8807 wxSize temp4 ;
8808 bool temp5 = false ;
8809 long val6 ;
8810 int ecode6 = 0 ;
8811 void *argp7 = 0 ;
8812 int res7 = 0 ;
8813 bool temp8 = false ;
8814 PyObject * obj0 = 0 ;
8815 PyObject * obj1 = 0 ;
8816 PyObject * obj2 = 0 ;
8817 PyObject * obj3 = 0 ;
8818 PyObject * obj4 = 0 ;
8819 PyObject * obj5 = 0 ;
8820 PyObject * obj6 = 0 ;
8821 PyObject * obj7 = 0 ;
8822 char * kwnames[] = {
8823 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8824 };
8825
8826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8828 if (!SWIG_IsOK(res1)) {
8829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8830 }
8831 arg1 = reinterpret_cast< wxWindow * >(argp1);
8832 if (obj1) {
8833 ecode2 = SWIG_AsVal_int(obj1, &val2);
8834 if (!SWIG_IsOK(ecode2)) {
8835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8836 }
8837 arg2 = static_cast< int >(val2);
8838 }
8839 if (obj2) {
8840 {
8841 arg3 = &temp3;
8842 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8843 }
8844 }
8845 if (obj3) {
8846 {
8847 arg4 = &temp4;
8848 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8849 }
8850 }
8851 if (obj4) {
8852 {
8853 if (! PySequence_Check(obj4)) {
8854 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8855 SWIG_fail;
8856 }
8857 arg5 = new wxArrayString;
8858 temp5 = true;
8859 int i, len=PySequence_Length(obj4);
8860 for (i=0; i<len; i++) {
8861 PyObject* item = PySequence_GetItem(obj4, i);
8862 wxString* s = wxString_in_helper(item);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 arg5->Add(*s);
8865 delete s;
8866 Py_DECREF(item);
8867 }
8868 }
8869 }
8870 if (obj5) {
8871 ecode6 = SWIG_AsVal_long(obj5, &val6);
8872 if (!SWIG_IsOK(ecode6)) {
8873 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8874 }
8875 arg6 = static_cast< long >(val6);
8876 }
8877 if (obj6) {
8878 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8879 if (!SWIG_IsOK(res7)) {
8880 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8881 }
8882 if (!argp7) {
8883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8884 }
8885 arg7 = reinterpret_cast< wxValidator * >(argp7);
8886 }
8887 if (obj7) {
8888 {
8889 arg8 = wxString_in_helper(obj7);
8890 if (arg8 == NULL) SWIG_fail;
8891 temp8 = true;
8892 }
8893 }
8894 {
8895 if (!wxPyCheckForApp()) SWIG_fail;
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8902 {
8903 if (temp5) delete arg5;
8904 }
8905 {
8906 if (temp8)
8907 delete arg8;
8908 }
8909 return resultobj;
8910 fail:
8911 {
8912 if (temp5) delete arg5;
8913 }
8914 {
8915 if (temp8)
8916 delete arg8;
8917 }
8918 return NULL;
8919 }
8920
8921
8922 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8923 PyObject *resultobj = 0;
8924 wxListBox *result = 0 ;
8925
8926 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8927 {
8928 if (!wxPyCheckForApp()) SWIG_fail;
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 result = (wxListBox *)new wxListBox();
8931 wxPyEndAllowThreads(__tstate);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 }
8934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8935 return resultobj;
8936 fail:
8937 return NULL;
8938 }
8939
8940
8941 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj = 0;
8943 wxListBox *arg1 = (wxListBox *) 0 ;
8944 wxWindow *arg2 = (wxWindow *) 0 ;
8945 int arg3 = (int) -1 ;
8946 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8947 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8948 wxSize const &arg5_defvalue = wxDefaultSize ;
8949 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8950 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8951 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8952 long arg7 = (long) 0 ;
8953 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8954 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8955 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8956 wxString *arg9 = (wxString *) &arg9_defvalue ;
8957 bool result;
8958 void *argp1 = 0 ;
8959 int res1 = 0 ;
8960 void *argp2 = 0 ;
8961 int res2 = 0 ;
8962 int val3 ;
8963 int ecode3 = 0 ;
8964 wxPoint temp4 ;
8965 wxSize temp5 ;
8966 bool temp6 = false ;
8967 long val7 ;
8968 int ecode7 = 0 ;
8969 void *argp8 = 0 ;
8970 int res8 = 0 ;
8971 bool temp9 = false ;
8972 PyObject * obj0 = 0 ;
8973 PyObject * obj1 = 0 ;
8974 PyObject * obj2 = 0 ;
8975 PyObject * obj3 = 0 ;
8976 PyObject * obj4 = 0 ;
8977 PyObject * obj5 = 0 ;
8978 PyObject * obj6 = 0 ;
8979 PyObject * obj7 = 0 ;
8980 PyObject * obj8 = 0 ;
8981 char * kwnames[] = {
8982 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8983 };
8984
8985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8987 if (!SWIG_IsOK(res1)) {
8988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8989 }
8990 arg1 = reinterpret_cast< wxListBox * >(argp1);
8991 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8992 if (!SWIG_IsOK(res2)) {
8993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8994 }
8995 arg2 = reinterpret_cast< wxWindow * >(argp2);
8996 if (obj2) {
8997 ecode3 = SWIG_AsVal_int(obj2, &val3);
8998 if (!SWIG_IsOK(ecode3)) {
8999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9000 }
9001 arg3 = static_cast< int >(val3);
9002 }
9003 if (obj3) {
9004 {
9005 arg4 = &temp4;
9006 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9007 }
9008 }
9009 if (obj4) {
9010 {
9011 arg5 = &temp5;
9012 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9013 }
9014 }
9015 if (obj5) {
9016 {
9017 if (! PySequence_Check(obj5)) {
9018 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9019 SWIG_fail;
9020 }
9021 arg6 = new wxArrayString;
9022 temp6 = true;
9023 int i, len=PySequence_Length(obj5);
9024 for (i=0; i<len; i++) {
9025 PyObject* item = PySequence_GetItem(obj5, i);
9026 wxString* s = wxString_in_helper(item);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 arg6->Add(*s);
9029 delete s;
9030 Py_DECREF(item);
9031 }
9032 }
9033 }
9034 if (obj6) {
9035 ecode7 = SWIG_AsVal_long(obj6, &val7);
9036 if (!SWIG_IsOK(ecode7)) {
9037 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9038 }
9039 arg7 = static_cast< long >(val7);
9040 }
9041 if (obj7) {
9042 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9043 if (!SWIG_IsOK(res8)) {
9044 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9045 }
9046 if (!argp8) {
9047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9048 }
9049 arg8 = reinterpret_cast< wxValidator * >(argp8);
9050 }
9051 if (obj8) {
9052 {
9053 arg9 = wxString_in_helper(obj8);
9054 if (arg9 == NULL) SWIG_fail;
9055 temp9 = true;
9056 }
9057 }
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 {
9065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9066 }
9067 {
9068 if (temp6) delete arg6;
9069 }
9070 {
9071 if (temp9)
9072 delete arg9;
9073 }
9074 return resultobj;
9075 fail:
9076 {
9077 if (temp6) delete arg6;
9078 }
9079 {
9080 if (temp9)
9081 delete arg9;
9082 }
9083 return NULL;
9084 }
9085
9086
9087 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = 0;
9089 wxListBox *arg1 = (wxListBox *) 0 ;
9090 wxString *arg2 = 0 ;
9091 int arg3 ;
9092 PyObject *arg4 = (PyObject *) NULL ;
9093 void *argp1 = 0 ;
9094 int res1 = 0 ;
9095 bool temp2 = false ;
9096 int val3 ;
9097 int ecode3 = 0 ;
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
9100 PyObject * obj2 = 0 ;
9101 PyObject * obj3 = 0 ;
9102 char * kwnames[] = {
9103 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9104 };
9105
9106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9108 if (!SWIG_IsOK(res1)) {
9109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9110 }
9111 arg1 = reinterpret_cast< wxListBox * >(argp1);
9112 {
9113 arg2 = wxString_in_helper(obj1);
9114 if (arg2 == NULL) SWIG_fail;
9115 temp2 = true;
9116 }
9117 ecode3 = SWIG_AsVal_int(obj2, &val3);
9118 if (!SWIG_IsOK(ecode3)) {
9119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9120 }
9121 arg3 = static_cast< int >(val3);
9122 if (obj3) {
9123 arg4 = obj3;
9124 }
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 resultobj = SWIG_Py_Void();
9132 {
9133 if (temp2)
9134 delete arg2;
9135 }
9136 return resultobj;
9137 fail:
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return NULL;
9143 }
9144
9145
9146 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj = 0;
9148 wxListBox *arg1 = (wxListBox *) 0 ;
9149 wxArrayString *arg2 = 0 ;
9150 unsigned int arg3 ;
9151 void *argp1 = 0 ;
9152 int res1 = 0 ;
9153 bool temp2 = false ;
9154 unsigned int val3 ;
9155 int ecode3 = 0 ;
9156 PyObject * obj0 = 0 ;
9157 PyObject * obj1 = 0 ;
9158 PyObject * obj2 = 0 ;
9159 char * kwnames[] = {
9160 (char *) "self",(char *) "items",(char *) "pos", NULL
9161 };
9162
9163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9165 if (!SWIG_IsOK(res1)) {
9166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9167 }
9168 arg1 = reinterpret_cast< wxListBox * >(argp1);
9169 {
9170 if (! PySequence_Check(obj1)) {
9171 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9172 SWIG_fail;
9173 }
9174 arg2 = new wxArrayString;
9175 temp2 = true;
9176 int i, len=PySequence_Length(obj1);
9177 for (i=0; i<len; i++) {
9178 PyObject* item = PySequence_GetItem(obj1, i);
9179 wxString* s = wxString_in_helper(item);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 arg2->Add(*s);
9182 delete s;
9183 Py_DECREF(item);
9184 }
9185 }
9186 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9187 if (!SWIG_IsOK(ecode3)) {
9188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9189 }
9190 arg3 = static_cast< unsigned int >(val3);
9191 {
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9194 wxPyEndAllowThreads(__tstate);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 resultobj = SWIG_Py_Void();
9198 {
9199 if (temp2) delete arg2;
9200 }
9201 return resultobj;
9202 fail:
9203 {
9204 if (temp2) delete arg2;
9205 }
9206 return NULL;
9207 }
9208
9209
9210 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9211 PyObject *resultobj = 0;
9212 wxListBox *arg1 = (wxListBox *) 0 ;
9213 wxArrayString *arg2 = 0 ;
9214 void *argp1 = 0 ;
9215 int res1 = 0 ;
9216 bool temp2 = false ;
9217 PyObject * obj0 = 0 ;
9218 PyObject * obj1 = 0 ;
9219 char * kwnames[] = {
9220 (char *) "self",(char *) "items", NULL
9221 };
9222
9223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9225 if (!SWIG_IsOK(res1)) {
9226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9227 }
9228 arg1 = reinterpret_cast< wxListBox * >(argp1);
9229 {
9230 if (! PySequence_Check(obj1)) {
9231 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9232 SWIG_fail;
9233 }
9234 arg2 = new wxArrayString;
9235 temp2 = true;
9236 int i, len=PySequence_Length(obj1);
9237 for (i=0; i<len; i++) {
9238 PyObject* item = PySequence_GetItem(obj1, i);
9239 wxString* s = wxString_in_helper(item);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 arg2->Add(*s);
9242 delete s;
9243 Py_DECREF(item);
9244 }
9245 }
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 (arg1)->Set((wxArrayString const &)*arg2);
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 resultobj = SWIG_Py_Void();
9253 {
9254 if (temp2) delete arg2;
9255 }
9256 return resultobj;
9257 fail:
9258 {
9259 if (temp2) delete arg2;
9260 }
9261 return NULL;
9262 }
9263
9264
9265 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9266 PyObject *resultobj = 0;
9267 wxListBox *arg1 = (wxListBox *) 0 ;
9268 int arg2 ;
9269 bool result;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 int val2 ;
9273 int ecode2 = 0 ;
9274 PyObject * obj0 = 0 ;
9275 PyObject * obj1 = 0 ;
9276 char * kwnames[] = {
9277 (char *) "self",(char *) "n", NULL
9278 };
9279
9280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9282 if (!SWIG_IsOK(res1)) {
9283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9284 }
9285 arg1 = reinterpret_cast< wxListBox * >(argp1);
9286 ecode2 = SWIG_AsVal_int(obj1, &val2);
9287 if (!SWIG_IsOK(ecode2)) {
9288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9289 }
9290 arg2 = static_cast< int >(val2);
9291 {
9292 PyThreadState* __tstate = wxPyBeginAllowThreads();
9293 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 {
9298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9299 }
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9307 PyObject *resultobj = 0;
9308 wxListBox *arg1 = (wxListBox *) 0 ;
9309 int arg2 ;
9310 bool arg3 = (bool) true ;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 int val2 ;
9314 int ecode2 = 0 ;
9315 bool val3 ;
9316 int ecode3 = 0 ;
9317 PyObject * obj0 = 0 ;
9318 PyObject * obj1 = 0 ;
9319 PyObject * obj2 = 0 ;
9320 char * kwnames[] = {
9321 (char *) "self",(char *) "n",(char *) "select", NULL
9322 };
9323
9324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9326 if (!SWIG_IsOK(res1)) {
9327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9328 }
9329 arg1 = reinterpret_cast< wxListBox * >(argp1);
9330 ecode2 = SWIG_AsVal_int(obj1, &val2);
9331 if (!SWIG_IsOK(ecode2)) {
9332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9333 }
9334 arg2 = static_cast< int >(val2);
9335 if (obj2) {
9336 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9337 if (!SWIG_IsOK(ecode3)) {
9338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9339 }
9340 arg3 = static_cast< bool >(val3);
9341 }
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 (arg1)->SetSelection(arg2,arg3);
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 resultobj = SWIG_Py_Void();
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9356 PyObject *resultobj = 0;
9357 wxListBox *arg1 = (wxListBox *) 0 ;
9358 int arg2 ;
9359 void *argp1 = 0 ;
9360 int res1 = 0 ;
9361 int val2 ;
9362 int ecode2 = 0 ;
9363 PyObject * obj0 = 0 ;
9364 PyObject * obj1 = 0 ;
9365 char * kwnames[] = {
9366 (char *) "self",(char *) "n", NULL
9367 };
9368
9369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9371 if (!SWIG_IsOK(res1)) {
9372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9373 }
9374 arg1 = reinterpret_cast< wxListBox * >(argp1);
9375 ecode2 = SWIG_AsVal_int(obj1, &val2);
9376 if (!SWIG_IsOK(ecode2)) {
9377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9378 }
9379 arg2 = static_cast< int >(val2);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 (arg1)->Select(arg2);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_Py_Void();
9387 return resultobj;
9388 fail:
9389 return NULL;
9390 }
9391
9392
9393 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9394 PyObject *resultobj = 0;
9395 wxListBox *arg1 = (wxListBox *) 0 ;
9396 int arg2 ;
9397 void *argp1 = 0 ;
9398 int res1 = 0 ;
9399 int val2 ;
9400 int ecode2 = 0 ;
9401 PyObject * obj0 = 0 ;
9402 PyObject * obj1 = 0 ;
9403 char * kwnames[] = {
9404 (char *) "self",(char *) "n", NULL
9405 };
9406
9407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9409 if (!SWIG_IsOK(res1)) {
9410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9411 }
9412 arg1 = reinterpret_cast< wxListBox * >(argp1);
9413 ecode2 = SWIG_AsVal_int(obj1, &val2);
9414 if (!SWIG_IsOK(ecode2)) {
9415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9416 }
9417 arg2 = static_cast< int >(val2);
9418 {
9419 PyThreadState* __tstate = wxPyBeginAllowThreads();
9420 (arg1)->Deselect(arg2);
9421 wxPyEndAllowThreads(__tstate);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 resultobj = SWIG_Py_Void();
9425 return resultobj;
9426 fail:
9427 return NULL;
9428 }
9429
9430
9431 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9432 PyObject *resultobj = 0;
9433 wxListBox *arg1 = (wxListBox *) 0 ;
9434 int arg2 = (int) -1 ;
9435 void *argp1 = 0 ;
9436 int res1 = 0 ;
9437 int val2 ;
9438 int ecode2 = 0 ;
9439 PyObject * obj0 = 0 ;
9440 PyObject * obj1 = 0 ;
9441 char * kwnames[] = {
9442 (char *) "self",(char *) "itemToLeaveSelected", NULL
9443 };
9444
9445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9447 if (!SWIG_IsOK(res1)) {
9448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9449 }
9450 arg1 = reinterpret_cast< wxListBox * >(argp1);
9451 if (obj1) {
9452 ecode2 = SWIG_AsVal_int(obj1, &val2);
9453 if (!SWIG_IsOK(ecode2)) {
9454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9455 }
9456 arg2 = static_cast< int >(val2);
9457 }
9458 {
9459 PyThreadState* __tstate = wxPyBeginAllowThreads();
9460 (arg1)->DeselectAll(arg2);
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 resultobj = SWIG_Py_Void();
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9472 PyObject *resultobj = 0;
9473 wxListBox *arg1 = (wxListBox *) 0 ;
9474 wxString *arg2 = 0 ;
9475 bool arg3 = (bool) true ;
9476 bool result;
9477 void *argp1 = 0 ;
9478 int res1 = 0 ;
9479 bool temp2 = false ;
9480 bool val3 ;
9481 int ecode3 = 0 ;
9482 PyObject * obj0 = 0 ;
9483 PyObject * obj1 = 0 ;
9484 PyObject * obj2 = 0 ;
9485 char * kwnames[] = {
9486 (char *) "self",(char *) "s",(char *) "select", NULL
9487 };
9488
9489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9491 if (!SWIG_IsOK(res1)) {
9492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9493 }
9494 arg1 = reinterpret_cast< wxListBox * >(argp1);
9495 {
9496 arg2 = wxString_in_helper(obj1);
9497 if (arg2 == NULL) SWIG_fail;
9498 temp2 = true;
9499 }
9500 if (obj2) {
9501 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9502 if (!SWIG_IsOK(ecode3)) {
9503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9504 }
9505 arg3 = static_cast< bool >(val3);
9506 }
9507 {
9508 PyThreadState* __tstate = wxPyBeginAllowThreads();
9509 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 {
9514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9515 }
9516 {
9517 if (temp2)
9518 delete arg2;
9519 }
9520 return resultobj;
9521 fail:
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return NULL;
9527 }
9528
9529
9530 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9531 PyObject *resultobj = 0;
9532 wxListBox *arg1 = (wxListBox *) 0 ;
9533 PyObject *result = 0 ;
9534 void *argp1 = 0 ;
9535 int res1 = 0 ;
9536 PyObject *swig_obj[1] ;
9537
9538 if (!args) SWIG_fail;
9539 swig_obj[0] = args;
9540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9541 if (!SWIG_IsOK(res1)) {
9542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9543 }
9544 arg1 = reinterpret_cast< wxListBox * >(argp1);
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (PyObject *)wxListBox_GetSelections(arg1);
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 resultobj = result;
9552 return resultobj;
9553 fail:
9554 return NULL;
9555 }
9556
9557
9558 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9559 PyObject *resultobj = 0;
9560 wxListBox *arg1 = (wxListBox *) 0 ;
9561 int arg2 ;
9562 void *argp1 = 0 ;
9563 int res1 = 0 ;
9564 int val2 ;
9565 int ecode2 = 0 ;
9566 PyObject * obj0 = 0 ;
9567 PyObject * obj1 = 0 ;
9568 char * kwnames[] = {
9569 (char *) "self",(char *) "n", NULL
9570 };
9571
9572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9574 if (!SWIG_IsOK(res1)) {
9575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9576 }
9577 arg1 = reinterpret_cast< wxListBox * >(argp1);
9578 ecode2 = SWIG_AsVal_int(obj1, &val2);
9579 if (!SWIG_IsOK(ecode2)) {
9580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9581 }
9582 arg2 = static_cast< int >(val2);
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 (arg1)->SetFirstItem(arg2);
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 resultobj = SWIG_Py_Void();
9590 return resultobj;
9591 fail:
9592 return NULL;
9593 }
9594
9595
9596 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9597 PyObject *resultobj = 0;
9598 wxListBox *arg1 = (wxListBox *) 0 ;
9599 wxString *arg2 = 0 ;
9600 void *argp1 = 0 ;
9601 int res1 = 0 ;
9602 bool temp2 = false ;
9603 PyObject * obj0 = 0 ;
9604 PyObject * obj1 = 0 ;
9605 char * kwnames[] = {
9606 (char *) "self",(char *) "s", NULL
9607 };
9608
9609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9611 if (!SWIG_IsOK(res1)) {
9612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9613 }
9614 arg1 = reinterpret_cast< wxListBox * >(argp1);
9615 {
9616 arg2 = wxString_in_helper(obj1);
9617 if (arg2 == NULL) SWIG_fail;
9618 temp2 = true;
9619 }
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 (arg1)->SetFirstItem((wxString const &)*arg2);
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_Py_Void();
9627 {
9628 if (temp2)
9629 delete arg2;
9630 }
9631 return resultobj;
9632 fail:
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return NULL;
9638 }
9639
9640
9641 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj = 0;
9643 wxListBox *arg1 = (wxListBox *) 0 ;
9644 int arg2 ;
9645 void *argp1 = 0 ;
9646 int res1 = 0 ;
9647 int val2 ;
9648 int ecode2 = 0 ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9651 char * kwnames[] = {
9652 (char *) "self",(char *) "n", NULL
9653 };
9654
9655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9657 if (!SWIG_IsOK(res1)) {
9658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9659 }
9660 arg1 = reinterpret_cast< wxListBox * >(argp1);
9661 ecode2 = SWIG_AsVal_int(obj1, &val2);
9662 if (!SWIG_IsOK(ecode2)) {
9663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9664 }
9665 arg2 = static_cast< int >(val2);
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 (arg1)->EnsureVisible(arg2);
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 resultobj = SWIG_Py_Void();
9673 return resultobj;
9674 fail:
9675 return NULL;
9676 }
9677
9678
9679 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9680 PyObject *resultobj = 0;
9681 wxListBox *arg1 = (wxListBox *) 0 ;
9682 wxString *arg2 = 0 ;
9683 void *argp1 = 0 ;
9684 int res1 = 0 ;
9685 bool temp2 = false ;
9686 PyObject * obj0 = 0 ;
9687 PyObject * obj1 = 0 ;
9688 char * kwnames[] = {
9689 (char *) "self",(char *) "s", NULL
9690 };
9691
9692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9694 if (!SWIG_IsOK(res1)) {
9695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9696 }
9697 arg1 = reinterpret_cast< wxListBox * >(argp1);
9698 {
9699 arg2 = wxString_in_helper(obj1);
9700 if (arg2 == NULL) SWIG_fail;
9701 temp2 = true;
9702 }
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 resultobj = SWIG_Py_Void();
9710 {
9711 if (temp2)
9712 delete arg2;
9713 }
9714 return resultobj;
9715 fail:
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return NULL;
9721 }
9722
9723
9724 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9725 PyObject *resultobj = 0;
9726 wxListBox *arg1 = (wxListBox *) 0 ;
9727 bool result;
9728 void *argp1 = 0 ;
9729 int res1 = 0 ;
9730 PyObject *swig_obj[1] ;
9731
9732 if (!args) SWIG_fail;
9733 swig_obj[0] = args;
9734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9735 if (!SWIG_IsOK(res1)) {
9736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9737 }
9738 arg1 = reinterpret_cast< wxListBox * >(argp1);
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 result = (bool)((wxListBox const *)arg1)->IsSorted();
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 {
9746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9747 }
9748 return resultobj;
9749 fail:
9750 return NULL;
9751 }
9752
9753
9754 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj = 0;
9756 wxListBox *arg1 = (wxListBox *) 0 ;
9757 wxPoint *arg2 = 0 ;
9758 int result;
9759 void *argp1 = 0 ;
9760 int res1 = 0 ;
9761 wxPoint temp2 ;
9762 PyObject * obj0 = 0 ;
9763 PyObject * obj1 = 0 ;
9764 char * kwnames[] = {
9765 (char *) "self",(char *) "pt", NULL
9766 };
9767
9768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9770 if (!SWIG_IsOK(res1)) {
9771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9772 }
9773 arg1 = reinterpret_cast< wxListBox * >(argp1);
9774 {
9775 arg2 = &temp2;
9776 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9777 }
9778 {
9779 PyThreadState* __tstate = wxPyBeginAllowThreads();
9780 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9781 wxPyEndAllowThreads(__tstate);
9782 if (PyErr_Occurred()) SWIG_fail;
9783 }
9784 resultobj = SWIG_From_int(static_cast< int >(result));
9785 return resultobj;
9786 fail:
9787 return NULL;
9788 }
9789
9790
9791 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9792 PyObject *resultobj = 0;
9793 wxListBox *arg1 = (wxListBox *) 0 ;
9794 int arg2 ;
9795 wxColour *arg3 = 0 ;
9796 void *argp1 = 0 ;
9797 int res1 = 0 ;
9798 int val2 ;
9799 int ecode2 = 0 ;
9800 wxColour temp3 ;
9801 PyObject * obj0 = 0 ;
9802 PyObject * obj1 = 0 ;
9803 PyObject * obj2 = 0 ;
9804 char * kwnames[] = {
9805 (char *) "self",(char *) "item",(char *) "c", NULL
9806 };
9807
9808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9810 if (!SWIG_IsOK(res1)) {
9811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9812 }
9813 arg1 = reinterpret_cast< wxListBox * >(argp1);
9814 ecode2 = SWIG_AsVal_int(obj1, &val2);
9815 if (!SWIG_IsOK(ecode2)) {
9816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9817 }
9818 arg2 = static_cast< int >(val2);
9819 {
9820 arg3 = &temp3;
9821 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9822 }
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 resultobj = SWIG_Py_Void();
9830 return resultobj;
9831 fail:
9832 return NULL;
9833 }
9834
9835
9836 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj = 0;
9838 wxListBox *arg1 = (wxListBox *) 0 ;
9839 int arg2 ;
9840 wxColour *arg3 = 0 ;
9841 void *argp1 = 0 ;
9842 int res1 = 0 ;
9843 int val2 ;
9844 int ecode2 = 0 ;
9845 wxColour temp3 ;
9846 PyObject * obj0 = 0 ;
9847 PyObject * obj1 = 0 ;
9848 PyObject * obj2 = 0 ;
9849 char * kwnames[] = {
9850 (char *) "self",(char *) "item",(char *) "c", NULL
9851 };
9852
9853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9855 if (!SWIG_IsOK(res1)) {
9856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9857 }
9858 arg1 = reinterpret_cast< wxListBox * >(argp1);
9859 ecode2 = SWIG_AsVal_int(obj1, &val2);
9860 if (!SWIG_IsOK(ecode2)) {
9861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9862 }
9863 arg2 = static_cast< int >(val2);
9864 {
9865 arg3 = &temp3;
9866 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9867 }
9868 {
9869 PyThreadState* __tstate = wxPyBeginAllowThreads();
9870 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9871 wxPyEndAllowThreads(__tstate);
9872 if (PyErr_Occurred()) SWIG_fail;
9873 }
9874 resultobj = SWIG_Py_Void();
9875 return resultobj;
9876 fail:
9877 return NULL;
9878 }
9879
9880
9881 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj = 0;
9883 wxListBox *arg1 = (wxListBox *) 0 ;
9884 int arg2 ;
9885 wxFont *arg3 = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 int val2 ;
9889 int ecode2 = 0 ;
9890 void *argp3 = 0 ;
9891 int res3 = 0 ;
9892 PyObject * obj0 = 0 ;
9893 PyObject * obj1 = 0 ;
9894 PyObject * obj2 = 0 ;
9895 char * kwnames[] = {
9896 (char *) "self",(char *) "item",(char *) "f", NULL
9897 };
9898
9899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9901 if (!SWIG_IsOK(res1)) {
9902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9903 }
9904 arg1 = reinterpret_cast< wxListBox * >(argp1);
9905 ecode2 = SWIG_AsVal_int(obj1, &val2);
9906 if (!SWIG_IsOK(ecode2)) {
9907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9908 }
9909 arg2 = static_cast< int >(val2);
9910 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9911 if (!SWIG_IsOK(res3)) {
9912 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9913 }
9914 if (!argp3) {
9915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9916 }
9917 arg3 = reinterpret_cast< wxFont * >(argp3);
9918 {
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 resultobj = SWIG_Py_Void();
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj = 0;
9933 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9934 SwigValueWrapper<wxVisualAttributes > result;
9935 int val1 ;
9936 int ecode1 = 0 ;
9937 PyObject * obj0 = 0 ;
9938 char * kwnames[] = {
9939 (char *) "variant", NULL
9940 };
9941
9942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9943 if (obj0) {
9944 ecode1 = SWIG_AsVal_int(obj0, &val1);
9945 if (!SWIG_IsOK(ecode1)) {
9946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9947 }
9948 arg1 = static_cast< wxWindowVariant >(val1);
9949 }
9950 {
9951 if (!wxPyCheckForApp()) SWIG_fail;
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 result = wxListBox::GetClassDefaultAttributes(arg1);
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9965 PyObject *obj;
9966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9967 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9968 return SWIG_Py_Void();
9969 }
9970
9971 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9972 return SWIG_Python_InitShadowInstance(args);
9973 }
9974
9975 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9976 PyObject *resultobj = 0;
9977 wxWindow *arg1 = (wxWindow *) 0 ;
9978 int arg2 = (int) -1 ;
9979 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9980 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9981 wxSize const &arg4_defvalue = wxDefaultSize ;
9982 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9983 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9984 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9985 long arg6 = (long) 0 ;
9986 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9987 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9988 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9989 wxString *arg8 = (wxString *) &arg8_defvalue ;
9990 wxCheckListBox *result = 0 ;
9991 void *argp1 = 0 ;
9992 int res1 = 0 ;
9993 int val2 ;
9994 int ecode2 = 0 ;
9995 wxPoint temp3 ;
9996 wxSize temp4 ;
9997 bool temp5 = false ;
9998 long val6 ;
9999 int ecode6 = 0 ;
10000 void *argp7 = 0 ;
10001 int res7 = 0 ;
10002 bool temp8 = false ;
10003 PyObject * obj0 = 0 ;
10004 PyObject * obj1 = 0 ;
10005 PyObject * obj2 = 0 ;
10006 PyObject * obj3 = 0 ;
10007 PyObject * obj4 = 0 ;
10008 PyObject * obj5 = 0 ;
10009 PyObject * obj6 = 0 ;
10010 PyObject * obj7 = 0 ;
10011 char * kwnames[] = {
10012 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10013 };
10014
10015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10017 if (!SWIG_IsOK(res1)) {
10018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10019 }
10020 arg1 = reinterpret_cast< wxWindow * >(argp1);
10021 if (obj1) {
10022 ecode2 = SWIG_AsVal_int(obj1, &val2);
10023 if (!SWIG_IsOK(ecode2)) {
10024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10025 }
10026 arg2 = static_cast< int >(val2);
10027 }
10028 if (obj2) {
10029 {
10030 arg3 = &temp3;
10031 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10032 }
10033 }
10034 if (obj3) {
10035 {
10036 arg4 = &temp4;
10037 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10038 }
10039 }
10040 if (obj4) {
10041 {
10042 if (! PySequence_Check(obj4)) {
10043 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10044 SWIG_fail;
10045 }
10046 arg5 = new wxArrayString;
10047 temp5 = true;
10048 int i, len=PySequence_Length(obj4);
10049 for (i=0; i<len; i++) {
10050 PyObject* item = PySequence_GetItem(obj4, i);
10051 wxString* s = wxString_in_helper(item);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 arg5->Add(*s);
10054 delete s;
10055 Py_DECREF(item);
10056 }
10057 }
10058 }
10059 if (obj5) {
10060 ecode6 = SWIG_AsVal_long(obj5, &val6);
10061 if (!SWIG_IsOK(ecode6)) {
10062 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10063 }
10064 arg6 = static_cast< long >(val6);
10065 }
10066 if (obj6) {
10067 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10068 if (!SWIG_IsOK(res7)) {
10069 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10070 }
10071 if (!argp7) {
10072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10073 }
10074 arg7 = reinterpret_cast< wxValidator * >(argp7);
10075 }
10076 if (obj7) {
10077 {
10078 arg8 = wxString_in_helper(obj7);
10079 if (arg8 == NULL) SWIG_fail;
10080 temp8 = true;
10081 }
10082 }
10083 {
10084 if (!wxPyCheckForApp()) SWIG_fail;
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10091 {
10092 if (temp5) delete arg5;
10093 }
10094 {
10095 if (temp8)
10096 delete arg8;
10097 }
10098 return resultobj;
10099 fail:
10100 {
10101 if (temp5) delete arg5;
10102 }
10103 {
10104 if (temp8)
10105 delete arg8;
10106 }
10107 return NULL;
10108 }
10109
10110
10111 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10112 PyObject *resultobj = 0;
10113 wxCheckListBox *result = 0 ;
10114
10115 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10116 {
10117 if (!wxPyCheckForApp()) SWIG_fail;
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = (wxCheckListBox *)new wxCheckListBox();
10120 wxPyEndAllowThreads(__tstate);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10124 return resultobj;
10125 fail:
10126 return NULL;
10127 }
10128
10129
10130 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10131 PyObject *resultobj = 0;
10132 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10133 wxWindow *arg2 = (wxWindow *) 0 ;
10134 int arg3 = (int) -1 ;
10135 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10136 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10137 wxSize const &arg5_defvalue = wxDefaultSize ;
10138 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10139 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10140 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10141 long arg7 = (long) 0 ;
10142 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10143 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10144 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10145 wxString *arg9 = (wxString *) &arg9_defvalue ;
10146 bool result;
10147 void *argp1 = 0 ;
10148 int res1 = 0 ;
10149 void *argp2 = 0 ;
10150 int res2 = 0 ;
10151 int val3 ;
10152 int ecode3 = 0 ;
10153 wxPoint temp4 ;
10154 wxSize temp5 ;
10155 bool temp6 = false ;
10156 long val7 ;
10157 int ecode7 = 0 ;
10158 void *argp8 = 0 ;
10159 int res8 = 0 ;
10160 bool temp9 = false ;
10161 PyObject * obj0 = 0 ;
10162 PyObject * obj1 = 0 ;
10163 PyObject * obj2 = 0 ;
10164 PyObject * obj3 = 0 ;
10165 PyObject * obj4 = 0 ;
10166 PyObject * obj5 = 0 ;
10167 PyObject * obj6 = 0 ;
10168 PyObject * obj7 = 0 ;
10169 PyObject * obj8 = 0 ;
10170 char * kwnames[] = {
10171 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10172 };
10173
10174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10176 if (!SWIG_IsOK(res1)) {
10177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10178 }
10179 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10181 if (!SWIG_IsOK(res2)) {
10182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10183 }
10184 arg2 = reinterpret_cast< wxWindow * >(argp2);
10185 if (obj2) {
10186 ecode3 = SWIG_AsVal_int(obj2, &val3);
10187 if (!SWIG_IsOK(ecode3)) {
10188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10189 }
10190 arg3 = static_cast< int >(val3);
10191 }
10192 if (obj3) {
10193 {
10194 arg4 = &temp4;
10195 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10196 }
10197 }
10198 if (obj4) {
10199 {
10200 arg5 = &temp5;
10201 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10202 }
10203 }
10204 if (obj5) {
10205 {
10206 if (! PySequence_Check(obj5)) {
10207 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10208 SWIG_fail;
10209 }
10210 arg6 = new wxArrayString;
10211 temp6 = true;
10212 int i, len=PySequence_Length(obj5);
10213 for (i=0; i<len; i++) {
10214 PyObject* item = PySequence_GetItem(obj5, i);
10215 wxString* s = wxString_in_helper(item);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 arg6->Add(*s);
10218 delete s;
10219 Py_DECREF(item);
10220 }
10221 }
10222 }
10223 if (obj6) {
10224 ecode7 = SWIG_AsVal_long(obj6, &val7);
10225 if (!SWIG_IsOK(ecode7)) {
10226 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10227 }
10228 arg7 = static_cast< long >(val7);
10229 }
10230 if (obj7) {
10231 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10232 if (!SWIG_IsOK(res8)) {
10233 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10234 }
10235 if (!argp8) {
10236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10237 }
10238 arg8 = reinterpret_cast< wxValidator * >(argp8);
10239 }
10240 if (obj8) {
10241 {
10242 arg9 = wxString_in_helper(obj8);
10243 if (arg9 == NULL) SWIG_fail;
10244 temp9 = true;
10245 }
10246 }
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 {
10254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10255 }
10256 {
10257 if (temp6) delete arg6;
10258 }
10259 {
10260 if (temp9)
10261 delete arg9;
10262 }
10263 return resultobj;
10264 fail:
10265 {
10266 if (temp6) delete arg6;
10267 }
10268 {
10269 if (temp9)
10270 delete arg9;
10271 }
10272 return NULL;
10273 }
10274
10275
10276 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj = 0;
10278 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10279 unsigned int arg2 ;
10280 bool result;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 unsigned int val2 ;
10284 int ecode2 = 0 ;
10285 PyObject * obj0 = 0 ;
10286 PyObject * obj1 = 0 ;
10287 char * kwnames[] = {
10288 (char *) "self",(char *) "index", NULL
10289 };
10290
10291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10293 if (!SWIG_IsOK(res1)) {
10294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10295 }
10296 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10297 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10298 if (!SWIG_IsOK(ecode2)) {
10299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10300 }
10301 arg2 = static_cast< unsigned int >(val2);
10302 {
10303 PyThreadState* __tstate = wxPyBeginAllowThreads();
10304 result = (bool)(arg1)->IsChecked(arg2);
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 {
10309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10310 }
10311 return resultobj;
10312 fail:
10313 return NULL;
10314 }
10315
10316
10317 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj = 0;
10319 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10320 unsigned int arg2 ;
10321 int arg3 = (int) true ;
10322 void *argp1 = 0 ;
10323 int res1 = 0 ;
10324 unsigned int val2 ;
10325 int ecode2 = 0 ;
10326 int val3 ;
10327 int ecode3 = 0 ;
10328 PyObject * obj0 = 0 ;
10329 PyObject * obj1 = 0 ;
10330 PyObject * obj2 = 0 ;
10331 char * kwnames[] = {
10332 (char *) "self",(char *) "index",(char *) "check", NULL
10333 };
10334
10335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10337 if (!SWIG_IsOK(res1)) {
10338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10339 }
10340 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10341 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10342 if (!SWIG_IsOK(ecode2)) {
10343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10344 }
10345 arg2 = static_cast< unsigned int >(val2);
10346 if (obj2) {
10347 ecode3 = SWIG_AsVal_int(obj2, &val3);
10348 if (!SWIG_IsOK(ecode3)) {
10349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10350 }
10351 arg3 = static_cast< int >(val3);
10352 }
10353 {
10354 PyThreadState* __tstate = wxPyBeginAllowThreads();
10355 (arg1)->Check(arg2,arg3);
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 resultobj = SWIG_Py_Void();
10360 return resultobj;
10361 fail:
10362 return NULL;
10363 }
10364
10365
10366 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10367 PyObject *resultobj = 0;
10368 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10369 int result;
10370 void *argp1 = 0 ;
10371 int res1 = 0 ;
10372 PyObject *swig_obj[1] ;
10373
10374 if (!args) SWIG_fail;
10375 swig_obj[0] = args;
10376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10377 if (!SWIG_IsOK(res1)) {
10378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10379 }
10380 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10381 {
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 result = (int)(arg1)->GetItemHeight();
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_From_int(static_cast< int >(result));
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10395 PyObject *obj;
10396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10397 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10398 return SWIG_Py_Void();
10399 }
10400
10401 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10402 return SWIG_Python_InitShadowInstance(args);
10403 }
10404
10405 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10406 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10407 return 1;
10408 }
10409
10410
10411 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10412 PyObject *pyobj = 0;
10413
10414 {
10415 #if wxUSE_UNICODE
10416 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10417 #else
10418 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10419 #endif
10420 }
10421 return pyobj;
10422 }
10423
10424
10425 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10426 PyObject *resultobj = 0;
10427 wxColour const &arg1_defvalue = wxNullColour ;
10428 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10429 wxColour const &arg2_defvalue = wxNullColour ;
10430 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10431 wxFont const &arg3_defvalue = wxNullFont ;
10432 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10433 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10434 wxTextAttr *result = 0 ;
10435 wxColour temp1 ;
10436 wxColour temp2 ;
10437 void *argp3 = 0 ;
10438 int res3 = 0 ;
10439 int val4 ;
10440 int ecode4 = 0 ;
10441 PyObject * obj0 = 0 ;
10442 PyObject * obj1 = 0 ;
10443 PyObject * obj2 = 0 ;
10444 PyObject * obj3 = 0 ;
10445 char * kwnames[] = {
10446 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10447 };
10448
10449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10450 if (obj0) {
10451 {
10452 arg1 = &temp1;
10453 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10454 }
10455 }
10456 if (obj1) {
10457 {
10458 arg2 = &temp2;
10459 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10460 }
10461 }
10462 if (obj2) {
10463 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10464 if (!SWIG_IsOK(res3)) {
10465 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10466 }
10467 if (!argp3) {
10468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10469 }
10470 arg3 = reinterpret_cast< wxFont * >(argp3);
10471 }
10472 if (obj3) {
10473 ecode4 = SWIG_AsVal_int(obj3, &val4);
10474 if (!SWIG_IsOK(ecode4)) {
10475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10476 }
10477 arg4 = static_cast< wxTextAttrAlignment >(val4);
10478 }
10479 {
10480 PyThreadState* __tstate = wxPyBeginAllowThreads();
10481 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10493 PyObject *resultobj = 0;
10494 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10495 void *argp1 = 0 ;
10496 int res1 = 0 ;
10497 PyObject *swig_obj[1] ;
10498
10499 if (!args) SWIG_fail;
10500 swig_obj[0] = args;
10501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10502 if (!SWIG_IsOK(res1)) {
10503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10504 }
10505 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10506 {
10507 PyThreadState* __tstate = wxPyBeginAllowThreads();
10508 delete arg1;
10509
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 resultobj = SWIG_Py_Void();
10514 return resultobj;
10515 fail:
10516 return NULL;
10517 }
10518
10519
10520 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10521 PyObject *resultobj = 0;
10522 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10523 void *argp1 = 0 ;
10524 int res1 = 0 ;
10525 PyObject *swig_obj[1] ;
10526
10527 if (!args) SWIG_fail;
10528 swig_obj[0] = args;
10529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10530 if (!SWIG_IsOK(res1)) {
10531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10532 }
10533 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 (arg1)->Init();
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 resultobj = SWIG_Py_Void();
10541 return resultobj;
10542 fail:
10543 return NULL;
10544 }
10545
10546
10547 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj = 0;
10549 wxTextAttr *arg1 = 0 ;
10550 wxTextAttr *arg2 = 0 ;
10551 wxTextAttr result;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 void *argp2 = 0 ;
10555 int res2 = 0 ;
10556 PyObject * obj0 = 0 ;
10557 PyObject * obj1 = 0 ;
10558 char * kwnames[] = {
10559 (char *) "base",(char *) "overlay", NULL
10560 };
10561
10562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10563 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10564 if (!SWIG_IsOK(res1)) {
10565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10566 }
10567 if (!argp1) {
10568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10569 }
10570 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10572 if (!SWIG_IsOK(res2)) {
10573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10574 }
10575 if (!argp2) {
10576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10577 }
10578 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj = 0;
10594 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10595 wxColour *arg2 = 0 ;
10596 void *argp1 = 0 ;
10597 int res1 = 0 ;
10598 wxColour temp2 ;
10599 PyObject * obj0 = 0 ;
10600 PyObject * obj1 = 0 ;
10601 char * kwnames[] = {
10602 (char *) "self",(char *) "colText", NULL
10603 };
10604
10605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10607 if (!SWIG_IsOK(res1)) {
10608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10609 }
10610 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10611 {
10612 arg2 = &temp2;
10613 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10614 }
10615 {
10616 PyThreadState* __tstate = wxPyBeginAllowThreads();
10617 (arg1)->SetTextColour((wxColour const &)*arg2);
10618 wxPyEndAllowThreads(__tstate);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 resultobj = SWIG_Py_Void();
10622 return resultobj;
10623 fail:
10624 return NULL;
10625 }
10626
10627
10628 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj = 0;
10630 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10631 wxColour *arg2 = 0 ;
10632 void *argp1 = 0 ;
10633 int res1 = 0 ;
10634 wxColour temp2 ;
10635 PyObject * obj0 = 0 ;
10636 PyObject * obj1 = 0 ;
10637 char * kwnames[] = {
10638 (char *) "self",(char *) "colBack", NULL
10639 };
10640
10641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10643 if (!SWIG_IsOK(res1)) {
10644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10645 }
10646 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10647 {
10648 arg2 = &temp2;
10649 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10650 }
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 resultobj = SWIG_Py_Void();
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj = 0;
10666 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10667 wxFont *arg2 = 0 ;
10668 long arg3 = (long) wxTEXT_ATTR_FONT ;
10669 void *argp1 = 0 ;
10670 int res1 = 0 ;
10671 void *argp2 = 0 ;
10672 int res2 = 0 ;
10673 long val3 ;
10674 int ecode3 = 0 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 PyObject * obj2 = 0 ;
10678 char * kwnames[] = {
10679 (char *) "self",(char *) "font",(char *) "flags", NULL
10680 };
10681
10682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10684 if (!SWIG_IsOK(res1)) {
10685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10686 }
10687 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10689 if (!SWIG_IsOK(res2)) {
10690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10691 }
10692 if (!argp2) {
10693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10694 }
10695 arg2 = reinterpret_cast< wxFont * >(argp2);
10696 if (obj2) {
10697 ecode3 = SWIG_AsVal_long(obj2, &val3);
10698 if (!SWIG_IsOK(ecode3)) {
10699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10700 }
10701 arg3 = static_cast< long >(val3);
10702 }
10703 {
10704 PyThreadState* __tstate = wxPyBeginAllowThreads();
10705 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 resultobj = SWIG_Py_Void();
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj = 0;
10718 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10719 wxTextAttrAlignment arg2 ;
10720 void *argp1 = 0 ;
10721 int res1 = 0 ;
10722 int val2 ;
10723 int ecode2 = 0 ;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 char * kwnames[] = {
10727 (char *) "self",(char *) "alignment", NULL
10728 };
10729
10730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10732 if (!SWIG_IsOK(res1)) {
10733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10734 }
10735 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10736 ecode2 = SWIG_AsVal_int(obj1, &val2);
10737 if (!SWIG_IsOK(ecode2)) {
10738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10739 }
10740 arg2 = static_cast< wxTextAttrAlignment >(val2);
10741 {
10742 PyThreadState* __tstate = wxPyBeginAllowThreads();
10743 (arg1)->SetAlignment(arg2);
10744 wxPyEndAllowThreads(__tstate);
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 resultobj = SWIG_Py_Void();
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10755 PyObject *resultobj = 0;
10756 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10757 wxArrayInt *arg2 = 0 ;
10758 void *argp1 = 0 ;
10759 int res1 = 0 ;
10760 bool temp2 = false ;
10761 PyObject * obj0 = 0 ;
10762 PyObject * obj1 = 0 ;
10763 char * kwnames[] = {
10764 (char *) "self",(char *) "tabs", NULL
10765 };
10766
10767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10769 if (!SWIG_IsOK(res1)) {
10770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10771 }
10772 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10773 {
10774 if (! PySequence_Check(obj1)) {
10775 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10776 SWIG_fail;
10777 }
10778 arg2 = new wxArrayInt;
10779 temp2 = true;
10780 int i, len=PySequence_Length(obj1);
10781 for (i=0; i<len; i++) {
10782 PyObject* item = PySequence_GetItem(obj1, i);
10783 PyObject* number = PyNumber_Int(item);
10784 arg2->Add(PyInt_AS_LONG(number));
10785 Py_DECREF(item);
10786 Py_DECREF(number);
10787 }
10788 }
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 resultobj = SWIG_Py_Void();
10796 {
10797 if (temp2) delete arg2;
10798 }
10799 return resultobj;
10800 fail:
10801 {
10802 if (temp2) delete arg2;
10803 }
10804 return NULL;
10805 }
10806
10807
10808 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10811 int arg2 ;
10812 int arg3 = (int) 0 ;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 int val2 ;
10816 int ecode2 = 0 ;
10817 int val3 ;
10818 int ecode3 = 0 ;
10819 PyObject * obj0 = 0 ;
10820 PyObject * obj1 = 0 ;
10821 PyObject * obj2 = 0 ;
10822 char * kwnames[] = {
10823 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10824 };
10825
10826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10828 if (!SWIG_IsOK(res1)) {
10829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10830 }
10831 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10832 ecode2 = SWIG_AsVal_int(obj1, &val2);
10833 if (!SWIG_IsOK(ecode2)) {
10834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10835 }
10836 arg2 = static_cast< int >(val2);
10837 if (obj2) {
10838 ecode3 = SWIG_AsVal_int(obj2, &val3);
10839 if (!SWIG_IsOK(ecode3)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10841 }
10842 arg3 = static_cast< int >(val3);
10843 }
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->SetLeftIndent(arg2,arg3);
10847 wxPyEndAllowThreads(__tstate);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 }
10850 resultobj = SWIG_Py_Void();
10851 return resultobj;
10852 fail:
10853 return NULL;
10854 }
10855
10856
10857 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10858 PyObject *resultobj = 0;
10859 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10860 int arg2 ;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 int val2 ;
10864 int ecode2 = 0 ;
10865 PyObject * obj0 = 0 ;
10866 PyObject * obj1 = 0 ;
10867 char * kwnames[] = {
10868 (char *) "self",(char *) "indent", NULL
10869 };
10870
10871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10873 if (!SWIG_IsOK(res1)) {
10874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10875 }
10876 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10877 ecode2 = SWIG_AsVal_int(obj1, &val2);
10878 if (!SWIG_IsOK(ecode2)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10880 }
10881 arg2 = static_cast< int >(val2);
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 (arg1)->SetRightIndent(arg2);
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 resultobj = SWIG_Py_Void();
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj = 0;
10897 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10898 long arg2 ;
10899 void *argp1 = 0 ;
10900 int res1 = 0 ;
10901 long val2 ;
10902 int ecode2 = 0 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 char * kwnames[] = {
10906 (char *) "self",(char *) "flags", NULL
10907 };
10908
10909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10911 if (!SWIG_IsOK(res1)) {
10912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10913 }
10914 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10915 ecode2 = SWIG_AsVal_long(obj1, &val2);
10916 if (!SWIG_IsOK(ecode2)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10918 }
10919 arg2 = static_cast< long >(val2);
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 (arg1)->SetFlags(arg2);
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 resultobj = SWIG_Py_Void();
10927 return resultobj;
10928 fail:
10929 return NULL;
10930 }
10931
10932
10933 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10934 PyObject *resultobj = 0;
10935 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10936 bool result;
10937 void *argp1 = 0 ;
10938 int res1 = 0 ;
10939 PyObject *swig_obj[1] ;
10940
10941 if (!args) SWIG_fail;
10942 swig_obj[0] = args;
10943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10944 if (!SWIG_IsOK(res1)) {
10945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10946 }
10947 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 {
10955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10956 }
10957 return resultobj;
10958 fail:
10959 return NULL;
10960 }
10961
10962
10963 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10964 PyObject *resultobj = 0;
10965 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10966 bool result;
10967 void *argp1 = 0 ;
10968 int res1 = 0 ;
10969 PyObject *swig_obj[1] ;
10970
10971 if (!args) SWIG_fail;
10972 swig_obj[0] = args;
10973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10976 }
10977 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10978 {
10979 PyThreadState* __tstate = wxPyBeginAllowThreads();
10980 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 {
10985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10986 }
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10994 PyObject *resultobj = 0;
10995 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10996 bool result;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject *swig_obj[1] ;
11000
11001 if (!args) SWIG_fail;
11002 swig_obj[0] = args;
11003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11004 if (!SWIG_IsOK(res1)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11006 }
11007 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11024 PyObject *resultobj = 0;
11025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 PyObject *swig_obj[1] ;
11030
11031 if (!args) SWIG_fail;
11032 swig_obj[0] = args;
11033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11036 }
11037 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 PyObject *swig_obj[1] ;
11060
11061 if (!args) SWIG_fail;
11062 swig_obj[0] = args;
11063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11066 }
11067 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078 fail:
11079 return NULL;
11080 }
11081
11082
11083 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 }
11107 return resultobj;
11108 fail:
11109 return NULL;
11110 }
11111
11112
11113 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 PyObject *swig_obj[1] ;
11120
11121 if (!args) SWIG_fail;
11122 swig_obj[0] = args;
11123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11126 }
11127 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 long arg2 ;
11147 bool result;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 long val2 ;
11151 int ecode2 = 0 ;
11152 PyObject * obj0 = 0 ;
11153 PyObject * obj1 = 0 ;
11154 char * kwnames[] = {
11155 (char *) "self",(char *) "flag", NULL
11156 };
11157
11158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11160 if (!SWIG_IsOK(res1)) {
11161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11162 }
11163 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11164 ecode2 = SWIG_AsVal_long(obj1, &val2);
11165 if (!SWIG_IsOK(ecode2)) {
11166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11167 }
11168 arg2 = static_cast< long >(val2);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11177 }
11178 return resultobj;
11179 fail:
11180 return NULL;
11181 }
11182
11183
11184 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11185 PyObject *resultobj = 0;
11186 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11187 wxColour *result = 0 ;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 PyObject *swig_obj[1] ;
11191
11192 if (!args) SWIG_fail;
11193 swig_obj[0] = args;
11194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11195 if (!SWIG_IsOK(res1)) {
11196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11197 }
11198 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 {
11202 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11203 result = (wxColour *) &_result_ref;
11204 }
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11209 return resultobj;
11210 fail:
11211 return NULL;
11212 }
11213
11214
11215 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11216 PyObject *resultobj = 0;
11217 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11218 wxColour *result = 0 ;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 PyObject *swig_obj[1] ;
11222
11223 if (!args) SWIG_fail;
11224 swig_obj[0] = args;
11225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11226 if (!SWIG_IsOK(res1)) {
11227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11228 }
11229 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11230 {
11231 PyThreadState* __tstate = wxPyBeginAllowThreads();
11232 {
11233 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11234 result = (wxColour *) &_result_ref;
11235 }
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11249 wxFont *result = 0 ;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 PyObject *swig_obj[1] ;
11253
11254 if (!args) SWIG_fail;
11255 swig_obj[0] = args;
11256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11259 }
11260 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 {
11264 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11265 result = (wxFont *) &_result_ref;
11266 }
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 {
11271 wxFont* resultptr = new wxFont(*result);
11272 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11273 }
11274 return resultobj;
11275 fail:
11276 return NULL;
11277 }
11278
11279
11280 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11281 PyObject *resultobj = 0;
11282 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11283 wxTextAttrAlignment result;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 PyObject *swig_obj[1] ;
11287
11288 if (!args) SWIG_fail;
11289 swig_obj[0] = args;
11290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11291 if (!SWIG_IsOK(res1)) {
11292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11293 }
11294 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11295 {
11296 PyThreadState* __tstate = wxPyBeginAllowThreads();
11297 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11298 wxPyEndAllowThreads(__tstate);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 resultobj = SWIG_From_int(static_cast< int >(result));
11302 return resultobj;
11303 fail:
11304 return NULL;
11305 }
11306
11307
11308 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11309 PyObject *resultobj = 0;
11310 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11311 wxArrayInt *result = 0 ;
11312 void *argp1 = 0 ;
11313 int res1 = 0 ;
11314 PyObject *swig_obj[1] ;
11315
11316 if (!args) SWIG_fail;
11317 swig_obj[0] = args;
11318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11319 if (!SWIG_IsOK(res1)) {
11320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11321 }
11322 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 {
11326 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11327 result = (wxArrayInt *) &_result_ref;
11328 }
11329 wxPyEndAllowThreads(__tstate);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 }
11332 {
11333 resultobj = PyList_New(0);
11334 size_t idx;
11335 for (idx = 0; idx < result->GetCount(); idx += 1) {
11336 PyObject* val = PyInt_FromLong( result->Item(idx) );
11337 PyList_Append(resultobj, val);
11338 Py_DECREF(val);
11339 }
11340 }
11341 return resultobj;
11342 fail:
11343 return NULL;
11344 }
11345
11346
11347 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11348 PyObject *resultobj = 0;
11349 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11350 long result;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 PyObject *swig_obj[1] ;
11354
11355 if (!args) SWIG_fail;
11356 swig_obj[0] = args;
11357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11360 }
11361 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 resultobj = SWIG_From_long(static_cast< long >(result));
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11376 PyObject *resultobj = 0;
11377 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11378 long result;
11379 void *argp1 = 0 ;
11380 int res1 = 0 ;
11381 PyObject *swig_obj[1] ;
11382
11383 if (!args) SWIG_fail;
11384 swig_obj[0] = args;
11385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11386 if (!SWIG_IsOK(res1)) {
11387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11388 }
11389 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 resultobj = SWIG_From_long(static_cast< long >(result));
11397 return resultobj;
11398 fail:
11399 return NULL;
11400 }
11401
11402
11403 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11404 PyObject *resultobj = 0;
11405 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11406 long result;
11407 void *argp1 = 0 ;
11408 int res1 = 0 ;
11409 PyObject *swig_obj[1] ;
11410
11411 if (!args) SWIG_fail;
11412 swig_obj[0] = args;
11413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11414 if (!SWIG_IsOK(res1)) {
11415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11416 }
11417 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 resultobj = SWIG_From_long(static_cast< long >(result));
11425 return resultobj;
11426 fail:
11427 return NULL;
11428 }
11429
11430
11431 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11432 PyObject *resultobj = 0;
11433 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11434 long result;
11435 void *argp1 = 0 ;
11436 int res1 = 0 ;
11437 PyObject *swig_obj[1] ;
11438
11439 if (!args) SWIG_fail;
11440 swig_obj[0] = args;
11441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11442 if (!SWIG_IsOK(res1)) {
11443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11444 }
11445 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11446 {
11447 PyThreadState* __tstate = wxPyBeginAllowThreads();
11448 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 resultobj = SWIG_From_long(static_cast< long >(result));
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11460 PyObject *resultobj = 0;
11461 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11462 bool result;
11463 void *argp1 = 0 ;
11464 int res1 = 0 ;
11465 PyObject *swig_obj[1] ;
11466
11467 if (!args) SWIG_fail;
11468 swig_obj[0] = args;
11469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11470 if (!SWIG_IsOK(res1)) {
11471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11472 }
11473 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 {
11481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11482 }
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj = 0;
11491 wxTextAttr *arg1 = 0 ;
11492 wxTextAttr *arg2 = 0 ;
11493 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11494 wxTextAttr result;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 void *argp2 = 0 ;
11498 int res2 = 0 ;
11499 void *argp3 = 0 ;
11500 int res3 = 0 ;
11501 PyObject * obj0 = 0 ;
11502 PyObject * obj1 = 0 ;
11503 PyObject * obj2 = 0 ;
11504 char * kwnames[] = {
11505 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11506 };
11507
11508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11509 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11510 if (!SWIG_IsOK(res1)) {
11511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11512 }
11513 if (!argp1) {
11514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11515 }
11516 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11518 if (!SWIG_IsOK(res2)) {
11519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11520 }
11521 if (!argp2) {
11522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11523 }
11524 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11525 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11526 if (!SWIG_IsOK(res3)) {
11527 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11528 }
11529 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11544 PyObject *obj;
11545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11546 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11547 return SWIG_Py_Void();
11548 }
11549
11550 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11551 return SWIG_Python_InitShadowInstance(args);
11552 }
11553
11554 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11555 PyObject *resultobj = 0;
11556 wxWindow *arg1 = (wxWindow *) 0 ;
11557 int arg2 = (int) -1 ;
11558 wxString const &arg3_defvalue = wxPyEmptyString ;
11559 wxString *arg3 = (wxString *) &arg3_defvalue ;
11560 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11561 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11562 wxSize const &arg5_defvalue = wxDefaultSize ;
11563 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11564 long arg6 = (long) 0 ;
11565 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11566 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11567 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11568 wxString *arg8 = (wxString *) &arg8_defvalue ;
11569 wxTextCtrl *result = 0 ;
11570 void *argp1 = 0 ;
11571 int res1 = 0 ;
11572 int val2 ;
11573 int ecode2 = 0 ;
11574 bool temp3 = false ;
11575 wxPoint temp4 ;
11576 wxSize temp5 ;
11577 long val6 ;
11578 int ecode6 = 0 ;
11579 void *argp7 = 0 ;
11580 int res7 = 0 ;
11581 bool temp8 = false ;
11582 PyObject * obj0 = 0 ;
11583 PyObject * obj1 = 0 ;
11584 PyObject * obj2 = 0 ;
11585 PyObject * obj3 = 0 ;
11586 PyObject * obj4 = 0 ;
11587 PyObject * obj5 = 0 ;
11588 PyObject * obj6 = 0 ;
11589 PyObject * obj7 = 0 ;
11590 char * kwnames[] = {
11591 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11592 };
11593
11594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11596 if (!SWIG_IsOK(res1)) {
11597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11598 }
11599 arg1 = reinterpret_cast< wxWindow * >(argp1);
11600 if (obj1) {
11601 ecode2 = SWIG_AsVal_int(obj1, &val2);
11602 if (!SWIG_IsOK(ecode2)) {
11603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11604 }
11605 arg2 = static_cast< int >(val2);
11606 }
11607 if (obj2) {
11608 {
11609 arg3 = wxString_in_helper(obj2);
11610 if (arg3 == NULL) SWIG_fail;
11611 temp3 = true;
11612 }
11613 }
11614 if (obj3) {
11615 {
11616 arg4 = &temp4;
11617 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11618 }
11619 }
11620 if (obj4) {
11621 {
11622 arg5 = &temp5;
11623 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11624 }
11625 }
11626 if (obj5) {
11627 ecode6 = SWIG_AsVal_long(obj5, &val6);
11628 if (!SWIG_IsOK(ecode6)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11630 }
11631 arg6 = static_cast< long >(val6);
11632 }
11633 if (obj6) {
11634 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11635 if (!SWIG_IsOK(res7)) {
11636 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11637 }
11638 if (!argp7) {
11639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11640 }
11641 arg7 = reinterpret_cast< wxValidator * >(argp7);
11642 }
11643 if (obj7) {
11644 {
11645 arg8 = wxString_in_helper(obj7);
11646 if (arg8 == NULL) SWIG_fail;
11647 temp8 = true;
11648 }
11649 }
11650 {
11651 if (!wxPyCheckForApp()) SWIG_fail;
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11658 {
11659 if (temp3)
11660 delete arg3;
11661 }
11662 {
11663 if (temp8)
11664 delete arg8;
11665 }
11666 return resultobj;
11667 fail:
11668 {
11669 if (temp3)
11670 delete arg3;
11671 }
11672 {
11673 if (temp8)
11674 delete arg8;
11675 }
11676 return NULL;
11677 }
11678
11679
11680 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11681 PyObject *resultobj = 0;
11682 wxTextCtrl *result = 0 ;
11683
11684 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11685 {
11686 if (!wxPyCheckForApp()) SWIG_fail;
11687 PyThreadState* __tstate = wxPyBeginAllowThreads();
11688 result = (wxTextCtrl *)new wxTextCtrl();
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj = 0;
11701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11702 wxWindow *arg2 = (wxWindow *) 0 ;
11703 int arg3 = (int) -1 ;
11704 wxString const &arg4_defvalue = wxPyEmptyString ;
11705 wxString *arg4 = (wxString *) &arg4_defvalue ;
11706 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11707 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11708 wxSize const &arg6_defvalue = wxDefaultSize ;
11709 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11710 long arg7 = (long) 0 ;
11711 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11712 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11713 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11714 wxString *arg9 = (wxString *) &arg9_defvalue ;
11715 bool result;
11716 void *argp1 = 0 ;
11717 int res1 = 0 ;
11718 void *argp2 = 0 ;
11719 int res2 = 0 ;
11720 int val3 ;
11721 int ecode3 = 0 ;
11722 bool temp4 = false ;
11723 wxPoint temp5 ;
11724 wxSize temp6 ;
11725 long val7 ;
11726 int ecode7 = 0 ;
11727 void *argp8 = 0 ;
11728 int res8 = 0 ;
11729 bool temp9 = false ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 PyObject * obj2 = 0 ;
11733 PyObject * obj3 = 0 ;
11734 PyObject * obj4 = 0 ;
11735 PyObject * obj5 = 0 ;
11736 PyObject * obj6 = 0 ;
11737 PyObject * obj7 = 0 ;
11738 PyObject * obj8 = 0 ;
11739 char * kwnames[] = {
11740 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11741 };
11742
11743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11745 if (!SWIG_IsOK(res1)) {
11746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11747 }
11748 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11749 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11750 if (!SWIG_IsOK(res2)) {
11751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11752 }
11753 arg2 = reinterpret_cast< wxWindow * >(argp2);
11754 if (obj2) {
11755 ecode3 = SWIG_AsVal_int(obj2, &val3);
11756 if (!SWIG_IsOK(ecode3)) {
11757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11758 }
11759 arg3 = static_cast< int >(val3);
11760 }
11761 if (obj3) {
11762 {
11763 arg4 = wxString_in_helper(obj3);
11764 if (arg4 == NULL) SWIG_fail;
11765 temp4 = true;
11766 }
11767 }
11768 if (obj4) {
11769 {
11770 arg5 = &temp5;
11771 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11772 }
11773 }
11774 if (obj5) {
11775 {
11776 arg6 = &temp6;
11777 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11778 }
11779 }
11780 if (obj6) {
11781 ecode7 = SWIG_AsVal_long(obj6, &val7);
11782 if (!SWIG_IsOK(ecode7)) {
11783 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11784 }
11785 arg7 = static_cast< long >(val7);
11786 }
11787 if (obj7) {
11788 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11789 if (!SWIG_IsOK(res8)) {
11790 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11791 }
11792 if (!argp8) {
11793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11794 }
11795 arg8 = reinterpret_cast< wxValidator * >(argp8);
11796 }
11797 if (obj8) {
11798 {
11799 arg9 = wxString_in_helper(obj8);
11800 if (arg9 == NULL) SWIG_fail;
11801 temp9 = true;
11802 }
11803 }
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11807 wxPyEndAllowThreads(__tstate);
11808 if (PyErr_Occurred()) SWIG_fail;
11809 }
11810 {
11811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11812 }
11813 {
11814 if (temp4)
11815 delete arg4;
11816 }
11817 {
11818 if (temp9)
11819 delete arg9;
11820 }
11821 return resultobj;
11822 fail:
11823 {
11824 if (temp4)
11825 delete arg4;
11826 }
11827 {
11828 if (temp9)
11829 delete arg9;
11830 }
11831 return NULL;
11832 }
11833
11834
11835 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11836 PyObject *resultobj = 0;
11837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11838 wxString result;
11839 void *argp1 = 0 ;
11840 int res1 = 0 ;
11841 PyObject *swig_obj[1] ;
11842
11843 if (!args) SWIG_fail;
11844 swig_obj[0] = args;
11845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11846 if (!SWIG_IsOK(res1)) {
11847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11848 }
11849 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11850 {
11851 PyThreadState* __tstate = wxPyBeginAllowThreads();
11852 result = ((wxTextCtrl const *)arg1)->GetValue();
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 {
11857 #if wxUSE_UNICODE
11858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11859 #else
11860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11861 #endif
11862 }
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj = 0;
11871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11872 wxString *arg2 = 0 ;
11873 void *argp1 = 0 ;
11874 int res1 = 0 ;
11875 bool temp2 = false ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 char * kwnames[] = {
11879 (char *) "self",(char *) "value", NULL
11880 };
11881
11882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11884 if (!SWIG_IsOK(res1)) {
11885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11886 }
11887 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11888 {
11889 arg2 = wxString_in_helper(obj1);
11890 if (arg2 == NULL) SWIG_fail;
11891 temp2 = true;
11892 }
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 (arg1)->SetValue((wxString const &)*arg2);
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = SWIG_Py_Void();
11900 {
11901 if (temp2)
11902 delete arg2;
11903 }
11904 return resultobj;
11905 fail:
11906 {
11907 if (temp2)
11908 delete arg2;
11909 }
11910 return NULL;
11911 }
11912
11913
11914 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11915 PyObject *resultobj = 0;
11916 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11917 long arg2 ;
11918 long arg3 ;
11919 wxString result;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 long val2 ;
11923 int ecode2 = 0 ;
11924 long val3 ;
11925 int ecode3 = 0 ;
11926 PyObject * obj0 = 0 ;
11927 PyObject * obj1 = 0 ;
11928 PyObject * obj2 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "self",(char *) "from",(char *) "to", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11937 }
11938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11939 ecode2 = SWIG_AsVal_long(obj1, &val2);
11940 if (!SWIG_IsOK(ecode2)) {
11941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11942 }
11943 arg2 = static_cast< long >(val2);
11944 ecode3 = SWIG_AsVal_long(obj2, &val3);
11945 if (!SWIG_IsOK(ecode3)) {
11946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11947 }
11948 arg3 = static_cast< long >(val3);
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 {
11956 #if wxUSE_UNICODE
11957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11958 #else
11959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11960 #endif
11961 }
11962 return resultobj;
11963 fail:
11964 return NULL;
11965 }
11966
11967
11968 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11969 PyObject *resultobj = 0;
11970 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11971 long arg2 ;
11972 int result;
11973 void *argp1 = 0 ;
11974 int res1 = 0 ;
11975 long val2 ;
11976 int ecode2 = 0 ;
11977 PyObject * obj0 = 0 ;
11978 PyObject * obj1 = 0 ;
11979 char * kwnames[] = {
11980 (char *) "self",(char *) "lineNo", NULL
11981 };
11982
11983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11985 if (!SWIG_IsOK(res1)) {
11986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11987 }
11988 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11989 ecode2 = SWIG_AsVal_long(obj1, &val2);
11990 if (!SWIG_IsOK(ecode2)) {
11991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11992 }
11993 arg2 = static_cast< long >(val2);
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 resultobj = SWIG_From_int(static_cast< int >(result));
12001 return resultobj;
12002 fail:
12003 return NULL;
12004 }
12005
12006
12007 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12008 PyObject *resultobj = 0;
12009 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12010 long arg2 ;
12011 wxString result;
12012 void *argp1 = 0 ;
12013 int res1 = 0 ;
12014 long val2 ;
12015 int ecode2 = 0 ;
12016 PyObject * obj0 = 0 ;
12017 PyObject * obj1 = 0 ;
12018 char * kwnames[] = {
12019 (char *) "self",(char *) "lineNo", NULL
12020 };
12021
12022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12024 if (!SWIG_IsOK(res1)) {
12025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12026 }
12027 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12028 ecode2 = SWIG_AsVal_long(obj1, &val2);
12029 if (!SWIG_IsOK(ecode2)) {
12030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12031 }
12032 arg2 = static_cast< long >(val2);
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12036 wxPyEndAllowThreads(__tstate);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 {
12040 #if wxUSE_UNICODE
12041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12042 #else
12043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12044 #endif
12045 }
12046 return resultobj;
12047 fail:
12048 return NULL;
12049 }
12050
12051
12052 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12053 PyObject *resultobj = 0;
12054 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12055 int result;
12056 void *argp1 = 0 ;
12057 int res1 = 0 ;
12058 PyObject *swig_obj[1] ;
12059
12060 if (!args) SWIG_fail;
12061 swig_obj[0] = args;
12062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12063 if (!SWIG_IsOK(res1)) {
12064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12065 }
12066 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 resultobj = SWIG_From_int(static_cast< int >(result));
12074 return resultobj;
12075 fail:
12076 return NULL;
12077 }
12078
12079
12080 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12081 PyObject *resultobj = 0;
12082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12083 bool result;
12084 void *argp1 = 0 ;
12085 int res1 = 0 ;
12086 PyObject *swig_obj[1] ;
12087
12088 if (!args) SWIG_fail;
12089 swig_obj[0] = args;
12090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12091 if (!SWIG_IsOK(res1)) {
12092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12093 }
12094 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 {
12102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12103 }
12104 return resultobj;
12105 fail:
12106 return NULL;
12107 }
12108
12109
12110 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12111 PyObject *resultobj = 0;
12112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12113 bool result;
12114 void *argp1 = 0 ;
12115 int res1 = 0 ;
12116 PyObject *swig_obj[1] ;
12117
12118 if (!args) SWIG_fail;
12119 swig_obj[0] = args;
12120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12121 if (!SWIG_IsOK(res1)) {
12122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12123 }
12124 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12128 wxPyEndAllowThreads(__tstate);
12129 if (PyErr_Occurred()) SWIG_fail;
12130 }
12131 {
12132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12133 }
12134 return resultobj;
12135 fail:
12136 return NULL;
12137 }
12138
12139
12140 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12141 PyObject *resultobj = 0;
12142 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12143 bool result;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 PyObject *swig_obj[1] ;
12147
12148 if (!args) SWIG_fail;
12149 swig_obj[0] = args;
12150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12151 if (!SWIG_IsOK(res1)) {
12152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12153 }
12154 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 {
12162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12163 }
12164 return resultobj;
12165 fail:
12166 return NULL;
12167 }
12168
12169
12170 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12171 PyObject *resultobj = 0;
12172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12173 bool result;
12174 void *argp1 = 0 ;
12175 int res1 = 0 ;
12176 PyObject *swig_obj[1] ;
12177
12178 if (!args) SWIG_fail;
12179 swig_obj[0] = args;
12180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12181 if (!SWIG_IsOK(res1)) {
12182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12183 }
12184 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 {
12192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12193 }
12194 return resultobj;
12195 fail:
12196 return NULL;
12197 }
12198
12199
12200 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12201 PyObject *resultobj = 0;
12202 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12203 long *arg2 = (long *) 0 ;
12204 long *arg3 = (long *) 0 ;
12205 void *argp1 = 0 ;
12206 int res1 = 0 ;
12207 long temp2 ;
12208 int res2 = SWIG_TMPOBJ ;
12209 long temp3 ;
12210 int res3 = SWIG_TMPOBJ ;
12211 PyObject *swig_obj[1] ;
12212
12213 arg2 = &temp2;
12214 arg3 = &temp3;
12215 if (!args) SWIG_fail;
12216 swig_obj[0] = args;
12217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12218 if (!SWIG_IsOK(res1)) {
12219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12220 }
12221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 resultobj = SWIG_Py_Void();
12229 if (SWIG_IsTmpObj(res2)) {
12230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12231 } else {
12232 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12234 }
12235 if (SWIG_IsTmpObj(res3)) {
12236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12237 } else {
12238 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12240 }
12241 return resultobj;
12242 fail:
12243 return NULL;
12244 }
12245
12246
12247 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12250 wxString result;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 PyObject *swig_obj[1] ;
12254
12255 if (!args) SWIG_fail;
12256 swig_obj[0] = args;
12257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12260 }
12261 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 {
12269 #if wxUSE_UNICODE
12270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12271 #else
12272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12273 #endif
12274 }
12275 return resultobj;
12276 fail:
12277 return NULL;
12278 }
12279
12280
12281 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12282 PyObject *resultobj = 0;
12283 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12284 void *argp1 = 0 ;
12285 int res1 = 0 ;
12286 PyObject *swig_obj[1] ;
12287
12288 if (!args) SWIG_fail;
12289 swig_obj[0] = args;
12290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12291 if (!SWIG_IsOK(res1)) {
12292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12293 }
12294 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12295 {
12296 PyThreadState* __tstate = wxPyBeginAllowThreads();
12297 (arg1)->Clear();
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 resultobj = SWIG_Py_Void();
12302 return resultobj;
12303 fail:
12304 return NULL;
12305 }
12306
12307
12308 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12309 PyObject *resultobj = 0;
12310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12311 long arg2 ;
12312 long arg3 ;
12313 wxString *arg4 = 0 ;
12314 void *argp1 = 0 ;
12315 int res1 = 0 ;
12316 long val2 ;
12317 int ecode2 = 0 ;
12318 long val3 ;
12319 int ecode3 = 0 ;
12320 bool temp4 = false ;
12321 PyObject * obj0 = 0 ;
12322 PyObject * obj1 = 0 ;
12323 PyObject * obj2 = 0 ;
12324 PyObject * obj3 = 0 ;
12325 char * kwnames[] = {
12326 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12327 };
12328
12329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12331 if (!SWIG_IsOK(res1)) {
12332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12333 }
12334 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12335 ecode2 = SWIG_AsVal_long(obj1, &val2);
12336 if (!SWIG_IsOK(ecode2)) {
12337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12338 }
12339 arg2 = static_cast< long >(val2);
12340 ecode3 = SWIG_AsVal_long(obj2, &val3);
12341 if (!SWIG_IsOK(ecode3)) {
12342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12343 }
12344 arg3 = static_cast< long >(val3);
12345 {
12346 arg4 = wxString_in_helper(obj3);
12347 if (arg4 == NULL) SWIG_fail;
12348 temp4 = true;
12349 }
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_Py_Void();
12357 {
12358 if (temp4)
12359 delete arg4;
12360 }
12361 return resultobj;
12362 fail:
12363 {
12364 if (temp4)
12365 delete arg4;
12366 }
12367 return NULL;
12368 }
12369
12370
12371 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj = 0;
12373 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12374 long arg2 ;
12375 long arg3 ;
12376 void *argp1 = 0 ;
12377 int res1 = 0 ;
12378 long val2 ;
12379 int ecode2 = 0 ;
12380 long val3 ;
12381 int ecode3 = 0 ;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 PyObject * obj2 = 0 ;
12385 char * kwnames[] = {
12386 (char *) "self",(char *) "from",(char *) "to", NULL
12387 };
12388
12389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12393 }
12394 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12395 ecode2 = SWIG_AsVal_long(obj1, &val2);
12396 if (!SWIG_IsOK(ecode2)) {
12397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12398 }
12399 arg2 = static_cast< long >(val2);
12400 ecode3 = SWIG_AsVal_long(obj2, &val3);
12401 if (!SWIG_IsOK(ecode3)) {
12402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12403 }
12404 arg3 = static_cast< long >(val3);
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 (arg1)->Remove(arg2,arg3);
12408 wxPyEndAllowThreads(__tstate);
12409 if (PyErr_Occurred()) SWIG_fail;
12410 }
12411 resultobj = SWIG_Py_Void();
12412 return resultobj;
12413 fail:
12414 return NULL;
12415 }
12416
12417
12418 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12419 PyObject *resultobj = 0;
12420 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12421 wxString *arg2 = 0 ;
12422 bool result;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 bool temp2 = false ;
12426 PyObject * obj0 = 0 ;
12427 PyObject * obj1 = 0 ;
12428 char * kwnames[] = {
12429 (char *) "self",(char *) "file", NULL
12430 };
12431
12432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12434 if (!SWIG_IsOK(res1)) {
12435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12436 }
12437 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12438 {
12439 arg2 = wxString_in_helper(obj1);
12440 if (arg2 == NULL) SWIG_fail;
12441 temp2 = true;
12442 }
12443 {
12444 PyThreadState* __tstate = wxPyBeginAllowThreads();
12445 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12446 wxPyEndAllowThreads(__tstate);
12447 if (PyErr_Occurred()) SWIG_fail;
12448 }
12449 {
12450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12451 }
12452 {
12453 if (temp2)
12454 delete arg2;
12455 }
12456 return resultobj;
12457 fail:
12458 {
12459 if (temp2)
12460 delete arg2;
12461 }
12462 return NULL;
12463 }
12464
12465
12466 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj = 0;
12468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12469 wxString const &arg2_defvalue = wxPyEmptyString ;
12470 wxString *arg2 = (wxString *) &arg2_defvalue ;
12471 bool result;
12472 void *argp1 = 0 ;
12473 int res1 = 0 ;
12474 bool temp2 = false ;
12475 PyObject * obj0 = 0 ;
12476 PyObject * obj1 = 0 ;
12477 char * kwnames[] = {
12478 (char *) "self",(char *) "file", NULL
12479 };
12480
12481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12483 if (!SWIG_IsOK(res1)) {
12484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12485 }
12486 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12487 if (obj1) {
12488 {
12489 arg2 = wxString_in_helper(obj1);
12490 if (arg2 == NULL) SWIG_fail;
12491 temp2 = true;
12492 }
12493 }
12494 {
12495 PyThreadState* __tstate = wxPyBeginAllowThreads();
12496 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12497 wxPyEndAllowThreads(__tstate);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 }
12500 {
12501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12502 }
12503 {
12504 if (temp2)
12505 delete arg2;
12506 }
12507 return resultobj;
12508 fail:
12509 {
12510 if (temp2)
12511 delete arg2;
12512 }
12513 return NULL;
12514 }
12515
12516
12517 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12518 PyObject *resultobj = 0;
12519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12520 void *argp1 = 0 ;
12521 int res1 = 0 ;
12522 PyObject *swig_obj[1] ;
12523
12524 if (!args) SWIG_fail;
12525 swig_obj[0] = args;
12526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12527 if (!SWIG_IsOK(res1)) {
12528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12529 }
12530 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->MarkDirty();
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 resultobj = SWIG_Py_Void();
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12545 PyObject *resultobj = 0;
12546 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12547 void *argp1 = 0 ;
12548 int res1 = 0 ;
12549 PyObject *swig_obj[1] ;
12550
12551 if (!args) SWIG_fail;
12552 swig_obj[0] = args;
12553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12554 if (!SWIG_IsOK(res1)) {
12555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12556 }
12557 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 (arg1)->DiscardEdits();
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_Py_Void();
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj = 0;
12573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12574 unsigned long arg2 ;
12575 void *argp1 = 0 ;
12576 int res1 = 0 ;
12577 unsigned long val2 ;
12578 int ecode2 = 0 ;
12579 PyObject * obj0 = 0 ;
12580 PyObject * obj1 = 0 ;
12581 char * kwnames[] = {
12582 (char *) "self",(char *) "len", NULL
12583 };
12584
12585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12587 if (!SWIG_IsOK(res1)) {
12588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12589 }
12590 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12591 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12592 if (!SWIG_IsOK(ecode2)) {
12593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12594 }
12595 arg2 = static_cast< unsigned long >(val2);
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 (arg1)->SetMaxLength(arg2);
12599 wxPyEndAllowThreads(__tstate);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 resultobj = SWIG_Py_Void();
12603 return resultobj;
12604 fail:
12605 return NULL;
12606 }
12607
12608
12609 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12610 PyObject *resultobj = 0;
12611 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12612 wxString *arg2 = 0 ;
12613 void *argp1 = 0 ;
12614 int res1 = 0 ;
12615 bool temp2 = false ;
12616 PyObject * obj0 = 0 ;
12617 PyObject * obj1 = 0 ;
12618 char * kwnames[] = {
12619 (char *) "self",(char *) "text", NULL
12620 };
12621
12622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12626 }
12627 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12628 {
12629 arg2 = wxString_in_helper(obj1);
12630 if (arg2 == NULL) SWIG_fail;
12631 temp2 = true;
12632 }
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 (arg1)->WriteText((wxString const &)*arg2);
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 resultobj = SWIG_Py_Void();
12640 {
12641 if (temp2)
12642 delete arg2;
12643 }
12644 return resultobj;
12645 fail:
12646 {
12647 if (temp2)
12648 delete arg2;
12649 }
12650 return NULL;
12651 }
12652
12653
12654 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12655 PyObject *resultobj = 0;
12656 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12657 wxString *arg2 = 0 ;
12658 void *argp1 = 0 ;
12659 int res1 = 0 ;
12660 bool temp2 = false ;
12661 PyObject * obj0 = 0 ;
12662 PyObject * obj1 = 0 ;
12663 char * kwnames[] = {
12664 (char *) "self",(char *) "text", NULL
12665 };
12666
12667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12669 if (!SWIG_IsOK(res1)) {
12670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12671 }
12672 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12673 {
12674 arg2 = wxString_in_helper(obj1);
12675 if (arg2 == NULL) SWIG_fail;
12676 temp2 = true;
12677 }
12678 {
12679 PyThreadState* __tstate = wxPyBeginAllowThreads();
12680 (arg1)->AppendText((wxString const &)*arg2);
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 resultobj = SWIG_Py_Void();
12685 {
12686 if (temp2)
12687 delete arg2;
12688 }
12689 return resultobj;
12690 fail:
12691 {
12692 if (temp2)
12693 delete arg2;
12694 }
12695 return NULL;
12696 }
12697
12698
12699 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12700 PyObject *resultobj = 0;
12701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12702 wxKeyEvent *arg2 = 0 ;
12703 bool result;
12704 void *argp1 = 0 ;
12705 int res1 = 0 ;
12706 void *argp2 = 0 ;
12707 int res2 = 0 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 char * kwnames[] = {
12711 (char *) "self",(char *) "event", NULL
12712 };
12713
12714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12718 }
12719 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12721 if (!SWIG_IsOK(res2)) {
12722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12723 }
12724 if (!argp2) {
12725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12726 }
12727 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12728 {
12729 PyThreadState* __tstate = wxPyBeginAllowThreads();
12730 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12736 }
12737 return resultobj;
12738 fail:
12739 return NULL;
12740 }
12741
12742
12743 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj = 0;
12745 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12746 long arg2 ;
12747 long arg3 ;
12748 wxTextAttr *arg4 = 0 ;
12749 bool result;
12750 void *argp1 = 0 ;
12751 int res1 = 0 ;
12752 long val2 ;
12753 int ecode2 = 0 ;
12754 long val3 ;
12755 int ecode3 = 0 ;
12756 void *argp4 = 0 ;
12757 int res4 = 0 ;
12758 PyObject * obj0 = 0 ;
12759 PyObject * obj1 = 0 ;
12760 PyObject * obj2 = 0 ;
12761 PyObject * obj3 = 0 ;
12762 char * kwnames[] = {
12763 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12764 };
12765
12766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12768 if (!SWIG_IsOK(res1)) {
12769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12770 }
12771 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12772 ecode2 = SWIG_AsVal_long(obj1, &val2);
12773 if (!SWIG_IsOK(ecode2)) {
12774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12775 }
12776 arg2 = static_cast< long >(val2);
12777 ecode3 = SWIG_AsVal_long(obj2, &val3);
12778 if (!SWIG_IsOK(ecode3)) {
12779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12780 }
12781 arg3 = static_cast< long >(val3);
12782 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12783 if (!SWIG_IsOK(res4)) {
12784 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12785 }
12786 if (!argp4) {
12787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12788 }
12789 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12790 {
12791 PyThreadState* __tstate = wxPyBeginAllowThreads();
12792 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 {
12797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12798 }
12799 return resultobj;
12800 fail:
12801 return NULL;
12802 }
12803
12804
12805 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12806 PyObject *resultobj = 0;
12807 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12808 long arg2 ;
12809 wxTextAttr *arg3 = 0 ;
12810 bool result;
12811 void *argp1 = 0 ;
12812 int res1 = 0 ;
12813 long val2 ;
12814 int ecode2 = 0 ;
12815 void *argp3 = 0 ;
12816 int res3 = 0 ;
12817 PyObject * obj0 = 0 ;
12818 PyObject * obj1 = 0 ;
12819 PyObject * obj2 = 0 ;
12820 char * kwnames[] = {
12821 (char *) "self",(char *) "position",(char *) "style", NULL
12822 };
12823
12824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12826 if (!SWIG_IsOK(res1)) {
12827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12828 }
12829 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12830 ecode2 = SWIG_AsVal_long(obj1, &val2);
12831 if (!SWIG_IsOK(ecode2)) {
12832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12833 }
12834 arg2 = static_cast< long >(val2);
12835 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12836 if (!SWIG_IsOK(res3)) {
12837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12838 }
12839 if (!argp3) {
12840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12841 }
12842 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12843 {
12844 PyThreadState* __tstate = wxPyBeginAllowThreads();
12845 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 {
12850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12851 }
12852 return resultobj;
12853 fail:
12854 return NULL;
12855 }
12856
12857
12858 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12861 wxTextAttr *arg2 = 0 ;
12862 bool result;
12863 void *argp1 = 0 ;
12864 int res1 = 0 ;
12865 void *argp2 = 0 ;
12866 int res2 = 0 ;
12867 PyObject * obj0 = 0 ;
12868 PyObject * obj1 = 0 ;
12869 char * kwnames[] = {
12870 (char *) "self",(char *) "style", NULL
12871 };
12872
12873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12875 if (!SWIG_IsOK(res1)) {
12876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12877 }
12878 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12880 if (!SWIG_IsOK(res2)) {
12881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12882 }
12883 if (!argp2) {
12884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12885 }
12886 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12887 {
12888 PyThreadState* __tstate = wxPyBeginAllowThreads();
12889 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12890 wxPyEndAllowThreads(__tstate);
12891 if (PyErr_Occurred()) SWIG_fail;
12892 }
12893 {
12894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12895 }
12896 return resultobj;
12897 fail:
12898 return NULL;
12899 }
12900
12901
12902 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12903 PyObject *resultobj = 0;
12904 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12905 wxTextAttr *result = 0 ;
12906 void *argp1 = 0 ;
12907 int res1 = 0 ;
12908 PyObject *swig_obj[1] ;
12909
12910 if (!args) SWIG_fail;
12911 swig_obj[0] = args;
12912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12913 if (!SWIG_IsOK(res1)) {
12914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12915 }
12916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 {
12920 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12921 result = (wxTextAttr *) &_result_ref;
12922 }
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12927 return resultobj;
12928 fail:
12929 return NULL;
12930 }
12931
12932
12933 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12934 PyObject *resultobj = 0;
12935 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12936 long arg2 ;
12937 long arg3 ;
12938 long result;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 long val2 ;
12942 int ecode2 = 0 ;
12943 long val3 ;
12944 int ecode3 = 0 ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 PyObject * obj2 = 0 ;
12948 char * kwnames[] = {
12949 (char *) "self",(char *) "x",(char *) "y", NULL
12950 };
12951
12952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12954 if (!SWIG_IsOK(res1)) {
12955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12956 }
12957 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12958 ecode2 = SWIG_AsVal_long(obj1, &val2);
12959 if (!SWIG_IsOK(ecode2)) {
12960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12961 }
12962 arg2 = static_cast< long >(val2);
12963 ecode3 = SWIG_AsVal_long(obj2, &val3);
12964 if (!SWIG_IsOK(ecode3)) {
12965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12966 }
12967 arg3 = static_cast< long >(val3);
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 resultobj = SWIG_From_long(static_cast< long >(result));
12975 return resultobj;
12976 fail:
12977 return NULL;
12978 }
12979
12980
12981 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12982 PyObject *resultobj = 0;
12983 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12984 long arg2 ;
12985 long *arg3 = (long *) 0 ;
12986 long *arg4 = (long *) 0 ;
12987 void *argp1 = 0 ;
12988 int res1 = 0 ;
12989 long val2 ;
12990 int ecode2 = 0 ;
12991 long temp3 ;
12992 int res3 = SWIG_TMPOBJ ;
12993 long temp4 ;
12994 int res4 = SWIG_TMPOBJ ;
12995 PyObject * obj0 = 0 ;
12996 PyObject * obj1 = 0 ;
12997 char * kwnames[] = {
12998 (char *) "self",(char *) "pos", NULL
12999 };
13000
13001 arg3 = &temp3;
13002 arg4 = &temp4;
13003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13005 if (!SWIG_IsOK(res1)) {
13006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13007 }
13008 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13009 ecode2 = SWIG_AsVal_long(obj1, &val2);
13010 if (!SWIG_IsOK(ecode2)) {
13011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13012 }
13013 arg2 = static_cast< long >(val2);
13014 {
13015 PyThreadState* __tstate = wxPyBeginAllowThreads();
13016 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13017 wxPyEndAllowThreads(__tstate);
13018 if (PyErr_Occurred()) SWIG_fail;
13019 }
13020 resultobj = SWIG_Py_Void();
13021 if (SWIG_IsTmpObj(res3)) {
13022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13023 } else {
13024 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13026 }
13027 if (SWIG_IsTmpObj(res4)) {
13028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13029 } else {
13030 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13032 }
13033 return resultobj;
13034 fail:
13035 return NULL;
13036 }
13037
13038
13039 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13040 PyObject *resultobj = 0;
13041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13042 long arg2 ;
13043 void *argp1 = 0 ;
13044 int res1 = 0 ;
13045 long val2 ;
13046 int ecode2 = 0 ;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char * kwnames[] = {
13050 (char *) "self",(char *) "pos", NULL
13051 };
13052
13053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13055 if (!SWIG_IsOK(res1)) {
13056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13057 }
13058 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13059 ecode2 = SWIG_AsVal_long(obj1, &val2);
13060 if (!SWIG_IsOK(ecode2)) {
13061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13062 }
13063 arg2 = static_cast< long >(val2);
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 (arg1)->ShowPosition(arg2);
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 resultobj = SWIG_Py_Void();
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj = 0;
13079 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13080 wxPoint *arg2 = 0 ;
13081 long *arg3 = (long *) 0 ;
13082 long *arg4 = (long *) 0 ;
13083 wxTextCtrlHitTestResult result;
13084 void *argp1 = 0 ;
13085 int res1 = 0 ;
13086 wxPoint temp2 ;
13087 long temp3 ;
13088 int res3 = SWIG_TMPOBJ ;
13089 long temp4 ;
13090 int res4 = SWIG_TMPOBJ ;
13091 PyObject * obj0 = 0 ;
13092 PyObject * obj1 = 0 ;
13093 char * kwnames[] = {
13094 (char *) "self",(char *) "pt", NULL
13095 };
13096
13097 arg3 = &temp3;
13098 arg4 = &temp4;
13099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13101 if (!SWIG_IsOK(res1)) {
13102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13103 }
13104 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13105 {
13106 arg2 = &temp2;
13107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13108 }
13109 {
13110 PyThreadState* __tstate = wxPyBeginAllowThreads();
13111 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 resultobj = SWIG_From_int(static_cast< int >(result));
13116 if (SWIG_IsTmpObj(res3)) {
13117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13118 } else {
13119 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13121 }
13122 if (SWIG_IsTmpObj(res4)) {
13123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13124 } else {
13125 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13127 }
13128 return resultobj;
13129 fail:
13130 return NULL;
13131 }
13132
13133
13134 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13135 PyObject *resultobj = 0;
13136 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13137 wxPoint *arg2 = 0 ;
13138 long *arg3 = (long *) 0 ;
13139 wxTextCtrlHitTestResult result;
13140 void *argp1 = 0 ;
13141 int res1 = 0 ;
13142 wxPoint temp2 ;
13143 long temp3 ;
13144 int res3 = SWIG_TMPOBJ ;
13145 PyObject * obj0 = 0 ;
13146 PyObject * obj1 = 0 ;
13147 char * kwnames[] = {
13148 (char *) "self",(char *) "pt", NULL
13149 };
13150
13151 arg3 = &temp3;
13152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13154 if (!SWIG_IsOK(res1)) {
13155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13156 }
13157 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13158 {
13159 arg2 = &temp2;
13160 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13161 }
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13165 wxPyEndAllowThreads(__tstate);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 }
13168 resultobj = SWIG_From_int(static_cast< int >(result));
13169 if (SWIG_IsTmpObj(res3)) {
13170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13171 } else {
13172 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13174 }
13175 return resultobj;
13176 fail:
13177 return NULL;
13178 }
13179
13180
13181 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13182 PyObject *resultobj = 0;
13183 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13184 void *argp1 = 0 ;
13185 int res1 = 0 ;
13186 PyObject *swig_obj[1] ;
13187
13188 if (!args) SWIG_fail;
13189 swig_obj[0] = args;
13190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13191 if (!SWIG_IsOK(res1)) {
13192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13193 }
13194 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 (arg1)->Copy();
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 resultobj = SWIG_Py_Void();
13202 return resultobj;
13203 fail:
13204 return NULL;
13205 }
13206
13207
13208 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13209 PyObject *resultobj = 0;
13210 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13211 void *argp1 = 0 ;
13212 int res1 = 0 ;
13213 PyObject *swig_obj[1] ;
13214
13215 if (!args) SWIG_fail;
13216 swig_obj[0] = args;
13217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13218 if (!SWIG_IsOK(res1)) {
13219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13220 }
13221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 (arg1)->Cut();
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 resultobj = SWIG_Py_Void();
13229 return resultobj;
13230 fail:
13231 return NULL;
13232 }
13233
13234
13235 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13236 PyObject *resultobj = 0;
13237 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13238 void *argp1 = 0 ;
13239 int res1 = 0 ;
13240 PyObject *swig_obj[1] ;
13241
13242 if (!args) SWIG_fail;
13243 swig_obj[0] = args;
13244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13245 if (!SWIG_IsOK(res1)) {
13246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13247 }
13248 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 (arg1)->Paste();
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 resultobj = SWIG_Py_Void();
13256 return resultobj;
13257 fail:
13258 return NULL;
13259 }
13260
13261
13262 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13263 PyObject *resultobj = 0;
13264 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13265 bool result;
13266 void *argp1 = 0 ;
13267 int res1 = 0 ;
13268 PyObject *swig_obj[1] ;
13269
13270 if (!args) SWIG_fail;
13271 swig_obj[0] = args;
13272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13273 if (!SWIG_IsOK(res1)) {
13274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13275 }
13276 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 {
13284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13285 }
13286 return resultobj;
13287 fail:
13288 return NULL;
13289 }
13290
13291
13292 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13293 PyObject *resultobj = 0;
13294 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13295 bool result;
13296 void *argp1 = 0 ;
13297 int res1 = 0 ;
13298 PyObject *swig_obj[1] ;
13299
13300 if (!args) SWIG_fail;
13301 swig_obj[0] = args;
13302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13303 if (!SWIG_IsOK(res1)) {
13304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13305 }
13306 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 {
13314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13315 }
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13323 PyObject *resultobj = 0;
13324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13325 bool result;
13326 void *argp1 = 0 ;
13327 int res1 = 0 ;
13328 PyObject *swig_obj[1] ;
13329
13330 if (!args) SWIG_fail;
13331 swig_obj[0] = args;
13332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13335 }
13336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13345 }
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13355 void *argp1 = 0 ;
13356 int res1 = 0 ;
13357 PyObject *swig_obj[1] ;
13358
13359 if (!args) SWIG_fail;
13360 swig_obj[0] = args;
13361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13362 if (!SWIG_IsOK(res1)) {
13363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13364 }
13365 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 (arg1)->Undo();
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 resultobj = SWIG_Py_Void();
13373 return resultobj;
13374 fail:
13375 return NULL;
13376 }
13377
13378
13379 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13380 PyObject *resultobj = 0;
13381 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13382 void *argp1 = 0 ;
13383 int res1 = 0 ;
13384 PyObject *swig_obj[1] ;
13385
13386 if (!args) SWIG_fail;
13387 swig_obj[0] = args;
13388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13389 if (!SWIG_IsOK(res1)) {
13390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13391 }
13392 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 (arg1)->Redo();
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 resultobj = SWIG_Py_Void();
13400 return resultobj;
13401 fail:
13402 return NULL;
13403 }
13404
13405
13406 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13407 PyObject *resultobj = 0;
13408 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13409 bool result;
13410 void *argp1 = 0 ;
13411 int res1 = 0 ;
13412 PyObject *swig_obj[1] ;
13413
13414 if (!args) SWIG_fail;
13415 swig_obj[0] = args;
13416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13417 if (!SWIG_IsOK(res1)) {
13418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13419 }
13420 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13421 {
13422 PyThreadState* __tstate = wxPyBeginAllowThreads();
13423 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 {
13428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13429 }
13430 return resultobj;
13431 fail:
13432 return NULL;
13433 }
13434
13435
13436 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13437 PyObject *resultobj = 0;
13438 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13439 bool result;
13440 void *argp1 = 0 ;
13441 int res1 = 0 ;
13442 PyObject *swig_obj[1] ;
13443
13444 if (!args) SWIG_fail;
13445 swig_obj[0] = args;
13446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13447 if (!SWIG_IsOK(res1)) {
13448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13449 }
13450 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 {
13458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13459 }
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj = 0;
13468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13469 long arg2 ;
13470 void *argp1 = 0 ;
13471 int res1 = 0 ;
13472 long val2 ;
13473 int ecode2 = 0 ;
13474 PyObject * obj0 = 0 ;
13475 PyObject * obj1 = 0 ;
13476 char * kwnames[] = {
13477 (char *) "self",(char *) "pos", NULL
13478 };
13479
13480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13482 if (!SWIG_IsOK(res1)) {
13483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13484 }
13485 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13486 ecode2 = SWIG_AsVal_long(obj1, &val2);
13487 if (!SWIG_IsOK(ecode2)) {
13488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13489 }
13490 arg2 = static_cast< long >(val2);
13491 {
13492 PyThreadState* __tstate = wxPyBeginAllowThreads();
13493 (arg1)->SetInsertionPoint(arg2);
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 resultobj = SWIG_Py_Void();
13498 return resultobj;
13499 fail:
13500 return NULL;
13501 }
13502
13503
13504 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13505 PyObject *resultobj = 0;
13506 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13507 void *argp1 = 0 ;
13508 int res1 = 0 ;
13509 PyObject *swig_obj[1] ;
13510
13511 if (!args) SWIG_fail;
13512 swig_obj[0] = args;
13513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13514 if (!SWIG_IsOK(res1)) {
13515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13516 }
13517 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 (arg1)->SetInsertionPointEnd();
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 resultobj = SWIG_Py_Void();
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13532 PyObject *resultobj = 0;
13533 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13534 long result;
13535 void *argp1 = 0 ;
13536 int res1 = 0 ;
13537 PyObject *swig_obj[1] ;
13538
13539 if (!args) SWIG_fail;
13540 swig_obj[0] = args;
13541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13542 if (!SWIG_IsOK(res1)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13544 }
13545 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = SWIG_From_long(static_cast< long >(result));
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13560 PyObject *resultobj = 0;
13561 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13562 long result;
13563 void *argp1 = 0 ;
13564 int res1 = 0 ;
13565 PyObject *swig_obj[1] ;
13566
13567 if (!args) SWIG_fail;
13568 swig_obj[0] = args;
13569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13570 if (!SWIG_IsOK(res1)) {
13571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13572 }
13573 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = SWIG_From_long(static_cast< long >(result));
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj = 0;
13589 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13590 long arg2 ;
13591 long arg3 ;
13592 void *argp1 = 0 ;
13593 int res1 = 0 ;
13594 long val2 ;
13595 int ecode2 = 0 ;
13596 long val3 ;
13597 int ecode3 = 0 ;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 PyObject * obj2 = 0 ;
13601 char * kwnames[] = {
13602 (char *) "self",(char *) "from",(char *) "to", NULL
13603 };
13604
13605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13607 if (!SWIG_IsOK(res1)) {
13608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13609 }
13610 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13611 ecode2 = SWIG_AsVal_long(obj1, &val2);
13612 if (!SWIG_IsOK(ecode2)) {
13613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13614 }
13615 arg2 = static_cast< long >(val2);
13616 ecode3 = SWIG_AsVal_long(obj2, &val3);
13617 if (!SWIG_IsOK(ecode3)) {
13618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13619 }
13620 arg3 = static_cast< long >(val3);
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 (arg1)->SetSelection(arg2,arg3);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = SWIG_Py_Void();
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13635 PyObject *resultobj = 0;
13636 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13637 void *argp1 = 0 ;
13638 int res1 = 0 ;
13639 PyObject *swig_obj[1] ;
13640
13641 if (!args) SWIG_fail;
13642 swig_obj[0] = args;
13643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13646 }
13647 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 (arg1)->SelectAll();
13651 wxPyEndAllowThreads(__tstate);
13652 if (PyErr_Occurred()) SWIG_fail;
13653 }
13654 resultobj = SWIG_Py_Void();
13655 return resultobj;
13656 fail:
13657 return NULL;
13658 }
13659
13660
13661 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13662 PyObject *resultobj = 0;
13663 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13664 bool arg2 ;
13665 void *argp1 = 0 ;
13666 int res1 = 0 ;
13667 bool val2 ;
13668 int ecode2 = 0 ;
13669 PyObject * obj0 = 0 ;
13670 PyObject * obj1 = 0 ;
13671 char * kwnames[] = {
13672 (char *) "self",(char *) "editable", NULL
13673 };
13674
13675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13677 if (!SWIG_IsOK(res1)) {
13678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13679 }
13680 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13681 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13682 if (!SWIG_IsOK(ecode2)) {
13683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13684 }
13685 arg2 = static_cast< bool >(val2);
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 (arg1)->SetEditable(arg2);
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 resultobj = SWIG_Py_Void();
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj = 0;
13701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13702 bool arg2 = (bool) true ;
13703 bool result;
13704 void *argp1 = 0 ;
13705 int res1 = 0 ;
13706 bool val2 ;
13707 int ecode2 = 0 ;
13708 PyObject * obj0 = 0 ;
13709 PyObject * obj1 = 0 ;
13710 char * kwnames[] = {
13711 (char *) "self",(char *) "show", NULL
13712 };
13713
13714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13716 if (!SWIG_IsOK(res1)) {
13717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13718 }
13719 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13720 if (obj1) {
13721 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13722 if (!SWIG_IsOK(ecode2)) {
13723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13724 }
13725 arg2 = static_cast< bool >(val2);
13726 }
13727 {
13728 PyThreadState* __tstate = wxPyBeginAllowThreads();
13729 result = (bool)(arg1)->ShowNativeCaret(arg2);
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 {
13734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13735 }
13736 return resultobj;
13737 fail:
13738 return NULL;
13739 }
13740
13741
13742 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13743 PyObject *resultobj = 0;
13744 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13745 bool result;
13746 void *argp1 = 0 ;
13747 int res1 = 0 ;
13748 PyObject *swig_obj[1] ;
13749
13750 if (!args) SWIG_fail;
13751 swig_obj[0] = args;
13752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13753 if (!SWIG_IsOK(res1)) {
13754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13755 }
13756 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 result = (bool)(arg1)->HideNativeCaret();
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 {
13764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13765 }
13766 return resultobj;
13767 fail:
13768 return NULL;
13769 }
13770
13771
13772 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13773 PyObject *resultobj = 0;
13774 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13775 wxString *arg2 = 0 ;
13776 void *argp1 = 0 ;
13777 int res1 = 0 ;
13778 bool temp2 = false ;
13779 PyObject * obj0 = 0 ;
13780 PyObject * obj1 = 0 ;
13781 char * kwnames[] = {
13782 (char *) "self",(char *) "text", NULL
13783 };
13784
13785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13787 if (!SWIG_IsOK(res1)) {
13788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13789 }
13790 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13791 {
13792 arg2 = wxString_in_helper(obj1);
13793 if (arg2 == NULL) SWIG_fail;
13794 temp2 = true;
13795 }
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 resultobj = SWIG_Py_Void();
13803 {
13804 if (temp2)
13805 delete arg2;
13806 }
13807 return resultobj;
13808 fail:
13809 {
13810 if (temp2)
13811 delete arg2;
13812 }
13813 return NULL;
13814 }
13815
13816
13817 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13818 PyObject *resultobj = 0;
13819 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13820 long arg2 ;
13821 long arg3 ;
13822 wxString result;
13823 void *argp1 = 0 ;
13824 int res1 = 0 ;
13825 long val2 ;
13826 int ecode2 = 0 ;
13827 long val3 ;
13828 int ecode3 = 0 ;
13829 PyObject * obj0 = 0 ;
13830 PyObject * obj1 = 0 ;
13831 PyObject * obj2 = 0 ;
13832 char * kwnames[] = {
13833 (char *) "self",(char *) "from",(char *) "to", NULL
13834 };
13835
13836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13838 if (!SWIG_IsOK(res1)) {
13839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13840 }
13841 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13842 ecode2 = SWIG_AsVal_long(obj1, &val2);
13843 if (!SWIG_IsOK(ecode2)) {
13844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13845 }
13846 arg2 = static_cast< long >(val2);
13847 ecode3 = SWIG_AsVal_long(obj2, &val3);
13848 if (!SWIG_IsOK(ecode3)) {
13849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13850 }
13851 arg3 = static_cast< long >(val3);
13852 {
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 {
13859 #if wxUSE_UNICODE
13860 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13861 #else
13862 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13863 #endif
13864 }
13865 return resultobj;
13866 fail:
13867 return NULL;
13868 }
13869
13870
13871 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13872 PyObject *resultobj = 0;
13873 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13874 SwigValueWrapper<wxVisualAttributes > result;
13875 int val1 ;
13876 int ecode1 = 0 ;
13877 PyObject * obj0 = 0 ;
13878 char * kwnames[] = {
13879 (char *) "variant", NULL
13880 };
13881
13882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13883 if (obj0) {
13884 ecode1 = SWIG_AsVal_int(obj0, &val1);
13885 if (!SWIG_IsOK(ecode1)) {
13886 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13887 }
13888 arg1 = static_cast< wxWindowVariant >(val1);
13889 }
13890 {
13891 if (!wxPyCheckForApp()) SWIG_fail;
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
13893 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13894 wxPyEndAllowThreads(__tstate);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 }
13897 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13898 return resultobj;
13899 fail:
13900 return NULL;
13901 }
13902
13903
13904 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13905 PyObject *obj;
13906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13907 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13908 return SWIG_Py_Void();
13909 }
13910
13911 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13912 return SWIG_Python_InitShadowInstance(args);
13913 }
13914
13915 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj = 0;
13917 int arg1 ;
13918 wxMouseEvent *arg2 = 0 ;
13919 long arg3 ;
13920 long arg4 ;
13921 wxTextUrlEvent *result = 0 ;
13922 int val1 ;
13923 int ecode1 = 0 ;
13924 void *argp2 = 0 ;
13925 int res2 = 0 ;
13926 long val3 ;
13927 int ecode3 = 0 ;
13928 long val4 ;
13929 int ecode4 = 0 ;
13930 PyObject * obj0 = 0 ;
13931 PyObject * obj1 = 0 ;
13932 PyObject * obj2 = 0 ;
13933 PyObject * obj3 = 0 ;
13934 char * kwnames[] = {
13935 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13936 };
13937
13938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13939 ecode1 = SWIG_AsVal_int(obj0, &val1);
13940 if (!SWIG_IsOK(ecode1)) {
13941 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13942 }
13943 arg1 = static_cast< int >(val1);
13944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13945 if (!SWIG_IsOK(res2)) {
13946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13947 }
13948 if (!argp2) {
13949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13950 }
13951 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13952 ecode3 = SWIG_AsVal_long(obj2, &val3);
13953 if (!SWIG_IsOK(ecode3)) {
13954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13955 }
13956 arg3 = static_cast< long >(val3);
13957 ecode4 = SWIG_AsVal_long(obj3, &val4);
13958 if (!SWIG_IsOK(ecode4)) {
13959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13960 }
13961 arg4 = static_cast< long >(val4);
13962 {
13963 PyThreadState* __tstate = wxPyBeginAllowThreads();
13964 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13969 return resultobj;
13970 fail:
13971 return NULL;
13972 }
13973
13974
13975 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13976 PyObject *resultobj = 0;
13977 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13978 wxMouseEvent *result = 0 ;
13979 void *argp1 = 0 ;
13980 int res1 = 0 ;
13981 PyObject *swig_obj[1] ;
13982
13983 if (!args) SWIG_fail;
13984 swig_obj[0] = args;
13985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13986 if (!SWIG_IsOK(res1)) {
13987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13988 }
13989 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 {
13993 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13994 result = (wxMouseEvent *) &_result_ref;
13995 }
13996 wxPyEndAllowThreads(__tstate);
13997 if (PyErr_Occurred()) SWIG_fail;
13998 }
13999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14000 return resultobj;
14001 fail:
14002 return NULL;
14003 }
14004
14005
14006 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14007 PyObject *resultobj = 0;
14008 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14009 long result;
14010 void *argp1 = 0 ;
14011 int res1 = 0 ;
14012 PyObject *swig_obj[1] ;
14013
14014 if (!args) SWIG_fail;
14015 swig_obj[0] = args;
14016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14017 if (!SWIG_IsOK(res1)) {
14018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14019 }
14020 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14021 {
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 resultobj = SWIG_From_long(static_cast< long >(result));
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14035 PyObject *resultobj = 0;
14036 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14037 long result;
14038 void *argp1 = 0 ;
14039 int res1 = 0 ;
14040 PyObject *swig_obj[1] ;
14041
14042 if (!args) SWIG_fail;
14043 swig_obj[0] = args;
14044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14045 if (!SWIG_IsOK(res1)) {
14046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14047 }
14048 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14049 {
14050 PyThreadState* __tstate = wxPyBeginAllowThreads();
14051 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14052 wxPyEndAllowThreads(__tstate);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 resultobj = SWIG_From_long(static_cast< long >(result));
14056 return resultobj;
14057 fail:
14058 return NULL;
14059 }
14060
14061
14062 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14063 PyObject *obj;
14064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14065 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14066 return SWIG_Py_Void();
14067 }
14068
14069 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14070 return SWIG_Python_InitShadowInstance(args);
14071 }
14072
14073 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14074 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14075 return 1;
14076 }
14077
14078
14079 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14080 PyObject *pyobj = 0;
14081
14082 {
14083 #if wxUSE_UNICODE
14084 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14085 #else
14086 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14087 #endif
14088 }
14089 return pyobj;
14090 }
14091
14092
14093 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14094 PyObject *resultobj = 0;
14095 wxWindow *arg1 = (wxWindow *) 0 ;
14096 int arg2 = (int) -1 ;
14097 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14098 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14099 wxSize const &arg4_defvalue = wxDefaultSize ;
14100 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14101 long arg5 = (long) wxSB_HORIZONTAL ;
14102 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14103 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14104 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14105 wxString *arg7 = (wxString *) &arg7_defvalue ;
14106 wxScrollBar *result = 0 ;
14107 void *argp1 = 0 ;
14108 int res1 = 0 ;
14109 int val2 ;
14110 int ecode2 = 0 ;
14111 wxPoint temp3 ;
14112 wxSize temp4 ;
14113 long val5 ;
14114 int ecode5 = 0 ;
14115 void *argp6 = 0 ;
14116 int res6 = 0 ;
14117 bool temp7 = false ;
14118 PyObject * obj0 = 0 ;
14119 PyObject * obj1 = 0 ;
14120 PyObject * obj2 = 0 ;
14121 PyObject * obj3 = 0 ;
14122 PyObject * obj4 = 0 ;
14123 PyObject * obj5 = 0 ;
14124 PyObject * obj6 = 0 ;
14125 char * kwnames[] = {
14126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14127 };
14128
14129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14131 if (!SWIG_IsOK(res1)) {
14132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14133 }
14134 arg1 = reinterpret_cast< wxWindow * >(argp1);
14135 if (obj1) {
14136 ecode2 = SWIG_AsVal_int(obj1, &val2);
14137 if (!SWIG_IsOK(ecode2)) {
14138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14139 }
14140 arg2 = static_cast< int >(val2);
14141 }
14142 if (obj2) {
14143 {
14144 arg3 = &temp3;
14145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14146 }
14147 }
14148 if (obj3) {
14149 {
14150 arg4 = &temp4;
14151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14152 }
14153 }
14154 if (obj4) {
14155 ecode5 = SWIG_AsVal_long(obj4, &val5);
14156 if (!SWIG_IsOK(ecode5)) {
14157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14158 }
14159 arg5 = static_cast< long >(val5);
14160 }
14161 if (obj5) {
14162 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14163 if (!SWIG_IsOK(res6)) {
14164 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14165 }
14166 if (!argp6) {
14167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14168 }
14169 arg6 = reinterpret_cast< wxValidator * >(argp6);
14170 }
14171 if (obj6) {
14172 {
14173 arg7 = wxString_in_helper(obj6);
14174 if (arg7 == NULL) SWIG_fail;
14175 temp7 = true;
14176 }
14177 }
14178 {
14179 if (!wxPyCheckForApp()) SWIG_fail;
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14182 wxPyEndAllowThreads(__tstate);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 }
14185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14186 {
14187 if (temp7)
14188 delete arg7;
14189 }
14190 return resultobj;
14191 fail:
14192 {
14193 if (temp7)
14194 delete arg7;
14195 }
14196 return NULL;
14197 }
14198
14199
14200 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14201 PyObject *resultobj = 0;
14202 wxScrollBar *result = 0 ;
14203
14204 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14205 {
14206 if (!wxPyCheckForApp()) SWIG_fail;
14207 PyThreadState* __tstate = wxPyBeginAllowThreads();
14208 result = (wxScrollBar *)new wxScrollBar();
14209 wxPyEndAllowThreads(__tstate);
14210 if (PyErr_Occurred()) SWIG_fail;
14211 }
14212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14213 return resultobj;
14214 fail:
14215 return NULL;
14216 }
14217
14218
14219 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14220 PyObject *resultobj = 0;
14221 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14222 wxWindow *arg2 = (wxWindow *) 0 ;
14223 int arg3 = (int) -1 ;
14224 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14225 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14226 wxSize const &arg5_defvalue = wxDefaultSize ;
14227 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14228 long arg6 = (long) wxSB_HORIZONTAL ;
14229 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14230 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14231 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14232 wxString *arg8 = (wxString *) &arg8_defvalue ;
14233 bool result;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 void *argp2 = 0 ;
14237 int res2 = 0 ;
14238 int val3 ;
14239 int ecode3 = 0 ;
14240 wxPoint temp4 ;
14241 wxSize temp5 ;
14242 long val6 ;
14243 int ecode6 = 0 ;
14244 void *argp7 = 0 ;
14245 int res7 = 0 ;
14246 bool temp8 = false ;
14247 PyObject * obj0 = 0 ;
14248 PyObject * obj1 = 0 ;
14249 PyObject * obj2 = 0 ;
14250 PyObject * obj3 = 0 ;
14251 PyObject * obj4 = 0 ;
14252 PyObject * obj5 = 0 ;
14253 PyObject * obj6 = 0 ;
14254 PyObject * obj7 = 0 ;
14255 char * kwnames[] = {
14256 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14257 };
14258
14259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14261 if (!SWIG_IsOK(res1)) {
14262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14263 }
14264 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14265 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14266 if (!SWIG_IsOK(res2)) {
14267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14268 }
14269 arg2 = reinterpret_cast< wxWindow * >(argp2);
14270 if (obj2) {
14271 ecode3 = SWIG_AsVal_int(obj2, &val3);
14272 if (!SWIG_IsOK(ecode3)) {
14273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14274 }
14275 arg3 = static_cast< int >(val3);
14276 }
14277 if (obj3) {
14278 {
14279 arg4 = &temp4;
14280 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14281 }
14282 }
14283 if (obj4) {
14284 {
14285 arg5 = &temp5;
14286 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14287 }
14288 }
14289 if (obj5) {
14290 ecode6 = SWIG_AsVal_long(obj5, &val6);
14291 if (!SWIG_IsOK(ecode6)) {
14292 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14293 }
14294 arg6 = static_cast< long >(val6);
14295 }
14296 if (obj6) {
14297 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14298 if (!SWIG_IsOK(res7)) {
14299 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14300 }
14301 if (!argp7) {
14302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14303 }
14304 arg7 = reinterpret_cast< wxValidator * >(argp7);
14305 }
14306 if (obj7) {
14307 {
14308 arg8 = wxString_in_helper(obj7);
14309 if (arg8 == NULL) SWIG_fail;
14310 temp8 = true;
14311 }
14312 }
14313 {
14314 PyThreadState* __tstate = wxPyBeginAllowThreads();
14315 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14316 wxPyEndAllowThreads(__tstate);
14317 if (PyErr_Occurred()) SWIG_fail;
14318 }
14319 {
14320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14321 }
14322 {
14323 if (temp8)
14324 delete arg8;
14325 }
14326 return resultobj;
14327 fail:
14328 {
14329 if (temp8)
14330 delete arg8;
14331 }
14332 return NULL;
14333 }
14334
14335
14336 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14337 PyObject *resultobj = 0;
14338 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14339 int result;
14340 void *argp1 = 0 ;
14341 int res1 = 0 ;
14342 PyObject *swig_obj[1] ;
14343
14344 if (!args) SWIG_fail;
14345 swig_obj[0] = args;
14346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14347 if (!SWIG_IsOK(res1)) {
14348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14349 }
14350 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 resultobj = SWIG_From_int(static_cast< int >(result));
14358 return resultobj;
14359 fail:
14360 return NULL;
14361 }
14362
14363
14364 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14365 PyObject *resultobj = 0;
14366 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14367 int result;
14368 void *argp1 = 0 ;
14369 int res1 = 0 ;
14370 PyObject *swig_obj[1] ;
14371
14372 if (!args) SWIG_fail;
14373 swig_obj[0] = args;
14374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14375 if (!SWIG_IsOK(res1)) {
14376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14377 }
14378 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14382 wxPyEndAllowThreads(__tstate);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 resultobj = SWIG_From_int(static_cast< int >(result));
14386 return resultobj;
14387 fail:
14388 return NULL;
14389 }
14390
14391
14392 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14393 PyObject *resultobj = 0;
14394 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14395 int result;
14396 void *argp1 = 0 ;
14397 int res1 = 0 ;
14398 PyObject *swig_obj[1] ;
14399
14400 if (!args) SWIG_fail;
14401 swig_obj[0] = args;
14402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14403 if (!SWIG_IsOK(res1)) {
14404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14405 }
14406 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14407 {
14408 PyThreadState* __tstate = wxPyBeginAllowThreads();
14409 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 resultobj = SWIG_From_int(static_cast< int >(result));
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14421 PyObject *resultobj = 0;
14422 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14423 int result;
14424 void *argp1 = 0 ;
14425 int res1 = 0 ;
14426 PyObject *swig_obj[1] ;
14427
14428 if (!args) SWIG_fail;
14429 swig_obj[0] = args;
14430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14431 if (!SWIG_IsOK(res1)) {
14432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14433 }
14434 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14435 {
14436 PyThreadState* __tstate = wxPyBeginAllowThreads();
14437 result = (int)((wxScrollBar const *)arg1)->GetRange();
14438 wxPyEndAllowThreads(__tstate);
14439 if (PyErr_Occurred()) SWIG_fail;
14440 }
14441 resultobj = SWIG_From_int(static_cast< int >(result));
14442 return resultobj;
14443 fail:
14444 return NULL;
14445 }
14446
14447
14448 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14449 PyObject *resultobj = 0;
14450 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14451 bool result;
14452 void *argp1 = 0 ;
14453 int res1 = 0 ;
14454 PyObject *swig_obj[1] ;
14455
14456 if (!args) SWIG_fail;
14457 swig_obj[0] = args;
14458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14459 if (!SWIG_IsOK(res1)) {
14460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14461 }
14462 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14463 {
14464 PyThreadState* __tstate = wxPyBeginAllowThreads();
14465 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 {
14470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14471 }
14472 return resultobj;
14473 fail:
14474 return NULL;
14475 }
14476
14477
14478 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14479 PyObject *resultobj = 0;
14480 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14481 int arg2 ;
14482 void *argp1 = 0 ;
14483 int res1 = 0 ;
14484 int val2 ;
14485 int ecode2 = 0 ;
14486 PyObject * obj0 = 0 ;
14487 PyObject * obj1 = 0 ;
14488 char * kwnames[] = {
14489 (char *) "self",(char *) "viewStart", NULL
14490 };
14491
14492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14494 if (!SWIG_IsOK(res1)) {
14495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14496 }
14497 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14498 ecode2 = SWIG_AsVal_int(obj1, &val2);
14499 if (!SWIG_IsOK(ecode2)) {
14500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14501 }
14502 arg2 = static_cast< int >(val2);
14503 {
14504 PyThreadState* __tstate = wxPyBeginAllowThreads();
14505 (arg1)->SetThumbPosition(arg2);
14506 wxPyEndAllowThreads(__tstate);
14507 if (PyErr_Occurred()) SWIG_fail;
14508 }
14509 resultobj = SWIG_Py_Void();
14510 return resultobj;
14511 fail:
14512 return NULL;
14513 }
14514
14515
14516 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14517 PyObject *resultobj = 0;
14518 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14519 SwigValueWrapper<wxVisualAttributes > result;
14520 int val1 ;
14521 int ecode1 = 0 ;
14522 PyObject * obj0 = 0 ;
14523 char * kwnames[] = {
14524 (char *) "variant", NULL
14525 };
14526
14527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14528 if (obj0) {
14529 ecode1 = SWIG_AsVal_int(obj0, &val1);
14530 if (!SWIG_IsOK(ecode1)) {
14531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14532 }
14533 arg1 = static_cast< wxWindowVariant >(val1);
14534 }
14535 {
14536 if (!wxPyCheckForApp()) SWIG_fail;
14537 PyThreadState* __tstate = wxPyBeginAllowThreads();
14538 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14539 wxPyEndAllowThreads(__tstate);
14540 if (PyErr_Occurred()) SWIG_fail;
14541 }
14542 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14543 return resultobj;
14544 fail:
14545 return NULL;
14546 }
14547
14548
14549 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14550 PyObject *obj;
14551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14552 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14553 return SWIG_Py_Void();
14554 }
14555
14556 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14557 return SWIG_Python_InitShadowInstance(args);
14558 }
14559
14560 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14561 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14562 return 1;
14563 }
14564
14565
14566 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14567 PyObject *pyobj = 0;
14568
14569 {
14570 #if wxUSE_UNICODE
14571 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14572 #else
14573 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14574 #endif
14575 }
14576 return pyobj;
14577 }
14578
14579
14580 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14581 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14582 return 1;
14583 }
14584
14585
14586 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14587 PyObject *pyobj = 0;
14588
14589 {
14590 #if wxUSE_UNICODE
14591 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14592 #else
14593 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14594 #endif
14595 }
14596 return pyobj;
14597 }
14598
14599
14600 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14601 PyObject *resultobj = 0;
14602 wxWindow *arg1 = (wxWindow *) 0 ;
14603 int arg2 = (int) -1 ;
14604 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14605 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14606 wxSize const &arg4_defvalue = wxDefaultSize ;
14607 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14608 long arg5 = (long) wxSP_HORIZONTAL ;
14609 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14610 wxString *arg6 = (wxString *) &arg6_defvalue ;
14611 wxSpinButton *result = 0 ;
14612 void *argp1 = 0 ;
14613 int res1 = 0 ;
14614 int val2 ;
14615 int ecode2 = 0 ;
14616 wxPoint temp3 ;
14617 wxSize temp4 ;
14618 long val5 ;
14619 int ecode5 = 0 ;
14620 bool temp6 = false ;
14621 PyObject * obj0 = 0 ;
14622 PyObject * obj1 = 0 ;
14623 PyObject * obj2 = 0 ;
14624 PyObject * obj3 = 0 ;
14625 PyObject * obj4 = 0 ;
14626 PyObject * obj5 = 0 ;
14627 char * kwnames[] = {
14628 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14629 };
14630
14631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14633 if (!SWIG_IsOK(res1)) {
14634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14635 }
14636 arg1 = reinterpret_cast< wxWindow * >(argp1);
14637 if (obj1) {
14638 ecode2 = SWIG_AsVal_int(obj1, &val2);
14639 if (!SWIG_IsOK(ecode2)) {
14640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14641 }
14642 arg2 = static_cast< int >(val2);
14643 }
14644 if (obj2) {
14645 {
14646 arg3 = &temp3;
14647 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14648 }
14649 }
14650 if (obj3) {
14651 {
14652 arg4 = &temp4;
14653 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14654 }
14655 }
14656 if (obj4) {
14657 ecode5 = SWIG_AsVal_long(obj4, &val5);
14658 if (!SWIG_IsOK(ecode5)) {
14659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14660 }
14661 arg5 = static_cast< long >(val5);
14662 }
14663 if (obj5) {
14664 {
14665 arg6 = wxString_in_helper(obj5);
14666 if (arg6 == NULL) SWIG_fail;
14667 temp6 = true;
14668 }
14669 }
14670 {
14671 if (!wxPyCheckForApp()) SWIG_fail;
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14674 wxPyEndAllowThreads(__tstate);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14678 {
14679 if (temp6)
14680 delete arg6;
14681 }
14682 return resultobj;
14683 fail:
14684 {
14685 if (temp6)
14686 delete arg6;
14687 }
14688 return NULL;
14689 }
14690
14691
14692 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14693 PyObject *resultobj = 0;
14694 wxSpinButton *result = 0 ;
14695
14696 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14697 {
14698 if (!wxPyCheckForApp()) SWIG_fail;
14699 PyThreadState* __tstate = wxPyBeginAllowThreads();
14700 result = (wxSpinButton *)new wxSpinButton();
14701 wxPyEndAllowThreads(__tstate);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 }
14704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14705 return resultobj;
14706 fail:
14707 return NULL;
14708 }
14709
14710
14711 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14712 PyObject *resultobj = 0;
14713 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14714 wxWindow *arg2 = (wxWindow *) 0 ;
14715 int arg3 = (int) -1 ;
14716 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14717 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14718 wxSize const &arg5_defvalue = wxDefaultSize ;
14719 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14720 long arg6 = (long) wxSP_HORIZONTAL ;
14721 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14722 wxString *arg7 = (wxString *) &arg7_defvalue ;
14723 bool result;
14724 void *argp1 = 0 ;
14725 int res1 = 0 ;
14726 void *argp2 = 0 ;
14727 int res2 = 0 ;
14728 int val3 ;
14729 int ecode3 = 0 ;
14730 wxPoint temp4 ;
14731 wxSize temp5 ;
14732 long val6 ;
14733 int ecode6 = 0 ;
14734 bool temp7 = false ;
14735 PyObject * obj0 = 0 ;
14736 PyObject * obj1 = 0 ;
14737 PyObject * obj2 = 0 ;
14738 PyObject * obj3 = 0 ;
14739 PyObject * obj4 = 0 ;
14740 PyObject * obj5 = 0 ;
14741 PyObject * obj6 = 0 ;
14742 char * kwnames[] = {
14743 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14744 };
14745
14746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14748 if (!SWIG_IsOK(res1)) {
14749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14750 }
14751 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14752 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14753 if (!SWIG_IsOK(res2)) {
14754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14755 }
14756 arg2 = reinterpret_cast< wxWindow * >(argp2);
14757 if (obj2) {
14758 ecode3 = SWIG_AsVal_int(obj2, &val3);
14759 if (!SWIG_IsOK(ecode3)) {
14760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14761 }
14762 arg3 = static_cast< int >(val3);
14763 }
14764 if (obj3) {
14765 {
14766 arg4 = &temp4;
14767 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14768 }
14769 }
14770 if (obj4) {
14771 {
14772 arg5 = &temp5;
14773 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14774 }
14775 }
14776 if (obj5) {
14777 ecode6 = SWIG_AsVal_long(obj5, &val6);
14778 if (!SWIG_IsOK(ecode6)) {
14779 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14780 }
14781 arg6 = static_cast< long >(val6);
14782 }
14783 if (obj6) {
14784 {
14785 arg7 = wxString_in_helper(obj6);
14786 if (arg7 == NULL) SWIG_fail;
14787 temp7 = true;
14788 }
14789 }
14790 {
14791 PyThreadState* __tstate = wxPyBeginAllowThreads();
14792 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14793 wxPyEndAllowThreads(__tstate);
14794 if (PyErr_Occurred()) SWIG_fail;
14795 }
14796 {
14797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14798 }
14799 {
14800 if (temp7)
14801 delete arg7;
14802 }
14803 return resultobj;
14804 fail:
14805 {
14806 if (temp7)
14807 delete arg7;
14808 }
14809 return NULL;
14810 }
14811
14812
14813 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14814 PyObject *resultobj = 0;
14815 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14816 int result;
14817 void *argp1 = 0 ;
14818 int res1 = 0 ;
14819 PyObject *swig_obj[1] ;
14820
14821 if (!args) SWIG_fail;
14822 swig_obj[0] = args;
14823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14824 if (!SWIG_IsOK(res1)) {
14825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14826 }
14827 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14828 {
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 result = (int)((wxSpinButton const *)arg1)->GetValue();
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 resultobj = SWIG_From_int(static_cast< int >(result));
14835 return resultobj;
14836 fail:
14837 return NULL;
14838 }
14839
14840
14841 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14842 PyObject *resultobj = 0;
14843 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14844 int result;
14845 void *argp1 = 0 ;
14846 int res1 = 0 ;
14847 PyObject *swig_obj[1] ;
14848
14849 if (!args) SWIG_fail;
14850 swig_obj[0] = args;
14851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14852 if (!SWIG_IsOK(res1)) {
14853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14854 }
14855 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 result = (int)((wxSpinButton const *)arg1)->GetMin();
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_From_int(static_cast< int >(result));
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14870 PyObject *resultobj = 0;
14871 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14872 int result;
14873 void *argp1 = 0 ;
14874 int res1 = 0 ;
14875 PyObject *swig_obj[1] ;
14876
14877 if (!args) SWIG_fail;
14878 swig_obj[0] = args;
14879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14880 if (!SWIG_IsOK(res1)) {
14881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14882 }
14883 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 result = (int)((wxSpinButton const *)arg1)->GetMax();
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 resultobj = SWIG_From_int(static_cast< int >(result));
14891 return resultobj;
14892 fail:
14893 return NULL;
14894 }
14895
14896
14897 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14898 PyObject *resultobj = 0;
14899 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14900 int arg2 ;
14901 void *argp1 = 0 ;
14902 int res1 = 0 ;
14903 int val2 ;
14904 int ecode2 = 0 ;
14905 PyObject * obj0 = 0 ;
14906 PyObject * obj1 = 0 ;
14907 char * kwnames[] = {
14908 (char *) "self",(char *) "val", NULL
14909 };
14910
14911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14913 if (!SWIG_IsOK(res1)) {
14914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14915 }
14916 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14917 ecode2 = SWIG_AsVal_int(obj1, &val2);
14918 if (!SWIG_IsOK(ecode2)) {
14919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14920 }
14921 arg2 = static_cast< int >(val2);
14922 {
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
14924 (arg1)->SetValue(arg2);
14925 wxPyEndAllowThreads(__tstate);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 }
14928 resultobj = SWIG_Py_Void();
14929 return resultobj;
14930 fail:
14931 return NULL;
14932 }
14933
14934
14935 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14936 PyObject *resultobj = 0;
14937 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14938 int arg2 ;
14939 void *argp1 = 0 ;
14940 int res1 = 0 ;
14941 int val2 ;
14942 int ecode2 = 0 ;
14943 PyObject * obj0 = 0 ;
14944 PyObject * obj1 = 0 ;
14945 char * kwnames[] = {
14946 (char *) "self",(char *) "minVal", NULL
14947 };
14948
14949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14951 if (!SWIG_IsOK(res1)) {
14952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14953 }
14954 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14955 ecode2 = SWIG_AsVal_int(obj1, &val2);
14956 if (!SWIG_IsOK(ecode2)) {
14957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14958 }
14959 arg2 = static_cast< int >(val2);
14960 {
14961 PyThreadState* __tstate = wxPyBeginAllowThreads();
14962 (arg1)->SetMin(arg2);
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 resultobj = SWIG_Py_Void();
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj = 0;
14975 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14976 int arg2 ;
14977 void *argp1 = 0 ;
14978 int res1 = 0 ;
14979 int val2 ;
14980 int ecode2 = 0 ;
14981 PyObject * obj0 = 0 ;
14982 PyObject * obj1 = 0 ;
14983 char * kwnames[] = {
14984 (char *) "self",(char *) "maxVal", NULL
14985 };
14986
14987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14989 if (!SWIG_IsOK(res1)) {
14990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14991 }
14992 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14993 ecode2 = SWIG_AsVal_int(obj1, &val2);
14994 if (!SWIG_IsOK(ecode2)) {
14995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14996 }
14997 arg2 = static_cast< int >(val2);
14998 {
14999 PyThreadState* __tstate = wxPyBeginAllowThreads();
15000 (arg1)->SetMax(arg2);
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = SWIG_Py_Void();
15005 return resultobj;
15006 fail:
15007 return NULL;
15008 }
15009
15010
15011 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj = 0;
15013 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15014 int arg2 ;
15015 int arg3 ;
15016 void *argp1 = 0 ;
15017 int res1 = 0 ;
15018 int val2 ;
15019 int ecode2 = 0 ;
15020 int val3 ;
15021 int ecode3 = 0 ;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 PyObject * obj2 = 0 ;
15025 char * kwnames[] = {
15026 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15027 };
15028
15029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15031 if (!SWIG_IsOK(res1)) {
15032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15033 }
15034 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15035 ecode2 = SWIG_AsVal_int(obj1, &val2);
15036 if (!SWIG_IsOK(ecode2)) {
15037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15038 }
15039 arg2 = static_cast< int >(val2);
15040 ecode3 = SWIG_AsVal_int(obj2, &val3);
15041 if (!SWIG_IsOK(ecode3)) {
15042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15043 }
15044 arg3 = static_cast< int >(val3);
15045 {
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 (arg1)->SetRange(arg2,arg3);
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 resultobj = SWIG_Py_Void();
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15059 PyObject *resultobj = 0;
15060 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15061 bool result;
15062 void *argp1 = 0 ;
15063 int res1 = 0 ;
15064 PyObject *swig_obj[1] ;
15065
15066 if (!args) SWIG_fail;
15067 swig_obj[0] = args;
15068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15069 if (!SWIG_IsOK(res1)) {
15070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15071 }
15072 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 {
15080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15081 }
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj = 0;
15090 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15091 SwigValueWrapper<wxVisualAttributes > result;
15092 int val1 ;
15093 int ecode1 = 0 ;
15094 PyObject * obj0 = 0 ;
15095 char * kwnames[] = {
15096 (char *) "variant", NULL
15097 };
15098
15099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15100 if (obj0) {
15101 ecode1 = SWIG_AsVal_int(obj0, &val1);
15102 if (!SWIG_IsOK(ecode1)) {
15103 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15104 }
15105 arg1 = static_cast< wxWindowVariant >(val1);
15106 }
15107 {
15108 if (!wxPyCheckForApp()) SWIG_fail;
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15122 PyObject *obj;
15123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15124 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15125 return SWIG_Py_Void();
15126 }
15127
15128 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15129 return SWIG_Python_InitShadowInstance(args);
15130 }
15131
15132 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15133 PyObject *resultobj = 0;
15134 wxWindow *arg1 = (wxWindow *) 0 ;
15135 int arg2 = (int) -1 ;
15136 wxString const &arg3_defvalue = wxPyEmptyString ;
15137 wxString *arg3 = (wxString *) &arg3_defvalue ;
15138 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15139 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15140 wxSize const &arg5_defvalue = wxDefaultSize ;
15141 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15142 long arg6 = (long) wxSP_ARROW_KEYS ;
15143 int arg7 = (int) 0 ;
15144 int arg8 = (int) 100 ;
15145 int arg9 = (int) 0 ;
15146 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15147 wxString *arg10 = (wxString *) &arg10_defvalue ;
15148 wxSpinCtrl *result = 0 ;
15149 void *argp1 = 0 ;
15150 int res1 = 0 ;
15151 int val2 ;
15152 int ecode2 = 0 ;
15153 bool temp3 = false ;
15154 wxPoint temp4 ;
15155 wxSize temp5 ;
15156 long val6 ;
15157 int ecode6 = 0 ;
15158 int val7 ;
15159 int ecode7 = 0 ;
15160 int val8 ;
15161 int ecode8 = 0 ;
15162 int val9 ;
15163 int ecode9 = 0 ;
15164 bool temp10 = false ;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 PyObject * obj2 = 0 ;
15168 PyObject * obj3 = 0 ;
15169 PyObject * obj4 = 0 ;
15170 PyObject * obj5 = 0 ;
15171 PyObject * obj6 = 0 ;
15172 PyObject * obj7 = 0 ;
15173 PyObject * obj8 = 0 ;
15174 PyObject * obj9 = 0 ;
15175 char * kwnames[] = {
15176 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15177 };
15178
15179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15181 if (!SWIG_IsOK(res1)) {
15182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15183 }
15184 arg1 = reinterpret_cast< wxWindow * >(argp1);
15185 if (obj1) {
15186 ecode2 = SWIG_AsVal_int(obj1, &val2);
15187 if (!SWIG_IsOK(ecode2)) {
15188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15189 }
15190 arg2 = static_cast< int >(val2);
15191 }
15192 if (obj2) {
15193 {
15194 arg3 = wxString_in_helper(obj2);
15195 if (arg3 == NULL) SWIG_fail;
15196 temp3 = true;
15197 }
15198 }
15199 if (obj3) {
15200 {
15201 arg4 = &temp4;
15202 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15203 }
15204 }
15205 if (obj4) {
15206 {
15207 arg5 = &temp5;
15208 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15209 }
15210 }
15211 if (obj5) {
15212 ecode6 = SWIG_AsVal_long(obj5, &val6);
15213 if (!SWIG_IsOK(ecode6)) {
15214 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15215 }
15216 arg6 = static_cast< long >(val6);
15217 }
15218 if (obj6) {
15219 ecode7 = SWIG_AsVal_int(obj6, &val7);
15220 if (!SWIG_IsOK(ecode7)) {
15221 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15222 }
15223 arg7 = static_cast< int >(val7);
15224 }
15225 if (obj7) {
15226 ecode8 = SWIG_AsVal_int(obj7, &val8);
15227 if (!SWIG_IsOK(ecode8)) {
15228 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15229 }
15230 arg8 = static_cast< int >(val8);
15231 }
15232 if (obj8) {
15233 ecode9 = SWIG_AsVal_int(obj8, &val9);
15234 if (!SWIG_IsOK(ecode9)) {
15235 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15236 }
15237 arg9 = static_cast< int >(val9);
15238 }
15239 if (obj9) {
15240 {
15241 arg10 = wxString_in_helper(obj9);
15242 if (arg10 == NULL) SWIG_fail;
15243 temp10 = true;
15244 }
15245 }
15246 {
15247 if (!wxPyCheckForApp()) SWIG_fail;
15248 PyThreadState* __tstate = wxPyBeginAllowThreads();
15249 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15250 wxPyEndAllowThreads(__tstate);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15254 {
15255 if (temp3)
15256 delete arg3;
15257 }
15258 {
15259 if (temp10)
15260 delete arg10;
15261 }
15262 return resultobj;
15263 fail:
15264 {
15265 if (temp3)
15266 delete arg3;
15267 }
15268 {
15269 if (temp10)
15270 delete arg10;
15271 }
15272 return NULL;
15273 }
15274
15275
15276 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15277 PyObject *resultobj = 0;
15278 wxSpinCtrl *result = 0 ;
15279
15280 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15281 {
15282 if (!wxPyCheckForApp()) SWIG_fail;
15283 PyThreadState* __tstate = wxPyBeginAllowThreads();
15284 result = (wxSpinCtrl *)new wxSpinCtrl();
15285 wxPyEndAllowThreads(__tstate);
15286 if (PyErr_Occurred()) SWIG_fail;
15287 }
15288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15289 return resultobj;
15290 fail:
15291 return NULL;
15292 }
15293
15294
15295 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15296 PyObject *resultobj = 0;
15297 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15298 wxWindow *arg2 = (wxWindow *) 0 ;
15299 int arg3 = (int) -1 ;
15300 wxString const &arg4_defvalue = wxPyEmptyString ;
15301 wxString *arg4 = (wxString *) &arg4_defvalue ;
15302 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15303 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15304 wxSize const &arg6_defvalue = wxDefaultSize ;
15305 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15306 long arg7 = (long) wxSP_ARROW_KEYS ;
15307 int arg8 = (int) 0 ;
15308 int arg9 = (int) 100 ;
15309 int arg10 = (int) 0 ;
15310 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15311 wxString *arg11 = (wxString *) &arg11_defvalue ;
15312 bool result;
15313 void *argp1 = 0 ;
15314 int res1 = 0 ;
15315 void *argp2 = 0 ;
15316 int res2 = 0 ;
15317 int val3 ;
15318 int ecode3 = 0 ;
15319 bool temp4 = false ;
15320 wxPoint temp5 ;
15321 wxSize temp6 ;
15322 long val7 ;
15323 int ecode7 = 0 ;
15324 int val8 ;
15325 int ecode8 = 0 ;
15326 int val9 ;
15327 int ecode9 = 0 ;
15328 int val10 ;
15329 int ecode10 = 0 ;
15330 bool temp11 = false ;
15331 PyObject * obj0 = 0 ;
15332 PyObject * obj1 = 0 ;
15333 PyObject * obj2 = 0 ;
15334 PyObject * obj3 = 0 ;
15335 PyObject * obj4 = 0 ;
15336 PyObject * obj5 = 0 ;
15337 PyObject * obj6 = 0 ;
15338 PyObject * obj7 = 0 ;
15339 PyObject * obj8 = 0 ;
15340 PyObject * obj9 = 0 ;
15341 PyObject * obj10 = 0 ;
15342 char * kwnames[] = {
15343 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15344 };
15345
15346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15348 if (!SWIG_IsOK(res1)) {
15349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15350 }
15351 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15353 if (!SWIG_IsOK(res2)) {
15354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15355 }
15356 arg2 = reinterpret_cast< wxWindow * >(argp2);
15357 if (obj2) {
15358 ecode3 = SWIG_AsVal_int(obj2, &val3);
15359 if (!SWIG_IsOK(ecode3)) {
15360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15361 }
15362 arg3 = static_cast< int >(val3);
15363 }
15364 if (obj3) {
15365 {
15366 arg4 = wxString_in_helper(obj3);
15367 if (arg4 == NULL) SWIG_fail;
15368 temp4 = true;
15369 }
15370 }
15371 if (obj4) {
15372 {
15373 arg5 = &temp5;
15374 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15375 }
15376 }
15377 if (obj5) {
15378 {
15379 arg6 = &temp6;
15380 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15381 }
15382 }
15383 if (obj6) {
15384 ecode7 = SWIG_AsVal_long(obj6, &val7);
15385 if (!SWIG_IsOK(ecode7)) {
15386 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15387 }
15388 arg7 = static_cast< long >(val7);
15389 }
15390 if (obj7) {
15391 ecode8 = SWIG_AsVal_int(obj7, &val8);
15392 if (!SWIG_IsOK(ecode8)) {
15393 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15394 }
15395 arg8 = static_cast< int >(val8);
15396 }
15397 if (obj8) {
15398 ecode9 = SWIG_AsVal_int(obj8, &val9);
15399 if (!SWIG_IsOK(ecode9)) {
15400 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15401 }
15402 arg9 = static_cast< int >(val9);
15403 }
15404 if (obj9) {
15405 ecode10 = SWIG_AsVal_int(obj9, &val10);
15406 if (!SWIG_IsOK(ecode10)) {
15407 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15408 }
15409 arg10 = static_cast< int >(val10);
15410 }
15411 if (obj10) {
15412 {
15413 arg11 = wxString_in_helper(obj10);
15414 if (arg11 == NULL) SWIG_fail;
15415 temp11 = true;
15416 }
15417 }
15418 {
15419 PyThreadState* __tstate = wxPyBeginAllowThreads();
15420 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 {
15425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15426 }
15427 {
15428 if (temp4)
15429 delete arg4;
15430 }
15431 {
15432 if (temp11)
15433 delete arg11;
15434 }
15435 return resultobj;
15436 fail:
15437 {
15438 if (temp4)
15439 delete arg4;
15440 }
15441 {
15442 if (temp11)
15443 delete arg11;
15444 }
15445 return NULL;
15446 }
15447
15448
15449 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15450 PyObject *resultobj = 0;
15451 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15452 int result;
15453 void *argp1 = 0 ;
15454 int res1 = 0 ;
15455 PyObject *swig_obj[1] ;
15456
15457 if (!args) SWIG_fail;
15458 swig_obj[0] = args;
15459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15460 if (!SWIG_IsOK(res1)) {
15461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15462 }
15463 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15464 {
15465 PyThreadState* __tstate = wxPyBeginAllowThreads();
15466 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15467 wxPyEndAllowThreads(__tstate);
15468 if (PyErr_Occurred()) SWIG_fail;
15469 }
15470 resultobj = SWIG_From_int(static_cast< int >(result));
15471 return resultobj;
15472 fail:
15473 return NULL;
15474 }
15475
15476
15477 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15478 PyObject *resultobj = 0;
15479 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15480 int arg2 ;
15481 void *argp1 = 0 ;
15482 int res1 = 0 ;
15483 int val2 ;
15484 int ecode2 = 0 ;
15485 PyObject * obj0 = 0 ;
15486 PyObject * obj1 = 0 ;
15487 char * kwnames[] = {
15488 (char *) "self",(char *) "value", NULL
15489 };
15490
15491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15493 if (!SWIG_IsOK(res1)) {
15494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15495 }
15496 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15497 ecode2 = SWIG_AsVal_int(obj1, &val2);
15498 if (!SWIG_IsOK(ecode2)) {
15499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15500 }
15501 arg2 = static_cast< int >(val2);
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 (arg1)->SetValue(arg2);
15505 wxPyEndAllowThreads(__tstate);
15506 if (PyErr_Occurred()) SWIG_fail;
15507 }
15508 resultobj = SWIG_Py_Void();
15509 return resultobj;
15510 fail:
15511 return NULL;
15512 }
15513
15514
15515 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15516 PyObject *resultobj = 0;
15517 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15518 wxString *arg2 = 0 ;
15519 void *argp1 = 0 ;
15520 int res1 = 0 ;
15521 bool temp2 = false ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524 char * kwnames[] = {
15525 (char *) "self",(char *) "text", NULL
15526 };
15527
15528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15530 if (!SWIG_IsOK(res1)) {
15531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15532 }
15533 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15534 {
15535 arg2 = wxString_in_helper(obj1);
15536 if (arg2 == NULL) SWIG_fail;
15537 temp2 = true;
15538 }
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 (arg1)->SetValue((wxString const &)*arg2);
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 resultobj = SWIG_Py_Void();
15546 {
15547 if (temp2)
15548 delete arg2;
15549 }
15550 return resultobj;
15551 fail:
15552 {
15553 if (temp2)
15554 delete arg2;
15555 }
15556 return NULL;
15557 }
15558
15559
15560 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15561 PyObject *resultobj = 0;
15562 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15563 int arg2 ;
15564 int arg3 ;
15565 void *argp1 = 0 ;
15566 int res1 = 0 ;
15567 int val2 ;
15568 int ecode2 = 0 ;
15569 int val3 ;
15570 int ecode3 = 0 ;
15571 PyObject * obj0 = 0 ;
15572 PyObject * obj1 = 0 ;
15573 PyObject * obj2 = 0 ;
15574 char * kwnames[] = {
15575 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15576 };
15577
15578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15580 if (!SWIG_IsOK(res1)) {
15581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15582 }
15583 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15584 ecode2 = SWIG_AsVal_int(obj1, &val2);
15585 if (!SWIG_IsOK(ecode2)) {
15586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15587 }
15588 arg2 = static_cast< int >(val2);
15589 ecode3 = SWIG_AsVal_int(obj2, &val3);
15590 if (!SWIG_IsOK(ecode3)) {
15591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15592 }
15593 arg3 = static_cast< int >(val3);
15594 {
15595 PyThreadState* __tstate = wxPyBeginAllowThreads();
15596 (arg1)->SetRange(arg2,arg3);
15597 wxPyEndAllowThreads(__tstate);
15598 if (PyErr_Occurred()) SWIG_fail;
15599 }
15600 resultobj = SWIG_Py_Void();
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15608 PyObject *resultobj = 0;
15609 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15610 int result;
15611 void *argp1 = 0 ;
15612 int res1 = 0 ;
15613 PyObject *swig_obj[1] ;
15614
15615 if (!args) SWIG_fail;
15616 swig_obj[0] = args;
15617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15618 if (!SWIG_IsOK(res1)) {
15619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15620 }
15621 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15622 {
15623 PyThreadState* __tstate = wxPyBeginAllowThreads();
15624 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15625 wxPyEndAllowThreads(__tstate);
15626 if (PyErr_Occurred()) SWIG_fail;
15627 }
15628 resultobj = SWIG_From_int(static_cast< int >(result));
15629 return resultobj;
15630 fail:
15631 return NULL;
15632 }
15633
15634
15635 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15636 PyObject *resultobj = 0;
15637 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15638 int result;
15639 void *argp1 = 0 ;
15640 int res1 = 0 ;
15641 PyObject *swig_obj[1] ;
15642
15643 if (!args) SWIG_fail;
15644 swig_obj[0] = args;
15645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15646 if (!SWIG_IsOK(res1)) {
15647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15648 }
15649 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15650 {
15651 PyThreadState* __tstate = wxPyBeginAllowThreads();
15652 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15653 wxPyEndAllowThreads(__tstate);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 }
15656 resultobj = SWIG_From_int(static_cast< int >(result));
15657 return resultobj;
15658 fail:
15659 return NULL;
15660 }
15661
15662
15663 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15664 PyObject *resultobj = 0;
15665 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15666 long arg2 ;
15667 long arg3 ;
15668 void *argp1 = 0 ;
15669 int res1 = 0 ;
15670 long val2 ;
15671 int ecode2 = 0 ;
15672 long val3 ;
15673 int ecode3 = 0 ;
15674 PyObject * obj0 = 0 ;
15675 PyObject * obj1 = 0 ;
15676 PyObject * obj2 = 0 ;
15677 char * kwnames[] = {
15678 (char *) "self",(char *) "from",(char *) "to", NULL
15679 };
15680
15681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15683 if (!SWIG_IsOK(res1)) {
15684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15685 }
15686 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15687 ecode2 = SWIG_AsVal_long(obj1, &val2);
15688 if (!SWIG_IsOK(ecode2)) {
15689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15690 }
15691 arg2 = static_cast< long >(val2);
15692 ecode3 = SWIG_AsVal_long(obj2, &val3);
15693 if (!SWIG_IsOK(ecode3)) {
15694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15695 }
15696 arg3 = static_cast< long >(val3);
15697 {
15698 PyThreadState* __tstate = wxPyBeginAllowThreads();
15699 (arg1)->SetSelection(arg2,arg3);
15700 wxPyEndAllowThreads(__tstate);
15701 if (PyErr_Occurred()) SWIG_fail;
15702 }
15703 resultobj = SWIG_Py_Void();
15704 return resultobj;
15705 fail:
15706 return NULL;
15707 }
15708
15709
15710 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15711 PyObject *resultobj = 0;
15712 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15713 SwigValueWrapper<wxVisualAttributes > result;
15714 int val1 ;
15715 int ecode1 = 0 ;
15716 PyObject * obj0 = 0 ;
15717 char * kwnames[] = {
15718 (char *) "variant", NULL
15719 };
15720
15721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15722 if (obj0) {
15723 ecode1 = SWIG_AsVal_int(obj0, &val1);
15724 if (!SWIG_IsOK(ecode1)) {
15725 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15726 }
15727 arg1 = static_cast< wxWindowVariant >(val1);
15728 }
15729 {
15730 if (!wxPyCheckForApp()) SWIG_fail;
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15744 PyObject *obj;
15745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15746 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15747 return SWIG_Py_Void();
15748 }
15749
15750 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15751 return SWIG_Python_InitShadowInstance(args);
15752 }
15753
15754 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj = 0;
15756 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15757 int arg2 = (int) 0 ;
15758 wxSpinEvent *result = 0 ;
15759 int val1 ;
15760 int ecode1 = 0 ;
15761 int val2 ;
15762 int ecode2 = 0 ;
15763 PyObject * obj0 = 0 ;
15764 PyObject * obj1 = 0 ;
15765 char * kwnames[] = {
15766 (char *) "commandType",(char *) "winid", NULL
15767 };
15768
15769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15770 if (obj0) {
15771 ecode1 = SWIG_AsVal_int(obj0, &val1);
15772 if (!SWIG_IsOK(ecode1)) {
15773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15774 }
15775 arg1 = static_cast< wxEventType >(val1);
15776 }
15777 if (obj1) {
15778 ecode2 = SWIG_AsVal_int(obj1, &val2);
15779 if (!SWIG_IsOK(ecode2)) {
15780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15781 }
15782 arg2 = static_cast< int >(val2);
15783 }
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15791 return resultobj;
15792 fail:
15793 return NULL;
15794 }
15795
15796
15797 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 PyObject *resultobj = 0;
15799 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15800 int result;
15801 void *argp1 = 0 ;
15802 int res1 = 0 ;
15803 PyObject *swig_obj[1] ;
15804
15805 if (!args) SWIG_fail;
15806 swig_obj[0] = args;
15807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15808 if (!SWIG_IsOK(res1)) {
15809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15810 }
15811 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15812 {
15813 PyThreadState* __tstate = wxPyBeginAllowThreads();
15814 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15815 wxPyEndAllowThreads(__tstate);
15816 if (PyErr_Occurred()) SWIG_fail;
15817 }
15818 resultobj = SWIG_From_int(static_cast< int >(result));
15819 return resultobj;
15820 fail:
15821 return NULL;
15822 }
15823
15824
15825 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15826 PyObject *resultobj = 0;
15827 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15828 int arg2 ;
15829 void *argp1 = 0 ;
15830 int res1 = 0 ;
15831 int val2 ;
15832 int ecode2 = 0 ;
15833 PyObject * obj0 = 0 ;
15834 PyObject * obj1 = 0 ;
15835 char * kwnames[] = {
15836 (char *) "self",(char *) "pos", NULL
15837 };
15838
15839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15841 if (!SWIG_IsOK(res1)) {
15842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15843 }
15844 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15845 ecode2 = SWIG_AsVal_int(obj1, &val2);
15846 if (!SWIG_IsOK(ecode2)) {
15847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15848 }
15849 arg2 = static_cast< int >(val2);
15850 {
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 (arg1)->SetPosition(arg2);
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 resultobj = SWIG_Py_Void();
15857 return resultobj;
15858 fail:
15859 return NULL;
15860 }
15861
15862
15863 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15864 PyObject *obj;
15865 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15866 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15867 return SWIG_Py_Void();
15868 }
15869
15870 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15871 return SWIG_Python_InitShadowInstance(args);
15872 }
15873
15874 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15875 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15876 return 1;
15877 }
15878
15879
15880 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15881 PyObject *pyobj = 0;
15882
15883 {
15884 #if wxUSE_UNICODE
15885 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15886 #else
15887 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15888 #endif
15889 }
15890 return pyobj;
15891 }
15892
15893
15894 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15895 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15896 return 1;
15897 }
15898
15899
15900 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15901 PyObject *pyobj = 0;
15902
15903 {
15904 #if wxUSE_UNICODE
15905 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15906 #else
15907 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15908 #endif
15909 }
15910 return pyobj;
15911 }
15912
15913
15914 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj = 0;
15916 wxWindow *arg1 = (wxWindow *) 0 ;
15917 int arg2 = (int) -1 ;
15918 wxString const &arg3_defvalue = wxPyEmptyString ;
15919 wxString *arg3 = (wxString *) &arg3_defvalue ;
15920 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15921 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15922 wxSize const &arg5_defvalue = wxDefaultSize ;
15923 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15924 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15925 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15926 int arg7 = (int) 0 ;
15927 long arg8 = (long) wxRA_HORIZONTAL ;
15928 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15929 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15930 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15931 wxString *arg10 = (wxString *) &arg10_defvalue ;
15932 wxRadioBox *result = 0 ;
15933 void *argp1 = 0 ;
15934 int res1 = 0 ;
15935 int val2 ;
15936 int ecode2 = 0 ;
15937 bool temp3 = false ;
15938 wxPoint temp4 ;
15939 wxSize temp5 ;
15940 bool temp6 = false ;
15941 int val7 ;
15942 int ecode7 = 0 ;
15943 long val8 ;
15944 int ecode8 = 0 ;
15945 void *argp9 = 0 ;
15946 int res9 = 0 ;
15947 bool temp10 = false ;
15948 PyObject * obj0 = 0 ;
15949 PyObject * obj1 = 0 ;
15950 PyObject * obj2 = 0 ;
15951 PyObject * obj3 = 0 ;
15952 PyObject * obj4 = 0 ;
15953 PyObject * obj5 = 0 ;
15954 PyObject * obj6 = 0 ;
15955 PyObject * obj7 = 0 ;
15956 PyObject * obj8 = 0 ;
15957 PyObject * obj9 = 0 ;
15958 char * kwnames[] = {
15959 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15960 };
15961
15962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15964 if (!SWIG_IsOK(res1)) {
15965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15966 }
15967 arg1 = reinterpret_cast< wxWindow * >(argp1);
15968 if (obj1) {
15969 ecode2 = SWIG_AsVal_int(obj1, &val2);
15970 if (!SWIG_IsOK(ecode2)) {
15971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15972 }
15973 arg2 = static_cast< int >(val2);
15974 }
15975 if (obj2) {
15976 {
15977 arg3 = wxString_in_helper(obj2);
15978 if (arg3 == NULL) SWIG_fail;
15979 temp3 = true;
15980 }
15981 }
15982 if (obj3) {
15983 {
15984 arg4 = &temp4;
15985 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15986 }
15987 }
15988 if (obj4) {
15989 {
15990 arg5 = &temp5;
15991 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15992 }
15993 }
15994 if (obj5) {
15995 {
15996 if (! PySequence_Check(obj5)) {
15997 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15998 SWIG_fail;
15999 }
16000 arg6 = new wxArrayString;
16001 temp6 = true;
16002 int i, len=PySequence_Length(obj5);
16003 for (i=0; i<len; i++) {
16004 PyObject* item = PySequence_GetItem(obj5, i);
16005 wxString* s = wxString_in_helper(item);
16006 if (PyErr_Occurred()) SWIG_fail;
16007 arg6->Add(*s);
16008 delete s;
16009 Py_DECREF(item);
16010 }
16011 }
16012 }
16013 if (obj6) {
16014 ecode7 = SWIG_AsVal_int(obj6, &val7);
16015 if (!SWIG_IsOK(ecode7)) {
16016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16017 }
16018 arg7 = static_cast< int >(val7);
16019 }
16020 if (obj7) {
16021 ecode8 = SWIG_AsVal_long(obj7, &val8);
16022 if (!SWIG_IsOK(ecode8)) {
16023 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16024 }
16025 arg8 = static_cast< long >(val8);
16026 }
16027 if (obj8) {
16028 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16029 if (!SWIG_IsOK(res9)) {
16030 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16031 }
16032 if (!argp9) {
16033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16034 }
16035 arg9 = reinterpret_cast< wxValidator * >(argp9);
16036 }
16037 if (obj9) {
16038 {
16039 arg10 = wxString_in_helper(obj9);
16040 if (arg10 == NULL) SWIG_fail;
16041 temp10 = true;
16042 }
16043 }
16044 {
16045 if (!wxPyCheckForApp()) SWIG_fail;
16046 PyThreadState* __tstate = wxPyBeginAllowThreads();
16047 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);
16048 wxPyEndAllowThreads(__tstate);
16049 if (PyErr_Occurred()) SWIG_fail;
16050 }
16051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16052 {
16053 if (temp3)
16054 delete arg3;
16055 }
16056 {
16057 if (temp6) delete arg6;
16058 }
16059 {
16060 if (temp10)
16061 delete arg10;
16062 }
16063 return resultobj;
16064 fail:
16065 {
16066 if (temp3)
16067 delete arg3;
16068 }
16069 {
16070 if (temp6) delete arg6;
16071 }
16072 {
16073 if (temp10)
16074 delete arg10;
16075 }
16076 return NULL;
16077 }
16078
16079
16080 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16081 PyObject *resultobj = 0;
16082 wxRadioBox *result = 0 ;
16083
16084 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16085 {
16086 if (!wxPyCheckForApp()) SWIG_fail;
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = (wxRadioBox *)new wxRadioBox();
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16093 return resultobj;
16094 fail:
16095 return NULL;
16096 }
16097
16098
16099 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16100 PyObject *resultobj = 0;
16101 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16102 wxWindow *arg2 = (wxWindow *) 0 ;
16103 int arg3 = (int) -1 ;
16104 wxString const &arg4_defvalue = wxPyEmptyString ;
16105 wxString *arg4 = (wxString *) &arg4_defvalue ;
16106 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16107 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16108 wxSize const &arg6_defvalue = wxDefaultSize ;
16109 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16110 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16111 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16112 int arg8 = (int) 0 ;
16113 long arg9 = (long) wxRA_HORIZONTAL ;
16114 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16115 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16116 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16117 wxString *arg11 = (wxString *) &arg11_defvalue ;
16118 bool result;
16119 void *argp1 = 0 ;
16120 int res1 = 0 ;
16121 void *argp2 = 0 ;
16122 int res2 = 0 ;
16123 int val3 ;
16124 int ecode3 = 0 ;
16125 bool temp4 = false ;
16126 wxPoint temp5 ;
16127 wxSize temp6 ;
16128 bool temp7 = false ;
16129 int val8 ;
16130 int ecode8 = 0 ;
16131 long val9 ;
16132 int ecode9 = 0 ;
16133 void *argp10 = 0 ;
16134 int res10 = 0 ;
16135 bool temp11 = false ;
16136 PyObject * obj0 = 0 ;
16137 PyObject * obj1 = 0 ;
16138 PyObject * obj2 = 0 ;
16139 PyObject * obj3 = 0 ;
16140 PyObject * obj4 = 0 ;
16141 PyObject * obj5 = 0 ;
16142 PyObject * obj6 = 0 ;
16143 PyObject * obj7 = 0 ;
16144 PyObject * obj8 = 0 ;
16145 PyObject * obj9 = 0 ;
16146 PyObject * obj10 = 0 ;
16147 char * kwnames[] = {
16148 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16149 };
16150
16151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16153 if (!SWIG_IsOK(res1)) {
16154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16155 }
16156 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16157 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16158 if (!SWIG_IsOK(res2)) {
16159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16160 }
16161 arg2 = reinterpret_cast< wxWindow * >(argp2);
16162 if (obj2) {
16163 ecode3 = SWIG_AsVal_int(obj2, &val3);
16164 if (!SWIG_IsOK(ecode3)) {
16165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16166 }
16167 arg3 = static_cast< int >(val3);
16168 }
16169 if (obj3) {
16170 {
16171 arg4 = wxString_in_helper(obj3);
16172 if (arg4 == NULL) SWIG_fail;
16173 temp4 = true;
16174 }
16175 }
16176 if (obj4) {
16177 {
16178 arg5 = &temp5;
16179 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16180 }
16181 }
16182 if (obj5) {
16183 {
16184 arg6 = &temp6;
16185 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16186 }
16187 }
16188 if (obj6) {
16189 {
16190 if (! PySequence_Check(obj6)) {
16191 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16192 SWIG_fail;
16193 }
16194 arg7 = new wxArrayString;
16195 temp7 = true;
16196 int i, len=PySequence_Length(obj6);
16197 for (i=0; i<len; i++) {
16198 PyObject* item = PySequence_GetItem(obj6, i);
16199 wxString* s = wxString_in_helper(item);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 arg7->Add(*s);
16202 delete s;
16203 Py_DECREF(item);
16204 }
16205 }
16206 }
16207 if (obj7) {
16208 ecode8 = SWIG_AsVal_int(obj7, &val8);
16209 if (!SWIG_IsOK(ecode8)) {
16210 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16211 }
16212 arg8 = static_cast< int >(val8);
16213 }
16214 if (obj8) {
16215 ecode9 = SWIG_AsVal_long(obj8, &val9);
16216 if (!SWIG_IsOK(ecode9)) {
16217 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16218 }
16219 arg9 = static_cast< long >(val9);
16220 }
16221 if (obj9) {
16222 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16223 if (!SWIG_IsOK(res10)) {
16224 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16225 }
16226 if (!argp10) {
16227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16228 }
16229 arg10 = reinterpret_cast< wxValidator * >(argp10);
16230 }
16231 if (obj10) {
16232 {
16233 arg11 = wxString_in_helper(obj10);
16234 if (arg11 == NULL) SWIG_fail;
16235 temp11 = true;
16236 }
16237 }
16238 {
16239 PyThreadState* __tstate = wxPyBeginAllowThreads();
16240 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);
16241 wxPyEndAllowThreads(__tstate);
16242 if (PyErr_Occurred()) SWIG_fail;
16243 }
16244 {
16245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16246 }
16247 {
16248 if (temp4)
16249 delete arg4;
16250 }
16251 {
16252 if (temp7) delete arg7;
16253 }
16254 {
16255 if (temp11)
16256 delete arg11;
16257 }
16258 return resultobj;
16259 fail:
16260 {
16261 if (temp4)
16262 delete arg4;
16263 }
16264 {
16265 if (temp7) delete arg7;
16266 }
16267 {
16268 if (temp11)
16269 delete arg11;
16270 }
16271 return NULL;
16272 }
16273
16274
16275 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16276 PyObject *resultobj = 0;
16277 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16278 int arg2 ;
16279 void *argp1 = 0 ;
16280 int res1 = 0 ;
16281 int val2 ;
16282 int ecode2 = 0 ;
16283 PyObject * obj0 = 0 ;
16284 PyObject * obj1 = 0 ;
16285 char * kwnames[] = {
16286 (char *) "self",(char *) "n", NULL
16287 };
16288
16289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16291 if (!SWIG_IsOK(res1)) {
16292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16293 }
16294 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16295 ecode2 = SWIG_AsVal_int(obj1, &val2);
16296 if (!SWIG_IsOK(ecode2)) {
16297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16298 }
16299 arg2 = static_cast< int >(val2);
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 (arg1)->SetSelection(arg2);
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 resultobj = SWIG_Py_Void();
16307 return resultobj;
16308 fail:
16309 return NULL;
16310 }
16311
16312
16313 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16314 PyObject *resultobj = 0;
16315 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16316 int result;
16317 void *argp1 = 0 ;
16318 int res1 = 0 ;
16319 PyObject *swig_obj[1] ;
16320
16321 if (!args) SWIG_fail;
16322 swig_obj[0] = args;
16323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16324 if (!SWIG_IsOK(res1)) {
16325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16326 }
16327 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16331 wxPyEndAllowThreads(__tstate);
16332 if (PyErr_Occurred()) SWIG_fail;
16333 }
16334 resultobj = SWIG_From_int(static_cast< int >(result));
16335 return resultobj;
16336 fail:
16337 return NULL;
16338 }
16339
16340
16341 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16342 PyObject *resultobj = 0;
16343 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16344 wxString result;
16345 void *argp1 = 0 ;
16346 int res1 = 0 ;
16347 PyObject *swig_obj[1] ;
16348
16349 if (!args) SWIG_fail;
16350 swig_obj[0] = args;
16351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16352 if (!SWIG_IsOK(res1)) {
16353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16354 }
16355 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16356 {
16357 PyThreadState* __tstate = wxPyBeginAllowThreads();
16358 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 {
16363 #if wxUSE_UNICODE
16364 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16365 #else
16366 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16367 #endif
16368 }
16369 return resultobj;
16370 fail:
16371 return NULL;
16372 }
16373
16374
16375 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16376 PyObject *resultobj = 0;
16377 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16378 wxString *arg2 = 0 ;
16379 bool result;
16380 void *argp1 = 0 ;
16381 int res1 = 0 ;
16382 bool temp2 = false ;
16383 PyObject * obj0 = 0 ;
16384 PyObject * obj1 = 0 ;
16385 char * kwnames[] = {
16386 (char *) "self",(char *) "s", NULL
16387 };
16388
16389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16391 if (!SWIG_IsOK(res1)) {
16392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16393 }
16394 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16395 {
16396 arg2 = wxString_in_helper(obj1);
16397 if (arg2 == NULL) SWIG_fail;
16398 temp2 = true;
16399 }
16400 {
16401 PyThreadState* __tstate = wxPyBeginAllowThreads();
16402 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16403 wxPyEndAllowThreads(__tstate);
16404 if (PyErr_Occurred()) SWIG_fail;
16405 }
16406 {
16407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16408 }
16409 {
16410 if (temp2)
16411 delete arg2;
16412 }
16413 return resultobj;
16414 fail:
16415 {
16416 if (temp2)
16417 delete arg2;
16418 }
16419 return NULL;
16420 }
16421
16422
16423 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16424 PyObject *resultobj = 0;
16425 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16426 size_t result;
16427 void *argp1 = 0 ;
16428 int res1 = 0 ;
16429 PyObject *swig_obj[1] ;
16430
16431 if (!args) SWIG_fail;
16432 swig_obj[0] = args;
16433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16434 if (!SWIG_IsOK(res1)) {
16435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16436 }
16437 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16441 wxPyEndAllowThreads(__tstate);
16442 if (PyErr_Occurred()) SWIG_fail;
16443 }
16444 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16445 return resultobj;
16446 fail:
16447 return NULL;
16448 }
16449
16450
16451 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16452 PyObject *resultobj = 0;
16453 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16454 wxString *arg2 = 0 ;
16455 int result;
16456 void *argp1 = 0 ;
16457 int res1 = 0 ;
16458 bool temp2 = false ;
16459 PyObject * obj0 = 0 ;
16460 PyObject * obj1 = 0 ;
16461 char * kwnames[] = {
16462 (char *) "self",(char *) "s", NULL
16463 };
16464
16465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16467 if (!SWIG_IsOK(res1)) {
16468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16469 }
16470 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16471 {
16472 arg2 = wxString_in_helper(obj1);
16473 if (arg2 == NULL) SWIG_fail;
16474 temp2 = true;
16475 }
16476 {
16477 PyThreadState* __tstate = wxPyBeginAllowThreads();
16478 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16479 wxPyEndAllowThreads(__tstate);
16480 if (PyErr_Occurred()) SWIG_fail;
16481 }
16482 resultobj = SWIG_From_int(static_cast< int >(result));
16483 {
16484 if (temp2)
16485 delete arg2;
16486 }
16487 return resultobj;
16488 fail:
16489 {
16490 if (temp2)
16491 delete arg2;
16492 }
16493 return NULL;
16494 }
16495
16496
16497 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16498 PyObject *resultobj = 0;
16499 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16500 int arg2 ;
16501 wxString result;
16502 void *argp1 = 0 ;
16503 int res1 = 0 ;
16504 int val2 ;
16505 int ecode2 = 0 ;
16506 PyObject * obj0 = 0 ;
16507 PyObject * obj1 = 0 ;
16508 char * kwnames[] = {
16509 (char *) "self",(char *) "n", NULL
16510 };
16511
16512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16514 if (!SWIG_IsOK(res1)) {
16515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16516 }
16517 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16518 ecode2 = SWIG_AsVal_int(obj1, &val2);
16519 if (!SWIG_IsOK(ecode2)) {
16520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16521 }
16522 arg2 = static_cast< int >(val2);
16523 {
16524 PyThreadState* __tstate = wxPyBeginAllowThreads();
16525 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16526 wxPyEndAllowThreads(__tstate);
16527 if (PyErr_Occurred()) SWIG_fail;
16528 }
16529 {
16530 #if wxUSE_UNICODE
16531 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16532 #else
16533 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16534 #endif
16535 }
16536 return resultobj;
16537 fail:
16538 return NULL;
16539 }
16540
16541
16542 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16543 PyObject *resultobj = 0;
16544 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16545 int arg2 ;
16546 wxString *arg3 = 0 ;
16547 void *argp1 = 0 ;
16548 int res1 = 0 ;
16549 int val2 ;
16550 int ecode2 = 0 ;
16551 bool temp3 = false ;
16552 PyObject * obj0 = 0 ;
16553 PyObject * obj1 = 0 ;
16554 PyObject * obj2 = 0 ;
16555 char * kwnames[] = {
16556 (char *) "self",(char *) "n",(char *) "label", NULL
16557 };
16558
16559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16561 if (!SWIG_IsOK(res1)) {
16562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16563 }
16564 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16565 ecode2 = SWIG_AsVal_int(obj1, &val2);
16566 if (!SWIG_IsOK(ecode2)) {
16567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16568 }
16569 arg2 = static_cast< int >(val2);
16570 {
16571 arg3 = wxString_in_helper(obj2);
16572 if (arg3 == NULL) SWIG_fail;
16573 temp3 = true;
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 (arg1)->SetString(arg2,(wxString const &)*arg3);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_Py_Void();
16582 {
16583 if (temp3)
16584 delete arg3;
16585 }
16586 return resultobj;
16587 fail:
16588 {
16589 if (temp3)
16590 delete arg3;
16591 }
16592 return NULL;
16593 }
16594
16595
16596 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16597 PyObject *resultobj = 0;
16598 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16599 unsigned int arg2 ;
16600 bool arg3 = (bool) true ;
16601 void *argp1 = 0 ;
16602 int res1 = 0 ;
16603 unsigned int val2 ;
16604 int ecode2 = 0 ;
16605 bool val3 ;
16606 int ecode3 = 0 ;
16607 PyObject * obj0 = 0 ;
16608 PyObject * obj1 = 0 ;
16609 PyObject * obj2 = 0 ;
16610 char * kwnames[] = {
16611 (char *) "self",(char *) "n",(char *) "enable", NULL
16612 };
16613
16614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16616 if (!SWIG_IsOK(res1)) {
16617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16618 }
16619 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16620 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16621 if (!SWIG_IsOK(ecode2)) {
16622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16623 }
16624 arg2 = static_cast< unsigned int >(val2);
16625 if (obj2) {
16626 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16627 if (!SWIG_IsOK(ecode3)) {
16628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16629 }
16630 arg3 = static_cast< bool >(val3);
16631 }
16632 {
16633 PyThreadState* __tstate = wxPyBeginAllowThreads();
16634 (arg1)->Enable(arg2,arg3);
16635 wxPyEndAllowThreads(__tstate);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
16638 resultobj = SWIG_Py_Void();
16639 return resultobj;
16640 fail:
16641 return NULL;
16642 }
16643
16644
16645 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj = 0;
16647 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16648 unsigned int arg2 ;
16649 bool arg3 = (bool) true ;
16650 void *argp1 = 0 ;
16651 int res1 = 0 ;
16652 unsigned int val2 ;
16653 int ecode2 = 0 ;
16654 bool val3 ;
16655 int ecode3 = 0 ;
16656 PyObject * obj0 = 0 ;
16657 PyObject * obj1 = 0 ;
16658 PyObject * obj2 = 0 ;
16659 char * kwnames[] = {
16660 (char *) "self",(char *) "n",(char *) "show", NULL
16661 };
16662
16663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16665 if (!SWIG_IsOK(res1)) {
16666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16667 }
16668 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16669 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16670 if (!SWIG_IsOK(ecode2)) {
16671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16672 }
16673 arg2 = static_cast< unsigned int >(val2);
16674 if (obj2) {
16675 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16676 if (!SWIG_IsOK(ecode3)) {
16677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16678 }
16679 arg3 = static_cast< bool >(val3);
16680 }
16681 {
16682 PyThreadState* __tstate = wxPyBeginAllowThreads();
16683 (arg1)->Show(arg2,arg3);
16684 wxPyEndAllowThreads(__tstate);
16685 if (PyErr_Occurred()) SWIG_fail;
16686 }
16687 resultobj = SWIG_Py_Void();
16688 return resultobj;
16689 fail:
16690 return NULL;
16691 }
16692
16693
16694 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16695 PyObject *resultobj = 0;
16696 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16697 unsigned int arg2 ;
16698 bool result;
16699 void *argp1 = 0 ;
16700 int res1 = 0 ;
16701 unsigned int val2 ;
16702 int ecode2 = 0 ;
16703 PyObject * obj0 = 0 ;
16704 PyObject * obj1 = 0 ;
16705 char * kwnames[] = {
16706 (char *) "self",(char *) "n", NULL
16707 };
16708
16709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16711 if (!SWIG_IsOK(res1)) {
16712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16713 }
16714 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16715 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16716 if (!SWIG_IsOK(ecode2)) {
16717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16718 }
16719 arg2 = static_cast< unsigned int >(val2);
16720 {
16721 PyThreadState* __tstate = wxPyBeginAllowThreads();
16722 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16723 wxPyEndAllowThreads(__tstate);
16724 if (PyErr_Occurred()) SWIG_fail;
16725 }
16726 {
16727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16728 }
16729 return resultobj;
16730 fail:
16731 return NULL;
16732 }
16733
16734
16735 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16736 PyObject *resultobj = 0;
16737 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16738 unsigned int arg2 ;
16739 bool result;
16740 void *argp1 = 0 ;
16741 int res1 = 0 ;
16742 unsigned int val2 ;
16743 int ecode2 = 0 ;
16744 PyObject * obj0 = 0 ;
16745 PyObject * obj1 = 0 ;
16746 char * kwnames[] = {
16747 (char *) "self",(char *) "n", NULL
16748 };
16749
16750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16752 if (!SWIG_IsOK(res1)) {
16753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16754 }
16755 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16756 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16757 if (!SWIG_IsOK(ecode2)) {
16758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16759 }
16760 arg2 = static_cast< unsigned int >(val2);
16761 {
16762 PyThreadState* __tstate = wxPyBeginAllowThreads();
16763 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16764 wxPyEndAllowThreads(__tstate);
16765 if (PyErr_Occurred()) SWIG_fail;
16766 }
16767 {
16768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16769 }
16770 return resultobj;
16771 fail:
16772 return NULL;
16773 }
16774
16775
16776 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16777 PyObject *resultobj = 0;
16778 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16779 unsigned int result;
16780 void *argp1 = 0 ;
16781 int res1 = 0 ;
16782 PyObject *swig_obj[1] ;
16783
16784 if (!args) SWIG_fail;
16785 swig_obj[0] = args;
16786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16787 if (!SWIG_IsOK(res1)) {
16788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16789 }
16790 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16791 {
16792 PyThreadState* __tstate = wxPyBeginAllowThreads();
16793 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16794 wxPyEndAllowThreads(__tstate);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16798 return resultobj;
16799 fail:
16800 return NULL;
16801 }
16802
16803
16804 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16805 PyObject *resultobj = 0;
16806 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16807 unsigned int result;
16808 void *argp1 = 0 ;
16809 int res1 = 0 ;
16810 PyObject *swig_obj[1] ;
16811
16812 if (!args) SWIG_fail;
16813 swig_obj[0] = args;
16814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16815 if (!SWIG_IsOK(res1)) {
16816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16817 }
16818 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16819 {
16820 PyThreadState* __tstate = wxPyBeginAllowThreads();
16821 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
16825 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16826 return resultobj;
16827 fail:
16828 return NULL;
16829 }
16830
16831
16832 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16833 PyObject *resultobj = 0;
16834 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16835 int arg2 ;
16836 wxDirection arg3 ;
16837 long arg4 ;
16838 int result;
16839 void *argp1 = 0 ;
16840 int res1 = 0 ;
16841 int val2 ;
16842 int ecode2 = 0 ;
16843 int val3 ;
16844 int ecode3 = 0 ;
16845 long val4 ;
16846 int ecode4 = 0 ;
16847 PyObject * obj0 = 0 ;
16848 PyObject * obj1 = 0 ;
16849 PyObject * obj2 = 0 ;
16850 PyObject * obj3 = 0 ;
16851 char * kwnames[] = {
16852 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16853 };
16854
16855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16857 if (!SWIG_IsOK(res1)) {
16858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16859 }
16860 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16861 ecode2 = SWIG_AsVal_int(obj1, &val2);
16862 if (!SWIG_IsOK(ecode2)) {
16863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16864 }
16865 arg2 = static_cast< int >(val2);
16866 ecode3 = SWIG_AsVal_int(obj2, &val3);
16867 if (!SWIG_IsOK(ecode3)) {
16868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16869 }
16870 arg3 = static_cast< wxDirection >(val3);
16871 ecode4 = SWIG_AsVal_long(obj3, &val4);
16872 if (!SWIG_IsOK(ecode4)) {
16873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16874 }
16875 arg4 = static_cast< long >(val4);
16876 {
16877 PyThreadState* __tstate = wxPyBeginAllowThreads();
16878 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16879 wxPyEndAllowThreads(__tstate);
16880 if (PyErr_Occurred()) SWIG_fail;
16881 }
16882 resultobj = SWIG_From_int(static_cast< int >(result));
16883 return resultobj;
16884 fail:
16885 return NULL;
16886 }
16887
16888
16889 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16890 PyObject *resultobj = 0;
16891 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16892 unsigned int arg2 ;
16893 wxString *arg3 = 0 ;
16894 void *argp1 = 0 ;
16895 int res1 = 0 ;
16896 unsigned int val2 ;
16897 int ecode2 = 0 ;
16898 bool temp3 = false ;
16899 PyObject * obj0 = 0 ;
16900 PyObject * obj1 = 0 ;
16901 PyObject * obj2 = 0 ;
16902 char * kwnames[] = {
16903 (char *) "self",(char *) "item",(char *) "text", NULL
16904 };
16905
16906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16908 if (!SWIG_IsOK(res1)) {
16909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16910 }
16911 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16912 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16913 if (!SWIG_IsOK(ecode2)) {
16914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16915 }
16916 arg2 = static_cast< unsigned int >(val2);
16917 {
16918 arg3 = wxString_in_helper(obj2);
16919 if (arg3 == NULL) SWIG_fail;
16920 temp3 = true;
16921 }
16922 {
16923 PyThreadState* __tstate = wxPyBeginAllowThreads();
16924 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16925 wxPyEndAllowThreads(__tstate);
16926 if (PyErr_Occurred()) SWIG_fail;
16927 }
16928 resultobj = SWIG_Py_Void();
16929 {
16930 if (temp3)
16931 delete arg3;
16932 }
16933 return resultobj;
16934 fail:
16935 {
16936 if (temp3)
16937 delete arg3;
16938 }
16939 return NULL;
16940 }
16941
16942
16943 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16944 PyObject *resultobj = 0;
16945 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16946 unsigned int arg2 ;
16947 wxToolTip *result = 0 ;
16948 void *argp1 = 0 ;
16949 int res1 = 0 ;
16950 unsigned int val2 ;
16951 int ecode2 = 0 ;
16952 PyObject * obj0 = 0 ;
16953 PyObject * obj1 = 0 ;
16954 char * kwnames[] = {
16955 (char *) "self",(char *) "item", NULL
16956 };
16957
16958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16960 if (!SWIG_IsOK(res1)) {
16961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16962 }
16963 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16964 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16965 if (!SWIG_IsOK(ecode2)) {
16966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16967 }
16968 arg2 = static_cast< unsigned int >(val2);
16969 {
16970 PyThreadState* __tstate = wxPyBeginAllowThreads();
16971 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 {
16976 resultobj = wxPyMake_wxObject(result, (bool)0);
16977 }
16978 return resultobj;
16979 fail:
16980 return NULL;
16981 }
16982
16983
16984 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16985 PyObject *resultobj = 0;
16986 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16987 SwigValueWrapper<wxVisualAttributes > result;
16988 int val1 ;
16989 int ecode1 = 0 ;
16990 PyObject * obj0 = 0 ;
16991 char * kwnames[] = {
16992 (char *) "variant", NULL
16993 };
16994
16995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16996 if (obj0) {
16997 ecode1 = SWIG_AsVal_int(obj0, &val1);
16998 if (!SWIG_IsOK(ecode1)) {
16999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17000 }
17001 arg1 = static_cast< wxWindowVariant >(val1);
17002 }
17003 {
17004 if (!wxPyCheckForApp()) SWIG_fail;
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
17006 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17011 return resultobj;
17012 fail:
17013 return NULL;
17014 }
17015
17016
17017 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17018 PyObject *obj;
17019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17020 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17021 return SWIG_Py_Void();
17022 }
17023
17024 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17025 return SWIG_Python_InitShadowInstance(args);
17026 }
17027
17028 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17029 PyObject *resultobj = 0;
17030 wxWindow *arg1 = (wxWindow *) 0 ;
17031 int arg2 = (int) -1 ;
17032 wxString const &arg3_defvalue = wxPyEmptyString ;
17033 wxString *arg3 = (wxString *) &arg3_defvalue ;
17034 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17035 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17036 wxSize const &arg5_defvalue = wxDefaultSize ;
17037 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17038 long arg6 = (long) 0 ;
17039 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17040 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17041 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17042 wxString *arg8 = (wxString *) &arg8_defvalue ;
17043 wxRadioButton *result = 0 ;
17044 void *argp1 = 0 ;
17045 int res1 = 0 ;
17046 int val2 ;
17047 int ecode2 = 0 ;
17048 bool temp3 = false ;
17049 wxPoint temp4 ;
17050 wxSize temp5 ;
17051 long val6 ;
17052 int ecode6 = 0 ;
17053 void *argp7 = 0 ;
17054 int res7 = 0 ;
17055 bool temp8 = false ;
17056 PyObject * obj0 = 0 ;
17057 PyObject * obj1 = 0 ;
17058 PyObject * obj2 = 0 ;
17059 PyObject * obj3 = 0 ;
17060 PyObject * obj4 = 0 ;
17061 PyObject * obj5 = 0 ;
17062 PyObject * obj6 = 0 ;
17063 PyObject * obj7 = 0 ;
17064 char * kwnames[] = {
17065 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17066 };
17067
17068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17070 if (!SWIG_IsOK(res1)) {
17071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17072 }
17073 arg1 = reinterpret_cast< wxWindow * >(argp1);
17074 if (obj1) {
17075 ecode2 = SWIG_AsVal_int(obj1, &val2);
17076 if (!SWIG_IsOK(ecode2)) {
17077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17078 }
17079 arg2 = static_cast< int >(val2);
17080 }
17081 if (obj2) {
17082 {
17083 arg3 = wxString_in_helper(obj2);
17084 if (arg3 == NULL) SWIG_fail;
17085 temp3 = true;
17086 }
17087 }
17088 if (obj3) {
17089 {
17090 arg4 = &temp4;
17091 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17092 }
17093 }
17094 if (obj4) {
17095 {
17096 arg5 = &temp5;
17097 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17098 }
17099 }
17100 if (obj5) {
17101 ecode6 = SWIG_AsVal_long(obj5, &val6);
17102 if (!SWIG_IsOK(ecode6)) {
17103 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17104 }
17105 arg6 = static_cast< long >(val6);
17106 }
17107 if (obj6) {
17108 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17109 if (!SWIG_IsOK(res7)) {
17110 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17111 }
17112 if (!argp7) {
17113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17114 }
17115 arg7 = reinterpret_cast< wxValidator * >(argp7);
17116 }
17117 if (obj7) {
17118 {
17119 arg8 = wxString_in_helper(obj7);
17120 if (arg8 == NULL) SWIG_fail;
17121 temp8 = true;
17122 }
17123 }
17124 {
17125 if (!wxPyCheckForApp()) SWIG_fail;
17126 PyThreadState* __tstate = wxPyBeginAllowThreads();
17127 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17128 wxPyEndAllowThreads(__tstate);
17129 if (PyErr_Occurred()) SWIG_fail;
17130 }
17131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17132 {
17133 if (temp3)
17134 delete arg3;
17135 }
17136 {
17137 if (temp8)
17138 delete arg8;
17139 }
17140 return resultobj;
17141 fail:
17142 {
17143 if (temp3)
17144 delete arg3;
17145 }
17146 {
17147 if (temp8)
17148 delete arg8;
17149 }
17150 return NULL;
17151 }
17152
17153
17154 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17155 PyObject *resultobj = 0;
17156 wxRadioButton *result = 0 ;
17157
17158 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17159 {
17160 if (!wxPyCheckForApp()) SWIG_fail;
17161 PyThreadState* __tstate = wxPyBeginAllowThreads();
17162 result = (wxRadioButton *)new wxRadioButton();
17163 wxPyEndAllowThreads(__tstate);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 }
17166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17167 return resultobj;
17168 fail:
17169 return NULL;
17170 }
17171
17172
17173 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17174 PyObject *resultobj = 0;
17175 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17176 wxWindow *arg2 = (wxWindow *) 0 ;
17177 int arg3 = (int) -1 ;
17178 wxString const &arg4_defvalue = wxPyEmptyString ;
17179 wxString *arg4 = (wxString *) &arg4_defvalue ;
17180 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17181 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17182 wxSize const &arg6_defvalue = wxDefaultSize ;
17183 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17184 long arg7 = (long) 0 ;
17185 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17186 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17187 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17188 wxString *arg9 = (wxString *) &arg9_defvalue ;
17189 bool result;
17190 void *argp1 = 0 ;
17191 int res1 = 0 ;
17192 void *argp2 = 0 ;
17193 int res2 = 0 ;
17194 int val3 ;
17195 int ecode3 = 0 ;
17196 bool temp4 = false ;
17197 wxPoint temp5 ;
17198 wxSize temp6 ;
17199 long val7 ;
17200 int ecode7 = 0 ;
17201 void *argp8 = 0 ;
17202 int res8 = 0 ;
17203 bool temp9 = false ;
17204 PyObject * obj0 = 0 ;
17205 PyObject * obj1 = 0 ;
17206 PyObject * obj2 = 0 ;
17207 PyObject * obj3 = 0 ;
17208 PyObject * obj4 = 0 ;
17209 PyObject * obj5 = 0 ;
17210 PyObject * obj6 = 0 ;
17211 PyObject * obj7 = 0 ;
17212 PyObject * obj8 = 0 ;
17213 char * kwnames[] = {
17214 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17215 };
17216
17217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17219 if (!SWIG_IsOK(res1)) {
17220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17221 }
17222 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17223 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17224 if (!SWIG_IsOK(res2)) {
17225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17226 }
17227 arg2 = reinterpret_cast< wxWindow * >(argp2);
17228 if (obj2) {
17229 ecode3 = SWIG_AsVal_int(obj2, &val3);
17230 if (!SWIG_IsOK(ecode3)) {
17231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17232 }
17233 arg3 = static_cast< int >(val3);
17234 }
17235 if (obj3) {
17236 {
17237 arg4 = wxString_in_helper(obj3);
17238 if (arg4 == NULL) SWIG_fail;
17239 temp4 = true;
17240 }
17241 }
17242 if (obj4) {
17243 {
17244 arg5 = &temp5;
17245 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17246 }
17247 }
17248 if (obj5) {
17249 {
17250 arg6 = &temp6;
17251 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17252 }
17253 }
17254 if (obj6) {
17255 ecode7 = SWIG_AsVal_long(obj6, &val7);
17256 if (!SWIG_IsOK(ecode7)) {
17257 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17258 }
17259 arg7 = static_cast< long >(val7);
17260 }
17261 if (obj7) {
17262 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17263 if (!SWIG_IsOK(res8)) {
17264 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17265 }
17266 if (!argp8) {
17267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17268 }
17269 arg8 = reinterpret_cast< wxValidator * >(argp8);
17270 }
17271 if (obj8) {
17272 {
17273 arg9 = wxString_in_helper(obj8);
17274 if (arg9 == NULL) SWIG_fail;
17275 temp9 = true;
17276 }
17277 }
17278 {
17279 PyThreadState* __tstate = wxPyBeginAllowThreads();
17280 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17281 wxPyEndAllowThreads(__tstate);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 {
17285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17286 }
17287 {
17288 if (temp4)
17289 delete arg4;
17290 }
17291 {
17292 if (temp9)
17293 delete arg9;
17294 }
17295 return resultobj;
17296 fail:
17297 {
17298 if (temp4)
17299 delete arg4;
17300 }
17301 {
17302 if (temp9)
17303 delete arg9;
17304 }
17305 return NULL;
17306 }
17307
17308
17309 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17310 PyObject *resultobj = 0;
17311 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17312 bool result;
17313 void *argp1 = 0 ;
17314 int res1 = 0 ;
17315 PyObject *swig_obj[1] ;
17316
17317 if (!args) SWIG_fail;
17318 swig_obj[0] = args;
17319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17320 if (!SWIG_IsOK(res1)) {
17321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17322 }
17323 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17324 {
17325 PyThreadState* __tstate = wxPyBeginAllowThreads();
17326 result = (bool)(arg1)->GetValue();
17327 wxPyEndAllowThreads(__tstate);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 }
17330 {
17331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17332 }
17333 return resultobj;
17334 fail:
17335 return NULL;
17336 }
17337
17338
17339 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17340 PyObject *resultobj = 0;
17341 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17342 bool arg2 ;
17343 void *argp1 = 0 ;
17344 int res1 = 0 ;
17345 bool val2 ;
17346 int ecode2 = 0 ;
17347 PyObject * obj0 = 0 ;
17348 PyObject * obj1 = 0 ;
17349 char * kwnames[] = {
17350 (char *) "self",(char *) "value", NULL
17351 };
17352
17353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17355 if (!SWIG_IsOK(res1)) {
17356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17357 }
17358 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17359 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17360 if (!SWIG_IsOK(ecode2)) {
17361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17362 }
17363 arg2 = static_cast< bool >(val2);
17364 {
17365 PyThreadState* __tstate = wxPyBeginAllowThreads();
17366 (arg1)->SetValue(arg2);
17367 wxPyEndAllowThreads(__tstate);
17368 if (PyErr_Occurred()) SWIG_fail;
17369 }
17370 resultobj = SWIG_Py_Void();
17371 return resultobj;
17372 fail:
17373 return NULL;
17374 }
17375
17376
17377 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17378 PyObject *resultobj = 0;
17379 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17380 SwigValueWrapper<wxVisualAttributes > result;
17381 int val1 ;
17382 int ecode1 = 0 ;
17383 PyObject * obj0 = 0 ;
17384 char * kwnames[] = {
17385 (char *) "variant", NULL
17386 };
17387
17388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17389 if (obj0) {
17390 ecode1 = SWIG_AsVal_int(obj0, &val1);
17391 if (!SWIG_IsOK(ecode1)) {
17392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17393 }
17394 arg1 = static_cast< wxWindowVariant >(val1);
17395 }
17396 {
17397 if (!wxPyCheckForApp()) SWIG_fail;
17398 PyThreadState* __tstate = wxPyBeginAllowThreads();
17399 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17400 wxPyEndAllowThreads(__tstate);
17401 if (PyErr_Occurred()) SWIG_fail;
17402 }
17403 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17404 return resultobj;
17405 fail:
17406 return NULL;
17407 }
17408
17409
17410 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17411 PyObject *obj;
17412 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17413 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17414 return SWIG_Py_Void();
17415 }
17416
17417 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17418 return SWIG_Python_InitShadowInstance(args);
17419 }
17420
17421 SWIGINTERN int SliderNameStr_set(PyObject *) {
17422 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17423 return 1;
17424 }
17425
17426
17427 SWIGINTERN PyObject *SliderNameStr_get(void) {
17428 PyObject *pyobj = 0;
17429
17430 {
17431 #if wxUSE_UNICODE
17432 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17433 #else
17434 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17435 #endif
17436 }
17437 return pyobj;
17438 }
17439
17440
17441 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17442 PyObject *resultobj = 0;
17443 wxWindow *arg1 = (wxWindow *) 0 ;
17444 int arg2 = (int) -1 ;
17445 int arg3 = (int) 0 ;
17446 int arg4 = (int) 0 ;
17447 int arg5 = (int) 100 ;
17448 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17449 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17450 wxSize const &arg7_defvalue = wxDefaultSize ;
17451 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17452 long arg8 = (long) wxSL_HORIZONTAL ;
17453 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17454 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17455 wxString const &arg10_defvalue = wxPySliderNameStr ;
17456 wxString *arg10 = (wxString *) &arg10_defvalue ;
17457 wxSlider *result = 0 ;
17458 void *argp1 = 0 ;
17459 int res1 = 0 ;
17460 int val2 ;
17461 int ecode2 = 0 ;
17462 int val3 ;
17463 int ecode3 = 0 ;
17464 int val4 ;
17465 int ecode4 = 0 ;
17466 int val5 ;
17467 int ecode5 = 0 ;
17468 wxPoint temp6 ;
17469 wxSize temp7 ;
17470 long val8 ;
17471 int ecode8 = 0 ;
17472 void *argp9 = 0 ;
17473 int res9 = 0 ;
17474 bool temp10 = false ;
17475 PyObject * obj0 = 0 ;
17476 PyObject * obj1 = 0 ;
17477 PyObject * obj2 = 0 ;
17478 PyObject * obj3 = 0 ;
17479 PyObject * obj4 = 0 ;
17480 PyObject * obj5 = 0 ;
17481 PyObject * obj6 = 0 ;
17482 PyObject * obj7 = 0 ;
17483 PyObject * obj8 = 0 ;
17484 PyObject * obj9 = 0 ;
17485 char * kwnames[] = {
17486 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17487 };
17488
17489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17491 if (!SWIG_IsOK(res1)) {
17492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17493 }
17494 arg1 = reinterpret_cast< wxWindow * >(argp1);
17495 if (obj1) {
17496 ecode2 = SWIG_AsVal_int(obj1, &val2);
17497 if (!SWIG_IsOK(ecode2)) {
17498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17499 }
17500 arg2 = static_cast< int >(val2);
17501 }
17502 if (obj2) {
17503 ecode3 = SWIG_AsVal_int(obj2, &val3);
17504 if (!SWIG_IsOK(ecode3)) {
17505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17506 }
17507 arg3 = static_cast< int >(val3);
17508 }
17509 if (obj3) {
17510 ecode4 = SWIG_AsVal_int(obj3, &val4);
17511 if (!SWIG_IsOK(ecode4)) {
17512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17513 }
17514 arg4 = static_cast< int >(val4);
17515 }
17516 if (obj4) {
17517 ecode5 = SWIG_AsVal_int(obj4, &val5);
17518 if (!SWIG_IsOK(ecode5)) {
17519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17520 }
17521 arg5 = static_cast< int >(val5);
17522 }
17523 if (obj5) {
17524 {
17525 arg6 = &temp6;
17526 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17527 }
17528 }
17529 if (obj6) {
17530 {
17531 arg7 = &temp7;
17532 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17533 }
17534 }
17535 if (obj7) {
17536 ecode8 = SWIG_AsVal_long(obj7, &val8);
17537 if (!SWIG_IsOK(ecode8)) {
17538 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17539 }
17540 arg8 = static_cast< long >(val8);
17541 }
17542 if (obj8) {
17543 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17544 if (!SWIG_IsOK(res9)) {
17545 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17546 }
17547 if (!argp9) {
17548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17549 }
17550 arg9 = reinterpret_cast< wxValidator * >(argp9);
17551 }
17552 if (obj9) {
17553 {
17554 arg10 = wxString_in_helper(obj9);
17555 if (arg10 == NULL) SWIG_fail;
17556 temp10 = true;
17557 }
17558 }
17559 {
17560 if (!wxPyCheckForApp()) SWIG_fail;
17561 PyThreadState* __tstate = wxPyBeginAllowThreads();
17562 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17567 {
17568 if (temp10)
17569 delete arg10;
17570 }
17571 return resultobj;
17572 fail:
17573 {
17574 if (temp10)
17575 delete arg10;
17576 }
17577 return NULL;
17578 }
17579
17580
17581 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17582 PyObject *resultobj = 0;
17583 wxSlider *result = 0 ;
17584
17585 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17586 {
17587 if (!wxPyCheckForApp()) SWIG_fail;
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 result = (wxSlider *)new wxSlider();
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17594 return resultobj;
17595 fail:
17596 return NULL;
17597 }
17598
17599
17600 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17601 PyObject *resultobj = 0;
17602 wxSlider *arg1 = (wxSlider *) 0 ;
17603 wxWindow *arg2 = (wxWindow *) 0 ;
17604 int arg3 = (int) -1 ;
17605 int arg4 = (int) 0 ;
17606 int arg5 = (int) 0 ;
17607 int arg6 = (int) 100 ;
17608 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17609 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17610 wxSize const &arg8_defvalue = wxDefaultSize ;
17611 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17612 long arg9 = (long) wxSL_HORIZONTAL ;
17613 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17614 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17615 wxString const &arg11_defvalue = wxPySliderNameStr ;
17616 wxString *arg11 = (wxString *) &arg11_defvalue ;
17617 bool result;
17618 void *argp1 = 0 ;
17619 int res1 = 0 ;
17620 void *argp2 = 0 ;
17621 int res2 = 0 ;
17622 int val3 ;
17623 int ecode3 = 0 ;
17624 int val4 ;
17625 int ecode4 = 0 ;
17626 int val5 ;
17627 int ecode5 = 0 ;
17628 int val6 ;
17629 int ecode6 = 0 ;
17630 wxPoint temp7 ;
17631 wxSize temp8 ;
17632 long val9 ;
17633 int ecode9 = 0 ;
17634 void *argp10 = 0 ;
17635 int res10 = 0 ;
17636 bool temp11 = false ;
17637 PyObject * obj0 = 0 ;
17638 PyObject * obj1 = 0 ;
17639 PyObject * obj2 = 0 ;
17640 PyObject * obj3 = 0 ;
17641 PyObject * obj4 = 0 ;
17642 PyObject * obj5 = 0 ;
17643 PyObject * obj6 = 0 ;
17644 PyObject * obj7 = 0 ;
17645 PyObject * obj8 = 0 ;
17646 PyObject * obj9 = 0 ;
17647 PyObject * obj10 = 0 ;
17648 char * kwnames[] = {
17649 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17650 };
17651
17652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17654 if (!SWIG_IsOK(res1)) {
17655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17656 }
17657 arg1 = reinterpret_cast< wxSlider * >(argp1);
17658 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17659 if (!SWIG_IsOK(res2)) {
17660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17661 }
17662 arg2 = reinterpret_cast< wxWindow * >(argp2);
17663 if (obj2) {
17664 ecode3 = SWIG_AsVal_int(obj2, &val3);
17665 if (!SWIG_IsOK(ecode3)) {
17666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17667 }
17668 arg3 = static_cast< int >(val3);
17669 }
17670 if (obj3) {
17671 ecode4 = SWIG_AsVal_int(obj3, &val4);
17672 if (!SWIG_IsOK(ecode4)) {
17673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17674 }
17675 arg4 = static_cast< int >(val4);
17676 }
17677 if (obj4) {
17678 ecode5 = SWIG_AsVal_int(obj4, &val5);
17679 if (!SWIG_IsOK(ecode5)) {
17680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17681 }
17682 arg5 = static_cast< int >(val5);
17683 }
17684 if (obj5) {
17685 ecode6 = SWIG_AsVal_int(obj5, &val6);
17686 if (!SWIG_IsOK(ecode6)) {
17687 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17688 }
17689 arg6 = static_cast< int >(val6);
17690 }
17691 if (obj6) {
17692 {
17693 arg7 = &temp7;
17694 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17695 }
17696 }
17697 if (obj7) {
17698 {
17699 arg8 = &temp8;
17700 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17701 }
17702 }
17703 if (obj8) {
17704 ecode9 = SWIG_AsVal_long(obj8, &val9);
17705 if (!SWIG_IsOK(ecode9)) {
17706 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17707 }
17708 arg9 = static_cast< long >(val9);
17709 }
17710 if (obj9) {
17711 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17712 if (!SWIG_IsOK(res10)) {
17713 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17714 }
17715 if (!argp10) {
17716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17717 }
17718 arg10 = reinterpret_cast< wxValidator * >(argp10);
17719 }
17720 if (obj10) {
17721 {
17722 arg11 = wxString_in_helper(obj10);
17723 if (arg11 == NULL) SWIG_fail;
17724 temp11 = true;
17725 }
17726 }
17727 {
17728 PyThreadState* __tstate = wxPyBeginAllowThreads();
17729 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17730 wxPyEndAllowThreads(__tstate);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 }
17733 {
17734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17735 }
17736 {
17737 if (temp11)
17738 delete arg11;
17739 }
17740 return resultobj;
17741 fail:
17742 {
17743 if (temp11)
17744 delete arg11;
17745 }
17746 return NULL;
17747 }
17748
17749
17750 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17751 PyObject *resultobj = 0;
17752 wxSlider *arg1 = (wxSlider *) 0 ;
17753 int result;
17754 void *argp1 = 0 ;
17755 int res1 = 0 ;
17756 PyObject *swig_obj[1] ;
17757
17758 if (!args) SWIG_fail;
17759 swig_obj[0] = args;
17760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17761 if (!SWIG_IsOK(res1)) {
17762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17763 }
17764 arg1 = reinterpret_cast< wxSlider * >(argp1);
17765 {
17766 PyThreadState* __tstate = wxPyBeginAllowThreads();
17767 result = (int)((wxSlider const *)arg1)->GetValue();
17768 wxPyEndAllowThreads(__tstate);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 }
17771 resultobj = SWIG_From_int(static_cast< int >(result));
17772 return resultobj;
17773 fail:
17774 return NULL;
17775 }
17776
17777
17778 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17779 PyObject *resultobj = 0;
17780 wxSlider *arg1 = (wxSlider *) 0 ;
17781 int arg2 ;
17782 void *argp1 = 0 ;
17783 int res1 = 0 ;
17784 int val2 ;
17785 int ecode2 = 0 ;
17786 PyObject * obj0 = 0 ;
17787 PyObject * obj1 = 0 ;
17788 char * kwnames[] = {
17789 (char *) "self",(char *) "value", NULL
17790 };
17791
17792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17794 if (!SWIG_IsOK(res1)) {
17795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17796 }
17797 arg1 = reinterpret_cast< wxSlider * >(argp1);
17798 ecode2 = SWIG_AsVal_int(obj1, &val2);
17799 if (!SWIG_IsOK(ecode2)) {
17800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17801 }
17802 arg2 = static_cast< int >(val2);
17803 {
17804 PyThreadState* __tstate = wxPyBeginAllowThreads();
17805 (arg1)->SetValue(arg2);
17806 wxPyEndAllowThreads(__tstate);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 }
17809 resultobj = SWIG_Py_Void();
17810 return resultobj;
17811 fail:
17812 return NULL;
17813 }
17814
17815
17816 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17817 PyObject *resultobj = 0;
17818 wxSlider *arg1 = (wxSlider *) 0 ;
17819 int arg2 ;
17820 int arg3 ;
17821 void *argp1 = 0 ;
17822 int res1 = 0 ;
17823 int val2 ;
17824 int ecode2 = 0 ;
17825 int val3 ;
17826 int ecode3 = 0 ;
17827 PyObject * obj0 = 0 ;
17828 PyObject * obj1 = 0 ;
17829 PyObject * obj2 = 0 ;
17830 char * kwnames[] = {
17831 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17832 };
17833
17834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17836 if (!SWIG_IsOK(res1)) {
17837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17838 }
17839 arg1 = reinterpret_cast< wxSlider * >(argp1);
17840 ecode2 = SWIG_AsVal_int(obj1, &val2);
17841 if (!SWIG_IsOK(ecode2)) {
17842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17843 }
17844 arg2 = static_cast< int >(val2);
17845 ecode3 = SWIG_AsVal_int(obj2, &val3);
17846 if (!SWIG_IsOK(ecode3)) {
17847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17848 }
17849 arg3 = static_cast< int >(val3);
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 (arg1)->SetRange(arg2,arg3);
17853 wxPyEndAllowThreads(__tstate);
17854 if (PyErr_Occurred()) SWIG_fail;
17855 }
17856 resultobj = SWIG_Py_Void();
17857 return resultobj;
17858 fail:
17859 return NULL;
17860 }
17861
17862
17863 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17864 PyObject *resultobj = 0;
17865 wxSlider *arg1 = (wxSlider *) 0 ;
17866 int result;
17867 void *argp1 = 0 ;
17868 int res1 = 0 ;
17869 PyObject *swig_obj[1] ;
17870
17871 if (!args) SWIG_fail;
17872 swig_obj[0] = args;
17873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17874 if (!SWIG_IsOK(res1)) {
17875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17876 }
17877 arg1 = reinterpret_cast< wxSlider * >(argp1);
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 result = (int)((wxSlider const *)arg1)->GetMin();
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_From_int(static_cast< int >(result));
17885 return resultobj;
17886 fail:
17887 return NULL;
17888 }
17889
17890
17891 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17892 PyObject *resultobj = 0;
17893 wxSlider *arg1 = (wxSlider *) 0 ;
17894 int result;
17895 void *argp1 = 0 ;
17896 int res1 = 0 ;
17897 PyObject *swig_obj[1] ;
17898
17899 if (!args) SWIG_fail;
17900 swig_obj[0] = args;
17901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17902 if (!SWIG_IsOK(res1)) {
17903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17904 }
17905 arg1 = reinterpret_cast< wxSlider * >(argp1);
17906 {
17907 PyThreadState* __tstate = wxPyBeginAllowThreads();
17908 result = (int)((wxSlider const *)arg1)->GetMax();
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 resultobj = SWIG_From_int(static_cast< int >(result));
17913 return resultobj;
17914 fail:
17915 return NULL;
17916 }
17917
17918
17919 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17920 PyObject *resultobj = 0;
17921 wxSlider *arg1 = (wxSlider *) 0 ;
17922 int arg2 ;
17923 void *argp1 = 0 ;
17924 int res1 = 0 ;
17925 int val2 ;
17926 int ecode2 = 0 ;
17927 PyObject * obj0 = 0 ;
17928 PyObject * obj1 = 0 ;
17929 char * kwnames[] = {
17930 (char *) "self",(char *) "minValue", NULL
17931 };
17932
17933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17935 if (!SWIG_IsOK(res1)) {
17936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17937 }
17938 arg1 = reinterpret_cast< wxSlider * >(argp1);
17939 ecode2 = SWIG_AsVal_int(obj1, &val2);
17940 if (!SWIG_IsOK(ecode2)) {
17941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17942 }
17943 arg2 = static_cast< int >(val2);
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 (arg1)->SetMin(arg2);
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 resultobj = SWIG_Py_Void();
17951 return resultobj;
17952 fail:
17953 return NULL;
17954 }
17955
17956
17957 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17958 PyObject *resultobj = 0;
17959 wxSlider *arg1 = (wxSlider *) 0 ;
17960 int arg2 ;
17961 void *argp1 = 0 ;
17962 int res1 = 0 ;
17963 int val2 ;
17964 int ecode2 = 0 ;
17965 PyObject * obj0 = 0 ;
17966 PyObject * obj1 = 0 ;
17967 char * kwnames[] = {
17968 (char *) "self",(char *) "maxValue", NULL
17969 };
17970
17971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17973 if (!SWIG_IsOK(res1)) {
17974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17975 }
17976 arg1 = reinterpret_cast< wxSlider * >(argp1);
17977 ecode2 = SWIG_AsVal_int(obj1, &val2);
17978 if (!SWIG_IsOK(ecode2)) {
17979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17980 }
17981 arg2 = static_cast< int >(val2);
17982 {
17983 PyThreadState* __tstate = wxPyBeginAllowThreads();
17984 (arg1)->SetMax(arg2);
17985 wxPyEndAllowThreads(__tstate);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 resultobj = SWIG_Py_Void();
17989 return resultobj;
17990 fail:
17991 return NULL;
17992 }
17993
17994
17995 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17996 PyObject *resultobj = 0;
17997 wxSlider *arg1 = (wxSlider *) 0 ;
17998 int arg2 ;
17999 void *argp1 = 0 ;
18000 int res1 = 0 ;
18001 int val2 ;
18002 int ecode2 = 0 ;
18003 PyObject * obj0 = 0 ;
18004 PyObject * obj1 = 0 ;
18005 char * kwnames[] = {
18006 (char *) "self",(char *) "lineSize", NULL
18007 };
18008
18009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18011 if (!SWIG_IsOK(res1)) {
18012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18013 }
18014 arg1 = reinterpret_cast< wxSlider * >(argp1);
18015 ecode2 = SWIG_AsVal_int(obj1, &val2);
18016 if (!SWIG_IsOK(ecode2)) {
18017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18018 }
18019 arg2 = static_cast< int >(val2);
18020 {
18021 PyThreadState* __tstate = wxPyBeginAllowThreads();
18022 (arg1)->SetLineSize(arg2);
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 resultobj = SWIG_Py_Void();
18027 return resultobj;
18028 fail:
18029 return NULL;
18030 }
18031
18032
18033 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj = 0;
18035 wxSlider *arg1 = (wxSlider *) 0 ;
18036 int arg2 ;
18037 void *argp1 = 0 ;
18038 int res1 = 0 ;
18039 int val2 ;
18040 int ecode2 = 0 ;
18041 PyObject * obj0 = 0 ;
18042 PyObject * obj1 = 0 ;
18043 char * kwnames[] = {
18044 (char *) "self",(char *) "pageSize", NULL
18045 };
18046
18047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18049 if (!SWIG_IsOK(res1)) {
18050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18051 }
18052 arg1 = reinterpret_cast< wxSlider * >(argp1);
18053 ecode2 = SWIG_AsVal_int(obj1, &val2);
18054 if (!SWIG_IsOK(ecode2)) {
18055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18056 }
18057 arg2 = static_cast< int >(val2);
18058 {
18059 PyThreadState* __tstate = wxPyBeginAllowThreads();
18060 (arg1)->SetPageSize(arg2);
18061 wxPyEndAllowThreads(__tstate);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 resultobj = SWIG_Py_Void();
18065 return resultobj;
18066 fail:
18067 return NULL;
18068 }
18069
18070
18071 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18072 PyObject *resultobj = 0;
18073 wxSlider *arg1 = (wxSlider *) 0 ;
18074 int result;
18075 void *argp1 = 0 ;
18076 int res1 = 0 ;
18077 PyObject *swig_obj[1] ;
18078
18079 if (!args) SWIG_fail;
18080 swig_obj[0] = args;
18081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18082 if (!SWIG_IsOK(res1)) {
18083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18084 }
18085 arg1 = reinterpret_cast< wxSlider * >(argp1);
18086 {
18087 PyThreadState* __tstate = wxPyBeginAllowThreads();
18088 result = (int)((wxSlider const *)arg1)->GetLineSize();
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 resultobj = SWIG_From_int(static_cast< int >(result));
18093 return resultobj;
18094 fail:
18095 return NULL;
18096 }
18097
18098
18099 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18100 PyObject *resultobj = 0;
18101 wxSlider *arg1 = (wxSlider *) 0 ;
18102 int result;
18103 void *argp1 = 0 ;
18104 int res1 = 0 ;
18105 PyObject *swig_obj[1] ;
18106
18107 if (!args) SWIG_fail;
18108 swig_obj[0] = args;
18109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18110 if (!SWIG_IsOK(res1)) {
18111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18112 }
18113 arg1 = reinterpret_cast< wxSlider * >(argp1);
18114 {
18115 PyThreadState* __tstate = wxPyBeginAllowThreads();
18116 result = (int)((wxSlider const *)arg1)->GetPageSize();
18117 wxPyEndAllowThreads(__tstate);
18118 if (PyErr_Occurred()) SWIG_fail;
18119 }
18120 resultobj = SWIG_From_int(static_cast< int >(result));
18121 return resultobj;
18122 fail:
18123 return NULL;
18124 }
18125
18126
18127 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18128 PyObject *resultobj = 0;
18129 wxSlider *arg1 = (wxSlider *) 0 ;
18130 int arg2 ;
18131 void *argp1 = 0 ;
18132 int res1 = 0 ;
18133 int val2 ;
18134 int ecode2 = 0 ;
18135 PyObject * obj0 = 0 ;
18136 PyObject * obj1 = 0 ;
18137 char * kwnames[] = {
18138 (char *) "self",(char *) "lenPixels", NULL
18139 };
18140
18141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) 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_SetThumbLength" "', 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_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18150 }
18151 arg2 = static_cast< int >(val2);
18152 {
18153 PyThreadState* __tstate = wxPyBeginAllowThreads();
18154 (arg1)->SetThumbLength(arg2);
18155 wxPyEndAllowThreads(__tstate);
18156 if (PyErr_Occurred()) SWIG_fail;
18157 }
18158 resultobj = SWIG_Py_Void();
18159 return resultobj;
18160 fail:
18161 return NULL;
18162 }
18163
18164
18165 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18166 PyObject *resultobj = 0;
18167 wxSlider *arg1 = (wxSlider *) 0 ;
18168 int result;
18169 void *argp1 = 0 ;
18170 int res1 = 0 ;
18171 PyObject *swig_obj[1] ;
18172
18173 if (!args) SWIG_fail;
18174 swig_obj[0] = args;
18175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18176 if (!SWIG_IsOK(res1)) {
18177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18178 }
18179 arg1 = reinterpret_cast< wxSlider * >(argp1);
18180 {
18181 PyThreadState* __tstate = wxPyBeginAllowThreads();
18182 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 resultobj = SWIG_From_int(static_cast< int >(result));
18187 return resultobj;
18188 fail:
18189 return NULL;
18190 }
18191
18192
18193 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18194 PyObject *resultobj = 0;
18195 wxSlider *arg1 = (wxSlider *) 0 ;
18196 int arg2 ;
18197 int arg3 = (int) 1 ;
18198 void *argp1 = 0 ;
18199 int res1 = 0 ;
18200 int val2 ;
18201 int ecode2 = 0 ;
18202 int val3 ;
18203 int ecode3 = 0 ;
18204 PyObject * obj0 = 0 ;
18205 PyObject * obj1 = 0 ;
18206 PyObject * obj2 = 0 ;
18207 char * kwnames[] = {
18208 (char *) "self",(char *) "n",(char *) "pos", NULL
18209 };
18210
18211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18213 if (!SWIG_IsOK(res1)) {
18214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18215 }
18216 arg1 = reinterpret_cast< wxSlider * >(argp1);
18217 ecode2 = SWIG_AsVal_int(obj1, &val2);
18218 if (!SWIG_IsOK(ecode2)) {
18219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18220 }
18221 arg2 = static_cast< int >(val2);
18222 if (obj2) {
18223 ecode3 = SWIG_AsVal_int(obj2, &val3);
18224 if (!SWIG_IsOK(ecode3)) {
18225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18226 }
18227 arg3 = static_cast< int >(val3);
18228 }
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 (arg1)->SetTickFreq(arg2,arg3);
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 resultobj = SWIG_Py_Void();
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18243 PyObject *resultobj = 0;
18244 wxSlider *arg1 = (wxSlider *) 0 ;
18245 int result;
18246 void *argp1 = 0 ;
18247 int res1 = 0 ;
18248 PyObject *swig_obj[1] ;
18249
18250 if (!args) SWIG_fail;
18251 swig_obj[0] = args;
18252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18253 if (!SWIG_IsOK(res1)) {
18254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18255 }
18256 arg1 = reinterpret_cast< wxSlider * >(argp1);
18257 {
18258 PyThreadState* __tstate = wxPyBeginAllowThreads();
18259 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18260 wxPyEndAllowThreads(__tstate);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 }
18263 resultobj = SWIG_From_int(static_cast< int >(result));
18264 return resultobj;
18265 fail:
18266 return NULL;
18267 }
18268
18269
18270 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18271 PyObject *resultobj = 0;
18272 wxSlider *arg1 = (wxSlider *) 0 ;
18273 void *argp1 = 0 ;
18274 int res1 = 0 ;
18275 PyObject *swig_obj[1] ;
18276
18277 if (!args) SWIG_fail;
18278 swig_obj[0] = args;
18279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18280 if (!SWIG_IsOK(res1)) {
18281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18282 }
18283 arg1 = reinterpret_cast< wxSlider * >(argp1);
18284 {
18285 PyThreadState* __tstate = wxPyBeginAllowThreads();
18286 (arg1)->ClearTicks();
18287 wxPyEndAllowThreads(__tstate);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 resultobj = SWIG_Py_Void();
18291 return resultobj;
18292 fail:
18293 return NULL;
18294 }
18295
18296
18297 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj = 0;
18299 wxSlider *arg1 = (wxSlider *) 0 ;
18300 int arg2 ;
18301 void *argp1 = 0 ;
18302 int res1 = 0 ;
18303 int val2 ;
18304 int ecode2 = 0 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 char * kwnames[] = {
18308 (char *) "self",(char *) "tickPos", NULL
18309 };
18310
18311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18313 if (!SWIG_IsOK(res1)) {
18314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18315 }
18316 arg1 = reinterpret_cast< wxSlider * >(argp1);
18317 ecode2 = SWIG_AsVal_int(obj1, &val2);
18318 if (!SWIG_IsOK(ecode2)) {
18319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18320 }
18321 arg2 = static_cast< int >(val2);
18322 {
18323 PyThreadState* __tstate = wxPyBeginAllowThreads();
18324 (arg1)->SetTick(arg2);
18325 wxPyEndAllowThreads(__tstate);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 }
18328 resultobj = SWIG_Py_Void();
18329 return resultobj;
18330 fail:
18331 return NULL;
18332 }
18333
18334
18335 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18336 PyObject *resultobj = 0;
18337 wxSlider *arg1 = (wxSlider *) 0 ;
18338 void *argp1 = 0 ;
18339 int res1 = 0 ;
18340 PyObject *swig_obj[1] ;
18341
18342 if (!args) SWIG_fail;
18343 swig_obj[0] = args;
18344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18345 if (!SWIG_IsOK(res1)) {
18346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18347 }
18348 arg1 = reinterpret_cast< wxSlider * >(argp1);
18349 {
18350 PyThreadState* __tstate = wxPyBeginAllowThreads();
18351 (arg1)->ClearSel();
18352 wxPyEndAllowThreads(__tstate);
18353 if (PyErr_Occurred()) SWIG_fail;
18354 }
18355 resultobj = SWIG_Py_Void();
18356 return resultobj;
18357 fail:
18358 return NULL;
18359 }
18360
18361
18362 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18363 PyObject *resultobj = 0;
18364 wxSlider *arg1 = (wxSlider *) 0 ;
18365 int result;
18366 void *argp1 = 0 ;
18367 int res1 = 0 ;
18368 PyObject *swig_obj[1] ;
18369
18370 if (!args) SWIG_fail;
18371 swig_obj[0] = args;
18372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18373 if (!SWIG_IsOK(res1)) {
18374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18375 }
18376 arg1 = reinterpret_cast< wxSlider * >(argp1);
18377 {
18378 PyThreadState* __tstate = wxPyBeginAllowThreads();
18379 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18380 wxPyEndAllowThreads(__tstate);
18381 if (PyErr_Occurred()) SWIG_fail;
18382 }
18383 resultobj = SWIG_From_int(static_cast< int >(result));
18384 return resultobj;
18385 fail:
18386 return NULL;
18387 }
18388
18389
18390 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18391 PyObject *resultobj = 0;
18392 wxSlider *arg1 = (wxSlider *) 0 ;
18393 int result;
18394 void *argp1 = 0 ;
18395 int res1 = 0 ;
18396 PyObject *swig_obj[1] ;
18397
18398 if (!args) SWIG_fail;
18399 swig_obj[0] = args;
18400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18401 if (!SWIG_IsOK(res1)) {
18402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18403 }
18404 arg1 = reinterpret_cast< wxSlider * >(argp1);
18405 {
18406 PyThreadState* __tstate = wxPyBeginAllowThreads();
18407 result = (int)((wxSlider const *)arg1)->GetSelStart();
18408 wxPyEndAllowThreads(__tstate);
18409 if (PyErr_Occurred()) SWIG_fail;
18410 }
18411 resultobj = SWIG_From_int(static_cast< int >(result));
18412 return resultobj;
18413 fail:
18414 return NULL;
18415 }
18416
18417
18418 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18419 PyObject *resultobj = 0;
18420 wxSlider *arg1 = (wxSlider *) 0 ;
18421 int arg2 ;
18422 int arg3 ;
18423 void *argp1 = 0 ;
18424 int res1 = 0 ;
18425 int val2 ;
18426 int ecode2 = 0 ;
18427 int val3 ;
18428 int ecode3 = 0 ;
18429 PyObject * obj0 = 0 ;
18430 PyObject * obj1 = 0 ;
18431 PyObject * obj2 = 0 ;
18432 char * kwnames[] = {
18433 (char *) "self",(char *) "min",(char *) "max", NULL
18434 };
18435
18436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18438 if (!SWIG_IsOK(res1)) {
18439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18440 }
18441 arg1 = reinterpret_cast< wxSlider * >(argp1);
18442 ecode2 = SWIG_AsVal_int(obj1, &val2);
18443 if (!SWIG_IsOK(ecode2)) {
18444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18445 }
18446 arg2 = static_cast< int >(val2);
18447 ecode3 = SWIG_AsVal_int(obj2, &val3);
18448 if (!SWIG_IsOK(ecode3)) {
18449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18450 }
18451 arg3 = static_cast< int >(val3);
18452 {
18453 PyThreadState* __tstate = wxPyBeginAllowThreads();
18454 (arg1)->SetSelection(arg2,arg3);
18455 wxPyEndAllowThreads(__tstate);
18456 if (PyErr_Occurred()) SWIG_fail;
18457 }
18458 resultobj = SWIG_Py_Void();
18459 return resultobj;
18460 fail:
18461 return NULL;
18462 }
18463
18464
18465 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18466 PyObject *resultobj = 0;
18467 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18468 SwigValueWrapper<wxVisualAttributes > result;
18469 int val1 ;
18470 int ecode1 = 0 ;
18471 PyObject * obj0 = 0 ;
18472 char * kwnames[] = {
18473 (char *) "variant", NULL
18474 };
18475
18476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18477 if (obj0) {
18478 ecode1 = SWIG_AsVal_int(obj0, &val1);
18479 if (!SWIG_IsOK(ecode1)) {
18480 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18481 }
18482 arg1 = static_cast< wxWindowVariant >(val1);
18483 }
18484 {
18485 if (!wxPyCheckForApp()) SWIG_fail;
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 result = wxSlider::GetClassDefaultAttributes(arg1);
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18492 return resultobj;
18493 fail:
18494 return NULL;
18495 }
18496
18497
18498 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18499 PyObject *obj;
18500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18501 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18502 return SWIG_Py_Void();
18503 }
18504
18505 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18506 return SWIG_Python_InitShadowInstance(args);
18507 }
18508
18509 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18510 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18511 return 1;
18512 }
18513
18514
18515 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18516 PyObject *pyobj = 0;
18517
18518 {
18519 #if wxUSE_UNICODE
18520 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18521 #else
18522 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18523 #endif
18524 }
18525 return pyobj;
18526 }
18527
18528
18529 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj = 0;
18531 wxWindow *arg1 = (wxWindow *) 0 ;
18532 int arg2 = (int) -1 ;
18533 wxString const &arg3_defvalue = wxPyEmptyString ;
18534 wxString *arg3 = (wxString *) &arg3_defvalue ;
18535 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18536 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18537 wxSize const &arg5_defvalue = wxDefaultSize ;
18538 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18539 long arg6 = (long) 0 ;
18540 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18541 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18542 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18543 wxString *arg8 = (wxString *) &arg8_defvalue ;
18544 wxToggleButton *result = 0 ;
18545 void *argp1 = 0 ;
18546 int res1 = 0 ;
18547 int val2 ;
18548 int ecode2 = 0 ;
18549 bool temp3 = false ;
18550 wxPoint temp4 ;
18551 wxSize temp5 ;
18552 long val6 ;
18553 int ecode6 = 0 ;
18554 void *argp7 = 0 ;
18555 int res7 = 0 ;
18556 bool temp8 = false ;
18557 PyObject * obj0 = 0 ;
18558 PyObject * obj1 = 0 ;
18559 PyObject * obj2 = 0 ;
18560 PyObject * obj3 = 0 ;
18561 PyObject * obj4 = 0 ;
18562 PyObject * obj5 = 0 ;
18563 PyObject * obj6 = 0 ;
18564 PyObject * obj7 = 0 ;
18565 char * kwnames[] = {
18566 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18567 };
18568
18569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18571 if (!SWIG_IsOK(res1)) {
18572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18573 }
18574 arg1 = reinterpret_cast< wxWindow * >(argp1);
18575 if (obj1) {
18576 ecode2 = SWIG_AsVal_int(obj1, &val2);
18577 if (!SWIG_IsOK(ecode2)) {
18578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18579 }
18580 arg2 = static_cast< int >(val2);
18581 }
18582 if (obj2) {
18583 {
18584 arg3 = wxString_in_helper(obj2);
18585 if (arg3 == NULL) SWIG_fail;
18586 temp3 = true;
18587 }
18588 }
18589 if (obj3) {
18590 {
18591 arg4 = &temp4;
18592 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18593 }
18594 }
18595 if (obj4) {
18596 {
18597 arg5 = &temp5;
18598 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18599 }
18600 }
18601 if (obj5) {
18602 ecode6 = SWIG_AsVal_long(obj5, &val6);
18603 if (!SWIG_IsOK(ecode6)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18605 }
18606 arg6 = static_cast< long >(val6);
18607 }
18608 if (obj6) {
18609 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18610 if (!SWIG_IsOK(res7)) {
18611 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18612 }
18613 if (!argp7) {
18614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18615 }
18616 arg7 = reinterpret_cast< wxValidator * >(argp7);
18617 }
18618 if (obj7) {
18619 {
18620 arg8 = wxString_in_helper(obj7);
18621 if (arg8 == NULL) SWIG_fail;
18622 temp8 = true;
18623 }
18624 }
18625 {
18626 if (!wxPyCheckForApp()) SWIG_fail;
18627 PyThreadState* __tstate = wxPyBeginAllowThreads();
18628 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18629 wxPyEndAllowThreads(__tstate);
18630 if (PyErr_Occurred()) SWIG_fail;
18631 }
18632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18633 {
18634 if (temp3)
18635 delete arg3;
18636 }
18637 {
18638 if (temp8)
18639 delete arg8;
18640 }
18641 return resultobj;
18642 fail:
18643 {
18644 if (temp3)
18645 delete arg3;
18646 }
18647 {
18648 if (temp8)
18649 delete arg8;
18650 }
18651 return NULL;
18652 }
18653
18654
18655 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18656 PyObject *resultobj = 0;
18657 wxToggleButton *result = 0 ;
18658
18659 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18660 {
18661 if (!wxPyCheckForApp()) SWIG_fail;
18662 PyThreadState* __tstate = wxPyBeginAllowThreads();
18663 result = (wxToggleButton *)new wxToggleButton();
18664 wxPyEndAllowThreads(__tstate);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 }
18667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18668 return resultobj;
18669 fail:
18670 return NULL;
18671 }
18672
18673
18674 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18675 PyObject *resultobj = 0;
18676 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18677 wxWindow *arg2 = (wxWindow *) 0 ;
18678 int arg3 = (int) -1 ;
18679 wxString const &arg4_defvalue = wxPyEmptyString ;
18680 wxString *arg4 = (wxString *) &arg4_defvalue ;
18681 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18682 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18683 wxSize const &arg6_defvalue = wxDefaultSize ;
18684 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18685 long arg7 = (long) 0 ;
18686 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18687 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18688 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18689 wxString *arg9 = (wxString *) &arg9_defvalue ;
18690 bool result;
18691 void *argp1 = 0 ;
18692 int res1 = 0 ;
18693 void *argp2 = 0 ;
18694 int res2 = 0 ;
18695 int val3 ;
18696 int ecode3 = 0 ;
18697 bool temp4 = false ;
18698 wxPoint temp5 ;
18699 wxSize temp6 ;
18700 long val7 ;
18701 int ecode7 = 0 ;
18702 void *argp8 = 0 ;
18703 int res8 = 0 ;
18704 bool temp9 = false ;
18705 PyObject * obj0 = 0 ;
18706 PyObject * obj1 = 0 ;
18707 PyObject * obj2 = 0 ;
18708 PyObject * obj3 = 0 ;
18709 PyObject * obj4 = 0 ;
18710 PyObject * obj5 = 0 ;
18711 PyObject * obj6 = 0 ;
18712 PyObject * obj7 = 0 ;
18713 PyObject * obj8 = 0 ;
18714 char * kwnames[] = {
18715 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18716 };
18717
18718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18720 if (!SWIG_IsOK(res1)) {
18721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18722 }
18723 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18725 if (!SWIG_IsOK(res2)) {
18726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18727 }
18728 arg2 = reinterpret_cast< wxWindow * >(argp2);
18729 if (obj2) {
18730 ecode3 = SWIG_AsVal_int(obj2, &val3);
18731 if (!SWIG_IsOK(ecode3)) {
18732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18733 }
18734 arg3 = static_cast< int >(val3);
18735 }
18736 if (obj3) {
18737 {
18738 arg4 = wxString_in_helper(obj3);
18739 if (arg4 == NULL) SWIG_fail;
18740 temp4 = true;
18741 }
18742 }
18743 if (obj4) {
18744 {
18745 arg5 = &temp5;
18746 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18747 }
18748 }
18749 if (obj5) {
18750 {
18751 arg6 = &temp6;
18752 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18753 }
18754 }
18755 if (obj6) {
18756 ecode7 = SWIG_AsVal_long(obj6, &val7);
18757 if (!SWIG_IsOK(ecode7)) {
18758 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18759 }
18760 arg7 = static_cast< long >(val7);
18761 }
18762 if (obj7) {
18763 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18764 if (!SWIG_IsOK(res8)) {
18765 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18766 }
18767 if (!argp8) {
18768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18769 }
18770 arg8 = reinterpret_cast< wxValidator * >(argp8);
18771 }
18772 if (obj8) {
18773 {
18774 arg9 = wxString_in_helper(obj8);
18775 if (arg9 == NULL) SWIG_fail;
18776 temp9 = true;
18777 }
18778 }
18779 {
18780 PyThreadState* __tstate = wxPyBeginAllowThreads();
18781 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18782 wxPyEndAllowThreads(__tstate);
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 {
18786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18787 }
18788 {
18789 if (temp4)
18790 delete arg4;
18791 }
18792 {
18793 if (temp9)
18794 delete arg9;
18795 }
18796 return resultobj;
18797 fail:
18798 {
18799 if (temp4)
18800 delete arg4;
18801 }
18802 {
18803 if (temp9)
18804 delete arg9;
18805 }
18806 return NULL;
18807 }
18808
18809
18810 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18811 PyObject *resultobj = 0;
18812 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18813 bool arg2 ;
18814 void *argp1 = 0 ;
18815 int res1 = 0 ;
18816 bool val2 ;
18817 int ecode2 = 0 ;
18818 PyObject * obj0 = 0 ;
18819 PyObject * obj1 = 0 ;
18820 char * kwnames[] = {
18821 (char *) "self",(char *) "value", NULL
18822 };
18823
18824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18826 if (!SWIG_IsOK(res1)) {
18827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18828 }
18829 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18830 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18831 if (!SWIG_IsOK(ecode2)) {
18832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18833 }
18834 arg2 = static_cast< bool >(val2);
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 (arg1)->SetValue(arg2);
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 resultobj = SWIG_Py_Void();
18842 return resultobj;
18843 fail:
18844 return NULL;
18845 }
18846
18847
18848 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18849 PyObject *resultobj = 0;
18850 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18851 bool result;
18852 void *argp1 = 0 ;
18853 int res1 = 0 ;
18854 PyObject *swig_obj[1] ;
18855
18856 if (!args) SWIG_fail;
18857 swig_obj[0] = args;
18858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18859 if (!SWIG_IsOK(res1)) {
18860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18861 }
18862 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18863 {
18864 PyThreadState* __tstate = wxPyBeginAllowThreads();
18865 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 {
18870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18871 }
18872 return resultobj;
18873 fail:
18874 return NULL;
18875 }
18876
18877
18878 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18879 PyObject *resultobj = 0;
18880 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18881 SwigValueWrapper<wxVisualAttributes > result;
18882 int val1 ;
18883 int ecode1 = 0 ;
18884 PyObject * obj0 = 0 ;
18885 char * kwnames[] = {
18886 (char *) "variant", NULL
18887 };
18888
18889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18890 if (obj0) {
18891 ecode1 = SWIG_AsVal_int(obj0, &val1);
18892 if (!SWIG_IsOK(ecode1)) {
18893 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18894 }
18895 arg1 = static_cast< wxWindowVariant >(val1);
18896 }
18897 {
18898 if (!wxPyCheckForApp()) SWIG_fail;
18899 PyThreadState* __tstate = wxPyBeginAllowThreads();
18900 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18901 wxPyEndAllowThreads(__tstate);
18902 if (PyErr_Occurred()) SWIG_fail;
18903 }
18904 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18905 return resultobj;
18906 fail:
18907 return NULL;
18908 }
18909
18910
18911 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18912 PyObject *obj;
18913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18914 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18915 return SWIG_Py_Void();
18916 }
18917
18918 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18919 return SWIG_Python_InitShadowInstance(args);
18920 }
18921
18922 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18923 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18924 return 1;
18925 }
18926
18927
18928 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18929 PyObject *pyobj = 0;
18930
18931 {
18932 #if wxUSE_UNICODE
18933 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18934 #else
18935 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18936 #endif
18937 }
18938 return pyobj;
18939 }
18940
18941
18942 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18943 PyObject *resultobj = 0;
18944 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18945 size_t result;
18946 void *argp1 = 0 ;
18947 int res1 = 0 ;
18948 PyObject *swig_obj[1] ;
18949
18950 if (!args) SWIG_fail;
18951 swig_obj[0] = args;
18952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18953 if (!SWIG_IsOK(res1)) {
18954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18955 }
18956 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18957 {
18958 PyThreadState* __tstate = wxPyBeginAllowThreads();
18959 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18960 wxPyEndAllowThreads(__tstate);
18961 if (PyErr_Occurred()) SWIG_fail;
18962 }
18963 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18964 return resultobj;
18965 fail:
18966 return NULL;
18967 }
18968
18969
18970 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18971 PyObject *resultobj = 0;
18972 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18973 size_t arg2 ;
18974 wxWindow *result = 0 ;
18975 void *argp1 = 0 ;
18976 int res1 = 0 ;
18977 size_t val2 ;
18978 int ecode2 = 0 ;
18979 PyObject * obj0 = 0 ;
18980 PyObject * obj1 = 0 ;
18981 char * kwnames[] = {
18982 (char *) "self",(char *) "n", NULL
18983 };
18984
18985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18987 if (!SWIG_IsOK(res1)) {
18988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18989 }
18990 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18991 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18992 if (!SWIG_IsOK(ecode2)) {
18993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18994 }
18995 arg2 = static_cast< size_t >(val2);
18996 {
18997 PyThreadState* __tstate = wxPyBeginAllowThreads();
18998 result = (wxWindow *)(arg1)->GetPage(arg2);
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 {
19003 resultobj = wxPyMake_wxObject(result, 0);
19004 }
19005 return resultobj;
19006 fail:
19007 return NULL;
19008 }
19009
19010
19011 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19012 PyObject *resultobj = 0;
19013 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19014 wxWindow *result = 0 ;
19015 void *argp1 = 0 ;
19016 int res1 = 0 ;
19017 PyObject *swig_obj[1] ;
19018
19019 if (!args) SWIG_fail;
19020 swig_obj[0] = args;
19021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19022 if (!SWIG_IsOK(res1)) {
19023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19024 }
19025 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19026 {
19027 PyThreadState* __tstate = wxPyBeginAllowThreads();
19028 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19029 wxPyEndAllowThreads(__tstate);
19030 if (PyErr_Occurred()) SWIG_fail;
19031 }
19032 {
19033 resultobj = wxPyMake_wxObject(result, 0);
19034 }
19035 return resultobj;
19036 fail:
19037 return NULL;
19038 }
19039
19040
19041 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19042 PyObject *resultobj = 0;
19043 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19044 int result;
19045 void *argp1 = 0 ;
19046 int res1 = 0 ;
19047 PyObject *swig_obj[1] ;
19048
19049 if (!args) SWIG_fail;
19050 swig_obj[0] = args;
19051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19052 if (!SWIG_IsOK(res1)) {
19053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19054 }
19055 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19056 {
19057 PyThreadState* __tstate = wxPyBeginAllowThreads();
19058 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19059 wxPyEndAllowThreads(__tstate);
19060 if (PyErr_Occurred()) SWIG_fail;
19061 }
19062 resultobj = SWIG_From_int(static_cast< int >(result));
19063 return resultobj;
19064 fail:
19065 return NULL;
19066 }
19067
19068
19069 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj = 0;
19071 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19072 size_t arg2 ;
19073 wxString *arg3 = 0 ;
19074 bool result;
19075 void *argp1 = 0 ;
19076 int res1 = 0 ;
19077 size_t val2 ;
19078 int ecode2 = 0 ;
19079 bool temp3 = false ;
19080 PyObject * obj0 = 0 ;
19081 PyObject * obj1 = 0 ;
19082 PyObject * obj2 = 0 ;
19083 char * kwnames[] = {
19084 (char *) "self",(char *) "n",(char *) "strText", NULL
19085 };
19086
19087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19089 if (!SWIG_IsOK(res1)) {
19090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19091 }
19092 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19093 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19094 if (!SWIG_IsOK(ecode2)) {
19095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19096 }
19097 arg2 = static_cast< size_t >(val2);
19098 {
19099 arg3 = wxString_in_helper(obj2);
19100 if (arg3 == NULL) SWIG_fail;
19101 temp3 = true;
19102 }
19103 {
19104 PyThreadState* __tstate = wxPyBeginAllowThreads();
19105 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19106 wxPyEndAllowThreads(__tstate);
19107 if (PyErr_Occurred()) SWIG_fail;
19108 }
19109 {
19110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19111 }
19112 {
19113 if (temp3)
19114 delete arg3;
19115 }
19116 return resultobj;
19117 fail:
19118 {
19119 if (temp3)
19120 delete arg3;
19121 }
19122 return NULL;
19123 }
19124
19125
19126 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19127 PyObject *resultobj = 0;
19128 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19129 size_t arg2 ;
19130 wxString result;
19131 void *argp1 = 0 ;
19132 int res1 = 0 ;
19133 size_t val2 ;
19134 int ecode2 = 0 ;
19135 PyObject * obj0 = 0 ;
19136 PyObject * obj1 = 0 ;
19137 char * kwnames[] = {
19138 (char *) "self",(char *) "n", NULL
19139 };
19140
19141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19143 if (!SWIG_IsOK(res1)) {
19144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19145 }
19146 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19147 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19148 if (!SWIG_IsOK(ecode2)) {
19149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19150 }
19151 arg2 = static_cast< size_t >(val2);
19152 {
19153 PyThreadState* __tstate = wxPyBeginAllowThreads();
19154 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19155 wxPyEndAllowThreads(__tstate);
19156 if (PyErr_Occurred()) SWIG_fail;
19157 }
19158 {
19159 #if wxUSE_UNICODE
19160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19161 #else
19162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19163 #endif
19164 }
19165 return resultobj;
19166 fail:
19167 return NULL;
19168 }
19169
19170
19171 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19172 PyObject *resultobj = 0;
19173 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19174 wxImageList *arg2 = (wxImageList *) 0 ;
19175 void *argp1 = 0 ;
19176 int res1 = 0 ;
19177 void *argp2 = 0 ;
19178 int res2 = 0 ;
19179 PyObject * obj0 = 0 ;
19180 PyObject * obj1 = 0 ;
19181 char * kwnames[] = {
19182 (char *) "self",(char *) "imageList", NULL
19183 };
19184
19185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19187 if (!SWIG_IsOK(res1)) {
19188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19189 }
19190 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19191 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19192 if (!SWIG_IsOK(res2)) {
19193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19194 }
19195 arg2 = reinterpret_cast< wxImageList * >(argp2);
19196 {
19197 PyThreadState* __tstate = wxPyBeginAllowThreads();
19198 (arg1)->SetImageList(arg2);
19199 wxPyEndAllowThreads(__tstate);
19200 if (PyErr_Occurred()) SWIG_fail;
19201 }
19202 resultobj = SWIG_Py_Void();
19203 return resultobj;
19204 fail:
19205 return NULL;
19206 }
19207
19208
19209 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19210 PyObject *resultobj = 0;
19211 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19212 wxImageList *arg2 = (wxImageList *) 0 ;
19213 void *argp1 = 0 ;
19214 int res1 = 0 ;
19215 int res2 = 0 ;
19216 PyObject * obj0 = 0 ;
19217 PyObject * obj1 = 0 ;
19218 char * kwnames[] = {
19219 (char *) "self",(char *) "imageList", NULL
19220 };
19221
19222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19224 if (!SWIG_IsOK(res1)) {
19225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19226 }
19227 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19228 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19229 if (!SWIG_IsOK(res2)) {
19230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19231 }
19232 {
19233 PyThreadState* __tstate = wxPyBeginAllowThreads();
19234 (arg1)->AssignImageList(arg2);
19235 wxPyEndAllowThreads(__tstate);
19236 if (PyErr_Occurred()) SWIG_fail;
19237 }
19238 resultobj = SWIG_Py_Void();
19239 return resultobj;
19240 fail:
19241 return NULL;
19242 }
19243
19244
19245 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19246 PyObject *resultobj = 0;
19247 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19248 wxImageList *result = 0 ;
19249 void *argp1 = 0 ;
19250 int res1 = 0 ;
19251 PyObject *swig_obj[1] ;
19252
19253 if (!args) SWIG_fail;
19254 swig_obj[0] = args;
19255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19256 if (!SWIG_IsOK(res1)) {
19257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19258 }
19259 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19260 {
19261 PyThreadState* __tstate = wxPyBeginAllowThreads();
19262 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 {
19267 resultobj = wxPyMake_wxObject(result, (bool)0);
19268 }
19269 return resultobj;
19270 fail:
19271 return NULL;
19272 }
19273
19274
19275 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19276 PyObject *resultobj = 0;
19277 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19278 size_t arg2 ;
19279 int result;
19280 void *argp1 = 0 ;
19281 int res1 = 0 ;
19282 size_t val2 ;
19283 int ecode2 = 0 ;
19284 PyObject * obj0 = 0 ;
19285 PyObject * obj1 = 0 ;
19286 char * kwnames[] = {
19287 (char *) "self",(char *) "n", NULL
19288 };
19289
19290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19292 if (!SWIG_IsOK(res1)) {
19293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19294 }
19295 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19296 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19297 if (!SWIG_IsOK(ecode2)) {
19298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19299 }
19300 arg2 = static_cast< size_t >(val2);
19301 {
19302 PyThreadState* __tstate = wxPyBeginAllowThreads();
19303 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19304 wxPyEndAllowThreads(__tstate);
19305 if (PyErr_Occurred()) SWIG_fail;
19306 }
19307 resultobj = SWIG_From_int(static_cast< int >(result));
19308 return resultobj;
19309 fail:
19310 return NULL;
19311 }
19312
19313
19314 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19315 PyObject *resultobj = 0;
19316 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19317 size_t arg2 ;
19318 int arg3 ;
19319 bool result;
19320 void *argp1 = 0 ;
19321 int res1 = 0 ;
19322 size_t val2 ;
19323 int ecode2 = 0 ;
19324 int val3 ;
19325 int ecode3 = 0 ;
19326 PyObject * obj0 = 0 ;
19327 PyObject * obj1 = 0 ;
19328 PyObject * obj2 = 0 ;
19329 char * kwnames[] = {
19330 (char *) "self",(char *) "n",(char *) "imageId", NULL
19331 };
19332
19333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19335 if (!SWIG_IsOK(res1)) {
19336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19337 }
19338 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19339 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19340 if (!SWIG_IsOK(ecode2)) {
19341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19342 }
19343 arg2 = static_cast< size_t >(val2);
19344 ecode3 = SWIG_AsVal_int(obj2, &val3);
19345 if (!SWIG_IsOK(ecode3)) {
19346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19347 }
19348 arg3 = static_cast< int >(val3);
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 {
19356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19357 }
19358 return resultobj;
19359 fail:
19360 return NULL;
19361 }
19362
19363
19364 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19365 PyObject *resultobj = 0;
19366 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19367 wxSize *arg2 = 0 ;
19368 void *argp1 = 0 ;
19369 int res1 = 0 ;
19370 wxSize temp2 ;
19371 PyObject * obj0 = 0 ;
19372 PyObject * obj1 = 0 ;
19373 char * kwnames[] = {
19374 (char *) "self",(char *) "size", NULL
19375 };
19376
19377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19379 if (!SWIG_IsOK(res1)) {
19380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19381 }
19382 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19383 {
19384 arg2 = &temp2;
19385 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19386 }
19387 {
19388 PyThreadState* __tstate = wxPyBeginAllowThreads();
19389 (arg1)->SetPageSize((wxSize const &)*arg2);
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 resultobj = SWIG_Py_Void();
19394 return resultobj;
19395 fail:
19396 return NULL;
19397 }
19398
19399
19400 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19401 PyObject *resultobj = 0;
19402 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19403 wxSize *arg2 = 0 ;
19404 wxSize result;
19405 void *argp1 = 0 ;
19406 int res1 = 0 ;
19407 wxSize temp2 ;
19408 PyObject * obj0 = 0 ;
19409 PyObject * obj1 = 0 ;
19410 char * kwnames[] = {
19411 (char *) "self",(char *) "sizePage", NULL
19412 };
19413
19414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19416 if (!SWIG_IsOK(res1)) {
19417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19418 }
19419 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19420 {
19421 arg2 = &temp2;
19422 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19423 }
19424 {
19425 PyThreadState* __tstate = wxPyBeginAllowThreads();
19426 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19427 wxPyEndAllowThreads(__tstate);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
19430 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19431 return resultobj;
19432 fail:
19433 return NULL;
19434 }
19435
19436
19437 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19438 PyObject *resultobj = 0;
19439 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19440 unsigned int result;
19441 void *argp1 = 0 ;
19442 int res1 = 0 ;
19443 PyObject *swig_obj[1] ;
19444
19445 if (!args) SWIG_fail;
19446 swig_obj[0] = args;
19447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19448 if (!SWIG_IsOK(res1)) {
19449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19450 }
19451 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19452 {
19453 PyThreadState* __tstate = wxPyBeginAllowThreads();
19454 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19455 wxPyEndAllowThreads(__tstate);
19456 if (PyErr_Occurred()) SWIG_fail;
19457 }
19458 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19459 return resultobj;
19460 fail:
19461 return NULL;
19462 }
19463
19464
19465 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19466 PyObject *resultobj = 0;
19467 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19468 unsigned int arg2 ;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 unsigned int val2 ;
19472 int ecode2 = 0 ;
19473 PyObject * obj0 = 0 ;
19474 PyObject * obj1 = 0 ;
19475 char * kwnames[] = {
19476 (char *) "self",(char *) "internalBorder", NULL
19477 };
19478
19479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19481 if (!SWIG_IsOK(res1)) {
19482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19483 }
19484 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19485 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19486 if (!SWIG_IsOK(ecode2)) {
19487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19488 }
19489 arg2 = static_cast< unsigned int >(val2);
19490 {
19491 PyThreadState* __tstate = wxPyBeginAllowThreads();
19492 (arg1)->SetInternalBorder(arg2);
19493 wxPyEndAllowThreads(__tstate);
19494 if (PyErr_Occurred()) SWIG_fail;
19495 }
19496 resultobj = SWIG_Py_Void();
19497 return resultobj;
19498 fail:
19499 return NULL;
19500 }
19501
19502
19503 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19504 PyObject *resultobj = 0;
19505 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19506 bool result;
19507 void *argp1 = 0 ;
19508 int res1 = 0 ;
19509 PyObject *swig_obj[1] ;
19510
19511 if (!args) SWIG_fail;
19512 swig_obj[0] = args;
19513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19514 if (!SWIG_IsOK(res1)) {
19515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19516 }
19517 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19518 {
19519 PyThreadState* __tstate = wxPyBeginAllowThreads();
19520 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19521 wxPyEndAllowThreads(__tstate);
19522 if (PyErr_Occurred()) SWIG_fail;
19523 }
19524 {
19525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19526 }
19527 return resultobj;
19528 fail:
19529 return NULL;
19530 }
19531
19532
19533 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19534 PyObject *resultobj = 0;
19535 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19536 int arg2 ;
19537 void *argp1 = 0 ;
19538 int res1 = 0 ;
19539 int val2 ;
19540 int ecode2 = 0 ;
19541 PyObject * obj0 = 0 ;
19542 PyObject * obj1 = 0 ;
19543 char * kwnames[] = {
19544 (char *) "self",(char *) "margin", NULL
19545 };
19546
19547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19549 if (!SWIG_IsOK(res1)) {
19550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19551 }
19552 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19553 ecode2 = SWIG_AsVal_int(obj1, &val2);
19554 if (!SWIG_IsOK(ecode2)) {
19555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19556 }
19557 arg2 = static_cast< int >(val2);
19558 {
19559 PyThreadState* __tstate = wxPyBeginAllowThreads();
19560 (arg1)->SetControlMargin(arg2);
19561 wxPyEndAllowThreads(__tstate);
19562 if (PyErr_Occurred()) SWIG_fail;
19563 }
19564 resultobj = SWIG_Py_Void();
19565 return resultobj;
19566 fail:
19567 return NULL;
19568 }
19569
19570
19571 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19572 PyObject *resultobj = 0;
19573 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19574 int result;
19575 void *argp1 = 0 ;
19576 int res1 = 0 ;
19577 PyObject *swig_obj[1] ;
19578
19579 if (!args) SWIG_fail;
19580 swig_obj[0] = args;
19581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19582 if (!SWIG_IsOK(res1)) {
19583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19584 }
19585 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19586 {
19587 PyThreadState* __tstate = wxPyBeginAllowThreads();
19588 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19589 wxPyEndAllowThreads(__tstate);
19590 if (PyErr_Occurred()) SWIG_fail;
19591 }
19592 resultobj = SWIG_From_int(static_cast< int >(result));
19593 return resultobj;
19594 fail:
19595 return NULL;
19596 }
19597
19598
19599 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj = 0;
19601 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19602 bool arg2 ;
19603 void *argp1 = 0 ;
19604 int res1 = 0 ;
19605 bool val2 ;
19606 int ecode2 = 0 ;
19607 PyObject * obj0 = 0 ;
19608 PyObject * obj1 = 0 ;
19609 char * kwnames[] = {
19610 (char *) "self",(char *) "fit", NULL
19611 };
19612
19613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19615 if (!SWIG_IsOK(res1)) {
19616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19617 }
19618 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19619 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19620 if (!SWIG_IsOK(ecode2)) {
19621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19622 }
19623 arg2 = static_cast< bool >(val2);
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 (arg1)->SetFitToCurrentPage(arg2);
19627 wxPyEndAllowThreads(__tstate);
19628 if (PyErr_Occurred()) SWIG_fail;
19629 }
19630 resultobj = SWIG_Py_Void();
19631 return resultobj;
19632 fail:
19633 return NULL;
19634 }
19635
19636
19637 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19638 PyObject *resultobj = 0;
19639 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19640 bool result;
19641 void *argp1 = 0 ;
19642 int res1 = 0 ;
19643 PyObject *swig_obj[1] ;
19644
19645 if (!args) SWIG_fail;
19646 swig_obj[0] = args;
19647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19648 if (!SWIG_IsOK(res1)) {
19649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19650 }
19651 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19652 {
19653 PyThreadState* __tstate = wxPyBeginAllowThreads();
19654 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19655 wxPyEndAllowThreads(__tstate);
19656 if (PyErr_Occurred()) SWIG_fail;
19657 }
19658 {
19659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19660 }
19661 return resultobj;
19662 fail:
19663 return NULL;
19664 }
19665
19666
19667 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19668 PyObject *resultobj = 0;
19669 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19670 wxSizer *result = 0 ;
19671 void *argp1 = 0 ;
19672 int res1 = 0 ;
19673 PyObject *swig_obj[1] ;
19674
19675 if (!args) SWIG_fail;
19676 swig_obj[0] = args;
19677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19678 if (!SWIG_IsOK(res1)) {
19679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19680 }
19681 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19685 wxPyEndAllowThreads(__tstate);
19686 if (PyErr_Occurred()) SWIG_fail;
19687 }
19688 {
19689 resultobj = wxPyMake_wxObject(result, (bool)0);
19690 }
19691 return resultobj;
19692 fail:
19693 return NULL;
19694 }
19695
19696
19697 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19698 PyObject *resultobj = 0;
19699 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19700 size_t arg2 ;
19701 bool result;
19702 void *argp1 = 0 ;
19703 int res1 = 0 ;
19704 size_t val2 ;
19705 int ecode2 = 0 ;
19706 PyObject * obj0 = 0 ;
19707 PyObject * obj1 = 0 ;
19708 char * kwnames[] = {
19709 (char *) "self",(char *) "n", NULL
19710 };
19711
19712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19714 if (!SWIG_IsOK(res1)) {
19715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19716 }
19717 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19718 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19719 if (!SWIG_IsOK(ecode2)) {
19720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19721 }
19722 arg2 = static_cast< size_t >(val2);
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 result = (bool)(arg1)->DeletePage(arg2);
19726 wxPyEndAllowThreads(__tstate);
19727 if (PyErr_Occurred()) SWIG_fail;
19728 }
19729 {
19730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19731 }
19732 return resultobj;
19733 fail:
19734 return NULL;
19735 }
19736
19737
19738 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19739 PyObject *resultobj = 0;
19740 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19741 size_t arg2 ;
19742 bool result;
19743 void *argp1 = 0 ;
19744 int res1 = 0 ;
19745 size_t val2 ;
19746 int ecode2 = 0 ;
19747 PyObject * obj0 = 0 ;
19748 PyObject * obj1 = 0 ;
19749 char * kwnames[] = {
19750 (char *) "self",(char *) "n", NULL
19751 };
19752
19753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19755 if (!SWIG_IsOK(res1)) {
19756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19757 }
19758 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19759 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19760 if (!SWIG_IsOK(ecode2)) {
19761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19762 }
19763 arg2 = static_cast< size_t >(val2);
19764 {
19765 PyThreadState* __tstate = wxPyBeginAllowThreads();
19766 result = (bool)(arg1)->RemovePage(arg2);
19767 wxPyEndAllowThreads(__tstate);
19768 if (PyErr_Occurred()) SWIG_fail;
19769 }
19770 {
19771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19772 }
19773 return resultobj;
19774 fail:
19775 return NULL;
19776 }
19777
19778
19779 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19780 PyObject *resultobj = 0;
19781 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19782 bool result;
19783 void *argp1 = 0 ;
19784 int res1 = 0 ;
19785 PyObject *swig_obj[1] ;
19786
19787 if (!args) SWIG_fail;
19788 swig_obj[0] = args;
19789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19790 if (!SWIG_IsOK(res1)) {
19791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19792 }
19793 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 result = (bool)(arg1)->DeleteAllPages();
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 {
19801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19802 }
19803 return resultobj;
19804 fail:
19805 return NULL;
19806 }
19807
19808
19809 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19810 PyObject *resultobj = 0;
19811 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19812 wxWindow *arg2 = (wxWindow *) 0 ;
19813 wxString *arg3 = 0 ;
19814 bool arg4 = (bool) false ;
19815 int arg5 = (int) -1 ;
19816 bool result;
19817 void *argp1 = 0 ;
19818 int res1 = 0 ;
19819 void *argp2 = 0 ;
19820 int res2 = 0 ;
19821 bool temp3 = false ;
19822 bool val4 ;
19823 int ecode4 = 0 ;
19824 int val5 ;
19825 int ecode5 = 0 ;
19826 PyObject * obj0 = 0 ;
19827 PyObject * obj1 = 0 ;
19828 PyObject * obj2 = 0 ;
19829 PyObject * obj3 = 0 ;
19830 PyObject * obj4 = 0 ;
19831 char * kwnames[] = {
19832 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19833 };
19834
19835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19837 if (!SWIG_IsOK(res1)) {
19838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19839 }
19840 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19842 if (!SWIG_IsOK(res2)) {
19843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19844 }
19845 arg2 = reinterpret_cast< wxWindow * >(argp2);
19846 {
19847 arg3 = wxString_in_helper(obj2);
19848 if (arg3 == NULL) SWIG_fail;
19849 temp3 = true;
19850 }
19851 if (obj3) {
19852 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19853 if (!SWIG_IsOK(ecode4)) {
19854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19855 }
19856 arg4 = static_cast< bool >(val4);
19857 }
19858 if (obj4) {
19859 ecode5 = SWIG_AsVal_int(obj4, &val5);
19860 if (!SWIG_IsOK(ecode5)) {
19861 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19862 }
19863 arg5 = static_cast< int >(val5);
19864 }
19865 {
19866 PyThreadState* __tstate = wxPyBeginAllowThreads();
19867 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19868 wxPyEndAllowThreads(__tstate);
19869 if (PyErr_Occurred()) SWIG_fail;
19870 }
19871 {
19872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19873 }
19874 {
19875 if (temp3)
19876 delete arg3;
19877 }
19878 return resultobj;
19879 fail:
19880 {
19881 if (temp3)
19882 delete arg3;
19883 }
19884 return NULL;
19885 }
19886
19887
19888 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19889 PyObject *resultobj = 0;
19890 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19891 size_t arg2 ;
19892 wxWindow *arg3 = (wxWindow *) 0 ;
19893 wxString *arg4 = 0 ;
19894 bool arg5 = (bool) false ;
19895 int arg6 = (int) -1 ;
19896 bool result;
19897 void *argp1 = 0 ;
19898 int res1 = 0 ;
19899 size_t val2 ;
19900 int ecode2 = 0 ;
19901 void *argp3 = 0 ;
19902 int res3 = 0 ;
19903 bool temp4 = false ;
19904 bool val5 ;
19905 int ecode5 = 0 ;
19906 int val6 ;
19907 int ecode6 = 0 ;
19908 PyObject * obj0 = 0 ;
19909 PyObject * obj1 = 0 ;
19910 PyObject * obj2 = 0 ;
19911 PyObject * obj3 = 0 ;
19912 PyObject * obj4 = 0 ;
19913 PyObject * obj5 = 0 ;
19914 char * kwnames[] = {
19915 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19916 };
19917
19918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19920 if (!SWIG_IsOK(res1)) {
19921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19922 }
19923 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19924 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19925 if (!SWIG_IsOK(ecode2)) {
19926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19927 }
19928 arg2 = static_cast< size_t >(val2);
19929 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19930 if (!SWIG_IsOK(res3)) {
19931 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19932 }
19933 arg3 = reinterpret_cast< wxWindow * >(argp3);
19934 {
19935 arg4 = wxString_in_helper(obj3);
19936 if (arg4 == NULL) SWIG_fail;
19937 temp4 = true;
19938 }
19939 if (obj4) {
19940 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19941 if (!SWIG_IsOK(ecode5)) {
19942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19943 }
19944 arg5 = static_cast< bool >(val5);
19945 }
19946 if (obj5) {
19947 ecode6 = SWIG_AsVal_int(obj5, &val6);
19948 if (!SWIG_IsOK(ecode6)) {
19949 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19950 }
19951 arg6 = static_cast< int >(val6);
19952 }
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 {
19960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19961 }
19962 {
19963 if (temp4)
19964 delete arg4;
19965 }
19966 return resultobj;
19967 fail:
19968 {
19969 if (temp4)
19970 delete arg4;
19971 }
19972 return NULL;
19973 }
19974
19975
19976 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19977 PyObject *resultobj = 0;
19978 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19979 size_t arg2 ;
19980 int result;
19981 void *argp1 = 0 ;
19982 int res1 = 0 ;
19983 size_t val2 ;
19984 int ecode2 = 0 ;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 char * kwnames[] = {
19988 (char *) "self",(char *) "n", NULL
19989 };
19990
19991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19993 if (!SWIG_IsOK(res1)) {
19994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19995 }
19996 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19997 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19998 if (!SWIG_IsOK(ecode2)) {
19999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20000 }
20001 arg2 = static_cast< size_t >(val2);
20002 {
20003 PyThreadState* __tstate = wxPyBeginAllowThreads();
20004 result = (int)(arg1)->SetSelection(arg2);
20005 wxPyEndAllowThreads(__tstate);
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 resultobj = SWIG_From_int(static_cast< int >(result));
20009 return resultobj;
20010 fail:
20011 return NULL;
20012 }
20013
20014
20015 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20016 PyObject *resultobj = 0;
20017 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20018 bool arg2 = (bool) true ;
20019 void *argp1 = 0 ;
20020 int res1 = 0 ;
20021 bool val2 ;
20022 int ecode2 = 0 ;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 char * kwnames[] = {
20026 (char *) "self",(char *) "forward", NULL
20027 };
20028
20029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20031 if (!SWIG_IsOK(res1)) {
20032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20033 }
20034 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20035 if (obj1) {
20036 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20037 if (!SWIG_IsOK(ecode2)) {
20038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20039 }
20040 arg2 = static_cast< bool >(val2);
20041 }
20042 {
20043 PyThreadState* __tstate = wxPyBeginAllowThreads();
20044 (arg1)->AdvanceSelection(arg2);
20045 wxPyEndAllowThreads(__tstate);
20046 if (PyErr_Occurred()) SWIG_fail;
20047 }
20048 resultobj = SWIG_Py_Void();
20049 return resultobj;
20050 fail:
20051 return NULL;
20052 }
20053
20054
20055 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20056 PyObject *resultobj = 0;
20057 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20058 SwigValueWrapper<wxVisualAttributes > result;
20059 int val1 ;
20060 int ecode1 = 0 ;
20061 PyObject * obj0 = 0 ;
20062 char * kwnames[] = {
20063 (char *) "variant", NULL
20064 };
20065
20066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20067 if (obj0) {
20068 ecode1 = SWIG_AsVal_int(obj0, &val1);
20069 if (!SWIG_IsOK(ecode1)) {
20070 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20071 }
20072 arg1 = static_cast< wxWindowVariant >(val1);
20073 }
20074 {
20075 if (!wxPyCheckForApp()) SWIG_fail;
20076 PyThreadState* __tstate = wxPyBeginAllowThreads();
20077 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20078 wxPyEndAllowThreads(__tstate);
20079 if (PyErr_Occurred()) SWIG_fail;
20080 }
20081 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20082 return resultobj;
20083 fail:
20084 return NULL;
20085 }
20086
20087
20088 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20089 PyObject *obj;
20090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20091 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20092 return SWIG_Py_Void();
20093 }
20094
20095 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20096 PyObject *resultobj = 0;
20097 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20098 int arg2 = (int) 0 ;
20099 int arg3 = (int) -1 ;
20100 int arg4 = (int) -1 ;
20101 wxBookCtrlBaseEvent *result = 0 ;
20102 int val1 ;
20103 int ecode1 = 0 ;
20104 int val2 ;
20105 int ecode2 = 0 ;
20106 int val3 ;
20107 int ecode3 = 0 ;
20108 int val4 ;
20109 int ecode4 = 0 ;
20110 PyObject * obj0 = 0 ;
20111 PyObject * obj1 = 0 ;
20112 PyObject * obj2 = 0 ;
20113 PyObject * obj3 = 0 ;
20114 char * kwnames[] = {
20115 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20116 };
20117
20118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20119 if (obj0) {
20120 ecode1 = SWIG_AsVal_int(obj0, &val1);
20121 if (!SWIG_IsOK(ecode1)) {
20122 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20123 }
20124 arg1 = static_cast< wxEventType >(val1);
20125 }
20126 if (obj1) {
20127 ecode2 = SWIG_AsVal_int(obj1, &val2);
20128 if (!SWIG_IsOK(ecode2)) {
20129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20130 }
20131 arg2 = static_cast< int >(val2);
20132 }
20133 if (obj2) {
20134 ecode3 = SWIG_AsVal_int(obj2, &val3);
20135 if (!SWIG_IsOK(ecode3)) {
20136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20137 }
20138 arg3 = static_cast< int >(val3);
20139 }
20140 if (obj3) {
20141 ecode4 = SWIG_AsVal_int(obj3, &val4);
20142 if (!SWIG_IsOK(ecode4)) {
20143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20144 }
20145 arg4 = static_cast< int >(val4);
20146 }
20147 {
20148 PyThreadState* __tstate = wxPyBeginAllowThreads();
20149 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20150 wxPyEndAllowThreads(__tstate);
20151 if (PyErr_Occurred()) SWIG_fail;
20152 }
20153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20154 return resultobj;
20155 fail:
20156 return NULL;
20157 }
20158
20159
20160 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20161 PyObject *resultobj = 0;
20162 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20163 int result;
20164 void *argp1 = 0 ;
20165 int res1 = 0 ;
20166 PyObject *swig_obj[1] ;
20167
20168 if (!args) SWIG_fail;
20169 swig_obj[0] = args;
20170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20173 }
20174 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20175 {
20176 PyThreadState* __tstate = wxPyBeginAllowThreads();
20177 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20178 wxPyEndAllowThreads(__tstate);
20179 if (PyErr_Occurred()) SWIG_fail;
20180 }
20181 resultobj = SWIG_From_int(static_cast< int >(result));
20182 return resultobj;
20183 fail:
20184 return NULL;
20185 }
20186
20187
20188 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20189 PyObject *resultobj = 0;
20190 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20191 int arg2 ;
20192 void *argp1 = 0 ;
20193 int res1 = 0 ;
20194 int val2 ;
20195 int ecode2 = 0 ;
20196 PyObject * obj0 = 0 ;
20197 PyObject * obj1 = 0 ;
20198 char * kwnames[] = {
20199 (char *) "self",(char *) "nSel", NULL
20200 };
20201
20202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20204 if (!SWIG_IsOK(res1)) {
20205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20206 }
20207 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20208 ecode2 = SWIG_AsVal_int(obj1, &val2);
20209 if (!SWIG_IsOK(ecode2)) {
20210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20211 }
20212 arg2 = static_cast< int >(val2);
20213 {
20214 PyThreadState* __tstate = wxPyBeginAllowThreads();
20215 (arg1)->SetSelection(arg2);
20216 wxPyEndAllowThreads(__tstate);
20217 if (PyErr_Occurred()) SWIG_fail;
20218 }
20219 resultobj = SWIG_Py_Void();
20220 return resultobj;
20221 fail:
20222 return NULL;
20223 }
20224
20225
20226 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20227 PyObject *resultobj = 0;
20228 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20229 int result;
20230 void *argp1 = 0 ;
20231 int res1 = 0 ;
20232 PyObject *swig_obj[1] ;
20233
20234 if (!args) SWIG_fail;
20235 swig_obj[0] = args;
20236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20237 if (!SWIG_IsOK(res1)) {
20238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20239 }
20240 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20241 {
20242 PyThreadState* __tstate = wxPyBeginAllowThreads();
20243 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20244 wxPyEndAllowThreads(__tstate);
20245 if (PyErr_Occurred()) SWIG_fail;
20246 }
20247 resultobj = SWIG_From_int(static_cast< int >(result));
20248 return resultobj;
20249 fail:
20250 return NULL;
20251 }
20252
20253
20254 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20255 PyObject *resultobj = 0;
20256 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20257 int arg2 ;
20258 void *argp1 = 0 ;
20259 int res1 = 0 ;
20260 int val2 ;
20261 int ecode2 = 0 ;
20262 PyObject * obj0 = 0 ;
20263 PyObject * obj1 = 0 ;
20264 char * kwnames[] = {
20265 (char *) "self",(char *) "nOldSel", NULL
20266 };
20267
20268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20270 if (!SWIG_IsOK(res1)) {
20271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20272 }
20273 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20274 ecode2 = SWIG_AsVal_int(obj1, &val2);
20275 if (!SWIG_IsOK(ecode2)) {
20276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20277 }
20278 arg2 = static_cast< int >(val2);
20279 {
20280 PyThreadState* __tstate = wxPyBeginAllowThreads();
20281 (arg1)->SetOldSelection(arg2);
20282 wxPyEndAllowThreads(__tstate);
20283 if (PyErr_Occurred()) SWIG_fail;
20284 }
20285 resultobj = SWIG_Py_Void();
20286 return resultobj;
20287 fail:
20288 return NULL;
20289 }
20290
20291
20292 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20293 PyObject *obj;
20294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20295 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20296 return SWIG_Py_Void();
20297 }
20298
20299 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20300 return SWIG_Python_InitShadowInstance(args);
20301 }
20302
20303 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20304 PyObject *resultobj = 0;
20305 wxWindow *arg1 = (wxWindow *) 0 ;
20306 int arg2 = (int) -1 ;
20307 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20308 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20309 wxSize const &arg4_defvalue = wxDefaultSize ;
20310 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20311 long arg5 = (long) 0 ;
20312 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20313 wxString *arg6 = (wxString *) &arg6_defvalue ;
20314 wxNotebook *result = 0 ;
20315 void *argp1 = 0 ;
20316 int res1 = 0 ;
20317 int val2 ;
20318 int ecode2 = 0 ;
20319 wxPoint temp3 ;
20320 wxSize temp4 ;
20321 long val5 ;
20322 int ecode5 = 0 ;
20323 bool temp6 = false ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 PyObject * obj2 = 0 ;
20327 PyObject * obj3 = 0 ;
20328 PyObject * obj4 = 0 ;
20329 PyObject * obj5 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20338 }
20339 arg1 = reinterpret_cast< wxWindow * >(argp1);
20340 if (obj1) {
20341 ecode2 = SWIG_AsVal_int(obj1, &val2);
20342 if (!SWIG_IsOK(ecode2)) {
20343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20344 }
20345 arg2 = static_cast< int >(val2);
20346 }
20347 if (obj2) {
20348 {
20349 arg3 = &temp3;
20350 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20351 }
20352 }
20353 if (obj3) {
20354 {
20355 arg4 = &temp4;
20356 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20357 }
20358 }
20359 if (obj4) {
20360 ecode5 = SWIG_AsVal_long(obj4, &val5);
20361 if (!SWIG_IsOK(ecode5)) {
20362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20363 }
20364 arg5 = static_cast< long >(val5);
20365 }
20366 if (obj5) {
20367 {
20368 arg6 = wxString_in_helper(obj5);
20369 if (arg6 == NULL) SWIG_fail;
20370 temp6 = true;
20371 }
20372 }
20373 {
20374 if (!wxPyCheckForApp()) SWIG_fail;
20375 PyThreadState* __tstate = wxPyBeginAllowThreads();
20376 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20377 wxPyEndAllowThreads(__tstate);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 }
20380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20381 {
20382 if (temp6)
20383 delete arg6;
20384 }
20385 return resultobj;
20386 fail:
20387 {
20388 if (temp6)
20389 delete arg6;
20390 }
20391 return NULL;
20392 }
20393
20394
20395 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20396 PyObject *resultobj = 0;
20397 wxNotebook *result = 0 ;
20398
20399 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20400 {
20401 if (!wxPyCheckForApp()) SWIG_fail;
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 result = (wxNotebook *)new wxNotebook();
20404 wxPyEndAllowThreads(__tstate);
20405 if (PyErr_Occurred()) SWIG_fail;
20406 }
20407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20408 return resultobj;
20409 fail:
20410 return NULL;
20411 }
20412
20413
20414 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20415 PyObject *resultobj = 0;
20416 wxNotebook *arg1 = (wxNotebook *) 0 ;
20417 wxWindow *arg2 = (wxWindow *) 0 ;
20418 int arg3 = (int) -1 ;
20419 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20420 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20421 wxSize const &arg5_defvalue = wxDefaultSize ;
20422 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20423 long arg6 = (long) 0 ;
20424 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20425 wxString *arg7 = (wxString *) &arg7_defvalue ;
20426 bool result;
20427 void *argp1 = 0 ;
20428 int res1 = 0 ;
20429 void *argp2 = 0 ;
20430 int res2 = 0 ;
20431 int val3 ;
20432 int ecode3 = 0 ;
20433 wxPoint temp4 ;
20434 wxSize temp5 ;
20435 long val6 ;
20436 int ecode6 = 0 ;
20437 bool temp7 = false ;
20438 PyObject * obj0 = 0 ;
20439 PyObject * obj1 = 0 ;
20440 PyObject * obj2 = 0 ;
20441 PyObject * obj3 = 0 ;
20442 PyObject * obj4 = 0 ;
20443 PyObject * obj5 = 0 ;
20444 PyObject * obj6 = 0 ;
20445 char * kwnames[] = {
20446 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20447 };
20448
20449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20451 if (!SWIG_IsOK(res1)) {
20452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20453 }
20454 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20455 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20456 if (!SWIG_IsOK(res2)) {
20457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20458 }
20459 arg2 = reinterpret_cast< wxWindow * >(argp2);
20460 if (obj2) {
20461 ecode3 = SWIG_AsVal_int(obj2, &val3);
20462 if (!SWIG_IsOK(ecode3)) {
20463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20464 }
20465 arg3 = static_cast< int >(val3);
20466 }
20467 if (obj3) {
20468 {
20469 arg4 = &temp4;
20470 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20471 }
20472 }
20473 if (obj4) {
20474 {
20475 arg5 = &temp5;
20476 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20477 }
20478 }
20479 if (obj5) {
20480 ecode6 = SWIG_AsVal_long(obj5, &val6);
20481 if (!SWIG_IsOK(ecode6)) {
20482 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20483 }
20484 arg6 = static_cast< long >(val6);
20485 }
20486 if (obj6) {
20487 {
20488 arg7 = wxString_in_helper(obj6);
20489 if (arg7 == NULL) SWIG_fail;
20490 temp7 = true;
20491 }
20492 }
20493 {
20494 PyThreadState* __tstate = wxPyBeginAllowThreads();
20495 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20496 wxPyEndAllowThreads(__tstate);
20497 if (PyErr_Occurred()) SWIG_fail;
20498 }
20499 {
20500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20501 }
20502 {
20503 if (temp7)
20504 delete arg7;
20505 }
20506 return resultobj;
20507 fail:
20508 {
20509 if (temp7)
20510 delete arg7;
20511 }
20512 return NULL;
20513 }
20514
20515
20516 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20517 PyObject *resultobj = 0;
20518 wxNotebook *arg1 = (wxNotebook *) 0 ;
20519 int result;
20520 void *argp1 = 0 ;
20521 int res1 = 0 ;
20522 PyObject *swig_obj[1] ;
20523
20524 if (!args) SWIG_fail;
20525 swig_obj[0] = args;
20526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20527 if (!SWIG_IsOK(res1)) {
20528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20529 }
20530 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20531 {
20532 PyThreadState* __tstate = wxPyBeginAllowThreads();
20533 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20534 wxPyEndAllowThreads(__tstate);
20535 if (PyErr_Occurred()) SWIG_fail;
20536 }
20537 resultobj = SWIG_From_int(static_cast< int >(result));
20538 return resultobj;
20539 fail:
20540 return NULL;
20541 }
20542
20543
20544 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20545 PyObject *resultobj = 0;
20546 wxNotebook *arg1 = (wxNotebook *) 0 ;
20547 wxSize *arg2 = 0 ;
20548 void *argp1 = 0 ;
20549 int res1 = 0 ;
20550 wxSize temp2 ;
20551 PyObject * obj0 = 0 ;
20552 PyObject * obj1 = 0 ;
20553 char * kwnames[] = {
20554 (char *) "self",(char *) "padding", NULL
20555 };
20556
20557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20559 if (!SWIG_IsOK(res1)) {
20560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20561 }
20562 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20563 {
20564 arg2 = &temp2;
20565 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20566 }
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 (arg1)->SetPadding((wxSize const &)*arg2);
20570 wxPyEndAllowThreads(__tstate);
20571 if (PyErr_Occurred()) SWIG_fail;
20572 }
20573 resultobj = SWIG_Py_Void();
20574 return resultobj;
20575 fail:
20576 return NULL;
20577 }
20578
20579
20580 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20581 PyObject *resultobj = 0;
20582 wxNotebook *arg1 = (wxNotebook *) 0 ;
20583 wxSize *arg2 = 0 ;
20584 void *argp1 = 0 ;
20585 int res1 = 0 ;
20586 wxSize temp2 ;
20587 PyObject * obj0 = 0 ;
20588 PyObject * obj1 = 0 ;
20589 char * kwnames[] = {
20590 (char *) "self",(char *) "sz", NULL
20591 };
20592
20593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20595 if (!SWIG_IsOK(res1)) {
20596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20597 }
20598 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20599 {
20600 arg2 = &temp2;
20601 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20602 }
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 (arg1)->SetTabSize((wxSize const &)*arg2);
20606 wxPyEndAllowThreads(__tstate);
20607 if (PyErr_Occurred()) SWIG_fail;
20608 }
20609 resultobj = SWIG_Py_Void();
20610 return resultobj;
20611 fail:
20612 return NULL;
20613 }
20614
20615
20616 SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj = 0;
20618 wxNotebook *arg1 = (wxNotebook *) 0 ;
20619 wxPoint *arg2 = 0 ;
20620 long *arg3 = (long *) 0 ;
20621 int result;
20622 void *argp1 = 0 ;
20623 int res1 = 0 ;
20624 wxPoint temp2 ;
20625 long temp3 ;
20626 int res3 = SWIG_TMPOBJ ;
20627 PyObject * obj0 = 0 ;
20628 PyObject * obj1 = 0 ;
20629 char * kwnames[] = {
20630 (char *) "self",(char *) "pt", NULL
20631 };
20632
20633 arg3 = &temp3;
20634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20636 if (!SWIG_IsOK(res1)) {
20637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20638 }
20639 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20640 {
20641 arg2 = &temp2;
20642 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20643 }
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_From_int(static_cast< int >(result));
20651 if (SWIG_IsTmpObj(res3)) {
20652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20653 } else {
20654 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20656 }
20657 return resultobj;
20658 fail:
20659 return NULL;
20660 }
20661
20662
20663 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20664 PyObject *resultobj = 0;
20665 wxNotebook *arg1 = (wxNotebook *) 0 ;
20666 wxColour result;
20667 void *argp1 = 0 ;
20668 int res1 = 0 ;
20669 PyObject *swig_obj[1] ;
20670
20671 if (!args) SWIG_fail;
20672 swig_obj[0] = args;
20673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20674 if (!SWIG_IsOK(res1)) {
20675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20676 }
20677 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20678 {
20679 PyThreadState* __tstate = wxPyBeginAllowThreads();
20680 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20681 wxPyEndAllowThreads(__tstate);
20682 if (PyErr_Occurred()) SWIG_fail;
20683 }
20684 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20685 return resultobj;
20686 fail:
20687 return NULL;
20688 }
20689
20690
20691 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20692 PyObject *resultobj = 0;
20693 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20694 SwigValueWrapper<wxVisualAttributes > result;
20695 int val1 ;
20696 int ecode1 = 0 ;
20697 PyObject * obj0 = 0 ;
20698 char * kwnames[] = {
20699 (char *) "variant", NULL
20700 };
20701
20702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20703 if (obj0) {
20704 ecode1 = SWIG_AsVal_int(obj0, &val1);
20705 if (!SWIG_IsOK(ecode1)) {
20706 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20707 }
20708 arg1 = static_cast< wxWindowVariant >(val1);
20709 }
20710 {
20711 if (!wxPyCheckForApp()) SWIG_fail;
20712 PyThreadState* __tstate = wxPyBeginAllowThreads();
20713 result = wxNotebook::GetClassDefaultAttributes(arg1);
20714 wxPyEndAllowThreads(__tstate);
20715 if (PyErr_Occurred()) SWIG_fail;
20716 }
20717 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20718 return resultobj;
20719 fail:
20720 return NULL;
20721 }
20722
20723
20724 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20725 PyObject *obj;
20726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20727 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20728 return SWIG_Py_Void();
20729 }
20730
20731 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20732 return SWIG_Python_InitShadowInstance(args);
20733 }
20734
20735 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20736 PyObject *resultobj = 0;
20737 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20738 int arg2 = (int) 0 ;
20739 int arg3 = (int) -1 ;
20740 int arg4 = (int) -1 ;
20741 wxNotebookEvent *result = 0 ;
20742 int val1 ;
20743 int ecode1 = 0 ;
20744 int val2 ;
20745 int ecode2 = 0 ;
20746 int val3 ;
20747 int ecode3 = 0 ;
20748 int val4 ;
20749 int ecode4 = 0 ;
20750 PyObject * obj0 = 0 ;
20751 PyObject * obj1 = 0 ;
20752 PyObject * obj2 = 0 ;
20753 PyObject * obj3 = 0 ;
20754 char * kwnames[] = {
20755 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20756 };
20757
20758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20759 if (obj0) {
20760 ecode1 = SWIG_AsVal_int(obj0, &val1);
20761 if (!SWIG_IsOK(ecode1)) {
20762 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20763 }
20764 arg1 = static_cast< wxEventType >(val1);
20765 }
20766 if (obj1) {
20767 ecode2 = SWIG_AsVal_int(obj1, &val2);
20768 if (!SWIG_IsOK(ecode2)) {
20769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20770 }
20771 arg2 = static_cast< int >(val2);
20772 }
20773 if (obj2) {
20774 ecode3 = SWIG_AsVal_int(obj2, &val3);
20775 if (!SWIG_IsOK(ecode3)) {
20776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20777 }
20778 arg3 = static_cast< int >(val3);
20779 }
20780 if (obj3) {
20781 ecode4 = SWIG_AsVal_int(obj3, &val4);
20782 if (!SWIG_IsOK(ecode4)) {
20783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20784 }
20785 arg4 = static_cast< int >(val4);
20786 }
20787 {
20788 PyThreadState* __tstate = wxPyBeginAllowThreads();
20789 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20790 wxPyEndAllowThreads(__tstate);
20791 if (PyErr_Occurred()) SWIG_fail;
20792 }
20793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20794 return resultobj;
20795 fail:
20796 return NULL;
20797 }
20798
20799
20800 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20801 PyObject *obj;
20802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20803 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20804 return SWIG_Py_Void();
20805 }
20806
20807 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20808 return SWIG_Python_InitShadowInstance(args);
20809 }
20810
20811 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20812 PyObject *resultobj = 0;
20813 wxWindow *arg1 = (wxWindow *) 0 ;
20814 int arg2 = (int) -1 ;
20815 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20816 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20817 wxSize const &arg4_defvalue = wxDefaultSize ;
20818 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20819 long arg5 = (long) 0 ;
20820 wxString const &arg6_defvalue = wxPyEmptyString ;
20821 wxString *arg6 = (wxString *) &arg6_defvalue ;
20822 wxListbook *result = 0 ;
20823 void *argp1 = 0 ;
20824 int res1 = 0 ;
20825 int val2 ;
20826 int ecode2 = 0 ;
20827 wxPoint temp3 ;
20828 wxSize temp4 ;
20829 long val5 ;
20830 int ecode5 = 0 ;
20831 bool temp6 = false ;
20832 PyObject * obj0 = 0 ;
20833 PyObject * obj1 = 0 ;
20834 PyObject * obj2 = 0 ;
20835 PyObject * obj3 = 0 ;
20836 PyObject * obj4 = 0 ;
20837 PyObject * obj5 = 0 ;
20838 char * kwnames[] = {
20839 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20840 };
20841
20842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20844 if (!SWIG_IsOK(res1)) {
20845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20846 }
20847 arg1 = reinterpret_cast< wxWindow * >(argp1);
20848 if (obj1) {
20849 ecode2 = SWIG_AsVal_int(obj1, &val2);
20850 if (!SWIG_IsOK(ecode2)) {
20851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20852 }
20853 arg2 = static_cast< int >(val2);
20854 }
20855 if (obj2) {
20856 {
20857 arg3 = &temp3;
20858 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20859 }
20860 }
20861 if (obj3) {
20862 {
20863 arg4 = &temp4;
20864 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20865 }
20866 }
20867 if (obj4) {
20868 ecode5 = SWIG_AsVal_long(obj4, &val5);
20869 if (!SWIG_IsOK(ecode5)) {
20870 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20871 }
20872 arg5 = static_cast< long >(val5);
20873 }
20874 if (obj5) {
20875 {
20876 arg6 = wxString_in_helper(obj5);
20877 if (arg6 == NULL) SWIG_fail;
20878 temp6 = true;
20879 }
20880 }
20881 {
20882 if (!wxPyCheckForApp()) SWIG_fail;
20883 PyThreadState* __tstate = wxPyBeginAllowThreads();
20884 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20885 wxPyEndAllowThreads(__tstate);
20886 if (PyErr_Occurred()) SWIG_fail;
20887 }
20888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20889 {
20890 if (temp6)
20891 delete arg6;
20892 }
20893 return resultobj;
20894 fail:
20895 {
20896 if (temp6)
20897 delete arg6;
20898 }
20899 return NULL;
20900 }
20901
20902
20903 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20904 PyObject *resultobj = 0;
20905 wxListbook *result = 0 ;
20906
20907 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20908 {
20909 if (!wxPyCheckForApp()) SWIG_fail;
20910 PyThreadState* __tstate = wxPyBeginAllowThreads();
20911 result = (wxListbook *)new wxListbook();
20912 wxPyEndAllowThreads(__tstate);
20913 if (PyErr_Occurred()) SWIG_fail;
20914 }
20915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20916 return resultobj;
20917 fail:
20918 return NULL;
20919 }
20920
20921
20922 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20923 PyObject *resultobj = 0;
20924 wxListbook *arg1 = (wxListbook *) 0 ;
20925 wxWindow *arg2 = (wxWindow *) 0 ;
20926 int arg3 = (int) -1 ;
20927 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20928 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20929 wxSize const &arg5_defvalue = wxDefaultSize ;
20930 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20931 long arg6 = (long) 0 ;
20932 wxString const &arg7_defvalue = wxPyEmptyString ;
20933 wxString *arg7 = (wxString *) &arg7_defvalue ;
20934 bool result;
20935 void *argp1 = 0 ;
20936 int res1 = 0 ;
20937 void *argp2 = 0 ;
20938 int res2 = 0 ;
20939 int val3 ;
20940 int ecode3 = 0 ;
20941 wxPoint temp4 ;
20942 wxSize temp5 ;
20943 long val6 ;
20944 int ecode6 = 0 ;
20945 bool temp7 = false ;
20946 PyObject * obj0 = 0 ;
20947 PyObject * obj1 = 0 ;
20948 PyObject * obj2 = 0 ;
20949 PyObject * obj3 = 0 ;
20950 PyObject * obj4 = 0 ;
20951 PyObject * obj5 = 0 ;
20952 PyObject * obj6 = 0 ;
20953 char * kwnames[] = {
20954 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20955 };
20956
20957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20959 if (!SWIG_IsOK(res1)) {
20960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20961 }
20962 arg1 = reinterpret_cast< wxListbook * >(argp1);
20963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20964 if (!SWIG_IsOK(res2)) {
20965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20966 }
20967 arg2 = reinterpret_cast< wxWindow * >(argp2);
20968 if (obj2) {
20969 ecode3 = SWIG_AsVal_int(obj2, &val3);
20970 if (!SWIG_IsOK(ecode3)) {
20971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20972 }
20973 arg3 = static_cast< int >(val3);
20974 }
20975 if (obj3) {
20976 {
20977 arg4 = &temp4;
20978 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20979 }
20980 }
20981 if (obj4) {
20982 {
20983 arg5 = &temp5;
20984 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20985 }
20986 }
20987 if (obj5) {
20988 ecode6 = SWIG_AsVal_long(obj5, &val6);
20989 if (!SWIG_IsOK(ecode6)) {
20990 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20991 }
20992 arg6 = static_cast< long >(val6);
20993 }
20994 if (obj6) {
20995 {
20996 arg7 = wxString_in_helper(obj6);
20997 if (arg7 == NULL) SWIG_fail;
20998 temp7 = true;
20999 }
21000 }
21001 {
21002 PyThreadState* __tstate = wxPyBeginAllowThreads();
21003 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21004 wxPyEndAllowThreads(__tstate);
21005 if (PyErr_Occurred()) SWIG_fail;
21006 }
21007 {
21008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21009 }
21010 {
21011 if (temp7)
21012 delete arg7;
21013 }
21014 return resultobj;
21015 fail:
21016 {
21017 if (temp7)
21018 delete arg7;
21019 }
21020 return NULL;
21021 }
21022
21023
21024 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21025 PyObject *resultobj = 0;
21026 wxListbook *arg1 = (wxListbook *) 0 ;
21027 wxListView *result = 0 ;
21028 void *argp1 = 0 ;
21029 int res1 = 0 ;
21030 PyObject *swig_obj[1] ;
21031
21032 if (!args) SWIG_fail;
21033 swig_obj[0] = args;
21034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21035 if (!SWIG_IsOK(res1)) {
21036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21037 }
21038 arg1 = reinterpret_cast< wxListbook * >(argp1);
21039 {
21040 PyThreadState* __tstate = wxPyBeginAllowThreads();
21041 result = (wxListView *)(arg1)->GetListView();
21042 wxPyEndAllowThreads(__tstate);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 }
21045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21046 return resultobj;
21047 fail:
21048 return NULL;
21049 }
21050
21051
21052 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21053 PyObject *obj;
21054 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21055 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21056 return SWIG_Py_Void();
21057 }
21058
21059 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21060 return SWIG_Python_InitShadowInstance(args);
21061 }
21062
21063 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21064 PyObject *resultobj = 0;
21065 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21066 int arg2 = (int) 0 ;
21067 int arg3 = (int) -1 ;
21068 int arg4 = (int) -1 ;
21069 wxListbookEvent *result = 0 ;
21070 int val1 ;
21071 int ecode1 = 0 ;
21072 int val2 ;
21073 int ecode2 = 0 ;
21074 int val3 ;
21075 int ecode3 = 0 ;
21076 int val4 ;
21077 int ecode4 = 0 ;
21078 PyObject * obj0 = 0 ;
21079 PyObject * obj1 = 0 ;
21080 PyObject * obj2 = 0 ;
21081 PyObject * obj3 = 0 ;
21082 char * kwnames[] = {
21083 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21084 };
21085
21086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21087 if (obj0) {
21088 ecode1 = SWIG_AsVal_int(obj0, &val1);
21089 if (!SWIG_IsOK(ecode1)) {
21090 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21091 }
21092 arg1 = static_cast< wxEventType >(val1);
21093 }
21094 if (obj1) {
21095 ecode2 = SWIG_AsVal_int(obj1, &val2);
21096 if (!SWIG_IsOK(ecode2)) {
21097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21098 }
21099 arg2 = static_cast< int >(val2);
21100 }
21101 if (obj2) {
21102 ecode3 = SWIG_AsVal_int(obj2, &val3);
21103 if (!SWIG_IsOK(ecode3)) {
21104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21105 }
21106 arg3 = static_cast< int >(val3);
21107 }
21108 if (obj3) {
21109 ecode4 = SWIG_AsVal_int(obj3, &val4);
21110 if (!SWIG_IsOK(ecode4)) {
21111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21112 }
21113 arg4 = static_cast< int >(val4);
21114 }
21115 {
21116 PyThreadState* __tstate = wxPyBeginAllowThreads();
21117 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21118 wxPyEndAllowThreads(__tstate);
21119 if (PyErr_Occurred()) SWIG_fail;
21120 }
21121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21122 return resultobj;
21123 fail:
21124 return NULL;
21125 }
21126
21127
21128 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21129 PyObject *obj;
21130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21131 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21132 return SWIG_Py_Void();
21133 }
21134
21135 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21136 return SWIG_Python_InitShadowInstance(args);
21137 }
21138
21139 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj = 0;
21141 wxWindow *arg1 = (wxWindow *) 0 ;
21142 int arg2 ;
21143 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21144 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21145 wxSize const &arg4_defvalue = wxDefaultSize ;
21146 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21147 long arg5 = (long) 0 ;
21148 wxString const &arg6_defvalue = wxPyEmptyString ;
21149 wxString *arg6 = (wxString *) &arg6_defvalue ;
21150 wxChoicebook *result = 0 ;
21151 void *argp1 = 0 ;
21152 int res1 = 0 ;
21153 int val2 ;
21154 int ecode2 = 0 ;
21155 wxPoint temp3 ;
21156 wxSize temp4 ;
21157 long val5 ;
21158 int ecode5 = 0 ;
21159 bool temp6 = false ;
21160 PyObject * obj0 = 0 ;
21161 PyObject * obj1 = 0 ;
21162 PyObject * obj2 = 0 ;
21163 PyObject * obj3 = 0 ;
21164 PyObject * obj4 = 0 ;
21165 PyObject * obj5 = 0 ;
21166 char * kwnames[] = {
21167 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21168 };
21169
21170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21172 if (!SWIG_IsOK(res1)) {
21173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21174 }
21175 arg1 = reinterpret_cast< wxWindow * >(argp1);
21176 ecode2 = SWIG_AsVal_int(obj1, &val2);
21177 if (!SWIG_IsOK(ecode2)) {
21178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21179 }
21180 arg2 = static_cast< int >(val2);
21181 if (obj2) {
21182 {
21183 arg3 = &temp3;
21184 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21185 }
21186 }
21187 if (obj3) {
21188 {
21189 arg4 = &temp4;
21190 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21191 }
21192 }
21193 if (obj4) {
21194 ecode5 = SWIG_AsVal_long(obj4, &val5);
21195 if (!SWIG_IsOK(ecode5)) {
21196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21197 }
21198 arg5 = static_cast< long >(val5);
21199 }
21200 if (obj5) {
21201 {
21202 arg6 = wxString_in_helper(obj5);
21203 if (arg6 == NULL) SWIG_fail;
21204 temp6 = true;
21205 }
21206 }
21207 {
21208 if (!wxPyCheckForApp()) SWIG_fail;
21209 PyThreadState* __tstate = wxPyBeginAllowThreads();
21210 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21211 wxPyEndAllowThreads(__tstate);
21212 if (PyErr_Occurred()) SWIG_fail;
21213 }
21214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21215 {
21216 if (temp6)
21217 delete arg6;
21218 }
21219 return resultobj;
21220 fail:
21221 {
21222 if (temp6)
21223 delete arg6;
21224 }
21225 return NULL;
21226 }
21227
21228
21229 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21230 PyObject *resultobj = 0;
21231 wxChoicebook *result = 0 ;
21232
21233 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21234 {
21235 if (!wxPyCheckForApp()) SWIG_fail;
21236 PyThreadState* __tstate = wxPyBeginAllowThreads();
21237 result = (wxChoicebook *)new wxChoicebook();
21238 wxPyEndAllowThreads(__tstate);
21239 if (PyErr_Occurred()) SWIG_fail;
21240 }
21241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21242 return resultobj;
21243 fail:
21244 return NULL;
21245 }
21246
21247
21248 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21249 PyObject *resultobj = 0;
21250 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21251 wxWindow *arg2 = (wxWindow *) 0 ;
21252 int arg3 ;
21253 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21254 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21255 wxSize const &arg5_defvalue = wxDefaultSize ;
21256 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21257 long arg6 = (long) 0 ;
21258 wxString const &arg7_defvalue = wxPyEmptyString ;
21259 wxString *arg7 = (wxString *) &arg7_defvalue ;
21260 bool result;
21261 void *argp1 = 0 ;
21262 int res1 = 0 ;
21263 void *argp2 = 0 ;
21264 int res2 = 0 ;
21265 int val3 ;
21266 int ecode3 = 0 ;
21267 wxPoint temp4 ;
21268 wxSize temp5 ;
21269 long val6 ;
21270 int ecode6 = 0 ;
21271 bool temp7 = false ;
21272 PyObject * obj0 = 0 ;
21273 PyObject * obj1 = 0 ;
21274 PyObject * obj2 = 0 ;
21275 PyObject * obj3 = 0 ;
21276 PyObject * obj4 = 0 ;
21277 PyObject * obj5 = 0 ;
21278 PyObject * obj6 = 0 ;
21279 char * kwnames[] = {
21280 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21281 };
21282
21283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21285 if (!SWIG_IsOK(res1)) {
21286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21287 }
21288 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21289 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21290 if (!SWIG_IsOK(res2)) {
21291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21292 }
21293 arg2 = reinterpret_cast< wxWindow * >(argp2);
21294 ecode3 = SWIG_AsVal_int(obj2, &val3);
21295 if (!SWIG_IsOK(ecode3)) {
21296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21297 }
21298 arg3 = static_cast< int >(val3);
21299 if (obj3) {
21300 {
21301 arg4 = &temp4;
21302 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21303 }
21304 }
21305 if (obj4) {
21306 {
21307 arg5 = &temp5;
21308 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21309 }
21310 }
21311 if (obj5) {
21312 ecode6 = SWIG_AsVal_long(obj5, &val6);
21313 if (!SWIG_IsOK(ecode6)) {
21314 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21315 }
21316 arg6 = static_cast< long >(val6);
21317 }
21318 if (obj6) {
21319 {
21320 arg7 = wxString_in_helper(obj6);
21321 if (arg7 == NULL) SWIG_fail;
21322 temp7 = true;
21323 }
21324 }
21325 {
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 {
21332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21333 }
21334 {
21335 if (temp7)
21336 delete arg7;
21337 }
21338 return resultobj;
21339 fail:
21340 {
21341 if (temp7)
21342 delete arg7;
21343 }
21344 return NULL;
21345 }
21346
21347
21348 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21349 PyObject *resultobj = 0;
21350 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21351 wxChoice *result = 0 ;
21352 void *argp1 = 0 ;
21353 int res1 = 0 ;
21354 PyObject *swig_obj[1] ;
21355
21356 if (!args) SWIG_fail;
21357 swig_obj[0] = args;
21358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21359 if (!SWIG_IsOK(res1)) {
21360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21361 }
21362 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21363 {
21364 PyThreadState* __tstate = wxPyBeginAllowThreads();
21365 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21366 wxPyEndAllowThreads(__tstate);
21367 if (PyErr_Occurred()) SWIG_fail;
21368 }
21369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21370 return resultobj;
21371 fail:
21372 return NULL;
21373 }
21374
21375
21376 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21377 PyObject *obj;
21378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21379 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21380 return SWIG_Py_Void();
21381 }
21382
21383 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21384 return SWIG_Python_InitShadowInstance(args);
21385 }
21386
21387 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21388 PyObject *resultobj = 0;
21389 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21390 int arg2 = (int) 0 ;
21391 int arg3 = (int) -1 ;
21392 int arg4 = (int) -1 ;
21393 wxChoicebookEvent *result = 0 ;
21394 int val1 ;
21395 int ecode1 = 0 ;
21396 int val2 ;
21397 int ecode2 = 0 ;
21398 int val3 ;
21399 int ecode3 = 0 ;
21400 int val4 ;
21401 int ecode4 = 0 ;
21402 PyObject * obj0 = 0 ;
21403 PyObject * obj1 = 0 ;
21404 PyObject * obj2 = 0 ;
21405 PyObject * obj3 = 0 ;
21406 char * kwnames[] = {
21407 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21408 };
21409
21410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21411 if (obj0) {
21412 ecode1 = SWIG_AsVal_int(obj0, &val1);
21413 if (!SWIG_IsOK(ecode1)) {
21414 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21415 }
21416 arg1 = static_cast< wxEventType >(val1);
21417 }
21418 if (obj1) {
21419 ecode2 = SWIG_AsVal_int(obj1, &val2);
21420 if (!SWIG_IsOK(ecode2)) {
21421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21422 }
21423 arg2 = static_cast< int >(val2);
21424 }
21425 if (obj2) {
21426 ecode3 = SWIG_AsVal_int(obj2, &val3);
21427 if (!SWIG_IsOK(ecode3)) {
21428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21429 }
21430 arg3 = static_cast< int >(val3);
21431 }
21432 if (obj3) {
21433 ecode4 = SWIG_AsVal_int(obj3, &val4);
21434 if (!SWIG_IsOK(ecode4)) {
21435 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21436 }
21437 arg4 = static_cast< int >(val4);
21438 }
21439 {
21440 PyThreadState* __tstate = wxPyBeginAllowThreads();
21441 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21442 wxPyEndAllowThreads(__tstate);
21443 if (PyErr_Occurred()) SWIG_fail;
21444 }
21445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21446 return resultobj;
21447 fail:
21448 return NULL;
21449 }
21450
21451
21452 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21453 PyObject *obj;
21454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21455 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21456 return SWIG_Py_Void();
21457 }
21458
21459 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21460 return SWIG_Python_InitShadowInstance(args);
21461 }
21462
21463 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21464 PyObject *resultobj = 0;
21465 wxWindow *arg1 = (wxWindow *) 0 ;
21466 int arg2 ;
21467 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21468 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21469 wxSize const &arg4_defvalue = wxDefaultSize ;
21470 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21471 long arg5 = (long) wxBK_DEFAULT ;
21472 wxString const &arg6_defvalue = wxPyEmptyString ;
21473 wxString *arg6 = (wxString *) &arg6_defvalue ;
21474 wxTreebook *result = 0 ;
21475 void *argp1 = 0 ;
21476 int res1 = 0 ;
21477 int val2 ;
21478 int ecode2 = 0 ;
21479 wxPoint temp3 ;
21480 wxSize temp4 ;
21481 long val5 ;
21482 int ecode5 = 0 ;
21483 bool temp6 = false ;
21484 PyObject * obj0 = 0 ;
21485 PyObject * obj1 = 0 ;
21486 PyObject * obj2 = 0 ;
21487 PyObject * obj3 = 0 ;
21488 PyObject * obj4 = 0 ;
21489 PyObject * obj5 = 0 ;
21490 char * kwnames[] = {
21491 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21492 };
21493
21494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21496 if (!SWIG_IsOK(res1)) {
21497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21498 }
21499 arg1 = reinterpret_cast< wxWindow * >(argp1);
21500 ecode2 = SWIG_AsVal_int(obj1, &val2);
21501 if (!SWIG_IsOK(ecode2)) {
21502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21503 }
21504 arg2 = static_cast< int >(val2);
21505 if (obj2) {
21506 {
21507 arg3 = &temp3;
21508 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21509 }
21510 }
21511 if (obj3) {
21512 {
21513 arg4 = &temp4;
21514 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21515 }
21516 }
21517 if (obj4) {
21518 ecode5 = SWIG_AsVal_long(obj4, &val5);
21519 if (!SWIG_IsOK(ecode5)) {
21520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21521 }
21522 arg5 = static_cast< long >(val5);
21523 }
21524 if (obj5) {
21525 {
21526 arg6 = wxString_in_helper(obj5);
21527 if (arg6 == NULL) SWIG_fail;
21528 temp6 = true;
21529 }
21530 }
21531 {
21532 if (!wxPyCheckForApp()) SWIG_fail;
21533 PyThreadState* __tstate = wxPyBeginAllowThreads();
21534 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21535 wxPyEndAllowThreads(__tstate);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 }
21538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21539 {
21540 if (temp6)
21541 delete arg6;
21542 }
21543 return resultobj;
21544 fail:
21545 {
21546 if (temp6)
21547 delete arg6;
21548 }
21549 return NULL;
21550 }
21551
21552
21553 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21554 PyObject *resultobj = 0;
21555 wxTreebook *result = 0 ;
21556
21557 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21558 {
21559 if (!wxPyCheckForApp()) SWIG_fail;
21560 PyThreadState* __tstate = wxPyBeginAllowThreads();
21561 result = (wxTreebook *)new wxTreebook();
21562 wxPyEndAllowThreads(__tstate);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 }
21565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21566 return resultobj;
21567 fail:
21568 return NULL;
21569 }
21570
21571
21572 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21573 PyObject *resultobj = 0;
21574 wxTreebook *arg1 = (wxTreebook *) 0 ;
21575 wxWindow *arg2 = (wxWindow *) 0 ;
21576 int arg3 ;
21577 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21578 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21579 wxSize const &arg5_defvalue = wxDefaultSize ;
21580 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21581 long arg6 = (long) wxBK_DEFAULT ;
21582 wxString const &arg7_defvalue = wxPyEmptyString ;
21583 wxString *arg7 = (wxString *) &arg7_defvalue ;
21584 bool result;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 void *argp2 = 0 ;
21588 int res2 = 0 ;
21589 int val3 ;
21590 int ecode3 = 0 ;
21591 wxPoint temp4 ;
21592 wxSize temp5 ;
21593 long val6 ;
21594 int ecode6 = 0 ;
21595 bool temp7 = false ;
21596 PyObject * obj0 = 0 ;
21597 PyObject * obj1 = 0 ;
21598 PyObject * obj2 = 0 ;
21599 PyObject * obj3 = 0 ;
21600 PyObject * obj4 = 0 ;
21601 PyObject * obj5 = 0 ;
21602 PyObject * obj6 = 0 ;
21603 char * kwnames[] = {
21604 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21605 };
21606
21607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21609 if (!SWIG_IsOK(res1)) {
21610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21611 }
21612 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21614 if (!SWIG_IsOK(res2)) {
21615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21616 }
21617 arg2 = reinterpret_cast< wxWindow * >(argp2);
21618 ecode3 = SWIG_AsVal_int(obj2, &val3);
21619 if (!SWIG_IsOK(ecode3)) {
21620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21621 }
21622 arg3 = static_cast< int >(val3);
21623 if (obj3) {
21624 {
21625 arg4 = &temp4;
21626 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21627 }
21628 }
21629 if (obj4) {
21630 {
21631 arg5 = &temp5;
21632 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21633 }
21634 }
21635 if (obj5) {
21636 ecode6 = SWIG_AsVal_long(obj5, &val6);
21637 if (!SWIG_IsOK(ecode6)) {
21638 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21639 }
21640 arg6 = static_cast< long >(val6);
21641 }
21642 if (obj6) {
21643 {
21644 arg7 = wxString_in_helper(obj6);
21645 if (arg7 == NULL) SWIG_fail;
21646 temp7 = true;
21647 }
21648 }
21649 {
21650 PyThreadState* __tstate = wxPyBeginAllowThreads();
21651 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 {
21656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21657 }
21658 {
21659 if (temp7)
21660 delete arg7;
21661 }
21662 return resultobj;
21663 fail:
21664 {
21665 if (temp7)
21666 delete arg7;
21667 }
21668 return NULL;
21669 }
21670
21671
21672 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21673 PyObject *resultobj = 0;
21674 wxTreebook *arg1 = (wxTreebook *) 0 ;
21675 size_t arg2 ;
21676 wxWindow *arg3 = (wxWindow *) 0 ;
21677 wxString *arg4 = 0 ;
21678 bool arg5 = (bool) false ;
21679 int arg6 = (int) wxNOT_FOUND ;
21680 bool result;
21681 void *argp1 = 0 ;
21682 int res1 = 0 ;
21683 size_t val2 ;
21684 int ecode2 = 0 ;
21685 void *argp3 = 0 ;
21686 int res3 = 0 ;
21687 bool temp4 = false ;
21688 bool val5 ;
21689 int ecode5 = 0 ;
21690 int val6 ;
21691 int ecode6 = 0 ;
21692 PyObject * obj0 = 0 ;
21693 PyObject * obj1 = 0 ;
21694 PyObject * obj2 = 0 ;
21695 PyObject * obj3 = 0 ;
21696 PyObject * obj4 = 0 ;
21697 PyObject * obj5 = 0 ;
21698 char * kwnames[] = {
21699 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21700 };
21701
21702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21704 if (!SWIG_IsOK(res1)) {
21705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21706 }
21707 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21708 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21709 if (!SWIG_IsOK(ecode2)) {
21710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21711 }
21712 arg2 = static_cast< size_t >(val2);
21713 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21714 if (!SWIG_IsOK(res3)) {
21715 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21716 }
21717 arg3 = reinterpret_cast< wxWindow * >(argp3);
21718 {
21719 arg4 = wxString_in_helper(obj3);
21720 if (arg4 == NULL) SWIG_fail;
21721 temp4 = true;
21722 }
21723 if (obj4) {
21724 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21725 if (!SWIG_IsOK(ecode5)) {
21726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21727 }
21728 arg5 = static_cast< bool >(val5);
21729 }
21730 if (obj5) {
21731 ecode6 = SWIG_AsVal_int(obj5, &val6);
21732 if (!SWIG_IsOK(ecode6)) {
21733 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21734 }
21735 arg6 = static_cast< int >(val6);
21736 }
21737 {
21738 PyThreadState* __tstate = wxPyBeginAllowThreads();
21739 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21740 wxPyEndAllowThreads(__tstate);
21741 if (PyErr_Occurred()) SWIG_fail;
21742 }
21743 {
21744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21745 }
21746 {
21747 if (temp4)
21748 delete arg4;
21749 }
21750 return resultobj;
21751 fail:
21752 {
21753 if (temp4)
21754 delete arg4;
21755 }
21756 return NULL;
21757 }
21758
21759
21760 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21761 PyObject *resultobj = 0;
21762 wxTreebook *arg1 = (wxTreebook *) 0 ;
21763 wxWindow *arg2 = (wxWindow *) 0 ;
21764 wxString *arg3 = 0 ;
21765 bool arg4 = (bool) false ;
21766 int arg5 = (int) wxNOT_FOUND ;
21767 bool result;
21768 void *argp1 = 0 ;
21769 int res1 = 0 ;
21770 void *argp2 = 0 ;
21771 int res2 = 0 ;
21772 bool temp3 = false ;
21773 bool val4 ;
21774 int ecode4 = 0 ;
21775 int val5 ;
21776 int ecode5 = 0 ;
21777 PyObject * obj0 = 0 ;
21778 PyObject * obj1 = 0 ;
21779 PyObject * obj2 = 0 ;
21780 PyObject * obj3 = 0 ;
21781 PyObject * obj4 = 0 ;
21782 char * kwnames[] = {
21783 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21784 };
21785
21786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21788 if (!SWIG_IsOK(res1)) {
21789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21790 }
21791 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21792 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21793 if (!SWIG_IsOK(res2)) {
21794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21795 }
21796 arg2 = reinterpret_cast< wxWindow * >(argp2);
21797 {
21798 arg3 = wxString_in_helper(obj2);
21799 if (arg3 == NULL) SWIG_fail;
21800 temp3 = true;
21801 }
21802 if (obj3) {
21803 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21804 if (!SWIG_IsOK(ecode4)) {
21805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21806 }
21807 arg4 = static_cast< bool >(val4);
21808 }
21809 if (obj4) {
21810 ecode5 = SWIG_AsVal_int(obj4, &val5);
21811 if (!SWIG_IsOK(ecode5)) {
21812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21813 }
21814 arg5 = static_cast< int >(val5);
21815 }
21816 {
21817 PyThreadState* __tstate = wxPyBeginAllowThreads();
21818 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21819 wxPyEndAllowThreads(__tstate);
21820 if (PyErr_Occurred()) SWIG_fail;
21821 }
21822 {
21823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21824 }
21825 {
21826 if (temp3)
21827 delete arg3;
21828 }
21829 return resultobj;
21830 fail:
21831 {
21832 if (temp3)
21833 delete arg3;
21834 }
21835 return NULL;
21836 }
21837
21838
21839 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21840 PyObject *resultobj = 0;
21841 wxTreebook *arg1 = (wxTreebook *) 0 ;
21842 size_t arg2 ;
21843 bool result;
21844 void *argp1 = 0 ;
21845 int res1 = 0 ;
21846 size_t val2 ;
21847 int ecode2 = 0 ;
21848 PyObject * obj0 = 0 ;
21849 PyObject * obj1 = 0 ;
21850 char * kwnames[] = {
21851 (char *) "self",(char *) "pos", NULL
21852 };
21853
21854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21856 if (!SWIG_IsOK(res1)) {
21857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21858 }
21859 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21860 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21861 if (!SWIG_IsOK(ecode2)) {
21862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21863 }
21864 arg2 = static_cast< size_t >(val2);
21865 {
21866 PyThreadState* __tstate = wxPyBeginAllowThreads();
21867 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21868 wxPyEndAllowThreads(__tstate);
21869 if (PyErr_Occurred()) SWIG_fail;
21870 }
21871 {
21872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21873 }
21874 return resultobj;
21875 fail:
21876 return NULL;
21877 }
21878
21879
21880 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21881 PyObject *resultobj = 0;
21882 wxTreebook *arg1 = (wxTreebook *) 0 ;
21883 size_t arg2 ;
21884 bool arg3 = (bool) true ;
21885 bool result;
21886 void *argp1 = 0 ;
21887 int res1 = 0 ;
21888 size_t val2 ;
21889 int ecode2 = 0 ;
21890 bool val3 ;
21891 int ecode3 = 0 ;
21892 PyObject * obj0 = 0 ;
21893 PyObject * obj1 = 0 ;
21894 PyObject * obj2 = 0 ;
21895 char * kwnames[] = {
21896 (char *) "self",(char *) "pos",(char *) "expand", NULL
21897 };
21898
21899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21901 if (!SWIG_IsOK(res1)) {
21902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21903 }
21904 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21905 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21906 if (!SWIG_IsOK(ecode2)) {
21907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21908 }
21909 arg2 = static_cast< size_t >(val2);
21910 if (obj2) {
21911 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21912 if (!SWIG_IsOK(ecode3)) {
21913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21914 }
21915 arg3 = static_cast< bool >(val3);
21916 }
21917 {
21918 PyThreadState* __tstate = wxPyBeginAllowThreads();
21919 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21920 wxPyEndAllowThreads(__tstate);
21921 if (PyErr_Occurred()) SWIG_fail;
21922 }
21923 {
21924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21925 }
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj = 0;
21934 wxTreebook *arg1 = (wxTreebook *) 0 ;
21935 size_t arg2 ;
21936 bool result;
21937 void *argp1 = 0 ;
21938 int res1 = 0 ;
21939 size_t val2 ;
21940 int ecode2 = 0 ;
21941 PyObject * obj0 = 0 ;
21942 PyObject * obj1 = 0 ;
21943 char * kwnames[] = {
21944 (char *) "self",(char *) "pos", NULL
21945 };
21946
21947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21949 if (!SWIG_IsOK(res1)) {
21950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21951 }
21952 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21953 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21954 if (!SWIG_IsOK(ecode2)) {
21955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21956 }
21957 arg2 = static_cast< size_t >(val2);
21958 {
21959 PyThreadState* __tstate = wxPyBeginAllowThreads();
21960 result = (bool)(arg1)->CollapseNode(arg2);
21961 wxPyEndAllowThreads(__tstate);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 }
21964 {
21965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21966 }
21967 return resultobj;
21968 fail:
21969 return NULL;
21970 }
21971
21972
21973 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21974 PyObject *resultobj = 0;
21975 wxTreebook *arg1 = (wxTreebook *) 0 ;
21976 size_t arg2 ;
21977 int result;
21978 void *argp1 = 0 ;
21979 int res1 = 0 ;
21980 size_t val2 ;
21981 int ecode2 = 0 ;
21982 PyObject * obj0 = 0 ;
21983 PyObject * obj1 = 0 ;
21984 char * kwnames[] = {
21985 (char *) "self",(char *) "pos", NULL
21986 };
21987
21988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21990 if (!SWIG_IsOK(res1)) {
21991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21992 }
21993 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21994 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21995 if (!SWIG_IsOK(ecode2)) {
21996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21997 }
21998 arg2 = static_cast< size_t >(val2);
21999 {
22000 PyThreadState* __tstate = wxPyBeginAllowThreads();
22001 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22002 wxPyEndAllowThreads(__tstate);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 resultobj = SWIG_From_int(static_cast< int >(result));
22006 return resultobj;
22007 fail:
22008 return NULL;
22009 }
22010
22011
22012 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22013 PyObject *resultobj = 0;
22014 wxTreebook *arg1 = (wxTreebook *) 0 ;
22015 wxTreeCtrl *result = 0 ;
22016 void *argp1 = 0 ;
22017 int res1 = 0 ;
22018 PyObject *swig_obj[1] ;
22019
22020 if (!args) SWIG_fail;
22021 swig_obj[0] = args;
22022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22023 if (!SWIG_IsOK(res1)) {
22024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22025 }
22026 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22027 {
22028 PyThreadState* __tstate = wxPyBeginAllowThreads();
22029 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22034 return resultobj;
22035 fail:
22036 return NULL;
22037 }
22038
22039
22040 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22041 PyObject *obj;
22042 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22043 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22044 return SWIG_Py_Void();
22045 }
22046
22047 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22048 return SWIG_Python_InitShadowInstance(args);
22049 }
22050
22051 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22052 PyObject *resultobj = 0;
22053 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22054 int arg2 = (int) 0 ;
22055 int arg3 = (int) wxNOT_FOUND ;
22056 int arg4 = (int) wxNOT_FOUND ;
22057 wxTreebookEvent *result = 0 ;
22058 int val1 ;
22059 int ecode1 = 0 ;
22060 int val2 ;
22061 int ecode2 = 0 ;
22062 int val3 ;
22063 int ecode3 = 0 ;
22064 int val4 ;
22065 int ecode4 = 0 ;
22066 PyObject * obj0 = 0 ;
22067 PyObject * obj1 = 0 ;
22068 PyObject * obj2 = 0 ;
22069 PyObject * obj3 = 0 ;
22070 char * kwnames[] = {
22071 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22072 };
22073
22074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22075 if (obj0) {
22076 ecode1 = SWIG_AsVal_int(obj0, &val1);
22077 if (!SWIG_IsOK(ecode1)) {
22078 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22079 }
22080 arg1 = static_cast< wxEventType >(val1);
22081 }
22082 if (obj1) {
22083 ecode2 = SWIG_AsVal_int(obj1, &val2);
22084 if (!SWIG_IsOK(ecode2)) {
22085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22086 }
22087 arg2 = static_cast< int >(val2);
22088 }
22089 if (obj2) {
22090 ecode3 = SWIG_AsVal_int(obj2, &val3);
22091 if (!SWIG_IsOK(ecode3)) {
22092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22093 }
22094 arg3 = static_cast< int >(val3);
22095 }
22096 if (obj3) {
22097 ecode4 = SWIG_AsVal_int(obj3, &val4);
22098 if (!SWIG_IsOK(ecode4)) {
22099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22100 }
22101 arg4 = static_cast< int >(val4);
22102 }
22103 {
22104 PyThreadState* __tstate = wxPyBeginAllowThreads();
22105 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22106 wxPyEndAllowThreads(__tstate);
22107 if (PyErr_Occurred()) SWIG_fail;
22108 }
22109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22110 return resultobj;
22111 fail:
22112 return NULL;
22113 }
22114
22115
22116 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22117 PyObject *obj;
22118 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22119 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22120 return SWIG_Py_Void();
22121 }
22122
22123 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22124 return SWIG_Python_InitShadowInstance(args);
22125 }
22126
22127 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22128 PyObject *resultobj = 0;
22129 wxWindow *arg1 = (wxWindow *) 0 ;
22130 int arg2 ;
22131 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22132 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22133 wxSize const &arg4_defvalue = wxDefaultSize ;
22134 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22135 long arg5 = (long) wxBK_DEFAULT ;
22136 wxString const &arg6_defvalue = wxPyEmptyString ;
22137 wxString *arg6 = (wxString *) &arg6_defvalue ;
22138 wxToolbook *result = 0 ;
22139 void *argp1 = 0 ;
22140 int res1 = 0 ;
22141 int val2 ;
22142 int ecode2 = 0 ;
22143 wxPoint temp3 ;
22144 wxSize temp4 ;
22145 long val5 ;
22146 int ecode5 = 0 ;
22147 bool temp6 = false ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 PyObject * obj2 = 0 ;
22151 PyObject * obj3 = 0 ;
22152 PyObject * obj4 = 0 ;
22153 PyObject * obj5 = 0 ;
22154 char * kwnames[] = {
22155 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22156 };
22157
22158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22160 if (!SWIG_IsOK(res1)) {
22161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22162 }
22163 arg1 = reinterpret_cast< wxWindow * >(argp1);
22164 ecode2 = SWIG_AsVal_int(obj1, &val2);
22165 if (!SWIG_IsOK(ecode2)) {
22166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22167 }
22168 arg2 = static_cast< int >(val2);
22169 if (obj2) {
22170 {
22171 arg3 = &temp3;
22172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22173 }
22174 }
22175 if (obj3) {
22176 {
22177 arg4 = &temp4;
22178 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22179 }
22180 }
22181 if (obj4) {
22182 ecode5 = SWIG_AsVal_long(obj4, &val5);
22183 if (!SWIG_IsOK(ecode5)) {
22184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22185 }
22186 arg5 = static_cast< long >(val5);
22187 }
22188 if (obj5) {
22189 {
22190 arg6 = wxString_in_helper(obj5);
22191 if (arg6 == NULL) SWIG_fail;
22192 temp6 = true;
22193 }
22194 }
22195 {
22196 PyThreadState* __tstate = wxPyBeginAllowThreads();
22197 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22198 wxPyEndAllowThreads(__tstate);
22199 if (PyErr_Occurred()) SWIG_fail;
22200 }
22201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22202 {
22203 if (temp6)
22204 delete arg6;
22205 }
22206 return resultobj;
22207 fail:
22208 {
22209 if (temp6)
22210 delete arg6;
22211 }
22212 return NULL;
22213 }
22214
22215
22216 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22217 PyObject *resultobj = 0;
22218 wxToolbook *result = 0 ;
22219
22220 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22221 {
22222 PyThreadState* __tstate = wxPyBeginAllowThreads();
22223 result = (wxToolbook *)new wxToolbook();
22224 wxPyEndAllowThreads(__tstate);
22225 if (PyErr_Occurred()) SWIG_fail;
22226 }
22227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22228 return resultobj;
22229 fail:
22230 return NULL;
22231 }
22232
22233
22234 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22235 PyObject *resultobj = 0;
22236 wxToolbook *arg1 = (wxToolbook *) 0 ;
22237 wxWindow *arg2 = (wxWindow *) 0 ;
22238 int arg3 ;
22239 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22240 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22241 wxSize const &arg5_defvalue = wxDefaultSize ;
22242 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22243 long arg6 = (long) 0 ;
22244 wxString const &arg7_defvalue = wxEmptyString ;
22245 wxString *arg7 = (wxString *) &arg7_defvalue ;
22246 bool result;
22247 void *argp1 = 0 ;
22248 int res1 = 0 ;
22249 void *argp2 = 0 ;
22250 int res2 = 0 ;
22251 int val3 ;
22252 int ecode3 = 0 ;
22253 wxPoint temp4 ;
22254 wxSize temp5 ;
22255 long val6 ;
22256 int ecode6 = 0 ;
22257 bool temp7 = false ;
22258 PyObject * obj0 = 0 ;
22259 PyObject * obj1 = 0 ;
22260 PyObject * obj2 = 0 ;
22261 PyObject * obj3 = 0 ;
22262 PyObject * obj4 = 0 ;
22263 PyObject * obj5 = 0 ;
22264 PyObject * obj6 = 0 ;
22265 char * kwnames[] = {
22266 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22267 };
22268
22269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22271 if (!SWIG_IsOK(res1)) {
22272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22273 }
22274 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22275 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22276 if (!SWIG_IsOK(res2)) {
22277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22278 }
22279 arg2 = reinterpret_cast< wxWindow * >(argp2);
22280 ecode3 = SWIG_AsVal_int(obj2, &val3);
22281 if (!SWIG_IsOK(ecode3)) {
22282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22283 }
22284 arg3 = static_cast< int >(val3);
22285 if (obj3) {
22286 {
22287 arg4 = &temp4;
22288 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22289 }
22290 }
22291 if (obj4) {
22292 {
22293 arg5 = &temp5;
22294 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22295 }
22296 }
22297 if (obj5) {
22298 ecode6 = SWIG_AsVal_long(obj5, &val6);
22299 if (!SWIG_IsOK(ecode6)) {
22300 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22301 }
22302 arg6 = static_cast< long >(val6);
22303 }
22304 if (obj6) {
22305 {
22306 arg7 = wxString_in_helper(obj6);
22307 if (arg7 == NULL) SWIG_fail;
22308 temp7 = true;
22309 }
22310 }
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 {
22318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22319 }
22320 {
22321 if (temp7)
22322 delete arg7;
22323 }
22324 return resultobj;
22325 fail:
22326 {
22327 if (temp7)
22328 delete arg7;
22329 }
22330 return NULL;
22331 }
22332
22333
22334 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22335 PyObject *resultobj = 0;
22336 wxToolbook *arg1 = (wxToolbook *) 0 ;
22337 wxToolBarBase *result = 0 ;
22338 void *argp1 = 0 ;
22339 int res1 = 0 ;
22340 PyObject *swig_obj[1] ;
22341
22342 if (!args) SWIG_fail;
22343 swig_obj[0] = args;
22344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22345 if (!SWIG_IsOK(res1)) {
22346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22347 }
22348 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22349 {
22350 PyThreadState* __tstate = wxPyBeginAllowThreads();
22351 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22352 wxPyEndAllowThreads(__tstate);
22353 if (PyErr_Occurred()) SWIG_fail;
22354 }
22355 {
22356 resultobj = wxPyMake_wxObject(result, (bool)0);
22357 }
22358 return resultobj;
22359 fail:
22360 return NULL;
22361 }
22362
22363
22364 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22365 PyObject *resultobj = 0;
22366 wxToolbook *arg1 = (wxToolbook *) 0 ;
22367 void *argp1 = 0 ;
22368 int res1 = 0 ;
22369 PyObject *swig_obj[1] ;
22370
22371 if (!args) SWIG_fail;
22372 swig_obj[0] = args;
22373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22374 if (!SWIG_IsOK(res1)) {
22375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22376 }
22377 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22378 {
22379 PyThreadState* __tstate = wxPyBeginAllowThreads();
22380 (arg1)->Realize();
22381 wxPyEndAllowThreads(__tstate);
22382 if (PyErr_Occurred()) SWIG_fail;
22383 }
22384 resultobj = SWIG_Py_Void();
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22392 PyObject *obj;
22393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22394 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22395 return SWIG_Py_Void();
22396 }
22397
22398 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22399 return SWIG_Python_InitShadowInstance(args);
22400 }
22401
22402 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22403 PyObject *resultobj = 0;
22404 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22405 int arg2 = (int) 0 ;
22406 int arg3 = (int) wxNOT_FOUND ;
22407 int arg4 = (int) wxNOT_FOUND ;
22408 wxToolbookEvent *result = 0 ;
22409 int val1 ;
22410 int ecode1 = 0 ;
22411 int val2 ;
22412 int ecode2 = 0 ;
22413 int val3 ;
22414 int ecode3 = 0 ;
22415 int val4 ;
22416 int ecode4 = 0 ;
22417 PyObject * obj0 = 0 ;
22418 PyObject * obj1 = 0 ;
22419 PyObject * obj2 = 0 ;
22420 PyObject * obj3 = 0 ;
22421 char * kwnames[] = {
22422 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22423 };
22424
22425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22426 if (obj0) {
22427 ecode1 = SWIG_AsVal_int(obj0, &val1);
22428 if (!SWIG_IsOK(ecode1)) {
22429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22430 }
22431 arg1 = static_cast< wxEventType >(val1);
22432 }
22433 if (obj1) {
22434 ecode2 = SWIG_AsVal_int(obj1, &val2);
22435 if (!SWIG_IsOK(ecode2)) {
22436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22437 }
22438 arg2 = static_cast< int >(val2);
22439 }
22440 if (obj2) {
22441 ecode3 = SWIG_AsVal_int(obj2, &val3);
22442 if (!SWIG_IsOK(ecode3)) {
22443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22444 }
22445 arg3 = static_cast< int >(val3);
22446 }
22447 if (obj3) {
22448 ecode4 = SWIG_AsVal_int(obj3, &val4);
22449 if (!SWIG_IsOK(ecode4)) {
22450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22451 }
22452 arg4 = static_cast< int >(val4);
22453 }
22454 {
22455 PyThreadState* __tstate = wxPyBeginAllowThreads();
22456 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22457 wxPyEndAllowThreads(__tstate);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 }
22460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22461 return resultobj;
22462 fail:
22463 return NULL;
22464 }
22465
22466
22467 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22468 PyObject *obj;
22469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22470 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22471 return SWIG_Py_Void();
22472 }
22473
22474 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22475 return SWIG_Python_InitShadowInstance(args);
22476 }
22477
22478 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22479 PyObject *resultobj = 0;
22480 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22481 int result;
22482 void *argp1 = 0 ;
22483 int res1 = 0 ;
22484 PyObject *swig_obj[1] ;
22485
22486 if (!args) SWIG_fail;
22487 swig_obj[0] = args;
22488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22489 if (!SWIG_IsOK(res1)) {
22490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22491 }
22492 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22493 {
22494 PyThreadState* __tstate = wxPyBeginAllowThreads();
22495 result = (int)(arg1)->GetId();
22496 wxPyEndAllowThreads(__tstate);
22497 if (PyErr_Occurred()) SWIG_fail;
22498 }
22499 resultobj = SWIG_From_int(static_cast< int >(result));
22500 return resultobj;
22501 fail:
22502 return NULL;
22503 }
22504
22505
22506 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22507 PyObject *resultobj = 0;
22508 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22509 wxControl *result = 0 ;
22510 void *argp1 = 0 ;
22511 int res1 = 0 ;
22512 PyObject *swig_obj[1] ;
22513
22514 if (!args) SWIG_fail;
22515 swig_obj[0] = args;
22516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22517 if (!SWIG_IsOK(res1)) {
22518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22519 }
22520 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22521 {
22522 PyThreadState* __tstate = wxPyBeginAllowThreads();
22523 result = (wxControl *)(arg1)->GetControl();
22524 wxPyEndAllowThreads(__tstate);
22525 if (PyErr_Occurred()) SWIG_fail;
22526 }
22527 {
22528 resultobj = wxPyMake_wxObject(result, 0);
22529 }
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22537 PyObject *resultobj = 0;
22538 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22539 wxToolBarBase *result = 0 ;
22540 void *argp1 = 0 ;
22541 int res1 = 0 ;
22542 PyObject *swig_obj[1] ;
22543
22544 if (!args) SWIG_fail;
22545 swig_obj[0] = args;
22546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22547 if (!SWIG_IsOK(res1)) {
22548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22549 }
22550 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22551 {
22552 PyThreadState* __tstate = wxPyBeginAllowThreads();
22553 result = (wxToolBarBase *)(arg1)->GetToolBar();
22554 wxPyEndAllowThreads(__tstate);
22555 if (PyErr_Occurred()) SWIG_fail;
22556 }
22557 {
22558 resultobj = wxPyMake_wxObject(result, (bool)0);
22559 }
22560 return resultobj;
22561 fail:
22562 return NULL;
22563 }
22564
22565
22566 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22567 PyObject *resultobj = 0;
22568 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22569 int result;
22570 void *argp1 = 0 ;
22571 int res1 = 0 ;
22572 PyObject *swig_obj[1] ;
22573
22574 if (!args) SWIG_fail;
22575 swig_obj[0] = args;
22576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22577 if (!SWIG_IsOK(res1)) {
22578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22579 }
22580 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22581 {
22582 PyThreadState* __tstate = wxPyBeginAllowThreads();
22583 result = (int)(arg1)->IsButton();
22584 wxPyEndAllowThreads(__tstate);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
22587 resultobj = SWIG_From_int(static_cast< int >(result));
22588 return resultobj;
22589 fail:
22590 return NULL;
22591 }
22592
22593
22594 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22595 PyObject *resultobj = 0;
22596 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22597 int result;
22598 void *argp1 = 0 ;
22599 int res1 = 0 ;
22600 PyObject *swig_obj[1] ;
22601
22602 if (!args) SWIG_fail;
22603 swig_obj[0] = args;
22604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22605 if (!SWIG_IsOK(res1)) {
22606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22607 }
22608 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22609 {
22610 PyThreadState* __tstate = wxPyBeginAllowThreads();
22611 result = (int)(arg1)->IsControl();
22612 wxPyEndAllowThreads(__tstate);
22613 if (PyErr_Occurred()) SWIG_fail;
22614 }
22615 resultobj = SWIG_From_int(static_cast< int >(result));
22616 return resultobj;
22617 fail:
22618 return NULL;
22619 }
22620
22621
22622 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22623 PyObject *resultobj = 0;
22624 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22625 int result;
22626 void *argp1 = 0 ;
22627 int res1 = 0 ;
22628 PyObject *swig_obj[1] ;
22629
22630 if (!args) SWIG_fail;
22631 swig_obj[0] = args;
22632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22633 if (!SWIG_IsOK(res1)) {
22634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22635 }
22636 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22637 {
22638 PyThreadState* __tstate = wxPyBeginAllowThreads();
22639 result = (int)(arg1)->IsSeparator();
22640 wxPyEndAllowThreads(__tstate);
22641 if (PyErr_Occurred()) SWIG_fail;
22642 }
22643 resultobj = SWIG_From_int(static_cast< int >(result));
22644 return resultobj;
22645 fail:
22646 return NULL;
22647 }
22648
22649
22650 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22651 PyObject *resultobj = 0;
22652 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22653 int result;
22654 void *argp1 = 0 ;
22655 int res1 = 0 ;
22656 PyObject *swig_obj[1] ;
22657
22658 if (!args) SWIG_fail;
22659 swig_obj[0] = args;
22660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22661 if (!SWIG_IsOK(res1)) {
22662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22663 }
22664 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22665 {
22666 PyThreadState* __tstate = wxPyBeginAllowThreads();
22667 result = (int)(arg1)->GetStyle();
22668 wxPyEndAllowThreads(__tstate);
22669 if (PyErr_Occurred()) SWIG_fail;
22670 }
22671 resultobj = SWIG_From_int(static_cast< int >(result));
22672 return resultobj;
22673 fail:
22674 return NULL;
22675 }
22676
22677
22678 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22679 PyObject *resultobj = 0;
22680 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22681 wxItemKind result;
22682 void *argp1 = 0 ;
22683 int res1 = 0 ;
22684 PyObject *swig_obj[1] ;
22685
22686 if (!args) SWIG_fail;
22687 swig_obj[0] = args;
22688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22689 if (!SWIG_IsOK(res1)) {
22690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22691 }
22692 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22693 {
22694 PyThreadState* __tstate = wxPyBeginAllowThreads();
22695 result = (wxItemKind)(arg1)->GetKind();
22696 wxPyEndAllowThreads(__tstate);
22697 if (PyErr_Occurred()) SWIG_fail;
22698 }
22699 resultobj = SWIG_From_int(static_cast< int >(result));
22700 return resultobj;
22701 fail:
22702 return NULL;
22703 }
22704
22705
22706 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22707 PyObject *resultobj = 0;
22708 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22709 bool result;
22710 void *argp1 = 0 ;
22711 int res1 = 0 ;
22712 PyObject *swig_obj[1] ;
22713
22714 if (!args) SWIG_fail;
22715 swig_obj[0] = args;
22716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22717 if (!SWIG_IsOK(res1)) {
22718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22719 }
22720 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22721 {
22722 PyThreadState* __tstate = wxPyBeginAllowThreads();
22723 result = (bool)(arg1)->IsEnabled();
22724 wxPyEndAllowThreads(__tstate);
22725 if (PyErr_Occurred()) SWIG_fail;
22726 }
22727 {
22728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22729 }
22730 return resultobj;
22731 fail:
22732 return NULL;
22733 }
22734
22735
22736 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22737 PyObject *resultobj = 0;
22738 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22739 bool result;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 PyObject *swig_obj[1] ;
22743
22744 if (!args) SWIG_fail;
22745 swig_obj[0] = args;
22746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22747 if (!SWIG_IsOK(res1)) {
22748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22749 }
22750 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22751 {
22752 PyThreadState* __tstate = wxPyBeginAllowThreads();
22753 result = (bool)(arg1)->IsToggled();
22754 wxPyEndAllowThreads(__tstate);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 }
22757 {
22758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22759 }
22760 return resultobj;
22761 fail:
22762 return NULL;
22763 }
22764
22765
22766 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22767 PyObject *resultobj = 0;
22768 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22769 bool result;
22770 void *argp1 = 0 ;
22771 int res1 = 0 ;
22772 PyObject *swig_obj[1] ;
22773
22774 if (!args) SWIG_fail;
22775 swig_obj[0] = args;
22776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22777 if (!SWIG_IsOK(res1)) {
22778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22779 }
22780 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22781 {
22782 PyThreadState* __tstate = wxPyBeginAllowThreads();
22783 result = (bool)(arg1)->CanBeToggled();
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 {
22788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22789 }
22790 return resultobj;
22791 fail:
22792 return NULL;
22793 }
22794
22795
22796 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22797 PyObject *resultobj = 0;
22798 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22799 wxBitmap *result = 0 ;
22800 void *argp1 = 0 ;
22801 int res1 = 0 ;
22802 PyObject *swig_obj[1] ;
22803
22804 if (!args) SWIG_fail;
22805 swig_obj[0] = args;
22806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22807 if (!SWIG_IsOK(res1)) {
22808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22809 }
22810 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22811 {
22812 PyThreadState* __tstate = wxPyBeginAllowThreads();
22813 {
22814 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22815 result = (wxBitmap *) &_result_ref;
22816 }
22817 wxPyEndAllowThreads(__tstate);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 {
22821 wxBitmap* resultptr = new wxBitmap(*result);
22822 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22823 }
22824 return resultobj;
22825 fail:
22826 return NULL;
22827 }
22828
22829
22830 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22831 PyObject *resultobj = 0;
22832 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22833 wxBitmap *result = 0 ;
22834 void *argp1 = 0 ;
22835 int res1 = 0 ;
22836 PyObject *swig_obj[1] ;
22837
22838 if (!args) SWIG_fail;
22839 swig_obj[0] = args;
22840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22841 if (!SWIG_IsOK(res1)) {
22842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22843 }
22844 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22845 {
22846 PyThreadState* __tstate = wxPyBeginAllowThreads();
22847 {
22848 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22849 result = (wxBitmap *) &_result_ref;
22850 }
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 {
22855 wxBitmap* resultptr = new wxBitmap(*result);
22856 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22857 }
22858 return resultobj;
22859 fail:
22860 return NULL;
22861 }
22862
22863
22864 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22865 PyObject *resultobj = 0;
22866 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22867 wxBitmap result;
22868 void *argp1 = 0 ;
22869 int res1 = 0 ;
22870 PyObject *swig_obj[1] ;
22871
22872 if (!args) SWIG_fail;
22873 swig_obj[0] = args;
22874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22875 if (!SWIG_IsOK(res1)) {
22876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22877 }
22878 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 result = (arg1)->GetBitmap();
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22893 PyObject *resultobj = 0;
22894 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22895 wxString result;
22896 void *argp1 = 0 ;
22897 int res1 = 0 ;
22898 PyObject *swig_obj[1] ;
22899
22900 if (!args) SWIG_fail;
22901 swig_obj[0] = args;
22902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22905 }
22906 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22907 {
22908 PyThreadState* __tstate = wxPyBeginAllowThreads();
22909 result = (arg1)->GetLabel();
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 {
22914 #if wxUSE_UNICODE
22915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22916 #else
22917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22918 #endif
22919 }
22920 return resultobj;
22921 fail:
22922 return NULL;
22923 }
22924
22925
22926 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22927 PyObject *resultobj = 0;
22928 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22929 wxString result;
22930 void *argp1 = 0 ;
22931 int res1 = 0 ;
22932 PyObject *swig_obj[1] ;
22933
22934 if (!args) SWIG_fail;
22935 swig_obj[0] = args;
22936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22937 if (!SWIG_IsOK(res1)) {
22938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22939 }
22940 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22941 {
22942 PyThreadState* __tstate = wxPyBeginAllowThreads();
22943 result = (arg1)->GetShortHelp();
22944 wxPyEndAllowThreads(__tstate);
22945 if (PyErr_Occurred()) SWIG_fail;
22946 }
22947 {
22948 #if wxUSE_UNICODE
22949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22950 #else
22951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22952 #endif
22953 }
22954 return resultobj;
22955 fail:
22956 return NULL;
22957 }
22958
22959
22960 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22961 PyObject *resultobj = 0;
22962 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22963 wxString result;
22964 void *argp1 = 0 ;
22965 int res1 = 0 ;
22966 PyObject *swig_obj[1] ;
22967
22968 if (!args) SWIG_fail;
22969 swig_obj[0] = args;
22970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22973 }
22974 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 result = (arg1)->GetLongHelp();
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 {
22982 #if wxUSE_UNICODE
22983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22984 #else
22985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22986 #endif
22987 }
22988 return resultobj;
22989 fail:
22990 return NULL;
22991 }
22992
22993
22994 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22995 PyObject *resultobj = 0;
22996 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22997 bool arg2 ;
22998 bool result;
22999 void *argp1 = 0 ;
23000 int res1 = 0 ;
23001 bool val2 ;
23002 int ecode2 = 0 ;
23003 PyObject * obj0 = 0 ;
23004 PyObject * obj1 = 0 ;
23005 char * kwnames[] = {
23006 (char *) "self",(char *) "enable", NULL
23007 };
23008
23009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23011 if (!SWIG_IsOK(res1)) {
23012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23013 }
23014 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23015 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23016 if (!SWIG_IsOK(ecode2)) {
23017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23018 }
23019 arg2 = static_cast< bool >(val2);
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 result = (bool)(arg1)->Enable(arg2);
23023 wxPyEndAllowThreads(__tstate);
23024 if (PyErr_Occurred()) SWIG_fail;
23025 }
23026 {
23027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23028 }
23029 return resultobj;
23030 fail:
23031 return NULL;
23032 }
23033
23034
23035 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23036 PyObject *resultobj = 0;
23037 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23038 void *argp1 = 0 ;
23039 int res1 = 0 ;
23040 PyObject *swig_obj[1] ;
23041
23042 if (!args) SWIG_fail;
23043 swig_obj[0] = args;
23044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23045 if (!SWIG_IsOK(res1)) {
23046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23047 }
23048 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23049 {
23050 PyThreadState* __tstate = wxPyBeginAllowThreads();
23051 (arg1)->Toggle();
23052 wxPyEndAllowThreads(__tstate);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 resultobj = SWIG_Py_Void();
23056 return resultobj;
23057 fail:
23058 return NULL;
23059 }
23060
23061
23062 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23063 PyObject *resultobj = 0;
23064 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23065 bool arg2 ;
23066 bool result;
23067 void *argp1 = 0 ;
23068 int res1 = 0 ;
23069 bool val2 ;
23070 int ecode2 = 0 ;
23071 PyObject * obj0 = 0 ;
23072 PyObject * obj1 = 0 ;
23073 char * kwnames[] = {
23074 (char *) "self",(char *) "toggle", NULL
23075 };
23076
23077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23079 if (!SWIG_IsOK(res1)) {
23080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23081 }
23082 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23083 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23084 if (!SWIG_IsOK(ecode2)) {
23085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23086 }
23087 arg2 = static_cast< bool >(val2);
23088 {
23089 PyThreadState* __tstate = wxPyBeginAllowThreads();
23090 result = (bool)(arg1)->SetToggle(arg2);
23091 wxPyEndAllowThreads(__tstate);
23092 if (PyErr_Occurred()) SWIG_fail;
23093 }
23094 {
23095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23096 }
23097 return resultobj;
23098 fail:
23099 return NULL;
23100 }
23101
23102
23103 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23104 PyObject *resultobj = 0;
23105 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23106 wxString *arg2 = 0 ;
23107 bool result;
23108 void *argp1 = 0 ;
23109 int res1 = 0 ;
23110 bool temp2 = false ;
23111 PyObject * obj0 = 0 ;
23112 PyObject * obj1 = 0 ;
23113 char * kwnames[] = {
23114 (char *) "self",(char *) "help", NULL
23115 };
23116
23117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23119 if (!SWIG_IsOK(res1)) {
23120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23121 }
23122 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23123 {
23124 arg2 = wxString_in_helper(obj1);
23125 if (arg2 == NULL) SWIG_fail;
23126 temp2 = true;
23127 }
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23131 wxPyEndAllowThreads(__tstate);
23132 if (PyErr_Occurred()) SWIG_fail;
23133 }
23134 {
23135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23136 }
23137 {
23138 if (temp2)
23139 delete arg2;
23140 }
23141 return resultobj;
23142 fail:
23143 {
23144 if (temp2)
23145 delete arg2;
23146 }
23147 return NULL;
23148 }
23149
23150
23151 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23152 PyObject *resultobj = 0;
23153 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23154 wxString *arg2 = 0 ;
23155 bool result;
23156 void *argp1 = 0 ;
23157 int res1 = 0 ;
23158 bool temp2 = false ;
23159 PyObject * obj0 = 0 ;
23160 PyObject * obj1 = 0 ;
23161 char * kwnames[] = {
23162 (char *) "self",(char *) "help", NULL
23163 };
23164
23165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23167 if (!SWIG_IsOK(res1)) {
23168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23169 }
23170 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23171 {
23172 arg2 = wxString_in_helper(obj1);
23173 if (arg2 == NULL) SWIG_fail;
23174 temp2 = true;
23175 }
23176 {
23177 PyThreadState* __tstate = wxPyBeginAllowThreads();
23178 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23179 wxPyEndAllowThreads(__tstate);
23180 if (PyErr_Occurred()) SWIG_fail;
23181 }
23182 {
23183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23184 }
23185 {
23186 if (temp2)
23187 delete arg2;
23188 }
23189 return resultobj;
23190 fail:
23191 {
23192 if (temp2)
23193 delete arg2;
23194 }
23195 return NULL;
23196 }
23197
23198
23199 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23200 PyObject *resultobj = 0;
23201 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23202 wxBitmap *arg2 = 0 ;
23203 void *argp1 = 0 ;
23204 int res1 = 0 ;
23205 void *argp2 = 0 ;
23206 int res2 = 0 ;
23207 PyObject * obj0 = 0 ;
23208 PyObject * obj1 = 0 ;
23209 char * kwnames[] = {
23210 (char *) "self",(char *) "bmp", NULL
23211 };
23212
23213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23215 if (!SWIG_IsOK(res1)) {
23216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23217 }
23218 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23220 if (!SWIG_IsOK(res2)) {
23221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23222 }
23223 if (!argp2) {
23224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23225 }
23226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23227 {
23228 PyThreadState* __tstate = wxPyBeginAllowThreads();
23229 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23230 wxPyEndAllowThreads(__tstate);
23231 if (PyErr_Occurred()) SWIG_fail;
23232 }
23233 resultobj = SWIG_Py_Void();
23234 return resultobj;
23235 fail:
23236 return NULL;
23237 }
23238
23239
23240 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23241 PyObject *resultobj = 0;
23242 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23243 wxBitmap *arg2 = 0 ;
23244 void *argp1 = 0 ;
23245 int res1 = 0 ;
23246 void *argp2 = 0 ;
23247 int res2 = 0 ;
23248 PyObject * obj0 = 0 ;
23249 PyObject * obj1 = 0 ;
23250 char * kwnames[] = {
23251 (char *) "self",(char *) "bmp", NULL
23252 };
23253
23254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23256 if (!SWIG_IsOK(res1)) {
23257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23258 }
23259 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23261 if (!SWIG_IsOK(res2)) {
23262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23263 }
23264 if (!argp2) {
23265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23266 }
23267 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23268 {
23269 PyThreadState* __tstate = wxPyBeginAllowThreads();
23270 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 resultobj = SWIG_Py_Void();
23275 return resultobj;
23276 fail:
23277 return NULL;
23278 }
23279
23280
23281 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23282 PyObject *resultobj = 0;
23283 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23284 wxString *arg2 = 0 ;
23285 void *argp1 = 0 ;
23286 int res1 = 0 ;
23287 bool temp2 = false ;
23288 PyObject * obj0 = 0 ;
23289 PyObject * obj1 = 0 ;
23290 char * kwnames[] = {
23291 (char *) "self",(char *) "label", NULL
23292 };
23293
23294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23296 if (!SWIG_IsOK(res1)) {
23297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23298 }
23299 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23300 {
23301 arg2 = wxString_in_helper(obj1);
23302 if (arg2 == NULL) SWIG_fail;
23303 temp2 = true;
23304 }
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 (arg1)->SetLabel((wxString const &)*arg2);
23308 wxPyEndAllowThreads(__tstate);
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 resultobj = SWIG_Py_Void();
23312 {
23313 if (temp2)
23314 delete arg2;
23315 }
23316 return resultobj;
23317 fail:
23318 {
23319 if (temp2)
23320 delete arg2;
23321 }
23322 return NULL;
23323 }
23324
23325
23326 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23327 PyObject *resultobj = 0;
23328 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23329 void *argp1 = 0 ;
23330 int res1 = 0 ;
23331 PyObject *swig_obj[1] ;
23332
23333 if (!args) SWIG_fail;
23334 swig_obj[0] = args;
23335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23336 if (!SWIG_IsOK(res1)) {
23337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23338 }
23339 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23340 {
23341 PyThreadState* __tstate = wxPyBeginAllowThreads();
23342 (arg1)->Detach();
23343 wxPyEndAllowThreads(__tstate);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 }
23346 resultobj = SWIG_Py_Void();
23347 return resultobj;
23348 fail:
23349 return NULL;
23350 }
23351
23352
23353 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23354 PyObject *resultobj = 0;
23355 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23356 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23357 void *argp1 = 0 ;
23358 int res1 = 0 ;
23359 void *argp2 = 0 ;
23360 int res2 = 0 ;
23361 PyObject * obj0 = 0 ;
23362 PyObject * obj1 = 0 ;
23363 char * kwnames[] = {
23364 (char *) "self",(char *) "tbar", NULL
23365 };
23366
23367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23369 if (!SWIG_IsOK(res1)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23371 }
23372 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23374 if (!SWIG_IsOK(res2)) {
23375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23376 }
23377 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 (arg1)->Attach(arg2);
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 resultobj = SWIG_Py_Void();
23385 return resultobj;
23386 fail:
23387 return NULL;
23388 }
23389
23390
23391 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23392 PyObject *resultobj = 0;
23393 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23394 PyObject *result = 0 ;
23395 void *argp1 = 0 ;
23396 int res1 = 0 ;
23397 PyObject *swig_obj[1] ;
23398
23399 if (!args) SWIG_fail;
23400 swig_obj[0] = args;
23401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23402 if (!SWIG_IsOK(res1)) {
23403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23404 }
23405 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23406 {
23407 PyThreadState* __tstate = wxPyBeginAllowThreads();
23408 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23409 wxPyEndAllowThreads(__tstate);
23410 if (PyErr_Occurred()) SWIG_fail;
23411 }
23412 resultobj = result;
23413 return resultobj;
23414 fail:
23415 return NULL;
23416 }
23417
23418
23419 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23420 PyObject *resultobj = 0;
23421 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23422 PyObject *arg2 = (PyObject *) 0 ;
23423 void *argp1 = 0 ;
23424 int res1 = 0 ;
23425 PyObject * obj0 = 0 ;
23426 PyObject * obj1 = 0 ;
23427 char * kwnames[] = {
23428 (char *) "self",(char *) "clientData", NULL
23429 };
23430
23431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23433 if (!SWIG_IsOK(res1)) {
23434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23435 }
23436 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23437 arg2 = obj1;
23438 {
23439 PyThreadState* __tstate = wxPyBeginAllowThreads();
23440 wxToolBarToolBase_SetClientData(arg1,arg2);
23441 wxPyEndAllowThreads(__tstate);
23442 if (PyErr_Occurred()) SWIG_fail;
23443 }
23444 resultobj = SWIG_Py_Void();
23445 return resultobj;
23446 fail:
23447 return NULL;
23448 }
23449
23450
23451 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23452 PyObject *obj;
23453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23454 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23455 return SWIG_Py_Void();
23456 }
23457
23458 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23459 PyObject *resultobj = 0;
23460 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23461 int arg2 ;
23462 wxString *arg3 = 0 ;
23463 wxBitmap *arg4 = 0 ;
23464 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23465 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23466 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23467 wxString const &arg7_defvalue = wxPyEmptyString ;
23468 wxString *arg7 = (wxString *) &arg7_defvalue ;
23469 wxString const &arg8_defvalue = wxPyEmptyString ;
23470 wxString *arg8 = (wxString *) &arg8_defvalue ;
23471 PyObject *arg9 = (PyObject *) NULL ;
23472 wxToolBarToolBase *result = 0 ;
23473 void *argp1 = 0 ;
23474 int res1 = 0 ;
23475 int val2 ;
23476 int ecode2 = 0 ;
23477 bool temp3 = false ;
23478 void *argp4 = 0 ;
23479 int res4 = 0 ;
23480 void *argp5 = 0 ;
23481 int res5 = 0 ;
23482 int val6 ;
23483 int ecode6 = 0 ;
23484 bool temp7 = false ;
23485 bool temp8 = false ;
23486 PyObject * obj0 = 0 ;
23487 PyObject * obj1 = 0 ;
23488 PyObject * obj2 = 0 ;
23489 PyObject * obj3 = 0 ;
23490 PyObject * obj4 = 0 ;
23491 PyObject * obj5 = 0 ;
23492 PyObject * obj6 = 0 ;
23493 PyObject * obj7 = 0 ;
23494 PyObject * obj8 = 0 ;
23495 char * kwnames[] = {
23496 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23497 };
23498
23499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23501 if (!SWIG_IsOK(res1)) {
23502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23503 }
23504 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23505 ecode2 = SWIG_AsVal_int(obj1, &val2);
23506 if (!SWIG_IsOK(ecode2)) {
23507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23508 }
23509 arg2 = static_cast< int >(val2);
23510 {
23511 arg3 = wxString_in_helper(obj2);
23512 if (arg3 == NULL) SWIG_fail;
23513 temp3 = true;
23514 }
23515 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23516 if (!SWIG_IsOK(res4)) {
23517 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23518 }
23519 if (!argp4) {
23520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23521 }
23522 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23523 if (obj4) {
23524 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23525 if (!SWIG_IsOK(res5)) {
23526 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23527 }
23528 if (!argp5) {
23529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23530 }
23531 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23532 }
23533 if (obj5) {
23534 ecode6 = SWIG_AsVal_int(obj5, &val6);
23535 if (!SWIG_IsOK(ecode6)) {
23536 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23537 }
23538 arg6 = static_cast< wxItemKind >(val6);
23539 }
23540 if (obj6) {
23541 {
23542 arg7 = wxString_in_helper(obj6);
23543 if (arg7 == NULL) SWIG_fail;
23544 temp7 = true;
23545 }
23546 }
23547 if (obj7) {
23548 {
23549 arg8 = wxString_in_helper(obj7);
23550 if (arg8 == NULL) SWIG_fail;
23551 temp8 = true;
23552 }
23553 }
23554 if (obj8) {
23555 arg9 = obj8;
23556 }
23557 {
23558 PyThreadState* __tstate = wxPyBeginAllowThreads();
23559 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 {
23564 resultobj = wxPyMake_wxObject(result, (bool)0);
23565 }
23566 {
23567 if (temp3)
23568 delete arg3;
23569 }
23570 {
23571 if (temp7)
23572 delete arg7;
23573 }
23574 {
23575 if (temp8)
23576 delete arg8;
23577 }
23578 return resultobj;
23579 fail:
23580 {
23581 if (temp3)
23582 delete arg3;
23583 }
23584 {
23585 if (temp7)
23586 delete arg7;
23587 }
23588 {
23589 if (temp8)
23590 delete arg8;
23591 }
23592 return NULL;
23593 }
23594
23595
23596 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23597 PyObject *resultobj = 0;
23598 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23599 size_t arg2 ;
23600 int arg3 ;
23601 wxString *arg4 = 0 ;
23602 wxBitmap *arg5 = 0 ;
23603 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23604 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23605 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23606 wxString const &arg8_defvalue = wxPyEmptyString ;
23607 wxString *arg8 = (wxString *) &arg8_defvalue ;
23608 wxString const &arg9_defvalue = wxPyEmptyString ;
23609 wxString *arg9 = (wxString *) &arg9_defvalue ;
23610 PyObject *arg10 = (PyObject *) NULL ;
23611 wxToolBarToolBase *result = 0 ;
23612 void *argp1 = 0 ;
23613 int res1 = 0 ;
23614 size_t val2 ;
23615 int ecode2 = 0 ;
23616 int val3 ;
23617 int ecode3 = 0 ;
23618 bool temp4 = false ;
23619 void *argp5 = 0 ;
23620 int res5 = 0 ;
23621 void *argp6 = 0 ;
23622 int res6 = 0 ;
23623 int val7 ;
23624 int ecode7 = 0 ;
23625 bool temp8 = false ;
23626 bool temp9 = false ;
23627 PyObject * obj0 = 0 ;
23628 PyObject * obj1 = 0 ;
23629 PyObject * obj2 = 0 ;
23630 PyObject * obj3 = 0 ;
23631 PyObject * obj4 = 0 ;
23632 PyObject * obj5 = 0 ;
23633 PyObject * obj6 = 0 ;
23634 PyObject * obj7 = 0 ;
23635 PyObject * obj8 = 0 ;
23636 PyObject * obj9 = 0 ;
23637 char * kwnames[] = {
23638 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23639 };
23640
23641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23643 if (!SWIG_IsOK(res1)) {
23644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23645 }
23646 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23647 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23648 if (!SWIG_IsOK(ecode2)) {
23649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23650 }
23651 arg2 = static_cast< size_t >(val2);
23652 ecode3 = SWIG_AsVal_int(obj2, &val3);
23653 if (!SWIG_IsOK(ecode3)) {
23654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23655 }
23656 arg3 = static_cast< int >(val3);
23657 {
23658 arg4 = wxString_in_helper(obj3);
23659 if (arg4 == NULL) SWIG_fail;
23660 temp4 = true;
23661 }
23662 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23663 if (!SWIG_IsOK(res5)) {
23664 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23665 }
23666 if (!argp5) {
23667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23668 }
23669 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23670 if (obj5) {
23671 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23672 if (!SWIG_IsOK(res6)) {
23673 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23674 }
23675 if (!argp6) {
23676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23677 }
23678 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23679 }
23680 if (obj6) {
23681 ecode7 = SWIG_AsVal_int(obj6, &val7);
23682 if (!SWIG_IsOK(ecode7)) {
23683 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23684 }
23685 arg7 = static_cast< wxItemKind >(val7);
23686 }
23687 if (obj7) {
23688 {
23689 arg8 = wxString_in_helper(obj7);
23690 if (arg8 == NULL) SWIG_fail;
23691 temp8 = true;
23692 }
23693 }
23694 if (obj8) {
23695 {
23696 arg9 = wxString_in_helper(obj8);
23697 if (arg9 == NULL) SWIG_fail;
23698 temp9 = true;
23699 }
23700 }
23701 if (obj9) {
23702 arg10 = obj9;
23703 }
23704 {
23705 PyThreadState* __tstate = wxPyBeginAllowThreads();
23706 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23707 wxPyEndAllowThreads(__tstate);
23708 if (PyErr_Occurred()) SWIG_fail;
23709 }
23710 {
23711 resultobj = wxPyMake_wxObject(result, (bool)0);
23712 }
23713 {
23714 if (temp4)
23715 delete arg4;
23716 }
23717 {
23718 if (temp8)
23719 delete arg8;
23720 }
23721 {
23722 if (temp9)
23723 delete arg9;
23724 }
23725 return resultobj;
23726 fail:
23727 {
23728 if (temp4)
23729 delete arg4;
23730 }
23731 {
23732 if (temp8)
23733 delete arg8;
23734 }
23735 {
23736 if (temp9)
23737 delete arg9;
23738 }
23739 return NULL;
23740 }
23741
23742
23743 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23744 PyObject *resultobj = 0;
23745 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23746 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23747 wxToolBarToolBase *result = 0 ;
23748 void *argp1 = 0 ;
23749 int res1 = 0 ;
23750 void *argp2 = 0 ;
23751 int res2 = 0 ;
23752 PyObject * obj0 = 0 ;
23753 PyObject * obj1 = 0 ;
23754 char * kwnames[] = {
23755 (char *) "self",(char *) "tool", NULL
23756 };
23757
23758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23760 if (!SWIG_IsOK(res1)) {
23761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23762 }
23763 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23764 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23765 if (!SWIG_IsOK(res2)) {
23766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23767 }
23768 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23769 {
23770 PyThreadState* __tstate = wxPyBeginAllowThreads();
23771 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23772 wxPyEndAllowThreads(__tstate);
23773 if (PyErr_Occurred()) SWIG_fail;
23774 }
23775 {
23776 resultobj = wxPyMake_wxObject(result, (bool)0);
23777 }
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23785 PyObject *resultobj = 0;
23786 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23787 size_t arg2 ;
23788 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23789 wxToolBarToolBase *result = 0 ;
23790 void *argp1 = 0 ;
23791 int res1 = 0 ;
23792 size_t val2 ;
23793 int ecode2 = 0 ;
23794 void *argp3 = 0 ;
23795 int res3 = 0 ;
23796 PyObject * obj0 = 0 ;
23797 PyObject * obj1 = 0 ;
23798 PyObject * obj2 = 0 ;
23799 char * kwnames[] = {
23800 (char *) "self",(char *) "pos",(char *) "tool", NULL
23801 };
23802
23803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23805 if (!SWIG_IsOK(res1)) {
23806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23807 }
23808 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23809 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23810 if (!SWIG_IsOK(ecode2)) {
23811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23812 }
23813 arg2 = static_cast< size_t >(val2);
23814 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23815 if (!SWIG_IsOK(res3)) {
23816 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23817 }
23818 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23819 {
23820 PyThreadState* __tstate = wxPyBeginAllowThreads();
23821 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23822 wxPyEndAllowThreads(__tstate);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 }
23825 {
23826 resultobj = wxPyMake_wxObject(result, (bool)0);
23827 }
23828 return resultobj;
23829 fail:
23830 return NULL;
23831 }
23832
23833
23834 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23835 PyObject *resultobj = 0;
23836 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23837 wxControl *arg2 = (wxControl *) 0 ;
23838 wxToolBarToolBase *result = 0 ;
23839 void *argp1 = 0 ;
23840 int res1 = 0 ;
23841 void *argp2 = 0 ;
23842 int res2 = 0 ;
23843 PyObject * obj0 = 0 ;
23844 PyObject * obj1 = 0 ;
23845 char * kwnames[] = {
23846 (char *) "self",(char *) "control", NULL
23847 };
23848
23849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23851 if (!SWIG_IsOK(res1)) {
23852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23853 }
23854 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23856 if (!SWIG_IsOK(res2)) {
23857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23858 }
23859 arg2 = reinterpret_cast< wxControl * >(argp2);
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23863 wxPyEndAllowThreads(__tstate);
23864 if (PyErr_Occurred()) SWIG_fail;
23865 }
23866 {
23867 resultobj = wxPyMake_wxObject(result, (bool)0);
23868 }
23869 return resultobj;
23870 fail:
23871 return NULL;
23872 }
23873
23874
23875 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23876 PyObject *resultobj = 0;
23877 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23878 size_t arg2 ;
23879 wxControl *arg3 = (wxControl *) 0 ;
23880 wxToolBarToolBase *result = 0 ;
23881 void *argp1 = 0 ;
23882 int res1 = 0 ;
23883 size_t val2 ;
23884 int ecode2 = 0 ;
23885 void *argp3 = 0 ;
23886 int res3 = 0 ;
23887 PyObject * obj0 = 0 ;
23888 PyObject * obj1 = 0 ;
23889 PyObject * obj2 = 0 ;
23890 char * kwnames[] = {
23891 (char *) "self",(char *) "pos",(char *) "control", NULL
23892 };
23893
23894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23896 if (!SWIG_IsOK(res1)) {
23897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23898 }
23899 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23900 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23901 if (!SWIG_IsOK(ecode2)) {
23902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23903 }
23904 arg2 = static_cast< size_t >(val2);
23905 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23906 if (!SWIG_IsOK(res3)) {
23907 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23908 }
23909 arg3 = reinterpret_cast< wxControl * >(argp3);
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23913 wxPyEndAllowThreads(__tstate);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 {
23917 resultobj = wxPyMake_wxObject(result, (bool)0);
23918 }
23919 return resultobj;
23920 fail:
23921 return NULL;
23922 }
23923
23924
23925 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23926 PyObject *resultobj = 0;
23927 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23928 int arg2 ;
23929 wxControl *result = 0 ;
23930 void *argp1 = 0 ;
23931 int res1 = 0 ;
23932 int val2 ;
23933 int ecode2 = 0 ;
23934 PyObject * obj0 = 0 ;
23935 PyObject * obj1 = 0 ;
23936 char * kwnames[] = {
23937 (char *) "self",(char *) "id", NULL
23938 };
23939
23940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23942 if (!SWIG_IsOK(res1)) {
23943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23944 }
23945 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23946 ecode2 = SWIG_AsVal_int(obj1, &val2);
23947 if (!SWIG_IsOK(ecode2)) {
23948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23949 }
23950 arg2 = static_cast< int >(val2);
23951 {
23952 PyThreadState* __tstate = wxPyBeginAllowThreads();
23953 result = (wxControl *)(arg1)->FindControl(arg2);
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 {
23958 resultobj = wxPyMake_wxObject(result, 0);
23959 }
23960 return resultobj;
23961 fail:
23962 return NULL;
23963 }
23964
23965
23966 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23967 PyObject *resultobj = 0;
23968 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23969 wxToolBarToolBase *result = 0 ;
23970 void *argp1 = 0 ;
23971 int res1 = 0 ;
23972 PyObject *swig_obj[1] ;
23973
23974 if (!args) SWIG_fail;
23975 swig_obj[0] = args;
23976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23977 if (!SWIG_IsOK(res1)) {
23978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23979 }
23980 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23981 {
23982 PyThreadState* __tstate = wxPyBeginAllowThreads();
23983 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23984 wxPyEndAllowThreads(__tstate);
23985 if (PyErr_Occurred()) SWIG_fail;
23986 }
23987 {
23988 resultobj = wxPyMake_wxObject(result, (bool)0);
23989 }
23990 return resultobj;
23991 fail:
23992 return NULL;
23993 }
23994
23995
23996 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23997 PyObject *resultobj = 0;
23998 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23999 size_t arg2 ;
24000 wxToolBarToolBase *result = 0 ;
24001 void *argp1 = 0 ;
24002 int res1 = 0 ;
24003 size_t val2 ;
24004 int ecode2 = 0 ;
24005 PyObject * obj0 = 0 ;
24006 PyObject * obj1 = 0 ;
24007 char * kwnames[] = {
24008 (char *) "self",(char *) "pos", NULL
24009 };
24010
24011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24013 if (!SWIG_IsOK(res1)) {
24014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24015 }
24016 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24017 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24018 if (!SWIG_IsOK(ecode2)) {
24019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24020 }
24021 arg2 = static_cast< size_t >(val2);
24022 {
24023 PyThreadState* __tstate = wxPyBeginAllowThreads();
24024 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24025 wxPyEndAllowThreads(__tstate);
24026 if (PyErr_Occurred()) SWIG_fail;
24027 }
24028 {
24029 resultobj = wxPyMake_wxObject(result, (bool)0);
24030 }
24031 return resultobj;
24032 fail:
24033 return NULL;
24034 }
24035
24036
24037 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24038 PyObject *resultobj = 0;
24039 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24040 int arg2 ;
24041 wxToolBarToolBase *result = 0 ;
24042 void *argp1 = 0 ;
24043 int res1 = 0 ;
24044 int val2 ;
24045 int ecode2 = 0 ;
24046 PyObject * obj0 = 0 ;
24047 PyObject * obj1 = 0 ;
24048 char * kwnames[] = {
24049 (char *) "self",(char *) "id", NULL
24050 };
24051
24052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24054 if (!SWIG_IsOK(res1)) {
24055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24056 }
24057 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24058 ecode2 = SWIG_AsVal_int(obj1, &val2);
24059 if (!SWIG_IsOK(ecode2)) {
24060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24061 }
24062 arg2 = static_cast< int >(val2);
24063 {
24064 PyThreadState* __tstate = wxPyBeginAllowThreads();
24065 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24066 wxPyEndAllowThreads(__tstate);
24067 if (PyErr_Occurred()) SWIG_fail;
24068 }
24069 {
24070 resultobj = wxPyMake_wxObject(result, (bool)0);
24071 }
24072 return resultobj;
24073 fail:
24074 return NULL;
24075 }
24076
24077
24078 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24079 PyObject *resultobj = 0;
24080 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24081 size_t arg2 ;
24082 bool result;
24083 void *argp1 = 0 ;
24084 int res1 = 0 ;
24085 size_t val2 ;
24086 int ecode2 = 0 ;
24087 PyObject * obj0 = 0 ;
24088 PyObject * obj1 = 0 ;
24089 char * kwnames[] = {
24090 (char *) "self",(char *) "pos", NULL
24091 };
24092
24093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24095 if (!SWIG_IsOK(res1)) {
24096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24097 }
24098 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24099 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24100 if (!SWIG_IsOK(ecode2)) {
24101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24102 }
24103 arg2 = static_cast< size_t >(val2);
24104 {
24105 PyThreadState* __tstate = wxPyBeginAllowThreads();
24106 result = (bool)(arg1)->DeleteToolByPos(arg2);
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 {
24111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24112 }
24113 return resultobj;
24114 fail:
24115 return NULL;
24116 }
24117
24118
24119 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24120 PyObject *resultobj = 0;
24121 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24122 int arg2 ;
24123 bool result;
24124 void *argp1 = 0 ;
24125 int res1 = 0 ;
24126 int val2 ;
24127 int ecode2 = 0 ;
24128 PyObject * obj0 = 0 ;
24129 PyObject * obj1 = 0 ;
24130 char * kwnames[] = {
24131 (char *) "self",(char *) "id", NULL
24132 };
24133
24134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24136 if (!SWIG_IsOK(res1)) {
24137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24138 }
24139 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24140 ecode2 = SWIG_AsVal_int(obj1, &val2);
24141 if (!SWIG_IsOK(ecode2)) {
24142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24143 }
24144 arg2 = static_cast< int >(val2);
24145 {
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 result = (bool)(arg1)->DeleteTool(arg2);
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 {
24152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24153 }
24154 return resultobj;
24155 fail:
24156 return NULL;
24157 }
24158
24159
24160 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24161 PyObject *resultobj = 0;
24162 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24163 void *argp1 = 0 ;
24164 int res1 = 0 ;
24165 PyObject *swig_obj[1] ;
24166
24167 if (!args) SWIG_fail;
24168 swig_obj[0] = args;
24169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24170 if (!SWIG_IsOK(res1)) {
24171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24172 }
24173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24174 {
24175 PyThreadState* __tstate = wxPyBeginAllowThreads();
24176 (arg1)->ClearTools();
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 resultobj = SWIG_Py_Void();
24181 return resultobj;
24182 fail:
24183 return NULL;
24184 }
24185
24186
24187 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24188 PyObject *resultobj = 0;
24189 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24190 bool result;
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
24193 PyObject *swig_obj[1] ;
24194
24195 if (!args) SWIG_fail;
24196 swig_obj[0] = args;
24197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24198 if (!SWIG_IsOK(res1)) {
24199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24200 }
24201 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24202 {
24203 PyThreadState* __tstate = wxPyBeginAllowThreads();
24204 result = (bool)(arg1)->Realize();
24205 wxPyEndAllowThreads(__tstate);
24206 if (PyErr_Occurred()) SWIG_fail;
24207 }
24208 {
24209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24210 }
24211 return resultobj;
24212 fail:
24213 return NULL;
24214 }
24215
24216
24217 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24218 PyObject *resultobj = 0;
24219 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24220 int arg2 ;
24221 bool arg3 ;
24222 void *argp1 = 0 ;
24223 int res1 = 0 ;
24224 int val2 ;
24225 int ecode2 = 0 ;
24226 bool val3 ;
24227 int ecode3 = 0 ;
24228 PyObject * obj0 = 0 ;
24229 PyObject * obj1 = 0 ;
24230 PyObject * obj2 = 0 ;
24231 char * kwnames[] = {
24232 (char *) "self",(char *) "id",(char *) "enable", NULL
24233 };
24234
24235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24237 if (!SWIG_IsOK(res1)) {
24238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24239 }
24240 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24241 ecode2 = SWIG_AsVal_int(obj1, &val2);
24242 if (!SWIG_IsOK(ecode2)) {
24243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24244 }
24245 arg2 = static_cast< int >(val2);
24246 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24247 if (!SWIG_IsOK(ecode3)) {
24248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24249 }
24250 arg3 = static_cast< bool >(val3);
24251 {
24252 PyThreadState* __tstate = wxPyBeginAllowThreads();
24253 (arg1)->EnableTool(arg2,arg3);
24254 wxPyEndAllowThreads(__tstate);
24255 if (PyErr_Occurred()) SWIG_fail;
24256 }
24257 resultobj = SWIG_Py_Void();
24258 return resultobj;
24259 fail:
24260 return NULL;
24261 }
24262
24263
24264 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj = 0;
24266 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24267 int arg2 ;
24268 bool arg3 ;
24269 void *argp1 = 0 ;
24270 int res1 = 0 ;
24271 int val2 ;
24272 int ecode2 = 0 ;
24273 bool val3 ;
24274 int ecode3 = 0 ;
24275 PyObject * obj0 = 0 ;
24276 PyObject * obj1 = 0 ;
24277 PyObject * obj2 = 0 ;
24278 char * kwnames[] = {
24279 (char *) "self",(char *) "id",(char *) "toggle", NULL
24280 };
24281
24282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24284 if (!SWIG_IsOK(res1)) {
24285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24286 }
24287 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24288 ecode2 = SWIG_AsVal_int(obj1, &val2);
24289 if (!SWIG_IsOK(ecode2)) {
24290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24291 }
24292 arg2 = static_cast< int >(val2);
24293 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24294 if (!SWIG_IsOK(ecode3)) {
24295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24296 }
24297 arg3 = static_cast< bool >(val3);
24298 {
24299 PyThreadState* __tstate = wxPyBeginAllowThreads();
24300 (arg1)->ToggleTool(arg2,arg3);
24301 wxPyEndAllowThreads(__tstate);
24302 if (PyErr_Occurred()) SWIG_fail;
24303 }
24304 resultobj = SWIG_Py_Void();
24305 return resultobj;
24306 fail:
24307 return NULL;
24308 }
24309
24310
24311 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24312 PyObject *resultobj = 0;
24313 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24314 int arg2 ;
24315 bool arg3 ;
24316 void *argp1 = 0 ;
24317 int res1 = 0 ;
24318 int val2 ;
24319 int ecode2 = 0 ;
24320 bool val3 ;
24321 int ecode3 = 0 ;
24322 PyObject * obj0 = 0 ;
24323 PyObject * obj1 = 0 ;
24324 PyObject * obj2 = 0 ;
24325 char * kwnames[] = {
24326 (char *) "self",(char *) "id",(char *) "toggle", NULL
24327 };
24328
24329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24331 if (!SWIG_IsOK(res1)) {
24332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24333 }
24334 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24335 ecode2 = SWIG_AsVal_int(obj1, &val2);
24336 if (!SWIG_IsOK(ecode2)) {
24337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24338 }
24339 arg2 = static_cast< int >(val2);
24340 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24341 if (!SWIG_IsOK(ecode3)) {
24342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24343 }
24344 arg3 = static_cast< bool >(val3);
24345 {
24346 PyThreadState* __tstate = wxPyBeginAllowThreads();
24347 (arg1)->SetToggle(arg2,arg3);
24348 wxPyEndAllowThreads(__tstate);
24349 if (PyErr_Occurred()) SWIG_fail;
24350 }
24351 resultobj = SWIG_Py_Void();
24352 return resultobj;
24353 fail:
24354 return NULL;
24355 }
24356
24357
24358 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24359 PyObject *resultobj = 0;
24360 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24361 int arg2 ;
24362 PyObject *result = 0 ;
24363 void *argp1 = 0 ;
24364 int res1 = 0 ;
24365 int val2 ;
24366 int ecode2 = 0 ;
24367 PyObject * obj0 = 0 ;
24368 PyObject * obj1 = 0 ;
24369 char * kwnames[] = {
24370 (char *) "self",(char *) "id", NULL
24371 };
24372
24373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24375 if (!SWIG_IsOK(res1)) {
24376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24377 }
24378 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24379 ecode2 = SWIG_AsVal_int(obj1, &val2);
24380 if (!SWIG_IsOK(ecode2)) {
24381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24382 }
24383 arg2 = static_cast< int >(val2);
24384 {
24385 PyThreadState* __tstate = wxPyBeginAllowThreads();
24386 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24387 wxPyEndAllowThreads(__tstate);
24388 if (PyErr_Occurred()) SWIG_fail;
24389 }
24390 resultobj = result;
24391 return resultobj;
24392 fail:
24393 return NULL;
24394 }
24395
24396
24397 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24398 PyObject *resultobj = 0;
24399 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24400 int arg2 ;
24401 PyObject *arg3 = (PyObject *) 0 ;
24402 void *argp1 = 0 ;
24403 int res1 = 0 ;
24404 int val2 ;
24405 int ecode2 = 0 ;
24406 PyObject * obj0 = 0 ;
24407 PyObject * obj1 = 0 ;
24408 PyObject * obj2 = 0 ;
24409 char * kwnames[] = {
24410 (char *) "self",(char *) "id",(char *) "clientData", NULL
24411 };
24412
24413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24415 if (!SWIG_IsOK(res1)) {
24416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24417 }
24418 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24419 ecode2 = SWIG_AsVal_int(obj1, &val2);
24420 if (!SWIG_IsOK(ecode2)) {
24421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24422 }
24423 arg2 = static_cast< int >(val2);
24424 arg3 = obj2;
24425 {
24426 PyThreadState* __tstate = wxPyBeginAllowThreads();
24427 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24428 wxPyEndAllowThreads(__tstate);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 resultobj = SWIG_Py_Void();
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj = 0;
24440 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24441 int arg2 ;
24442 int result;
24443 void *argp1 = 0 ;
24444 int res1 = 0 ;
24445 int val2 ;
24446 int ecode2 = 0 ;
24447 PyObject * obj0 = 0 ;
24448 PyObject * obj1 = 0 ;
24449 char * kwnames[] = {
24450 (char *) "self",(char *) "id", NULL
24451 };
24452
24453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24455 if (!SWIG_IsOK(res1)) {
24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24457 }
24458 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24459 ecode2 = SWIG_AsVal_int(obj1, &val2);
24460 if (!SWIG_IsOK(ecode2)) {
24461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24462 }
24463 arg2 = static_cast< int >(val2);
24464 {
24465 PyThreadState* __tstate = wxPyBeginAllowThreads();
24466 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24467 wxPyEndAllowThreads(__tstate);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 }
24470 resultobj = SWIG_From_int(static_cast< int >(result));
24471 return resultobj;
24472 fail:
24473 return NULL;
24474 }
24475
24476
24477 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24478 PyObject *resultobj = 0;
24479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24480 int arg2 ;
24481 bool result;
24482 void *argp1 = 0 ;
24483 int res1 = 0 ;
24484 int val2 ;
24485 int ecode2 = 0 ;
24486 PyObject * obj0 = 0 ;
24487 PyObject * obj1 = 0 ;
24488 char * kwnames[] = {
24489 (char *) "self",(char *) "id", NULL
24490 };
24491
24492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24494 if (!SWIG_IsOK(res1)) {
24495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24496 }
24497 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24498 ecode2 = SWIG_AsVal_int(obj1, &val2);
24499 if (!SWIG_IsOK(ecode2)) {
24500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24501 }
24502 arg2 = static_cast< int >(val2);
24503 {
24504 PyThreadState* __tstate = wxPyBeginAllowThreads();
24505 result = (bool)(arg1)->GetToolState(arg2);
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 {
24510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24511 }
24512 return resultobj;
24513 fail:
24514 return NULL;
24515 }
24516
24517
24518 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24519 PyObject *resultobj = 0;
24520 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24521 int arg2 ;
24522 bool result;
24523 void *argp1 = 0 ;
24524 int res1 = 0 ;
24525 int val2 ;
24526 int ecode2 = 0 ;
24527 PyObject * obj0 = 0 ;
24528 PyObject * obj1 = 0 ;
24529 char * kwnames[] = {
24530 (char *) "self",(char *) "id", NULL
24531 };
24532
24533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24535 if (!SWIG_IsOK(res1)) {
24536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24537 }
24538 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24539 ecode2 = SWIG_AsVal_int(obj1, &val2);
24540 if (!SWIG_IsOK(ecode2)) {
24541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24542 }
24543 arg2 = static_cast< int >(val2);
24544 {
24545 PyThreadState* __tstate = wxPyBeginAllowThreads();
24546 result = (bool)(arg1)->GetToolEnabled(arg2);
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
24550 {
24551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24552 }
24553 return resultobj;
24554 fail:
24555 return NULL;
24556 }
24557
24558
24559 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24560 PyObject *resultobj = 0;
24561 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24562 int arg2 ;
24563 wxString *arg3 = 0 ;
24564 void *argp1 = 0 ;
24565 int res1 = 0 ;
24566 int val2 ;
24567 int ecode2 = 0 ;
24568 bool temp3 = false ;
24569 PyObject * obj0 = 0 ;
24570 PyObject * obj1 = 0 ;
24571 PyObject * obj2 = 0 ;
24572 char * kwnames[] = {
24573 (char *) "self",(char *) "id",(char *) "helpString", NULL
24574 };
24575
24576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24578 if (!SWIG_IsOK(res1)) {
24579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24580 }
24581 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24582 ecode2 = SWIG_AsVal_int(obj1, &val2);
24583 if (!SWIG_IsOK(ecode2)) {
24584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24585 }
24586 arg2 = static_cast< int >(val2);
24587 {
24588 arg3 = wxString_in_helper(obj2);
24589 if (arg3 == NULL) SWIG_fail;
24590 temp3 = true;
24591 }
24592 {
24593 PyThreadState* __tstate = wxPyBeginAllowThreads();
24594 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24595 wxPyEndAllowThreads(__tstate);
24596 if (PyErr_Occurred()) SWIG_fail;
24597 }
24598 resultobj = SWIG_Py_Void();
24599 {
24600 if (temp3)
24601 delete arg3;
24602 }
24603 return resultobj;
24604 fail:
24605 {
24606 if (temp3)
24607 delete arg3;
24608 }
24609 return NULL;
24610 }
24611
24612
24613 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24614 PyObject *resultobj = 0;
24615 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24616 int arg2 ;
24617 wxString result;
24618 void *argp1 = 0 ;
24619 int res1 = 0 ;
24620 int val2 ;
24621 int ecode2 = 0 ;
24622 PyObject * obj0 = 0 ;
24623 PyObject * obj1 = 0 ;
24624 char * kwnames[] = {
24625 (char *) "self",(char *) "id", NULL
24626 };
24627
24628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24630 if (!SWIG_IsOK(res1)) {
24631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24632 }
24633 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24634 ecode2 = SWIG_AsVal_int(obj1, &val2);
24635 if (!SWIG_IsOK(ecode2)) {
24636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24637 }
24638 arg2 = static_cast< int >(val2);
24639 {
24640 PyThreadState* __tstate = wxPyBeginAllowThreads();
24641 result = (arg1)->GetToolShortHelp(arg2);
24642 wxPyEndAllowThreads(__tstate);
24643 if (PyErr_Occurred()) SWIG_fail;
24644 }
24645 {
24646 #if wxUSE_UNICODE
24647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24648 #else
24649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24650 #endif
24651 }
24652 return resultobj;
24653 fail:
24654 return NULL;
24655 }
24656
24657
24658 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24659 PyObject *resultobj = 0;
24660 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24661 int arg2 ;
24662 wxString *arg3 = 0 ;
24663 void *argp1 = 0 ;
24664 int res1 = 0 ;
24665 int val2 ;
24666 int ecode2 = 0 ;
24667 bool temp3 = false ;
24668 PyObject * obj0 = 0 ;
24669 PyObject * obj1 = 0 ;
24670 PyObject * obj2 = 0 ;
24671 char * kwnames[] = {
24672 (char *) "self",(char *) "id",(char *) "helpString", NULL
24673 };
24674
24675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24677 if (!SWIG_IsOK(res1)) {
24678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24679 }
24680 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24681 ecode2 = SWIG_AsVal_int(obj1, &val2);
24682 if (!SWIG_IsOK(ecode2)) {
24683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24684 }
24685 arg2 = static_cast< int >(val2);
24686 {
24687 arg3 = wxString_in_helper(obj2);
24688 if (arg3 == NULL) SWIG_fail;
24689 temp3 = true;
24690 }
24691 {
24692 PyThreadState* __tstate = wxPyBeginAllowThreads();
24693 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24694 wxPyEndAllowThreads(__tstate);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 resultobj = SWIG_Py_Void();
24698 {
24699 if (temp3)
24700 delete arg3;
24701 }
24702 return resultobj;
24703 fail:
24704 {
24705 if (temp3)
24706 delete arg3;
24707 }
24708 return NULL;
24709 }
24710
24711
24712 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24713 PyObject *resultobj = 0;
24714 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24715 int arg2 ;
24716 wxString result;
24717 void *argp1 = 0 ;
24718 int res1 = 0 ;
24719 int val2 ;
24720 int ecode2 = 0 ;
24721 PyObject * obj0 = 0 ;
24722 PyObject * obj1 = 0 ;
24723 char * kwnames[] = {
24724 (char *) "self",(char *) "id", NULL
24725 };
24726
24727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24729 if (!SWIG_IsOK(res1)) {
24730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24731 }
24732 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24733 ecode2 = SWIG_AsVal_int(obj1, &val2);
24734 if (!SWIG_IsOK(ecode2)) {
24735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24736 }
24737 arg2 = static_cast< int >(val2);
24738 {
24739 PyThreadState* __tstate = wxPyBeginAllowThreads();
24740 result = (arg1)->GetToolLongHelp(arg2);
24741 wxPyEndAllowThreads(__tstate);
24742 if (PyErr_Occurred()) SWIG_fail;
24743 }
24744 {
24745 #if wxUSE_UNICODE
24746 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24747 #else
24748 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24749 #endif
24750 }
24751 return resultobj;
24752 fail:
24753 return NULL;
24754 }
24755
24756
24757 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24758 PyObject *resultobj = 0;
24759 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24760 int arg2 ;
24761 int arg3 ;
24762 void *argp1 = 0 ;
24763 int res1 = 0 ;
24764 int val2 ;
24765 int ecode2 = 0 ;
24766 int val3 ;
24767 int ecode3 = 0 ;
24768 PyObject * obj0 = 0 ;
24769 PyObject * obj1 = 0 ;
24770 PyObject * obj2 = 0 ;
24771 char * kwnames[] = {
24772 (char *) "self",(char *) "x",(char *) "y", NULL
24773 };
24774
24775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24777 if (!SWIG_IsOK(res1)) {
24778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24779 }
24780 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24781 ecode2 = SWIG_AsVal_int(obj1, &val2);
24782 if (!SWIG_IsOK(ecode2)) {
24783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24784 }
24785 arg2 = static_cast< int >(val2);
24786 ecode3 = SWIG_AsVal_int(obj2, &val3);
24787 if (!SWIG_IsOK(ecode3)) {
24788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24789 }
24790 arg3 = static_cast< int >(val3);
24791 {
24792 PyThreadState* __tstate = wxPyBeginAllowThreads();
24793 (arg1)->SetMargins(arg2,arg3);
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 resultobj = SWIG_Py_Void();
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj = 0;
24806 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24807 wxSize *arg2 = 0 ;
24808 void *argp1 = 0 ;
24809 int res1 = 0 ;
24810 wxSize temp2 ;
24811 PyObject * obj0 = 0 ;
24812 PyObject * obj1 = 0 ;
24813 char * kwnames[] = {
24814 (char *) "self",(char *) "size", NULL
24815 };
24816
24817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24819 if (!SWIG_IsOK(res1)) {
24820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24821 }
24822 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24823 {
24824 arg2 = &temp2;
24825 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24826 }
24827 {
24828 PyThreadState* __tstate = wxPyBeginAllowThreads();
24829 (arg1)->SetMargins((wxSize const &)*arg2);
24830 wxPyEndAllowThreads(__tstate);
24831 if (PyErr_Occurred()) SWIG_fail;
24832 }
24833 resultobj = SWIG_Py_Void();
24834 return resultobj;
24835 fail:
24836 return NULL;
24837 }
24838
24839
24840 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24841 PyObject *resultobj = 0;
24842 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24843 int arg2 ;
24844 void *argp1 = 0 ;
24845 int res1 = 0 ;
24846 int val2 ;
24847 int ecode2 = 0 ;
24848 PyObject * obj0 = 0 ;
24849 PyObject * obj1 = 0 ;
24850 char * kwnames[] = {
24851 (char *) "self",(char *) "packing", NULL
24852 };
24853
24854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24856 if (!SWIG_IsOK(res1)) {
24857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24858 }
24859 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24860 ecode2 = SWIG_AsVal_int(obj1, &val2);
24861 if (!SWIG_IsOK(ecode2)) {
24862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24863 }
24864 arg2 = static_cast< int >(val2);
24865 {
24866 PyThreadState* __tstate = wxPyBeginAllowThreads();
24867 (arg1)->SetToolPacking(arg2);
24868 wxPyEndAllowThreads(__tstate);
24869 if (PyErr_Occurred()) SWIG_fail;
24870 }
24871 resultobj = SWIG_Py_Void();
24872 return resultobj;
24873 fail:
24874 return NULL;
24875 }
24876
24877
24878 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24879 PyObject *resultobj = 0;
24880 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24881 int arg2 ;
24882 void *argp1 = 0 ;
24883 int res1 = 0 ;
24884 int val2 ;
24885 int ecode2 = 0 ;
24886 PyObject * obj0 = 0 ;
24887 PyObject * obj1 = 0 ;
24888 char * kwnames[] = {
24889 (char *) "self",(char *) "separation", NULL
24890 };
24891
24892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24894 if (!SWIG_IsOK(res1)) {
24895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24896 }
24897 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24898 ecode2 = SWIG_AsVal_int(obj1, &val2);
24899 if (!SWIG_IsOK(ecode2)) {
24900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24901 }
24902 arg2 = static_cast< int >(val2);
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 (arg1)->SetToolSeparation(arg2);
24906 wxPyEndAllowThreads(__tstate);
24907 if (PyErr_Occurred()) SWIG_fail;
24908 }
24909 resultobj = SWIG_Py_Void();
24910 return resultobj;
24911 fail:
24912 return NULL;
24913 }
24914
24915
24916 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24917 PyObject *resultobj = 0;
24918 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24919 wxSize result;
24920 void *argp1 = 0 ;
24921 int res1 = 0 ;
24922 PyObject *swig_obj[1] ;
24923
24924 if (!args) SWIG_fail;
24925 swig_obj[0] = args;
24926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24927 if (!SWIG_IsOK(res1)) {
24928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24929 }
24930 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 result = (arg1)->GetToolMargins();
24934 wxPyEndAllowThreads(__tstate);
24935 if (PyErr_Occurred()) SWIG_fail;
24936 }
24937 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24938 return resultobj;
24939 fail:
24940 return NULL;
24941 }
24942
24943
24944 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24945 PyObject *resultobj = 0;
24946 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24947 wxSize result;
24948 void *argp1 = 0 ;
24949 int res1 = 0 ;
24950 PyObject *swig_obj[1] ;
24951
24952 if (!args) SWIG_fail;
24953 swig_obj[0] = args;
24954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24955 if (!SWIG_IsOK(res1)) {
24956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24957 }
24958 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24959 {
24960 PyThreadState* __tstate = wxPyBeginAllowThreads();
24961 result = (arg1)->GetMargins();
24962 wxPyEndAllowThreads(__tstate);
24963 if (PyErr_Occurred()) SWIG_fail;
24964 }
24965 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24966 return resultobj;
24967 fail:
24968 return NULL;
24969 }
24970
24971
24972 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24973 PyObject *resultobj = 0;
24974 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24975 int result;
24976 void *argp1 = 0 ;
24977 int res1 = 0 ;
24978 PyObject *swig_obj[1] ;
24979
24980 if (!args) SWIG_fail;
24981 swig_obj[0] = args;
24982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24983 if (!SWIG_IsOK(res1)) {
24984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24985 }
24986 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 result = (int)(arg1)->GetToolPacking();
24990 wxPyEndAllowThreads(__tstate);
24991 if (PyErr_Occurred()) SWIG_fail;
24992 }
24993 resultobj = SWIG_From_int(static_cast< int >(result));
24994 return resultobj;
24995 fail:
24996 return NULL;
24997 }
24998
24999
25000 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25001 PyObject *resultobj = 0;
25002 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25003 int result;
25004 void *argp1 = 0 ;
25005 int res1 = 0 ;
25006 PyObject *swig_obj[1] ;
25007
25008 if (!args) SWIG_fail;
25009 swig_obj[0] = args;
25010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25011 if (!SWIG_IsOK(res1)) {
25012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25013 }
25014 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25015 {
25016 PyThreadState* __tstate = wxPyBeginAllowThreads();
25017 result = (int)(arg1)->GetToolSeparation();
25018 wxPyEndAllowThreads(__tstate);
25019 if (PyErr_Occurred()) SWIG_fail;
25020 }
25021 resultobj = SWIG_From_int(static_cast< int >(result));
25022 return resultobj;
25023 fail:
25024 return NULL;
25025 }
25026
25027
25028 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25029 PyObject *resultobj = 0;
25030 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25031 int arg2 ;
25032 void *argp1 = 0 ;
25033 int res1 = 0 ;
25034 int val2 ;
25035 int ecode2 = 0 ;
25036 PyObject * obj0 = 0 ;
25037 PyObject * obj1 = 0 ;
25038 char * kwnames[] = {
25039 (char *) "self",(char *) "nRows", NULL
25040 };
25041
25042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25044 if (!SWIG_IsOK(res1)) {
25045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25046 }
25047 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25048 ecode2 = SWIG_AsVal_int(obj1, &val2);
25049 if (!SWIG_IsOK(ecode2)) {
25050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25051 }
25052 arg2 = static_cast< int >(val2);
25053 {
25054 PyThreadState* __tstate = wxPyBeginAllowThreads();
25055 (arg1)->SetRows(arg2);
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 resultobj = SWIG_Py_Void();
25060 return resultobj;
25061 fail:
25062 return NULL;
25063 }
25064
25065
25066 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25067 PyObject *resultobj = 0;
25068 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25069 int arg2 ;
25070 int arg3 ;
25071 void *argp1 = 0 ;
25072 int res1 = 0 ;
25073 int val2 ;
25074 int ecode2 = 0 ;
25075 int val3 ;
25076 int ecode3 = 0 ;
25077 PyObject * obj0 = 0 ;
25078 PyObject * obj1 = 0 ;
25079 PyObject * obj2 = 0 ;
25080 char * kwnames[] = {
25081 (char *) "self",(char *) "rows",(char *) "cols", NULL
25082 };
25083
25084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25086 if (!SWIG_IsOK(res1)) {
25087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25088 }
25089 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25090 ecode2 = SWIG_AsVal_int(obj1, &val2);
25091 if (!SWIG_IsOK(ecode2)) {
25092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25093 }
25094 arg2 = static_cast< int >(val2);
25095 ecode3 = SWIG_AsVal_int(obj2, &val3);
25096 if (!SWIG_IsOK(ecode3)) {
25097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25098 }
25099 arg3 = static_cast< int >(val3);
25100 {
25101 PyThreadState* __tstate = wxPyBeginAllowThreads();
25102 (arg1)->SetMaxRowsCols(arg2,arg3);
25103 wxPyEndAllowThreads(__tstate);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 resultobj = SWIG_Py_Void();
25107 return resultobj;
25108 fail:
25109 return NULL;
25110 }
25111
25112
25113 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25114 PyObject *resultobj = 0;
25115 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25116 int result;
25117 void *argp1 = 0 ;
25118 int res1 = 0 ;
25119 PyObject *swig_obj[1] ;
25120
25121 if (!args) SWIG_fail;
25122 swig_obj[0] = args;
25123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25124 if (!SWIG_IsOK(res1)) {
25125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25126 }
25127 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25128 {
25129 PyThreadState* __tstate = wxPyBeginAllowThreads();
25130 result = (int)(arg1)->GetMaxRows();
25131 wxPyEndAllowThreads(__tstate);
25132 if (PyErr_Occurred()) SWIG_fail;
25133 }
25134 resultobj = SWIG_From_int(static_cast< int >(result));
25135 return resultobj;
25136 fail:
25137 return NULL;
25138 }
25139
25140
25141 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25142 PyObject *resultobj = 0;
25143 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25144 int result;
25145 void *argp1 = 0 ;
25146 int res1 = 0 ;
25147 PyObject *swig_obj[1] ;
25148
25149 if (!args) SWIG_fail;
25150 swig_obj[0] = args;
25151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25152 if (!SWIG_IsOK(res1)) {
25153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25154 }
25155 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = (int)(arg1)->GetMaxCols();
25159 wxPyEndAllowThreads(__tstate);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 resultobj = SWIG_From_int(static_cast< int >(result));
25163 return resultobj;
25164 fail:
25165 return NULL;
25166 }
25167
25168
25169 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25170 PyObject *resultobj = 0;
25171 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25172 wxSize *arg2 = 0 ;
25173 void *argp1 = 0 ;
25174 int res1 = 0 ;
25175 wxSize temp2 ;
25176 PyObject * obj0 = 0 ;
25177 PyObject * obj1 = 0 ;
25178 char * kwnames[] = {
25179 (char *) "self",(char *) "size", NULL
25180 };
25181
25182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25184 if (!SWIG_IsOK(res1)) {
25185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25186 }
25187 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25188 {
25189 arg2 = &temp2;
25190 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25191 }
25192 {
25193 PyThreadState* __tstate = wxPyBeginAllowThreads();
25194 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25195 wxPyEndAllowThreads(__tstate);
25196 if (PyErr_Occurred()) SWIG_fail;
25197 }
25198 resultobj = SWIG_Py_Void();
25199 return resultobj;
25200 fail:
25201 return NULL;
25202 }
25203
25204
25205 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25206 PyObject *resultobj = 0;
25207 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25208 wxSize result;
25209 void *argp1 = 0 ;
25210 int res1 = 0 ;
25211 PyObject *swig_obj[1] ;
25212
25213 if (!args) SWIG_fail;
25214 swig_obj[0] = args;
25215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25216 if (!SWIG_IsOK(res1)) {
25217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25218 }
25219 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25220 {
25221 PyThreadState* __tstate = wxPyBeginAllowThreads();
25222 result = (arg1)->GetToolBitmapSize();
25223 wxPyEndAllowThreads(__tstate);
25224 if (PyErr_Occurred()) SWIG_fail;
25225 }
25226 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25227 return resultobj;
25228 fail:
25229 return NULL;
25230 }
25231
25232
25233 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25234 PyObject *resultobj = 0;
25235 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25236 wxSize result;
25237 void *argp1 = 0 ;
25238 int res1 = 0 ;
25239 PyObject *swig_obj[1] ;
25240
25241 if (!args) SWIG_fail;
25242 swig_obj[0] = args;
25243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25244 if (!SWIG_IsOK(res1)) {
25245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25246 }
25247 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 result = (arg1)->GetToolSize();
25251 wxPyEndAllowThreads(__tstate);
25252 if (PyErr_Occurred()) SWIG_fail;
25253 }
25254 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25255 return resultobj;
25256 fail:
25257 return NULL;
25258 }
25259
25260
25261 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25262 PyObject *resultobj = 0;
25263 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25264 int arg2 ;
25265 int arg3 ;
25266 wxToolBarToolBase *result = 0 ;
25267 void *argp1 = 0 ;
25268 int res1 = 0 ;
25269 int val2 ;
25270 int ecode2 = 0 ;
25271 int val3 ;
25272 int ecode3 = 0 ;
25273 PyObject * obj0 = 0 ;
25274 PyObject * obj1 = 0 ;
25275 PyObject * obj2 = 0 ;
25276 char * kwnames[] = {
25277 (char *) "self",(char *) "x",(char *) "y", NULL
25278 };
25279
25280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25282 if (!SWIG_IsOK(res1)) {
25283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25284 }
25285 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25286 ecode2 = SWIG_AsVal_int(obj1, &val2);
25287 if (!SWIG_IsOK(ecode2)) {
25288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25289 }
25290 arg2 = static_cast< int >(val2);
25291 ecode3 = SWIG_AsVal_int(obj2, &val3);
25292 if (!SWIG_IsOK(ecode3)) {
25293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25294 }
25295 arg3 = static_cast< int >(val3);
25296 {
25297 PyThreadState* __tstate = wxPyBeginAllowThreads();
25298 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25299 wxPyEndAllowThreads(__tstate);
25300 if (PyErr_Occurred()) SWIG_fail;
25301 }
25302 {
25303 resultobj = wxPyMake_wxObject(result, (bool)0);
25304 }
25305 return resultobj;
25306 fail:
25307 return NULL;
25308 }
25309
25310
25311 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25312 PyObject *resultobj = 0;
25313 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25314 int arg2 ;
25315 wxToolBarToolBase *result = 0 ;
25316 void *argp1 = 0 ;
25317 int res1 = 0 ;
25318 int val2 ;
25319 int ecode2 = 0 ;
25320 PyObject * obj0 = 0 ;
25321 PyObject * obj1 = 0 ;
25322 char * kwnames[] = {
25323 (char *) "self",(char *) "toolid", NULL
25324 };
25325
25326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25328 if (!SWIG_IsOK(res1)) {
25329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25330 }
25331 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25332 ecode2 = SWIG_AsVal_int(obj1, &val2);
25333 if (!SWIG_IsOK(ecode2)) {
25334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25335 }
25336 arg2 = static_cast< int >(val2);
25337 {
25338 PyThreadState* __tstate = wxPyBeginAllowThreads();
25339 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25340 wxPyEndAllowThreads(__tstate);
25341 if (PyErr_Occurred()) SWIG_fail;
25342 }
25343 {
25344 resultobj = wxPyMake_wxObject(result, (bool)0);
25345 }
25346 return resultobj;
25347 fail:
25348 return NULL;
25349 }
25350
25351
25352 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25353 PyObject *resultobj = 0;
25354 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25355 bool result;
25356 void *argp1 = 0 ;
25357 int res1 = 0 ;
25358 PyObject *swig_obj[1] ;
25359
25360 if (!args) SWIG_fail;
25361 swig_obj[0] = args;
25362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25363 if (!SWIG_IsOK(res1)) {
25364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25365 }
25366 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25367 {
25368 PyThreadState* __tstate = wxPyBeginAllowThreads();
25369 result = (bool)(arg1)->IsVertical();
25370 wxPyEndAllowThreads(__tstate);
25371 if (PyErr_Occurred()) SWIG_fail;
25372 }
25373 {
25374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25375 }
25376 return resultobj;
25377 fail:
25378 return NULL;
25379 }
25380
25381
25382 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25383 PyObject *resultobj = 0;
25384 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25385 size_t result;
25386 void *argp1 = 0 ;
25387 int res1 = 0 ;
25388 PyObject *swig_obj[1] ;
25389
25390 if (!args) SWIG_fail;
25391 swig_obj[0] = args;
25392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25393 if (!SWIG_IsOK(res1)) {
25394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25395 }
25396 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25397 {
25398 PyThreadState* __tstate = wxPyBeginAllowThreads();
25399 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25400 wxPyEndAllowThreads(__tstate);
25401 if (PyErr_Occurred()) SWIG_fail;
25402 }
25403 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25404 return resultobj;
25405 fail:
25406 return NULL;
25407 }
25408
25409
25410 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25411 PyObject *obj;
25412 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25413 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25414 return SWIG_Py_Void();
25415 }
25416
25417 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj = 0;
25419 wxWindow *arg1 = (wxWindow *) 0 ;
25420 int arg2 = (int) -1 ;
25421 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25422 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25423 wxSize const &arg4_defvalue = wxDefaultSize ;
25424 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25425 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25426 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25427 wxString *arg6 = (wxString *) &arg6_defvalue ;
25428 wxToolBar *result = 0 ;
25429 void *argp1 = 0 ;
25430 int res1 = 0 ;
25431 int val2 ;
25432 int ecode2 = 0 ;
25433 wxPoint temp3 ;
25434 wxSize temp4 ;
25435 long val5 ;
25436 int ecode5 = 0 ;
25437 bool temp6 = false ;
25438 PyObject * obj0 = 0 ;
25439 PyObject * obj1 = 0 ;
25440 PyObject * obj2 = 0 ;
25441 PyObject * obj3 = 0 ;
25442 PyObject * obj4 = 0 ;
25443 PyObject * obj5 = 0 ;
25444 char * kwnames[] = {
25445 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25446 };
25447
25448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25450 if (!SWIG_IsOK(res1)) {
25451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25452 }
25453 arg1 = reinterpret_cast< wxWindow * >(argp1);
25454 if (obj1) {
25455 ecode2 = SWIG_AsVal_int(obj1, &val2);
25456 if (!SWIG_IsOK(ecode2)) {
25457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25458 }
25459 arg2 = static_cast< int >(val2);
25460 }
25461 if (obj2) {
25462 {
25463 arg3 = &temp3;
25464 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25465 }
25466 }
25467 if (obj3) {
25468 {
25469 arg4 = &temp4;
25470 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25471 }
25472 }
25473 if (obj4) {
25474 ecode5 = SWIG_AsVal_long(obj4, &val5);
25475 if (!SWIG_IsOK(ecode5)) {
25476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25477 }
25478 arg5 = static_cast< long >(val5);
25479 }
25480 if (obj5) {
25481 {
25482 arg6 = wxString_in_helper(obj5);
25483 if (arg6 == NULL) SWIG_fail;
25484 temp6 = true;
25485 }
25486 }
25487 {
25488 if (!wxPyCheckForApp()) SWIG_fail;
25489 PyThreadState* __tstate = wxPyBeginAllowThreads();
25490 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25491 wxPyEndAllowThreads(__tstate);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25495 {
25496 if (temp6)
25497 delete arg6;
25498 }
25499 return resultobj;
25500 fail:
25501 {
25502 if (temp6)
25503 delete arg6;
25504 }
25505 return NULL;
25506 }
25507
25508
25509 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25510 PyObject *resultobj = 0;
25511 wxToolBar *result = 0 ;
25512
25513 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25514 {
25515 if (!wxPyCheckForApp()) SWIG_fail;
25516 PyThreadState* __tstate = wxPyBeginAllowThreads();
25517 result = (wxToolBar *)new wxToolBar();
25518 wxPyEndAllowThreads(__tstate);
25519 if (PyErr_Occurred()) SWIG_fail;
25520 }
25521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25522 return resultobj;
25523 fail:
25524 return NULL;
25525 }
25526
25527
25528 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25529 PyObject *resultobj = 0;
25530 wxToolBar *arg1 = (wxToolBar *) 0 ;
25531 wxWindow *arg2 = (wxWindow *) 0 ;
25532 int arg3 = (int) -1 ;
25533 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25534 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25535 wxSize const &arg5_defvalue = wxDefaultSize ;
25536 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25537 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25538 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25539 wxString *arg7 = (wxString *) &arg7_defvalue ;
25540 bool result;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 void *argp2 = 0 ;
25544 int res2 = 0 ;
25545 int val3 ;
25546 int ecode3 = 0 ;
25547 wxPoint temp4 ;
25548 wxSize temp5 ;
25549 long val6 ;
25550 int ecode6 = 0 ;
25551 bool temp7 = false ;
25552 PyObject * obj0 = 0 ;
25553 PyObject * obj1 = 0 ;
25554 PyObject * obj2 = 0 ;
25555 PyObject * obj3 = 0 ;
25556 PyObject * obj4 = 0 ;
25557 PyObject * obj5 = 0 ;
25558 PyObject * obj6 = 0 ;
25559 char * kwnames[] = {
25560 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25561 };
25562
25563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25567 }
25568 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25570 if (!SWIG_IsOK(res2)) {
25571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25572 }
25573 arg2 = reinterpret_cast< wxWindow * >(argp2);
25574 if (obj2) {
25575 ecode3 = SWIG_AsVal_int(obj2, &val3);
25576 if (!SWIG_IsOK(ecode3)) {
25577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25578 }
25579 arg3 = static_cast< int >(val3);
25580 }
25581 if (obj3) {
25582 {
25583 arg4 = &temp4;
25584 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25585 }
25586 }
25587 if (obj4) {
25588 {
25589 arg5 = &temp5;
25590 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25591 }
25592 }
25593 if (obj5) {
25594 ecode6 = SWIG_AsVal_long(obj5, &val6);
25595 if (!SWIG_IsOK(ecode6)) {
25596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25597 }
25598 arg6 = static_cast< long >(val6);
25599 }
25600 if (obj6) {
25601 {
25602 arg7 = wxString_in_helper(obj6);
25603 if (arg7 == NULL) SWIG_fail;
25604 temp7 = true;
25605 }
25606 }
25607 {
25608 PyThreadState* __tstate = wxPyBeginAllowThreads();
25609 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25610 wxPyEndAllowThreads(__tstate);
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 {
25614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25615 }
25616 {
25617 if (temp7)
25618 delete arg7;
25619 }
25620 return resultobj;
25621 fail:
25622 {
25623 if (temp7)
25624 delete arg7;
25625 }
25626 return NULL;
25627 }
25628
25629
25630 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25631 PyObject *resultobj = 0;
25632 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25633 SwigValueWrapper<wxVisualAttributes > result;
25634 int val1 ;
25635 int ecode1 = 0 ;
25636 PyObject * obj0 = 0 ;
25637 char * kwnames[] = {
25638 (char *) "variant", NULL
25639 };
25640
25641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25642 if (obj0) {
25643 ecode1 = SWIG_AsVal_int(obj0, &val1);
25644 if (!SWIG_IsOK(ecode1)) {
25645 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25646 }
25647 arg1 = static_cast< wxWindowVariant >(val1);
25648 }
25649 {
25650 if (!wxPyCheckForApp()) SWIG_fail;
25651 PyThreadState* __tstate = wxPyBeginAllowThreads();
25652 result = wxToolBar::GetClassDefaultAttributes(arg1);
25653 wxPyEndAllowThreads(__tstate);
25654 if (PyErr_Occurred()) SWIG_fail;
25655 }
25656 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25657 return resultobj;
25658 fail:
25659 return NULL;
25660 }
25661
25662
25663 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25664 PyObject *obj;
25665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25666 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25667 return SWIG_Py_Void();
25668 }
25669
25670 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25671 return SWIG_Python_InitShadowInstance(args);
25672 }
25673
25674 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25675 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25676 return 1;
25677 }
25678
25679
25680 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25681 PyObject *pyobj = 0;
25682
25683 {
25684 #if wxUSE_UNICODE
25685 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25686 #else
25687 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25688 #endif
25689 }
25690 return pyobj;
25691 }
25692
25693
25694 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25695 PyObject *resultobj = 0;
25696 wxColour const &arg1_defvalue = wxNullColour ;
25697 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25698 wxColour const &arg2_defvalue = wxNullColour ;
25699 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25700 wxFont const &arg3_defvalue = wxNullFont ;
25701 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25702 wxListItemAttr *result = 0 ;
25703 wxColour temp1 ;
25704 wxColour temp2 ;
25705 void *argp3 = 0 ;
25706 int res3 = 0 ;
25707 PyObject * obj0 = 0 ;
25708 PyObject * obj1 = 0 ;
25709 PyObject * obj2 = 0 ;
25710 char * kwnames[] = {
25711 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25712 };
25713
25714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25715 if (obj0) {
25716 {
25717 arg1 = &temp1;
25718 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25719 }
25720 }
25721 if (obj1) {
25722 {
25723 arg2 = &temp2;
25724 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25725 }
25726 }
25727 if (obj2) {
25728 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25729 if (!SWIG_IsOK(res3)) {
25730 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25731 }
25732 if (!argp3) {
25733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25734 }
25735 arg3 = reinterpret_cast< wxFont * >(argp3);
25736 }
25737 {
25738 PyThreadState* __tstate = wxPyBeginAllowThreads();
25739 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25740 wxPyEndAllowThreads(__tstate);
25741 if (PyErr_Occurred()) SWIG_fail;
25742 }
25743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25744 return resultobj;
25745 fail:
25746 return NULL;
25747 }
25748
25749
25750 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25751 PyObject *resultobj = 0;
25752 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25753 void *argp1 = 0 ;
25754 int res1 = 0 ;
25755 PyObject *swig_obj[1] ;
25756
25757 if (!args) SWIG_fail;
25758 swig_obj[0] = args;
25759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25760 if (!SWIG_IsOK(res1)) {
25761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25762 }
25763 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25764 {
25765 PyThreadState* __tstate = wxPyBeginAllowThreads();
25766 delete arg1;
25767
25768 wxPyEndAllowThreads(__tstate);
25769 if (PyErr_Occurred()) SWIG_fail;
25770 }
25771 resultobj = SWIG_Py_Void();
25772 return resultobj;
25773 fail:
25774 return NULL;
25775 }
25776
25777
25778 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25779 PyObject *resultobj = 0;
25780 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25781 wxColour *arg2 = 0 ;
25782 void *argp1 = 0 ;
25783 int res1 = 0 ;
25784 wxColour temp2 ;
25785 PyObject * obj0 = 0 ;
25786 PyObject * obj1 = 0 ;
25787 char * kwnames[] = {
25788 (char *) "self",(char *) "colText", NULL
25789 };
25790
25791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25793 if (!SWIG_IsOK(res1)) {
25794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25795 }
25796 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25797 {
25798 arg2 = &temp2;
25799 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25800 }
25801 {
25802 PyThreadState* __tstate = wxPyBeginAllowThreads();
25803 (arg1)->SetTextColour((wxColour const &)*arg2);
25804 wxPyEndAllowThreads(__tstate);
25805 if (PyErr_Occurred()) SWIG_fail;
25806 }
25807 resultobj = SWIG_Py_Void();
25808 return resultobj;
25809 fail:
25810 return NULL;
25811 }
25812
25813
25814 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25815 PyObject *resultobj = 0;
25816 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25817 wxColour *arg2 = 0 ;
25818 void *argp1 = 0 ;
25819 int res1 = 0 ;
25820 wxColour temp2 ;
25821 PyObject * obj0 = 0 ;
25822 PyObject * obj1 = 0 ;
25823 char * kwnames[] = {
25824 (char *) "self",(char *) "colBack", NULL
25825 };
25826
25827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25829 if (!SWIG_IsOK(res1)) {
25830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25831 }
25832 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25833 {
25834 arg2 = &temp2;
25835 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25836 }
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25840 wxPyEndAllowThreads(__tstate);
25841 if (PyErr_Occurred()) SWIG_fail;
25842 }
25843 resultobj = SWIG_Py_Void();
25844 return resultobj;
25845 fail:
25846 return NULL;
25847 }
25848
25849
25850 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25851 PyObject *resultobj = 0;
25852 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25853 wxFont *arg2 = 0 ;
25854 void *argp1 = 0 ;
25855 int res1 = 0 ;
25856 void *argp2 = 0 ;
25857 int res2 = 0 ;
25858 PyObject * obj0 = 0 ;
25859 PyObject * obj1 = 0 ;
25860 char * kwnames[] = {
25861 (char *) "self",(char *) "font", NULL
25862 };
25863
25864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25866 if (!SWIG_IsOK(res1)) {
25867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25868 }
25869 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25871 if (!SWIG_IsOK(res2)) {
25872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25873 }
25874 if (!argp2) {
25875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25876 }
25877 arg2 = reinterpret_cast< wxFont * >(argp2);
25878 {
25879 PyThreadState* __tstate = wxPyBeginAllowThreads();
25880 (arg1)->SetFont((wxFont const &)*arg2);
25881 wxPyEndAllowThreads(__tstate);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
25884 resultobj = SWIG_Py_Void();
25885 return resultobj;
25886 fail:
25887 return NULL;
25888 }
25889
25890
25891 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25892 PyObject *resultobj = 0;
25893 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25894 bool result;
25895 void *argp1 = 0 ;
25896 int res1 = 0 ;
25897 PyObject *swig_obj[1] ;
25898
25899 if (!args) SWIG_fail;
25900 swig_obj[0] = args;
25901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25902 if (!SWIG_IsOK(res1)) {
25903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25904 }
25905 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25906 {
25907 PyThreadState* __tstate = wxPyBeginAllowThreads();
25908 result = (bool)(arg1)->HasTextColour();
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 {
25913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25914 }
25915 return resultobj;
25916 fail:
25917 return NULL;
25918 }
25919
25920
25921 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25922 PyObject *resultobj = 0;
25923 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25924 bool result;
25925 void *argp1 = 0 ;
25926 int res1 = 0 ;
25927 PyObject *swig_obj[1] ;
25928
25929 if (!args) SWIG_fail;
25930 swig_obj[0] = args;
25931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25932 if (!SWIG_IsOK(res1)) {
25933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25934 }
25935 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25936 {
25937 PyThreadState* __tstate = wxPyBeginAllowThreads();
25938 result = (bool)(arg1)->HasBackgroundColour();
25939 wxPyEndAllowThreads(__tstate);
25940 if (PyErr_Occurred()) SWIG_fail;
25941 }
25942 {
25943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25944 }
25945 return resultobj;
25946 fail:
25947 return NULL;
25948 }
25949
25950
25951 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25952 PyObject *resultobj = 0;
25953 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25954 bool result;
25955 void *argp1 = 0 ;
25956 int res1 = 0 ;
25957 PyObject *swig_obj[1] ;
25958
25959 if (!args) SWIG_fail;
25960 swig_obj[0] = args;
25961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25962 if (!SWIG_IsOK(res1)) {
25963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25964 }
25965 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25966 {
25967 PyThreadState* __tstate = wxPyBeginAllowThreads();
25968 result = (bool)(arg1)->HasFont();
25969 wxPyEndAllowThreads(__tstate);
25970 if (PyErr_Occurred()) SWIG_fail;
25971 }
25972 {
25973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25974 }
25975 return resultobj;
25976 fail:
25977 return NULL;
25978 }
25979
25980
25981 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25982 PyObject *resultobj = 0;
25983 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25984 wxColour result;
25985 void *argp1 = 0 ;
25986 int res1 = 0 ;
25987 PyObject *swig_obj[1] ;
25988
25989 if (!args) SWIG_fail;
25990 swig_obj[0] = args;
25991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25992 if (!SWIG_IsOK(res1)) {
25993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25994 }
25995 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25996 {
25997 PyThreadState* __tstate = wxPyBeginAllowThreads();
25998 result = (arg1)->GetTextColour();
25999 wxPyEndAllowThreads(__tstate);
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26003 return resultobj;
26004 fail:
26005 return NULL;
26006 }
26007
26008
26009 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26010 PyObject *resultobj = 0;
26011 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26012 wxColour result;
26013 void *argp1 = 0 ;
26014 int res1 = 0 ;
26015 PyObject *swig_obj[1] ;
26016
26017 if (!args) SWIG_fail;
26018 swig_obj[0] = args;
26019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26020 if (!SWIG_IsOK(res1)) {
26021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26022 }
26023 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26024 {
26025 PyThreadState* __tstate = wxPyBeginAllowThreads();
26026 result = (arg1)->GetBackgroundColour();
26027 wxPyEndAllowThreads(__tstate);
26028 if (PyErr_Occurred()) SWIG_fail;
26029 }
26030 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26031 return resultobj;
26032 fail:
26033 return NULL;
26034 }
26035
26036
26037 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26038 PyObject *resultobj = 0;
26039 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26040 wxFont result;
26041 void *argp1 = 0 ;
26042 int res1 = 0 ;
26043 PyObject *swig_obj[1] ;
26044
26045 if (!args) SWIG_fail;
26046 swig_obj[0] = args;
26047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26048 if (!SWIG_IsOK(res1)) {
26049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26050 }
26051 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26052 {
26053 PyThreadState* __tstate = wxPyBeginAllowThreads();
26054 result = (arg1)->GetFont();
26055 wxPyEndAllowThreads(__tstate);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26059 return resultobj;
26060 fail:
26061 return NULL;
26062 }
26063
26064
26065 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26066 PyObject *resultobj = 0;
26067 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26068 wxListItemAttr *arg2 = 0 ;
26069 void *argp1 = 0 ;
26070 int res1 = 0 ;
26071 void *argp2 = 0 ;
26072 int res2 = 0 ;
26073 PyObject * obj0 = 0 ;
26074 PyObject * obj1 = 0 ;
26075 char * kwnames[] = {
26076 (char *) "self",(char *) "source", NULL
26077 };
26078
26079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26081 if (!SWIG_IsOK(res1)) {
26082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26083 }
26084 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26086 if (!SWIG_IsOK(res2)) {
26087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26088 }
26089 if (!argp2) {
26090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26091 }
26092 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26093 {
26094 PyThreadState* __tstate = wxPyBeginAllowThreads();
26095 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26096 wxPyEndAllowThreads(__tstate);
26097 if (PyErr_Occurred()) SWIG_fail;
26098 }
26099 resultobj = SWIG_Py_Void();
26100 return resultobj;
26101 fail:
26102 return NULL;
26103 }
26104
26105
26106 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26107 PyObject *resultobj = 0;
26108 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26109 void *argp1 = 0 ;
26110 int res1 = 0 ;
26111 PyObject *swig_obj[1] ;
26112
26113 if (!args) SWIG_fail;
26114 swig_obj[0] = args;
26115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26116 if (!SWIG_IsOK(res1)) {
26117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26118 }
26119 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26120 {
26121 PyThreadState* __tstate = wxPyBeginAllowThreads();
26122 wxListItemAttr_Destroy(arg1);
26123 wxPyEndAllowThreads(__tstate);
26124 if (PyErr_Occurred()) SWIG_fail;
26125 }
26126 resultobj = SWIG_Py_Void();
26127 return resultobj;
26128 fail:
26129 return NULL;
26130 }
26131
26132
26133 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26134 PyObject *obj;
26135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26136 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26137 return SWIG_Py_Void();
26138 }
26139
26140 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26141 return SWIG_Python_InitShadowInstance(args);
26142 }
26143
26144 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26145 PyObject *resultobj = 0;
26146 wxListItem *result = 0 ;
26147
26148 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26149 {
26150 PyThreadState* __tstate = wxPyBeginAllowThreads();
26151 result = (wxListItem *)new wxListItem();
26152 wxPyEndAllowThreads(__tstate);
26153 if (PyErr_Occurred()) SWIG_fail;
26154 }
26155 {
26156 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26157 }
26158 return resultobj;
26159 fail:
26160 return NULL;
26161 }
26162
26163
26164 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26165 PyObject *resultobj = 0;
26166 wxListItem *arg1 = (wxListItem *) 0 ;
26167 void *argp1 = 0 ;
26168 int res1 = 0 ;
26169 PyObject *swig_obj[1] ;
26170
26171 if (!args) SWIG_fail;
26172 swig_obj[0] = args;
26173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26174 if (!SWIG_IsOK(res1)) {
26175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26176 }
26177 arg1 = reinterpret_cast< wxListItem * >(argp1);
26178 {
26179 PyThreadState* __tstate = wxPyBeginAllowThreads();
26180 delete arg1;
26181
26182 wxPyEndAllowThreads(__tstate);
26183 if (PyErr_Occurred()) SWIG_fail;
26184 }
26185 resultobj = SWIG_Py_Void();
26186 return resultobj;
26187 fail:
26188 return NULL;
26189 }
26190
26191
26192 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26193 PyObject *resultobj = 0;
26194 wxListItem *arg1 = (wxListItem *) 0 ;
26195 void *argp1 = 0 ;
26196 int res1 = 0 ;
26197 PyObject *swig_obj[1] ;
26198
26199 if (!args) SWIG_fail;
26200 swig_obj[0] = args;
26201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26202 if (!SWIG_IsOK(res1)) {
26203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26204 }
26205 arg1 = reinterpret_cast< wxListItem * >(argp1);
26206 {
26207 PyThreadState* __tstate = wxPyBeginAllowThreads();
26208 (arg1)->Clear();
26209 wxPyEndAllowThreads(__tstate);
26210 if (PyErr_Occurred()) SWIG_fail;
26211 }
26212 resultobj = SWIG_Py_Void();
26213 return resultobj;
26214 fail:
26215 return NULL;
26216 }
26217
26218
26219 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26220 PyObject *resultobj = 0;
26221 wxListItem *arg1 = (wxListItem *) 0 ;
26222 void *argp1 = 0 ;
26223 int res1 = 0 ;
26224 PyObject *swig_obj[1] ;
26225
26226 if (!args) SWIG_fail;
26227 swig_obj[0] = args;
26228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26229 if (!SWIG_IsOK(res1)) {
26230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26231 }
26232 arg1 = reinterpret_cast< wxListItem * >(argp1);
26233 {
26234 PyThreadState* __tstate = wxPyBeginAllowThreads();
26235 (arg1)->ClearAttributes();
26236 wxPyEndAllowThreads(__tstate);
26237 if (PyErr_Occurred()) SWIG_fail;
26238 }
26239 resultobj = SWIG_Py_Void();
26240 return resultobj;
26241 fail:
26242 return NULL;
26243 }
26244
26245
26246 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26247 PyObject *resultobj = 0;
26248 wxListItem *arg1 = (wxListItem *) 0 ;
26249 long arg2 ;
26250 void *argp1 = 0 ;
26251 int res1 = 0 ;
26252 long val2 ;
26253 int ecode2 = 0 ;
26254 PyObject * obj0 = 0 ;
26255 PyObject * obj1 = 0 ;
26256 char * kwnames[] = {
26257 (char *) "self",(char *) "mask", NULL
26258 };
26259
26260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26262 if (!SWIG_IsOK(res1)) {
26263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26264 }
26265 arg1 = reinterpret_cast< wxListItem * >(argp1);
26266 ecode2 = SWIG_AsVal_long(obj1, &val2);
26267 if (!SWIG_IsOK(ecode2)) {
26268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26269 }
26270 arg2 = static_cast< long >(val2);
26271 {
26272 PyThreadState* __tstate = wxPyBeginAllowThreads();
26273 (arg1)->SetMask(arg2);
26274 wxPyEndAllowThreads(__tstate);
26275 if (PyErr_Occurred()) SWIG_fail;
26276 }
26277 resultobj = SWIG_Py_Void();
26278 return resultobj;
26279 fail:
26280 return NULL;
26281 }
26282
26283
26284 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26285 PyObject *resultobj = 0;
26286 wxListItem *arg1 = (wxListItem *) 0 ;
26287 long arg2 ;
26288 void *argp1 = 0 ;
26289 int res1 = 0 ;
26290 long val2 ;
26291 int ecode2 = 0 ;
26292 PyObject * obj0 = 0 ;
26293 PyObject * obj1 = 0 ;
26294 char * kwnames[] = {
26295 (char *) "self",(char *) "id", NULL
26296 };
26297
26298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26300 if (!SWIG_IsOK(res1)) {
26301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26302 }
26303 arg1 = reinterpret_cast< wxListItem * >(argp1);
26304 ecode2 = SWIG_AsVal_long(obj1, &val2);
26305 if (!SWIG_IsOK(ecode2)) {
26306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26307 }
26308 arg2 = static_cast< long >(val2);
26309 {
26310 PyThreadState* __tstate = wxPyBeginAllowThreads();
26311 (arg1)->SetId(arg2);
26312 wxPyEndAllowThreads(__tstate);
26313 if (PyErr_Occurred()) SWIG_fail;
26314 }
26315 resultobj = SWIG_Py_Void();
26316 return resultobj;
26317 fail:
26318 return NULL;
26319 }
26320
26321
26322 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26323 PyObject *resultobj = 0;
26324 wxListItem *arg1 = (wxListItem *) 0 ;
26325 int arg2 ;
26326 void *argp1 = 0 ;
26327 int res1 = 0 ;
26328 int val2 ;
26329 int ecode2 = 0 ;
26330 PyObject * obj0 = 0 ;
26331 PyObject * obj1 = 0 ;
26332 char * kwnames[] = {
26333 (char *) "self",(char *) "col", NULL
26334 };
26335
26336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26338 if (!SWIG_IsOK(res1)) {
26339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26340 }
26341 arg1 = reinterpret_cast< wxListItem * >(argp1);
26342 ecode2 = SWIG_AsVal_int(obj1, &val2);
26343 if (!SWIG_IsOK(ecode2)) {
26344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26345 }
26346 arg2 = static_cast< int >(val2);
26347 {
26348 PyThreadState* __tstate = wxPyBeginAllowThreads();
26349 (arg1)->SetColumn(arg2);
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_Py_Void();
26354 return resultobj;
26355 fail:
26356 return NULL;
26357 }
26358
26359
26360 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26361 PyObject *resultobj = 0;
26362 wxListItem *arg1 = (wxListItem *) 0 ;
26363 long arg2 ;
26364 void *argp1 = 0 ;
26365 int res1 = 0 ;
26366 long val2 ;
26367 int ecode2 = 0 ;
26368 PyObject * obj0 = 0 ;
26369 PyObject * obj1 = 0 ;
26370 char * kwnames[] = {
26371 (char *) "self",(char *) "state", NULL
26372 };
26373
26374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26376 if (!SWIG_IsOK(res1)) {
26377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26378 }
26379 arg1 = reinterpret_cast< wxListItem * >(argp1);
26380 ecode2 = SWIG_AsVal_long(obj1, &val2);
26381 if (!SWIG_IsOK(ecode2)) {
26382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26383 }
26384 arg2 = static_cast< long >(val2);
26385 {
26386 PyThreadState* __tstate = wxPyBeginAllowThreads();
26387 (arg1)->SetState(arg2);
26388 wxPyEndAllowThreads(__tstate);
26389 if (PyErr_Occurred()) SWIG_fail;
26390 }
26391 resultobj = SWIG_Py_Void();
26392 return resultobj;
26393 fail:
26394 return NULL;
26395 }
26396
26397
26398 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26399 PyObject *resultobj = 0;
26400 wxListItem *arg1 = (wxListItem *) 0 ;
26401 long arg2 ;
26402 void *argp1 = 0 ;
26403 int res1 = 0 ;
26404 long val2 ;
26405 int ecode2 = 0 ;
26406 PyObject * obj0 = 0 ;
26407 PyObject * obj1 = 0 ;
26408 char * kwnames[] = {
26409 (char *) "self",(char *) "stateMask", NULL
26410 };
26411
26412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26414 if (!SWIG_IsOK(res1)) {
26415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26416 }
26417 arg1 = reinterpret_cast< wxListItem * >(argp1);
26418 ecode2 = SWIG_AsVal_long(obj1, &val2);
26419 if (!SWIG_IsOK(ecode2)) {
26420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26421 }
26422 arg2 = static_cast< long >(val2);
26423 {
26424 PyThreadState* __tstate = wxPyBeginAllowThreads();
26425 (arg1)->SetStateMask(arg2);
26426 wxPyEndAllowThreads(__tstate);
26427 if (PyErr_Occurred()) SWIG_fail;
26428 }
26429 resultobj = SWIG_Py_Void();
26430 return resultobj;
26431 fail:
26432 return NULL;
26433 }
26434
26435
26436 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26437 PyObject *resultobj = 0;
26438 wxListItem *arg1 = (wxListItem *) 0 ;
26439 wxString *arg2 = 0 ;
26440 void *argp1 = 0 ;
26441 int res1 = 0 ;
26442 bool temp2 = false ;
26443 PyObject * obj0 = 0 ;
26444 PyObject * obj1 = 0 ;
26445 char * kwnames[] = {
26446 (char *) "self",(char *) "text", NULL
26447 };
26448
26449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26451 if (!SWIG_IsOK(res1)) {
26452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26453 }
26454 arg1 = reinterpret_cast< wxListItem * >(argp1);
26455 {
26456 arg2 = wxString_in_helper(obj1);
26457 if (arg2 == NULL) SWIG_fail;
26458 temp2 = true;
26459 }
26460 {
26461 PyThreadState* __tstate = wxPyBeginAllowThreads();
26462 (arg1)->SetText((wxString const &)*arg2);
26463 wxPyEndAllowThreads(__tstate);
26464 if (PyErr_Occurred()) SWIG_fail;
26465 }
26466 resultobj = SWIG_Py_Void();
26467 {
26468 if (temp2)
26469 delete arg2;
26470 }
26471 return resultobj;
26472 fail:
26473 {
26474 if (temp2)
26475 delete arg2;
26476 }
26477 return NULL;
26478 }
26479
26480
26481 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26482 PyObject *resultobj = 0;
26483 wxListItem *arg1 = (wxListItem *) 0 ;
26484 int arg2 ;
26485 void *argp1 = 0 ;
26486 int res1 = 0 ;
26487 int val2 ;
26488 int ecode2 = 0 ;
26489 PyObject * obj0 = 0 ;
26490 PyObject * obj1 = 0 ;
26491 char * kwnames[] = {
26492 (char *) "self",(char *) "image", NULL
26493 };
26494
26495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26497 if (!SWIG_IsOK(res1)) {
26498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26499 }
26500 arg1 = reinterpret_cast< wxListItem * >(argp1);
26501 ecode2 = SWIG_AsVal_int(obj1, &val2);
26502 if (!SWIG_IsOK(ecode2)) {
26503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26504 }
26505 arg2 = static_cast< int >(val2);
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 (arg1)->SetImage(arg2);
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_Py_Void();
26513 return resultobj;
26514 fail:
26515 return NULL;
26516 }
26517
26518
26519 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj = 0;
26521 wxListItem *arg1 = (wxListItem *) 0 ;
26522 long arg2 ;
26523 void *argp1 = 0 ;
26524 int res1 = 0 ;
26525 long val2 ;
26526 int ecode2 = 0 ;
26527 PyObject * obj0 = 0 ;
26528 PyObject * obj1 = 0 ;
26529 char * kwnames[] = {
26530 (char *) "self",(char *) "data", NULL
26531 };
26532
26533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26535 if (!SWIG_IsOK(res1)) {
26536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26537 }
26538 arg1 = reinterpret_cast< wxListItem * >(argp1);
26539 ecode2 = SWIG_AsVal_long(obj1, &val2);
26540 if (!SWIG_IsOK(ecode2)) {
26541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26542 }
26543 arg2 = static_cast< long >(val2);
26544 {
26545 PyThreadState* __tstate = wxPyBeginAllowThreads();
26546 (arg1)->SetData(arg2);
26547 wxPyEndAllowThreads(__tstate);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 }
26550 resultobj = SWIG_Py_Void();
26551 return resultobj;
26552 fail:
26553 return NULL;
26554 }
26555
26556
26557 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26558 PyObject *resultobj = 0;
26559 wxListItem *arg1 = (wxListItem *) 0 ;
26560 int arg2 ;
26561 void *argp1 = 0 ;
26562 int res1 = 0 ;
26563 int val2 ;
26564 int ecode2 = 0 ;
26565 PyObject * obj0 = 0 ;
26566 PyObject * obj1 = 0 ;
26567 char * kwnames[] = {
26568 (char *) "self",(char *) "width", NULL
26569 };
26570
26571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26573 if (!SWIG_IsOK(res1)) {
26574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26575 }
26576 arg1 = reinterpret_cast< wxListItem * >(argp1);
26577 ecode2 = SWIG_AsVal_int(obj1, &val2);
26578 if (!SWIG_IsOK(ecode2)) {
26579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26580 }
26581 arg2 = static_cast< int >(val2);
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 (arg1)->SetWidth(arg2);
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_Py_Void();
26589 return resultobj;
26590 fail:
26591 return NULL;
26592 }
26593
26594
26595 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj = 0;
26597 wxListItem *arg1 = (wxListItem *) 0 ;
26598 wxListColumnFormat arg2 ;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 int val2 ;
26602 int ecode2 = 0 ;
26603 PyObject * obj0 = 0 ;
26604 PyObject * obj1 = 0 ;
26605 char * kwnames[] = {
26606 (char *) "self",(char *) "align", NULL
26607 };
26608
26609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26611 if (!SWIG_IsOK(res1)) {
26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26613 }
26614 arg1 = reinterpret_cast< wxListItem * >(argp1);
26615 ecode2 = SWIG_AsVal_int(obj1, &val2);
26616 if (!SWIG_IsOK(ecode2)) {
26617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26618 }
26619 arg2 = static_cast< wxListColumnFormat >(val2);
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
26622 (arg1)->SetAlign(arg2);
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_Py_Void();
26627 return resultobj;
26628 fail:
26629 return NULL;
26630 }
26631
26632
26633 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26634 PyObject *resultobj = 0;
26635 wxListItem *arg1 = (wxListItem *) 0 ;
26636 wxColour *arg2 = 0 ;
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
26639 wxColour temp2 ;
26640 PyObject * obj0 = 0 ;
26641 PyObject * obj1 = 0 ;
26642 char * kwnames[] = {
26643 (char *) "self",(char *) "colText", NULL
26644 };
26645
26646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26648 if (!SWIG_IsOK(res1)) {
26649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26650 }
26651 arg1 = reinterpret_cast< wxListItem * >(argp1);
26652 {
26653 arg2 = &temp2;
26654 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26655 }
26656 {
26657 PyThreadState* __tstate = wxPyBeginAllowThreads();
26658 (arg1)->SetTextColour((wxColour const &)*arg2);
26659 wxPyEndAllowThreads(__tstate);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_Py_Void();
26663 return resultobj;
26664 fail:
26665 return NULL;
26666 }
26667
26668
26669 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26670 PyObject *resultobj = 0;
26671 wxListItem *arg1 = (wxListItem *) 0 ;
26672 wxColour *arg2 = 0 ;
26673 void *argp1 = 0 ;
26674 int res1 = 0 ;
26675 wxColour temp2 ;
26676 PyObject * obj0 = 0 ;
26677 PyObject * obj1 = 0 ;
26678 char * kwnames[] = {
26679 (char *) "self",(char *) "colBack", NULL
26680 };
26681
26682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26684 if (!SWIG_IsOK(res1)) {
26685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26686 }
26687 arg1 = reinterpret_cast< wxListItem * >(argp1);
26688 {
26689 arg2 = &temp2;
26690 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26691 }
26692 {
26693 PyThreadState* __tstate = wxPyBeginAllowThreads();
26694 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26695 wxPyEndAllowThreads(__tstate);
26696 if (PyErr_Occurred()) SWIG_fail;
26697 }
26698 resultobj = SWIG_Py_Void();
26699 return resultobj;
26700 fail:
26701 return NULL;
26702 }
26703
26704
26705 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26706 PyObject *resultobj = 0;
26707 wxListItem *arg1 = (wxListItem *) 0 ;
26708 wxFont *arg2 = 0 ;
26709 void *argp1 = 0 ;
26710 int res1 = 0 ;
26711 void *argp2 = 0 ;
26712 int res2 = 0 ;
26713 PyObject * obj0 = 0 ;
26714 PyObject * obj1 = 0 ;
26715 char * kwnames[] = {
26716 (char *) "self",(char *) "font", NULL
26717 };
26718
26719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26721 if (!SWIG_IsOK(res1)) {
26722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26723 }
26724 arg1 = reinterpret_cast< wxListItem * >(argp1);
26725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26726 if (!SWIG_IsOK(res2)) {
26727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26728 }
26729 if (!argp2) {
26730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26731 }
26732 arg2 = reinterpret_cast< wxFont * >(argp2);
26733 {
26734 PyThreadState* __tstate = wxPyBeginAllowThreads();
26735 (arg1)->SetFont((wxFont const &)*arg2);
26736 wxPyEndAllowThreads(__tstate);
26737 if (PyErr_Occurred()) SWIG_fail;
26738 }
26739 resultobj = SWIG_Py_Void();
26740 return resultobj;
26741 fail:
26742 return NULL;
26743 }
26744
26745
26746 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26747 PyObject *resultobj = 0;
26748 wxListItem *arg1 = (wxListItem *) 0 ;
26749 long result;
26750 void *argp1 = 0 ;
26751 int res1 = 0 ;
26752 PyObject *swig_obj[1] ;
26753
26754 if (!args) SWIG_fail;
26755 swig_obj[0] = args;
26756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26757 if (!SWIG_IsOK(res1)) {
26758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26759 }
26760 arg1 = reinterpret_cast< wxListItem * >(argp1);
26761 {
26762 PyThreadState* __tstate = wxPyBeginAllowThreads();
26763 result = (long)(arg1)->GetMask();
26764 wxPyEndAllowThreads(__tstate);
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 resultobj = SWIG_From_long(static_cast< long >(result));
26768 return resultobj;
26769 fail:
26770 return NULL;
26771 }
26772
26773
26774 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26775 PyObject *resultobj = 0;
26776 wxListItem *arg1 = (wxListItem *) 0 ;
26777 long result;
26778 void *argp1 = 0 ;
26779 int res1 = 0 ;
26780 PyObject *swig_obj[1] ;
26781
26782 if (!args) SWIG_fail;
26783 swig_obj[0] = args;
26784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26785 if (!SWIG_IsOK(res1)) {
26786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26787 }
26788 arg1 = reinterpret_cast< wxListItem * >(argp1);
26789 {
26790 PyThreadState* __tstate = wxPyBeginAllowThreads();
26791 result = (long)(arg1)->GetId();
26792 wxPyEndAllowThreads(__tstate);
26793 if (PyErr_Occurred()) SWIG_fail;
26794 }
26795 resultobj = SWIG_From_long(static_cast< long >(result));
26796 return resultobj;
26797 fail:
26798 return NULL;
26799 }
26800
26801
26802 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26803 PyObject *resultobj = 0;
26804 wxListItem *arg1 = (wxListItem *) 0 ;
26805 int result;
26806 void *argp1 = 0 ;
26807 int res1 = 0 ;
26808 PyObject *swig_obj[1] ;
26809
26810 if (!args) SWIG_fail;
26811 swig_obj[0] = args;
26812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26813 if (!SWIG_IsOK(res1)) {
26814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26815 }
26816 arg1 = reinterpret_cast< wxListItem * >(argp1);
26817 {
26818 PyThreadState* __tstate = wxPyBeginAllowThreads();
26819 result = (int)(arg1)->GetColumn();
26820 wxPyEndAllowThreads(__tstate);
26821 if (PyErr_Occurred()) SWIG_fail;
26822 }
26823 resultobj = SWIG_From_int(static_cast< int >(result));
26824 return resultobj;
26825 fail:
26826 return NULL;
26827 }
26828
26829
26830 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26831 PyObject *resultobj = 0;
26832 wxListItem *arg1 = (wxListItem *) 0 ;
26833 long result;
26834 void *argp1 = 0 ;
26835 int res1 = 0 ;
26836 PyObject *swig_obj[1] ;
26837
26838 if (!args) SWIG_fail;
26839 swig_obj[0] = args;
26840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26841 if (!SWIG_IsOK(res1)) {
26842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26843 }
26844 arg1 = reinterpret_cast< wxListItem * >(argp1);
26845 {
26846 PyThreadState* __tstate = wxPyBeginAllowThreads();
26847 result = (long)(arg1)->GetState();
26848 wxPyEndAllowThreads(__tstate);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 resultobj = SWIG_From_long(static_cast< long >(result));
26852 return resultobj;
26853 fail:
26854 return NULL;
26855 }
26856
26857
26858 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26859 PyObject *resultobj = 0;
26860 wxListItem *arg1 = (wxListItem *) 0 ;
26861 wxString *result = 0 ;
26862 void *argp1 = 0 ;
26863 int res1 = 0 ;
26864 PyObject *swig_obj[1] ;
26865
26866 if (!args) SWIG_fail;
26867 swig_obj[0] = args;
26868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26869 if (!SWIG_IsOK(res1)) {
26870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26871 }
26872 arg1 = reinterpret_cast< wxListItem * >(argp1);
26873 {
26874 PyThreadState* __tstate = wxPyBeginAllowThreads();
26875 {
26876 wxString const &_result_ref = (arg1)->GetText();
26877 result = (wxString *) &_result_ref;
26878 }
26879 wxPyEndAllowThreads(__tstate);
26880 if (PyErr_Occurred()) SWIG_fail;
26881 }
26882 {
26883 #if wxUSE_UNICODE
26884 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26885 #else
26886 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26887 #endif
26888 }
26889 return resultobj;
26890 fail:
26891 return NULL;
26892 }
26893
26894
26895 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26896 PyObject *resultobj = 0;
26897 wxListItem *arg1 = (wxListItem *) 0 ;
26898 int result;
26899 void *argp1 = 0 ;
26900 int res1 = 0 ;
26901 PyObject *swig_obj[1] ;
26902
26903 if (!args) SWIG_fail;
26904 swig_obj[0] = args;
26905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26906 if (!SWIG_IsOK(res1)) {
26907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26908 }
26909 arg1 = reinterpret_cast< wxListItem * >(argp1);
26910 {
26911 PyThreadState* __tstate = wxPyBeginAllowThreads();
26912 result = (int)(arg1)->GetImage();
26913 wxPyEndAllowThreads(__tstate);
26914 if (PyErr_Occurred()) SWIG_fail;
26915 }
26916 resultobj = SWIG_From_int(static_cast< int >(result));
26917 return resultobj;
26918 fail:
26919 return NULL;
26920 }
26921
26922
26923 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26924 PyObject *resultobj = 0;
26925 wxListItem *arg1 = (wxListItem *) 0 ;
26926 long result;
26927 void *argp1 = 0 ;
26928 int res1 = 0 ;
26929 PyObject *swig_obj[1] ;
26930
26931 if (!args) SWIG_fail;
26932 swig_obj[0] = args;
26933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26934 if (!SWIG_IsOK(res1)) {
26935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26936 }
26937 arg1 = reinterpret_cast< wxListItem * >(argp1);
26938 {
26939 PyThreadState* __tstate = wxPyBeginAllowThreads();
26940 result = (long)(arg1)->GetData();
26941 wxPyEndAllowThreads(__tstate);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
26944 resultobj = SWIG_From_long(static_cast< long >(result));
26945 return resultobj;
26946 fail:
26947 return NULL;
26948 }
26949
26950
26951 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26952 PyObject *resultobj = 0;
26953 wxListItem *arg1 = (wxListItem *) 0 ;
26954 int result;
26955 void *argp1 = 0 ;
26956 int res1 = 0 ;
26957 PyObject *swig_obj[1] ;
26958
26959 if (!args) SWIG_fail;
26960 swig_obj[0] = args;
26961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26962 if (!SWIG_IsOK(res1)) {
26963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26964 }
26965 arg1 = reinterpret_cast< wxListItem * >(argp1);
26966 {
26967 PyThreadState* __tstate = wxPyBeginAllowThreads();
26968 result = (int)(arg1)->GetWidth();
26969 wxPyEndAllowThreads(__tstate);
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 resultobj = SWIG_From_int(static_cast< int >(result));
26973 return resultobj;
26974 fail:
26975 return NULL;
26976 }
26977
26978
26979 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26980 PyObject *resultobj = 0;
26981 wxListItem *arg1 = (wxListItem *) 0 ;
26982 wxListColumnFormat result;
26983 void *argp1 = 0 ;
26984 int res1 = 0 ;
26985 PyObject *swig_obj[1] ;
26986
26987 if (!args) SWIG_fail;
26988 swig_obj[0] = args;
26989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26990 if (!SWIG_IsOK(res1)) {
26991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26992 }
26993 arg1 = reinterpret_cast< wxListItem * >(argp1);
26994 {
26995 PyThreadState* __tstate = wxPyBeginAllowThreads();
26996 result = (wxListColumnFormat)(arg1)->GetAlign();
26997 wxPyEndAllowThreads(__tstate);
26998 if (PyErr_Occurred()) SWIG_fail;
26999 }
27000 resultobj = SWIG_From_int(static_cast< int >(result));
27001 return resultobj;
27002 fail:
27003 return NULL;
27004 }
27005
27006
27007 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27008 PyObject *resultobj = 0;
27009 wxListItem *arg1 = (wxListItem *) 0 ;
27010 wxListItemAttr *result = 0 ;
27011 void *argp1 = 0 ;
27012 int res1 = 0 ;
27013 PyObject *swig_obj[1] ;
27014
27015 if (!args) SWIG_fail;
27016 swig_obj[0] = args;
27017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27018 if (!SWIG_IsOK(res1)) {
27019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27020 }
27021 arg1 = reinterpret_cast< wxListItem * >(argp1);
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 result = (wxListItemAttr *)(arg1)->GetAttributes();
27025 wxPyEndAllowThreads(__tstate);
27026 if (PyErr_Occurred()) SWIG_fail;
27027 }
27028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27029 return resultobj;
27030 fail:
27031 return NULL;
27032 }
27033
27034
27035 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27036 PyObject *resultobj = 0;
27037 wxListItem *arg1 = (wxListItem *) 0 ;
27038 bool result;
27039 void *argp1 = 0 ;
27040 int res1 = 0 ;
27041 PyObject *swig_obj[1] ;
27042
27043 if (!args) SWIG_fail;
27044 swig_obj[0] = args;
27045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27046 if (!SWIG_IsOK(res1)) {
27047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27048 }
27049 arg1 = reinterpret_cast< wxListItem * >(argp1);
27050 {
27051 PyThreadState* __tstate = wxPyBeginAllowThreads();
27052 result = (bool)(arg1)->HasAttributes();
27053 wxPyEndAllowThreads(__tstate);
27054 if (PyErr_Occurred()) SWIG_fail;
27055 }
27056 {
27057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27058 }
27059 return resultobj;
27060 fail:
27061 return NULL;
27062 }
27063
27064
27065 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27066 PyObject *resultobj = 0;
27067 wxListItem *arg1 = (wxListItem *) 0 ;
27068 wxColour result;
27069 void *argp1 = 0 ;
27070 int res1 = 0 ;
27071 PyObject *swig_obj[1] ;
27072
27073 if (!args) SWIG_fail;
27074 swig_obj[0] = args;
27075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27076 if (!SWIG_IsOK(res1)) {
27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27078 }
27079 arg1 = reinterpret_cast< wxListItem * >(argp1);
27080 {
27081 PyThreadState* __tstate = wxPyBeginAllowThreads();
27082 result = ((wxListItem const *)arg1)->GetTextColour();
27083 wxPyEndAllowThreads(__tstate);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 }
27086 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27087 return resultobj;
27088 fail:
27089 return NULL;
27090 }
27091
27092
27093 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27094 PyObject *resultobj = 0;
27095 wxListItem *arg1 = (wxListItem *) 0 ;
27096 wxColour result;
27097 void *argp1 = 0 ;
27098 int res1 = 0 ;
27099 PyObject *swig_obj[1] ;
27100
27101 if (!args) SWIG_fail;
27102 swig_obj[0] = args;
27103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27104 if (!SWIG_IsOK(res1)) {
27105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27106 }
27107 arg1 = reinterpret_cast< wxListItem * >(argp1);
27108 {
27109 PyThreadState* __tstate = wxPyBeginAllowThreads();
27110 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27111 wxPyEndAllowThreads(__tstate);
27112 if (PyErr_Occurred()) SWIG_fail;
27113 }
27114 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27115 return resultobj;
27116 fail:
27117 return NULL;
27118 }
27119
27120
27121 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27122 PyObject *resultobj = 0;
27123 wxListItem *arg1 = (wxListItem *) 0 ;
27124 wxFont result;
27125 void *argp1 = 0 ;
27126 int res1 = 0 ;
27127 PyObject *swig_obj[1] ;
27128
27129 if (!args) SWIG_fail;
27130 swig_obj[0] = args;
27131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27132 if (!SWIG_IsOK(res1)) {
27133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27134 }
27135 arg1 = reinterpret_cast< wxListItem * >(argp1);
27136 {
27137 PyThreadState* __tstate = wxPyBeginAllowThreads();
27138 result = ((wxListItem const *)arg1)->GetFont();
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27143 return resultobj;
27144 fail:
27145 return NULL;
27146 }
27147
27148
27149 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27150 PyObject *resultobj = 0;
27151 wxListItem *arg1 = (wxListItem *) 0 ;
27152 long arg2 ;
27153 void *argp1 = 0 ;
27154 int res1 = 0 ;
27155 long val2 ;
27156 int ecode2 = 0 ;
27157 PyObject *swig_obj[2] ;
27158
27159 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27161 if (!SWIG_IsOK(res1)) {
27162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27163 }
27164 arg1 = reinterpret_cast< wxListItem * >(argp1);
27165 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27166 if (!SWIG_IsOK(ecode2)) {
27167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27168 }
27169 arg2 = static_cast< long >(val2);
27170 if (arg1) (arg1)->m_mask = arg2;
27171
27172 resultobj = SWIG_Py_Void();
27173 return resultobj;
27174 fail:
27175 return NULL;
27176 }
27177
27178
27179 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27180 PyObject *resultobj = 0;
27181 wxListItem *arg1 = (wxListItem *) 0 ;
27182 long result;
27183 void *argp1 = 0 ;
27184 int res1 = 0 ;
27185 PyObject *swig_obj[1] ;
27186
27187 if (!args) SWIG_fail;
27188 swig_obj[0] = args;
27189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27190 if (!SWIG_IsOK(res1)) {
27191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27192 }
27193 arg1 = reinterpret_cast< wxListItem * >(argp1);
27194 result = (long) ((arg1)->m_mask);
27195 resultobj = SWIG_From_long(static_cast< long >(result));
27196 return resultobj;
27197 fail:
27198 return NULL;
27199 }
27200
27201
27202 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27203 PyObject *resultobj = 0;
27204 wxListItem *arg1 = (wxListItem *) 0 ;
27205 long arg2 ;
27206 void *argp1 = 0 ;
27207 int res1 = 0 ;
27208 long val2 ;
27209 int ecode2 = 0 ;
27210 PyObject *swig_obj[2] ;
27211
27212 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27214 if (!SWIG_IsOK(res1)) {
27215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27216 }
27217 arg1 = reinterpret_cast< wxListItem * >(argp1);
27218 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27219 if (!SWIG_IsOK(ecode2)) {
27220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27221 }
27222 arg2 = static_cast< long >(val2);
27223 if (arg1) (arg1)->m_itemId = arg2;
27224
27225 resultobj = SWIG_Py_Void();
27226 return resultobj;
27227 fail:
27228 return NULL;
27229 }
27230
27231
27232 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27233 PyObject *resultobj = 0;
27234 wxListItem *arg1 = (wxListItem *) 0 ;
27235 long result;
27236 void *argp1 = 0 ;
27237 int res1 = 0 ;
27238 PyObject *swig_obj[1] ;
27239
27240 if (!args) SWIG_fail;
27241 swig_obj[0] = args;
27242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27243 if (!SWIG_IsOK(res1)) {
27244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27245 }
27246 arg1 = reinterpret_cast< wxListItem * >(argp1);
27247 result = (long) ((arg1)->m_itemId);
27248 resultobj = SWIG_From_long(static_cast< long >(result));
27249 return resultobj;
27250 fail:
27251 return NULL;
27252 }
27253
27254
27255 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27256 PyObject *resultobj = 0;
27257 wxListItem *arg1 = (wxListItem *) 0 ;
27258 int arg2 ;
27259 void *argp1 = 0 ;
27260 int res1 = 0 ;
27261 int val2 ;
27262 int ecode2 = 0 ;
27263 PyObject *swig_obj[2] ;
27264
27265 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27267 if (!SWIG_IsOK(res1)) {
27268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27269 }
27270 arg1 = reinterpret_cast< wxListItem * >(argp1);
27271 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27272 if (!SWIG_IsOK(ecode2)) {
27273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27274 }
27275 arg2 = static_cast< int >(val2);
27276 if (arg1) (arg1)->m_col = arg2;
27277
27278 resultobj = SWIG_Py_Void();
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27286 PyObject *resultobj = 0;
27287 wxListItem *arg1 = (wxListItem *) 0 ;
27288 int result;
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
27291 PyObject *swig_obj[1] ;
27292
27293 if (!args) SWIG_fail;
27294 swig_obj[0] = args;
27295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27296 if (!SWIG_IsOK(res1)) {
27297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27298 }
27299 arg1 = reinterpret_cast< wxListItem * >(argp1);
27300 result = (int) ((arg1)->m_col);
27301 resultobj = SWIG_From_int(static_cast< int >(result));
27302 return resultobj;
27303 fail:
27304 return NULL;
27305 }
27306
27307
27308 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27309 PyObject *resultobj = 0;
27310 wxListItem *arg1 = (wxListItem *) 0 ;
27311 long arg2 ;
27312 void *argp1 = 0 ;
27313 int res1 = 0 ;
27314 long val2 ;
27315 int ecode2 = 0 ;
27316 PyObject *swig_obj[2] ;
27317
27318 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27320 if (!SWIG_IsOK(res1)) {
27321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27322 }
27323 arg1 = reinterpret_cast< wxListItem * >(argp1);
27324 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27325 if (!SWIG_IsOK(ecode2)) {
27326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27327 }
27328 arg2 = static_cast< long >(val2);
27329 if (arg1) (arg1)->m_state = arg2;
27330
27331 resultobj = SWIG_Py_Void();
27332 return resultobj;
27333 fail:
27334 return NULL;
27335 }
27336
27337
27338 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27339 PyObject *resultobj = 0;
27340 wxListItem *arg1 = (wxListItem *) 0 ;
27341 long result;
27342 void *argp1 = 0 ;
27343 int res1 = 0 ;
27344 PyObject *swig_obj[1] ;
27345
27346 if (!args) SWIG_fail;
27347 swig_obj[0] = args;
27348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27349 if (!SWIG_IsOK(res1)) {
27350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27351 }
27352 arg1 = reinterpret_cast< wxListItem * >(argp1);
27353 result = (long) ((arg1)->m_state);
27354 resultobj = SWIG_From_long(static_cast< long >(result));
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27362 PyObject *resultobj = 0;
27363 wxListItem *arg1 = (wxListItem *) 0 ;
27364 long arg2 ;
27365 void *argp1 = 0 ;
27366 int res1 = 0 ;
27367 long val2 ;
27368 int ecode2 = 0 ;
27369 PyObject *swig_obj[2] ;
27370
27371 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27373 if (!SWIG_IsOK(res1)) {
27374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27375 }
27376 arg1 = reinterpret_cast< wxListItem * >(argp1);
27377 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27378 if (!SWIG_IsOK(ecode2)) {
27379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27380 }
27381 arg2 = static_cast< long >(val2);
27382 if (arg1) (arg1)->m_stateMask = arg2;
27383
27384 resultobj = SWIG_Py_Void();
27385 return resultobj;
27386 fail:
27387 return NULL;
27388 }
27389
27390
27391 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27392 PyObject *resultobj = 0;
27393 wxListItem *arg1 = (wxListItem *) 0 ;
27394 long result;
27395 void *argp1 = 0 ;
27396 int res1 = 0 ;
27397 PyObject *swig_obj[1] ;
27398
27399 if (!args) SWIG_fail;
27400 swig_obj[0] = args;
27401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27402 if (!SWIG_IsOK(res1)) {
27403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27404 }
27405 arg1 = reinterpret_cast< wxListItem * >(argp1);
27406 result = (long) ((arg1)->m_stateMask);
27407 resultobj = SWIG_From_long(static_cast< long >(result));
27408 return resultobj;
27409 fail:
27410 return NULL;
27411 }
27412
27413
27414 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27415 PyObject *resultobj = 0;
27416 wxListItem *arg1 = (wxListItem *) 0 ;
27417 wxString *arg2 = (wxString *) 0 ;
27418 void *argp1 = 0 ;
27419 int res1 = 0 ;
27420 bool temp2 = false ;
27421 PyObject *swig_obj[2] ;
27422
27423 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27425 if (!SWIG_IsOK(res1)) {
27426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27427 }
27428 arg1 = reinterpret_cast< wxListItem * >(argp1);
27429 {
27430 arg2 = wxString_in_helper(swig_obj[1]);
27431 if (arg2 == NULL) SWIG_fail;
27432 temp2 = true;
27433 }
27434 if (arg1) (arg1)->m_text = *arg2;
27435
27436 resultobj = SWIG_Py_Void();
27437 {
27438 if (temp2)
27439 delete arg2;
27440 }
27441 return resultobj;
27442 fail:
27443 {
27444 if (temp2)
27445 delete arg2;
27446 }
27447 return NULL;
27448 }
27449
27450
27451 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27452 PyObject *resultobj = 0;
27453 wxListItem *arg1 = (wxListItem *) 0 ;
27454 wxString *result = 0 ;
27455 void *argp1 = 0 ;
27456 int res1 = 0 ;
27457 PyObject *swig_obj[1] ;
27458
27459 if (!args) SWIG_fail;
27460 swig_obj[0] = args;
27461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27462 if (!SWIG_IsOK(res1)) {
27463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27464 }
27465 arg1 = reinterpret_cast< wxListItem * >(argp1);
27466 result = (wxString *)& ((arg1)->m_text);
27467 {
27468 #if wxUSE_UNICODE
27469 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27470 #else
27471 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27472 #endif
27473 }
27474 return resultobj;
27475 fail:
27476 return NULL;
27477 }
27478
27479
27480 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27481 PyObject *resultobj = 0;
27482 wxListItem *arg1 = (wxListItem *) 0 ;
27483 int arg2 ;
27484 void *argp1 = 0 ;
27485 int res1 = 0 ;
27486 int val2 ;
27487 int ecode2 = 0 ;
27488 PyObject *swig_obj[2] ;
27489
27490 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27492 if (!SWIG_IsOK(res1)) {
27493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27494 }
27495 arg1 = reinterpret_cast< wxListItem * >(argp1);
27496 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27497 if (!SWIG_IsOK(ecode2)) {
27498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27499 }
27500 arg2 = static_cast< int >(val2);
27501 if (arg1) (arg1)->m_image = arg2;
27502
27503 resultobj = SWIG_Py_Void();
27504 return resultobj;
27505 fail:
27506 return NULL;
27507 }
27508
27509
27510 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27511 PyObject *resultobj = 0;
27512 wxListItem *arg1 = (wxListItem *) 0 ;
27513 int result;
27514 void *argp1 = 0 ;
27515 int res1 = 0 ;
27516 PyObject *swig_obj[1] ;
27517
27518 if (!args) SWIG_fail;
27519 swig_obj[0] = args;
27520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27521 if (!SWIG_IsOK(res1)) {
27522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27523 }
27524 arg1 = reinterpret_cast< wxListItem * >(argp1);
27525 result = (int) ((arg1)->m_image);
27526 resultobj = SWIG_From_int(static_cast< int >(result));
27527 return resultobj;
27528 fail:
27529 return NULL;
27530 }
27531
27532
27533 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27534 PyObject *resultobj = 0;
27535 wxListItem *arg1 = (wxListItem *) 0 ;
27536 long arg2 ;
27537 void *argp1 = 0 ;
27538 int res1 = 0 ;
27539 long val2 ;
27540 int ecode2 = 0 ;
27541 PyObject *swig_obj[2] ;
27542
27543 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27545 if (!SWIG_IsOK(res1)) {
27546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27547 }
27548 arg1 = reinterpret_cast< wxListItem * >(argp1);
27549 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27550 if (!SWIG_IsOK(ecode2)) {
27551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27552 }
27553 arg2 = static_cast< long >(val2);
27554 if (arg1) (arg1)->m_data = arg2;
27555
27556 resultobj = SWIG_Py_Void();
27557 return resultobj;
27558 fail:
27559 return NULL;
27560 }
27561
27562
27563 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27564 PyObject *resultobj = 0;
27565 wxListItem *arg1 = (wxListItem *) 0 ;
27566 long result;
27567 void *argp1 = 0 ;
27568 int res1 = 0 ;
27569 PyObject *swig_obj[1] ;
27570
27571 if (!args) SWIG_fail;
27572 swig_obj[0] = args;
27573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27574 if (!SWIG_IsOK(res1)) {
27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27576 }
27577 arg1 = reinterpret_cast< wxListItem * >(argp1);
27578 result = (long) ((arg1)->m_data);
27579 resultobj = SWIG_From_long(static_cast< long >(result));
27580 return resultobj;
27581 fail:
27582 return NULL;
27583 }
27584
27585
27586 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27587 PyObject *resultobj = 0;
27588 wxListItem *arg1 = (wxListItem *) 0 ;
27589 int arg2 ;
27590 void *argp1 = 0 ;
27591 int res1 = 0 ;
27592 int val2 ;
27593 int ecode2 = 0 ;
27594 PyObject *swig_obj[2] ;
27595
27596 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27598 if (!SWIG_IsOK(res1)) {
27599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27600 }
27601 arg1 = reinterpret_cast< wxListItem * >(argp1);
27602 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27603 if (!SWIG_IsOK(ecode2)) {
27604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27605 }
27606 arg2 = static_cast< int >(val2);
27607 if (arg1) (arg1)->m_format = arg2;
27608
27609 resultobj = SWIG_Py_Void();
27610 return resultobj;
27611 fail:
27612 return NULL;
27613 }
27614
27615
27616 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27617 PyObject *resultobj = 0;
27618 wxListItem *arg1 = (wxListItem *) 0 ;
27619 int result;
27620 void *argp1 = 0 ;
27621 int res1 = 0 ;
27622 PyObject *swig_obj[1] ;
27623
27624 if (!args) SWIG_fail;
27625 swig_obj[0] = args;
27626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27627 if (!SWIG_IsOK(res1)) {
27628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27629 }
27630 arg1 = reinterpret_cast< wxListItem * >(argp1);
27631 result = (int) ((arg1)->m_format);
27632 resultobj = SWIG_From_int(static_cast< int >(result));
27633 return resultobj;
27634 fail:
27635 return NULL;
27636 }
27637
27638
27639 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27640 PyObject *resultobj = 0;
27641 wxListItem *arg1 = (wxListItem *) 0 ;
27642 int arg2 ;
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 int val2 ;
27646 int ecode2 = 0 ;
27647 PyObject *swig_obj[2] ;
27648
27649 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27651 if (!SWIG_IsOK(res1)) {
27652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27653 }
27654 arg1 = reinterpret_cast< wxListItem * >(argp1);
27655 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27656 if (!SWIG_IsOK(ecode2)) {
27657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27658 }
27659 arg2 = static_cast< int >(val2);
27660 if (arg1) (arg1)->m_width = arg2;
27661
27662 resultobj = SWIG_Py_Void();
27663 return resultobj;
27664 fail:
27665 return NULL;
27666 }
27667
27668
27669 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27670 PyObject *resultobj = 0;
27671 wxListItem *arg1 = (wxListItem *) 0 ;
27672 int result;
27673 void *argp1 = 0 ;
27674 int res1 = 0 ;
27675 PyObject *swig_obj[1] ;
27676
27677 if (!args) SWIG_fail;
27678 swig_obj[0] = args;
27679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27680 if (!SWIG_IsOK(res1)) {
27681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27682 }
27683 arg1 = reinterpret_cast< wxListItem * >(argp1);
27684 result = (int) ((arg1)->m_width);
27685 resultobj = SWIG_From_int(static_cast< int >(result));
27686 return resultobj;
27687 fail:
27688 return NULL;
27689 }
27690
27691
27692 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27693 PyObject *obj;
27694 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27695 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27696 return SWIG_Py_Void();
27697 }
27698
27699 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27700 return SWIG_Python_InitShadowInstance(args);
27701 }
27702
27703 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj = 0;
27705 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27706 int arg2 = (int) 0 ;
27707 wxListEvent *result = 0 ;
27708 int val1 ;
27709 int ecode1 = 0 ;
27710 int val2 ;
27711 int ecode2 = 0 ;
27712 PyObject * obj0 = 0 ;
27713 PyObject * obj1 = 0 ;
27714 char * kwnames[] = {
27715 (char *) "commandType",(char *) "id", NULL
27716 };
27717
27718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27719 if (obj0) {
27720 ecode1 = SWIG_AsVal_int(obj0, &val1);
27721 if (!SWIG_IsOK(ecode1)) {
27722 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27723 }
27724 arg1 = static_cast< wxEventType >(val1);
27725 }
27726 if (obj1) {
27727 ecode2 = SWIG_AsVal_int(obj1, &val2);
27728 if (!SWIG_IsOK(ecode2)) {
27729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27730 }
27731 arg2 = static_cast< int >(val2);
27732 }
27733 {
27734 PyThreadState* __tstate = wxPyBeginAllowThreads();
27735 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27736 wxPyEndAllowThreads(__tstate);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27740 return resultobj;
27741 fail:
27742 return NULL;
27743 }
27744
27745
27746 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27747 PyObject *resultobj = 0;
27748 wxListEvent *arg1 = (wxListEvent *) 0 ;
27749 int arg2 ;
27750 void *argp1 = 0 ;
27751 int res1 = 0 ;
27752 int val2 ;
27753 int ecode2 = 0 ;
27754 PyObject *swig_obj[2] ;
27755
27756 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27758 if (!SWIG_IsOK(res1)) {
27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27760 }
27761 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27762 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27763 if (!SWIG_IsOK(ecode2)) {
27764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27765 }
27766 arg2 = static_cast< int >(val2);
27767 if (arg1) (arg1)->m_code = arg2;
27768
27769 resultobj = SWIG_Py_Void();
27770 return resultobj;
27771 fail:
27772 return NULL;
27773 }
27774
27775
27776 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27777 PyObject *resultobj = 0;
27778 wxListEvent *arg1 = (wxListEvent *) 0 ;
27779 int result;
27780 void *argp1 = 0 ;
27781 int res1 = 0 ;
27782 PyObject *swig_obj[1] ;
27783
27784 if (!args) SWIG_fail;
27785 swig_obj[0] = args;
27786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27787 if (!SWIG_IsOK(res1)) {
27788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27789 }
27790 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27791 result = (int) ((arg1)->m_code);
27792 resultobj = SWIG_From_int(static_cast< int >(result));
27793 return resultobj;
27794 fail:
27795 return NULL;
27796 }
27797
27798
27799 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27800 PyObject *resultobj = 0;
27801 wxListEvent *arg1 = (wxListEvent *) 0 ;
27802 long arg2 ;
27803 void *argp1 = 0 ;
27804 int res1 = 0 ;
27805 long val2 ;
27806 int ecode2 = 0 ;
27807 PyObject *swig_obj[2] ;
27808
27809 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27811 if (!SWIG_IsOK(res1)) {
27812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27813 }
27814 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27815 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27816 if (!SWIG_IsOK(ecode2)) {
27817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27818 }
27819 arg2 = static_cast< long >(val2);
27820 if (arg1) (arg1)->m_oldItemIndex = arg2;
27821
27822 resultobj = SWIG_Py_Void();
27823 return resultobj;
27824 fail:
27825 return NULL;
27826 }
27827
27828
27829 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27830 PyObject *resultobj = 0;
27831 wxListEvent *arg1 = (wxListEvent *) 0 ;
27832 long result;
27833 void *argp1 = 0 ;
27834 int res1 = 0 ;
27835 PyObject *swig_obj[1] ;
27836
27837 if (!args) SWIG_fail;
27838 swig_obj[0] = args;
27839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27840 if (!SWIG_IsOK(res1)) {
27841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27842 }
27843 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27844 result = (long) ((arg1)->m_oldItemIndex);
27845 resultobj = SWIG_From_long(static_cast< long >(result));
27846 return resultobj;
27847 fail:
27848 return NULL;
27849 }
27850
27851
27852 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27853 PyObject *resultobj = 0;
27854 wxListEvent *arg1 = (wxListEvent *) 0 ;
27855 long arg2 ;
27856 void *argp1 = 0 ;
27857 int res1 = 0 ;
27858 long val2 ;
27859 int ecode2 = 0 ;
27860 PyObject *swig_obj[2] ;
27861
27862 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27864 if (!SWIG_IsOK(res1)) {
27865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27866 }
27867 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27868 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27869 if (!SWIG_IsOK(ecode2)) {
27870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27871 }
27872 arg2 = static_cast< long >(val2);
27873 if (arg1) (arg1)->m_itemIndex = arg2;
27874
27875 resultobj = SWIG_Py_Void();
27876 return resultobj;
27877 fail:
27878 return NULL;
27879 }
27880
27881
27882 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27883 PyObject *resultobj = 0;
27884 wxListEvent *arg1 = (wxListEvent *) 0 ;
27885 long result;
27886 void *argp1 = 0 ;
27887 int res1 = 0 ;
27888 PyObject *swig_obj[1] ;
27889
27890 if (!args) SWIG_fail;
27891 swig_obj[0] = args;
27892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27893 if (!SWIG_IsOK(res1)) {
27894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27895 }
27896 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27897 result = (long) ((arg1)->m_itemIndex);
27898 resultobj = SWIG_From_long(static_cast< long >(result));
27899 return resultobj;
27900 fail:
27901 return NULL;
27902 }
27903
27904
27905 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27906 PyObject *resultobj = 0;
27907 wxListEvent *arg1 = (wxListEvent *) 0 ;
27908 int arg2 ;
27909 void *argp1 = 0 ;
27910 int res1 = 0 ;
27911 int val2 ;
27912 int ecode2 = 0 ;
27913 PyObject *swig_obj[2] ;
27914
27915 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27917 if (!SWIG_IsOK(res1)) {
27918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27919 }
27920 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27921 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27922 if (!SWIG_IsOK(ecode2)) {
27923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27924 }
27925 arg2 = static_cast< int >(val2);
27926 if (arg1) (arg1)->m_col = arg2;
27927
27928 resultobj = SWIG_Py_Void();
27929 return resultobj;
27930 fail:
27931 return NULL;
27932 }
27933
27934
27935 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27936 PyObject *resultobj = 0;
27937 wxListEvent *arg1 = (wxListEvent *) 0 ;
27938 int result;
27939 void *argp1 = 0 ;
27940 int res1 = 0 ;
27941 PyObject *swig_obj[1] ;
27942
27943 if (!args) SWIG_fail;
27944 swig_obj[0] = args;
27945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27946 if (!SWIG_IsOK(res1)) {
27947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27948 }
27949 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27950 result = (int) ((arg1)->m_col);
27951 resultobj = SWIG_From_int(static_cast< int >(result));
27952 return resultobj;
27953 fail:
27954 return NULL;
27955 }
27956
27957
27958 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27959 PyObject *resultobj = 0;
27960 wxListEvent *arg1 = (wxListEvent *) 0 ;
27961 wxPoint *arg2 = (wxPoint *) 0 ;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 void *argp2 = 0 ;
27965 int res2 = 0 ;
27966 PyObject *swig_obj[2] ;
27967
27968 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27970 if (!SWIG_IsOK(res1)) {
27971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27972 }
27973 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27974 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27975 if (!SWIG_IsOK(res2)) {
27976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27977 }
27978 arg2 = reinterpret_cast< wxPoint * >(argp2);
27979 if (arg1) (arg1)->m_pointDrag = *arg2;
27980
27981 resultobj = SWIG_Py_Void();
27982 return resultobj;
27983 fail:
27984 return NULL;
27985 }
27986
27987
27988 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 PyObject *resultobj = 0;
27990 wxListEvent *arg1 = (wxListEvent *) 0 ;
27991 wxPoint *result = 0 ;
27992 void *argp1 = 0 ;
27993 int res1 = 0 ;
27994 PyObject *swig_obj[1] ;
27995
27996 if (!args) SWIG_fail;
27997 swig_obj[0] = args;
27998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27999 if (!SWIG_IsOK(res1)) {
28000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28001 }
28002 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28003 result = (wxPoint *)& ((arg1)->m_pointDrag);
28004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28005 return resultobj;
28006 fail:
28007 return NULL;
28008 }
28009
28010
28011 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28012 PyObject *resultobj = 0;
28013 wxListEvent *arg1 = (wxListEvent *) 0 ;
28014 wxListItem *result = 0 ;
28015 void *argp1 = 0 ;
28016 int res1 = 0 ;
28017 PyObject *swig_obj[1] ;
28018
28019 if (!args) SWIG_fail;
28020 swig_obj[0] = args;
28021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28022 if (!SWIG_IsOK(res1)) {
28023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28024 }
28025 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28026 result = (wxListItem *)& ((arg1)->m_item);
28027 {
28028 resultobj = wxPyMake_wxObject(result, (bool)0);
28029 }
28030 return resultobj;
28031 fail:
28032 return NULL;
28033 }
28034
28035
28036 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28037 PyObject *resultobj = 0;
28038 wxListEvent *arg1 = (wxListEvent *) 0 ;
28039 int result;
28040 void *argp1 = 0 ;
28041 int res1 = 0 ;
28042 PyObject *swig_obj[1] ;
28043
28044 if (!args) SWIG_fail;
28045 swig_obj[0] = args;
28046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28047 if (!SWIG_IsOK(res1)) {
28048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28049 }
28050 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28051 {
28052 PyThreadState* __tstate = wxPyBeginAllowThreads();
28053 result = (int)(arg1)->GetKeyCode();
28054 wxPyEndAllowThreads(__tstate);
28055 if (PyErr_Occurred()) SWIG_fail;
28056 }
28057 resultobj = SWIG_From_int(static_cast< int >(result));
28058 return resultobj;
28059 fail:
28060 return NULL;
28061 }
28062
28063
28064 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28065 PyObject *resultobj = 0;
28066 wxListEvent *arg1 = (wxListEvent *) 0 ;
28067 long result;
28068 void *argp1 = 0 ;
28069 int res1 = 0 ;
28070 PyObject *swig_obj[1] ;
28071
28072 if (!args) SWIG_fail;
28073 swig_obj[0] = args;
28074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28075 if (!SWIG_IsOK(res1)) {
28076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28077 }
28078 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28079 {
28080 PyThreadState* __tstate = wxPyBeginAllowThreads();
28081 result = (long)(arg1)->GetIndex();
28082 wxPyEndAllowThreads(__tstate);
28083 if (PyErr_Occurred()) SWIG_fail;
28084 }
28085 resultobj = SWIG_From_long(static_cast< long >(result));
28086 return resultobj;
28087 fail:
28088 return NULL;
28089 }
28090
28091
28092 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28093 PyObject *resultobj = 0;
28094 wxListEvent *arg1 = (wxListEvent *) 0 ;
28095 int result;
28096 void *argp1 = 0 ;
28097 int res1 = 0 ;
28098 PyObject *swig_obj[1] ;
28099
28100 if (!args) SWIG_fail;
28101 swig_obj[0] = args;
28102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28103 if (!SWIG_IsOK(res1)) {
28104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28105 }
28106 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28107 {
28108 PyThreadState* __tstate = wxPyBeginAllowThreads();
28109 result = (int)(arg1)->GetColumn();
28110 wxPyEndAllowThreads(__tstate);
28111 if (PyErr_Occurred()) SWIG_fail;
28112 }
28113 resultobj = SWIG_From_int(static_cast< int >(result));
28114 return resultobj;
28115 fail:
28116 return NULL;
28117 }
28118
28119
28120 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28121 PyObject *resultobj = 0;
28122 wxListEvent *arg1 = (wxListEvent *) 0 ;
28123 wxPoint result;
28124 void *argp1 = 0 ;
28125 int res1 = 0 ;
28126 PyObject *swig_obj[1] ;
28127
28128 if (!args) SWIG_fail;
28129 swig_obj[0] = args;
28130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28131 if (!SWIG_IsOK(res1)) {
28132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28133 }
28134 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28135 {
28136 PyThreadState* __tstate = wxPyBeginAllowThreads();
28137 result = (arg1)->GetPoint();
28138 wxPyEndAllowThreads(__tstate);
28139 if (PyErr_Occurred()) SWIG_fail;
28140 }
28141 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28142 return resultobj;
28143 fail:
28144 return NULL;
28145 }
28146
28147
28148 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28149 PyObject *resultobj = 0;
28150 wxListEvent *arg1 = (wxListEvent *) 0 ;
28151 wxString *result = 0 ;
28152 void *argp1 = 0 ;
28153 int res1 = 0 ;
28154 PyObject *swig_obj[1] ;
28155
28156 if (!args) SWIG_fail;
28157 swig_obj[0] = args;
28158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28159 if (!SWIG_IsOK(res1)) {
28160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28161 }
28162 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28163 {
28164 PyThreadState* __tstate = wxPyBeginAllowThreads();
28165 {
28166 wxString const &_result_ref = (arg1)->GetLabel();
28167 result = (wxString *) &_result_ref;
28168 }
28169 wxPyEndAllowThreads(__tstate);
28170 if (PyErr_Occurred()) SWIG_fail;
28171 }
28172 {
28173 #if wxUSE_UNICODE
28174 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28175 #else
28176 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28177 #endif
28178 }
28179 return resultobj;
28180 fail:
28181 return NULL;
28182 }
28183
28184
28185 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28186 PyObject *resultobj = 0;
28187 wxListEvent *arg1 = (wxListEvent *) 0 ;
28188 wxString *result = 0 ;
28189 void *argp1 = 0 ;
28190 int res1 = 0 ;
28191 PyObject *swig_obj[1] ;
28192
28193 if (!args) SWIG_fail;
28194 swig_obj[0] = args;
28195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28196 if (!SWIG_IsOK(res1)) {
28197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28198 }
28199 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28200 {
28201 PyThreadState* __tstate = wxPyBeginAllowThreads();
28202 {
28203 wxString const &_result_ref = (arg1)->GetText();
28204 result = (wxString *) &_result_ref;
28205 }
28206 wxPyEndAllowThreads(__tstate);
28207 if (PyErr_Occurred()) SWIG_fail;
28208 }
28209 {
28210 #if wxUSE_UNICODE
28211 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28212 #else
28213 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28214 #endif
28215 }
28216 return resultobj;
28217 fail:
28218 return NULL;
28219 }
28220
28221
28222 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28223 PyObject *resultobj = 0;
28224 wxListEvent *arg1 = (wxListEvent *) 0 ;
28225 int result;
28226 void *argp1 = 0 ;
28227 int res1 = 0 ;
28228 PyObject *swig_obj[1] ;
28229
28230 if (!args) SWIG_fail;
28231 swig_obj[0] = args;
28232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28233 if (!SWIG_IsOK(res1)) {
28234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28235 }
28236 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28237 {
28238 PyThreadState* __tstate = wxPyBeginAllowThreads();
28239 result = (int)(arg1)->GetImage();
28240 wxPyEndAllowThreads(__tstate);
28241 if (PyErr_Occurred()) SWIG_fail;
28242 }
28243 resultobj = SWIG_From_int(static_cast< int >(result));
28244 return resultobj;
28245 fail:
28246 return NULL;
28247 }
28248
28249
28250 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28251 PyObject *resultobj = 0;
28252 wxListEvent *arg1 = (wxListEvent *) 0 ;
28253 long result;
28254 void *argp1 = 0 ;
28255 int res1 = 0 ;
28256 PyObject *swig_obj[1] ;
28257
28258 if (!args) SWIG_fail;
28259 swig_obj[0] = args;
28260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28261 if (!SWIG_IsOK(res1)) {
28262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28263 }
28264 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28265 {
28266 PyThreadState* __tstate = wxPyBeginAllowThreads();
28267 result = (long)(arg1)->GetData();
28268 wxPyEndAllowThreads(__tstate);
28269 if (PyErr_Occurred()) SWIG_fail;
28270 }
28271 resultobj = SWIG_From_long(static_cast< long >(result));
28272 return resultobj;
28273 fail:
28274 return NULL;
28275 }
28276
28277
28278 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28279 PyObject *resultobj = 0;
28280 wxListEvent *arg1 = (wxListEvent *) 0 ;
28281 long result;
28282 void *argp1 = 0 ;
28283 int res1 = 0 ;
28284 PyObject *swig_obj[1] ;
28285
28286 if (!args) SWIG_fail;
28287 swig_obj[0] = args;
28288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28289 if (!SWIG_IsOK(res1)) {
28290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28291 }
28292 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28293 {
28294 PyThreadState* __tstate = wxPyBeginAllowThreads();
28295 result = (long)(arg1)->GetMask();
28296 wxPyEndAllowThreads(__tstate);
28297 if (PyErr_Occurred()) SWIG_fail;
28298 }
28299 resultobj = SWIG_From_long(static_cast< long >(result));
28300 return resultobj;
28301 fail:
28302 return NULL;
28303 }
28304
28305
28306 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28307 PyObject *resultobj = 0;
28308 wxListEvent *arg1 = (wxListEvent *) 0 ;
28309 wxListItem *result = 0 ;
28310 void *argp1 = 0 ;
28311 int res1 = 0 ;
28312 PyObject *swig_obj[1] ;
28313
28314 if (!args) SWIG_fail;
28315 swig_obj[0] = args;
28316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28317 if (!SWIG_IsOK(res1)) {
28318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28319 }
28320 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28321 {
28322 PyThreadState* __tstate = wxPyBeginAllowThreads();
28323 {
28324 wxListItem const &_result_ref = (arg1)->GetItem();
28325 result = (wxListItem *) &_result_ref;
28326 }
28327 wxPyEndAllowThreads(__tstate);
28328 if (PyErr_Occurred()) SWIG_fail;
28329 }
28330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28331 return resultobj;
28332 fail:
28333 return NULL;
28334 }
28335
28336
28337 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28338 PyObject *resultobj = 0;
28339 wxListEvent *arg1 = (wxListEvent *) 0 ;
28340 long result;
28341 void *argp1 = 0 ;
28342 int res1 = 0 ;
28343 PyObject *swig_obj[1] ;
28344
28345 if (!args) SWIG_fail;
28346 swig_obj[0] = args;
28347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28348 if (!SWIG_IsOK(res1)) {
28349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28350 }
28351 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28352 {
28353 PyThreadState* __tstate = wxPyBeginAllowThreads();
28354 result = (long)(arg1)->GetCacheFrom();
28355 wxPyEndAllowThreads(__tstate);
28356 if (PyErr_Occurred()) SWIG_fail;
28357 }
28358 resultobj = SWIG_From_long(static_cast< long >(result));
28359 return resultobj;
28360 fail:
28361 return NULL;
28362 }
28363
28364
28365 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28366 PyObject *resultobj = 0;
28367 wxListEvent *arg1 = (wxListEvent *) 0 ;
28368 long result;
28369 void *argp1 = 0 ;
28370 int res1 = 0 ;
28371 PyObject *swig_obj[1] ;
28372
28373 if (!args) SWIG_fail;
28374 swig_obj[0] = args;
28375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28376 if (!SWIG_IsOK(res1)) {
28377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28378 }
28379 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28380 {
28381 PyThreadState* __tstate = wxPyBeginAllowThreads();
28382 result = (long)(arg1)->GetCacheTo();
28383 wxPyEndAllowThreads(__tstate);
28384 if (PyErr_Occurred()) SWIG_fail;
28385 }
28386 resultobj = SWIG_From_long(static_cast< long >(result));
28387 return resultobj;
28388 fail:
28389 return NULL;
28390 }
28391
28392
28393 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28394 PyObject *resultobj = 0;
28395 wxListEvent *arg1 = (wxListEvent *) 0 ;
28396 bool result;
28397 void *argp1 = 0 ;
28398 int res1 = 0 ;
28399 PyObject *swig_obj[1] ;
28400
28401 if (!args) SWIG_fail;
28402 swig_obj[0] = args;
28403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28404 if (!SWIG_IsOK(res1)) {
28405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28406 }
28407 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28408 {
28409 PyThreadState* __tstate = wxPyBeginAllowThreads();
28410 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28411 wxPyEndAllowThreads(__tstate);
28412 if (PyErr_Occurred()) SWIG_fail;
28413 }
28414 {
28415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28416 }
28417 return resultobj;
28418 fail:
28419 return NULL;
28420 }
28421
28422
28423 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28424 PyObject *resultobj = 0;
28425 wxListEvent *arg1 = (wxListEvent *) 0 ;
28426 bool arg2 ;
28427 void *argp1 = 0 ;
28428 int res1 = 0 ;
28429 bool val2 ;
28430 int ecode2 = 0 ;
28431 PyObject * obj0 = 0 ;
28432 PyObject * obj1 = 0 ;
28433 char * kwnames[] = {
28434 (char *) "self",(char *) "editCancelled", NULL
28435 };
28436
28437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28439 if (!SWIG_IsOK(res1)) {
28440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28441 }
28442 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28443 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28444 if (!SWIG_IsOK(ecode2)) {
28445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28446 }
28447 arg2 = static_cast< bool >(val2);
28448 {
28449 PyThreadState* __tstate = wxPyBeginAllowThreads();
28450 (arg1)->SetEditCanceled(arg2);
28451 wxPyEndAllowThreads(__tstate);
28452 if (PyErr_Occurred()) SWIG_fail;
28453 }
28454 resultobj = SWIG_Py_Void();
28455 return resultobj;
28456 fail:
28457 return NULL;
28458 }
28459
28460
28461 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28462 PyObject *obj;
28463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28464 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28465 return SWIG_Py_Void();
28466 }
28467
28468 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28469 return SWIG_Python_InitShadowInstance(args);
28470 }
28471
28472 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28473 PyObject *resultobj = 0;
28474 wxWindow *arg1 = (wxWindow *) 0 ;
28475 int arg2 = (int) -1 ;
28476 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28477 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28478 wxSize const &arg4_defvalue = wxDefaultSize ;
28479 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28480 long arg5 = (long) wxLC_ICON ;
28481 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28482 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28483 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28484 wxString *arg7 = (wxString *) &arg7_defvalue ;
28485 wxPyListCtrl *result = 0 ;
28486 void *argp1 = 0 ;
28487 int res1 = 0 ;
28488 int val2 ;
28489 int ecode2 = 0 ;
28490 wxPoint temp3 ;
28491 wxSize temp4 ;
28492 long val5 ;
28493 int ecode5 = 0 ;
28494 void *argp6 = 0 ;
28495 int res6 = 0 ;
28496 bool temp7 = false ;
28497 PyObject * obj0 = 0 ;
28498 PyObject * obj1 = 0 ;
28499 PyObject * obj2 = 0 ;
28500 PyObject * obj3 = 0 ;
28501 PyObject * obj4 = 0 ;
28502 PyObject * obj5 = 0 ;
28503 PyObject * obj6 = 0 ;
28504 char * kwnames[] = {
28505 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28506 };
28507
28508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28510 if (!SWIG_IsOK(res1)) {
28511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28512 }
28513 arg1 = reinterpret_cast< wxWindow * >(argp1);
28514 if (obj1) {
28515 ecode2 = SWIG_AsVal_int(obj1, &val2);
28516 if (!SWIG_IsOK(ecode2)) {
28517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28518 }
28519 arg2 = static_cast< int >(val2);
28520 }
28521 if (obj2) {
28522 {
28523 arg3 = &temp3;
28524 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28525 }
28526 }
28527 if (obj3) {
28528 {
28529 arg4 = &temp4;
28530 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28531 }
28532 }
28533 if (obj4) {
28534 ecode5 = SWIG_AsVal_long(obj4, &val5);
28535 if (!SWIG_IsOK(ecode5)) {
28536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28537 }
28538 arg5 = static_cast< long >(val5);
28539 }
28540 if (obj5) {
28541 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28542 if (!SWIG_IsOK(res6)) {
28543 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28544 }
28545 if (!argp6) {
28546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28547 }
28548 arg6 = reinterpret_cast< wxValidator * >(argp6);
28549 }
28550 if (obj6) {
28551 {
28552 arg7 = wxString_in_helper(obj6);
28553 if (arg7 == NULL) SWIG_fail;
28554 temp7 = true;
28555 }
28556 }
28557 {
28558 if (!wxPyCheckForApp()) SWIG_fail;
28559 PyThreadState* __tstate = wxPyBeginAllowThreads();
28560 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28561 wxPyEndAllowThreads(__tstate);
28562 if (PyErr_Occurred()) SWIG_fail;
28563 }
28564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28565 {
28566 if (temp7)
28567 delete arg7;
28568 }
28569 return resultobj;
28570 fail:
28571 {
28572 if (temp7)
28573 delete arg7;
28574 }
28575 return NULL;
28576 }
28577
28578
28579 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28580 PyObject *resultobj = 0;
28581 wxPyListCtrl *result = 0 ;
28582
28583 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28584 {
28585 if (!wxPyCheckForApp()) SWIG_fail;
28586 PyThreadState* __tstate = wxPyBeginAllowThreads();
28587 result = (wxPyListCtrl *)new wxPyListCtrl();
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28592 return resultobj;
28593 fail:
28594 return NULL;
28595 }
28596
28597
28598 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28599 PyObject *resultobj = 0;
28600 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28601 wxWindow *arg2 = (wxWindow *) 0 ;
28602 int arg3 = (int) -1 ;
28603 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28604 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28605 wxSize const &arg5_defvalue = wxDefaultSize ;
28606 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28607 long arg6 = (long) wxLC_ICON ;
28608 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28609 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28610 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28611 wxString *arg8 = (wxString *) &arg8_defvalue ;
28612 bool result;
28613 void *argp1 = 0 ;
28614 int res1 = 0 ;
28615 void *argp2 = 0 ;
28616 int res2 = 0 ;
28617 int val3 ;
28618 int ecode3 = 0 ;
28619 wxPoint temp4 ;
28620 wxSize temp5 ;
28621 long val6 ;
28622 int ecode6 = 0 ;
28623 void *argp7 = 0 ;
28624 int res7 = 0 ;
28625 bool temp8 = false ;
28626 PyObject * obj0 = 0 ;
28627 PyObject * obj1 = 0 ;
28628 PyObject * obj2 = 0 ;
28629 PyObject * obj3 = 0 ;
28630 PyObject * obj4 = 0 ;
28631 PyObject * obj5 = 0 ;
28632 PyObject * obj6 = 0 ;
28633 PyObject * obj7 = 0 ;
28634 char * kwnames[] = {
28635 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28636 };
28637
28638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28640 if (!SWIG_IsOK(res1)) {
28641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28642 }
28643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28644 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28645 if (!SWIG_IsOK(res2)) {
28646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28647 }
28648 arg2 = reinterpret_cast< wxWindow * >(argp2);
28649 if (obj2) {
28650 ecode3 = SWIG_AsVal_int(obj2, &val3);
28651 if (!SWIG_IsOK(ecode3)) {
28652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28653 }
28654 arg3 = static_cast< int >(val3);
28655 }
28656 if (obj3) {
28657 {
28658 arg4 = &temp4;
28659 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28660 }
28661 }
28662 if (obj4) {
28663 {
28664 arg5 = &temp5;
28665 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28666 }
28667 }
28668 if (obj5) {
28669 ecode6 = SWIG_AsVal_long(obj5, &val6);
28670 if (!SWIG_IsOK(ecode6)) {
28671 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28672 }
28673 arg6 = static_cast< long >(val6);
28674 }
28675 if (obj6) {
28676 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28677 if (!SWIG_IsOK(res7)) {
28678 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28679 }
28680 if (!argp7) {
28681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28682 }
28683 arg7 = reinterpret_cast< wxValidator * >(argp7);
28684 }
28685 if (obj7) {
28686 {
28687 arg8 = wxString_in_helper(obj7);
28688 if (arg8 == NULL) SWIG_fail;
28689 temp8 = true;
28690 }
28691 }
28692 {
28693 PyThreadState* __tstate = wxPyBeginAllowThreads();
28694 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28695 wxPyEndAllowThreads(__tstate);
28696 if (PyErr_Occurred()) SWIG_fail;
28697 }
28698 {
28699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28700 }
28701 {
28702 if (temp8)
28703 delete arg8;
28704 }
28705 return resultobj;
28706 fail:
28707 {
28708 if (temp8)
28709 delete arg8;
28710 }
28711 return NULL;
28712 }
28713
28714
28715 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28716 PyObject *resultobj = 0;
28717 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28718 PyObject *arg2 = (PyObject *) 0 ;
28719 PyObject *arg3 = (PyObject *) 0 ;
28720 void *argp1 = 0 ;
28721 int res1 = 0 ;
28722 PyObject * obj0 = 0 ;
28723 PyObject * obj1 = 0 ;
28724 PyObject * obj2 = 0 ;
28725 char * kwnames[] = {
28726 (char *) "self",(char *) "self",(char *) "_class", NULL
28727 };
28728
28729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28731 if (!SWIG_IsOK(res1)) {
28732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28733 }
28734 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28735 arg2 = obj1;
28736 arg3 = obj2;
28737 {
28738 PyThreadState* __tstate = wxPyBeginAllowThreads();
28739 (arg1)->_setCallbackInfo(arg2,arg3);
28740 wxPyEndAllowThreads(__tstate);
28741 if (PyErr_Occurred()) SWIG_fail;
28742 }
28743 resultobj = SWIG_Py_Void();
28744 return resultobj;
28745 fail:
28746 return NULL;
28747 }
28748
28749
28750 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28751 PyObject *resultobj = 0;
28752 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28753 int arg2 ;
28754 wxListItem *result = 0 ;
28755 void *argp1 = 0 ;
28756 int res1 = 0 ;
28757 int val2 ;
28758 int ecode2 = 0 ;
28759 PyObject * obj0 = 0 ;
28760 PyObject * obj1 = 0 ;
28761 char * kwnames[] = {
28762 (char *) "self",(char *) "col", NULL
28763 };
28764
28765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28767 if (!SWIG_IsOK(res1)) {
28768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28769 }
28770 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28771 ecode2 = SWIG_AsVal_int(obj1, &val2);
28772 if (!SWIG_IsOK(ecode2)) {
28773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28774 }
28775 arg2 = static_cast< int >(val2);
28776 {
28777 PyThreadState* __tstate = wxPyBeginAllowThreads();
28778 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28779 wxPyEndAllowThreads(__tstate);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 {
28783 resultobj = wxPyMake_wxObject(result, (bool)0);
28784 }
28785 return resultobj;
28786 fail:
28787 return NULL;
28788 }
28789
28790
28791 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28792 PyObject *resultobj = 0;
28793 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28794 int arg2 ;
28795 wxListItem *arg3 = 0 ;
28796 bool result;
28797 void *argp1 = 0 ;
28798 int res1 = 0 ;
28799 int val2 ;
28800 int ecode2 = 0 ;
28801 void *argp3 = 0 ;
28802 int res3 = 0 ;
28803 PyObject * obj0 = 0 ;
28804 PyObject * obj1 = 0 ;
28805 PyObject * obj2 = 0 ;
28806 char * kwnames[] = {
28807 (char *) "self",(char *) "col",(char *) "item", NULL
28808 };
28809
28810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28812 if (!SWIG_IsOK(res1)) {
28813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28814 }
28815 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28816 ecode2 = SWIG_AsVal_int(obj1, &val2);
28817 if (!SWIG_IsOK(ecode2)) {
28818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28819 }
28820 arg2 = static_cast< int >(val2);
28821 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28822 if (!SWIG_IsOK(res3)) {
28823 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28824 }
28825 if (!argp3) {
28826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28827 }
28828 arg3 = reinterpret_cast< wxListItem * >(argp3);
28829 {
28830 PyThreadState* __tstate = wxPyBeginAllowThreads();
28831 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28832 wxPyEndAllowThreads(__tstate);
28833 if (PyErr_Occurred()) SWIG_fail;
28834 }
28835 {
28836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28837 }
28838 return resultobj;
28839 fail:
28840 return NULL;
28841 }
28842
28843
28844 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28845 PyObject *resultobj = 0;
28846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28847 int arg2 ;
28848 int result;
28849 void *argp1 = 0 ;
28850 int res1 = 0 ;
28851 int val2 ;
28852 int ecode2 = 0 ;
28853 PyObject * obj0 = 0 ;
28854 PyObject * obj1 = 0 ;
28855 char * kwnames[] = {
28856 (char *) "self",(char *) "col", NULL
28857 };
28858
28859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28861 if (!SWIG_IsOK(res1)) {
28862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28863 }
28864 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28865 ecode2 = SWIG_AsVal_int(obj1, &val2);
28866 if (!SWIG_IsOK(ecode2)) {
28867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28868 }
28869 arg2 = static_cast< int >(val2);
28870 {
28871 PyThreadState* __tstate = wxPyBeginAllowThreads();
28872 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28873 wxPyEndAllowThreads(__tstate);
28874 if (PyErr_Occurred()) SWIG_fail;
28875 }
28876 resultobj = SWIG_From_int(static_cast< int >(result));
28877 return resultobj;
28878 fail:
28879 return NULL;
28880 }
28881
28882
28883 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28884 PyObject *resultobj = 0;
28885 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28886 int arg2 ;
28887 int arg3 ;
28888 bool result;
28889 void *argp1 = 0 ;
28890 int res1 = 0 ;
28891 int val2 ;
28892 int ecode2 = 0 ;
28893 int val3 ;
28894 int ecode3 = 0 ;
28895 PyObject * obj0 = 0 ;
28896 PyObject * obj1 = 0 ;
28897 PyObject * obj2 = 0 ;
28898 char * kwnames[] = {
28899 (char *) "self",(char *) "col",(char *) "width", NULL
28900 };
28901
28902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28904 if (!SWIG_IsOK(res1)) {
28905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28906 }
28907 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28908 ecode2 = SWIG_AsVal_int(obj1, &val2);
28909 if (!SWIG_IsOK(ecode2)) {
28910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28911 }
28912 arg2 = static_cast< int >(val2);
28913 ecode3 = SWIG_AsVal_int(obj2, &val3);
28914 if (!SWIG_IsOK(ecode3)) {
28915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28916 }
28917 arg3 = static_cast< int >(val3);
28918 {
28919 PyThreadState* __tstate = wxPyBeginAllowThreads();
28920 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28921 wxPyEndAllowThreads(__tstate);
28922 if (PyErr_Occurred()) SWIG_fail;
28923 }
28924 {
28925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28926 }
28927 return resultobj;
28928 fail:
28929 return NULL;
28930 }
28931
28932
28933 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28934 PyObject *resultobj = 0;
28935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28936 int result;
28937 void *argp1 = 0 ;
28938 int res1 = 0 ;
28939 PyObject *swig_obj[1] ;
28940
28941 if (!args) SWIG_fail;
28942 swig_obj[0] = args;
28943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28944 if (!SWIG_IsOK(res1)) {
28945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28946 }
28947 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28951 wxPyEndAllowThreads(__tstate);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 resultobj = SWIG_From_int(static_cast< int >(result));
28955 return resultobj;
28956 fail:
28957 return NULL;
28958 }
28959
28960
28961 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28962 PyObject *resultobj = 0;
28963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28964 wxRect result;
28965 void *argp1 = 0 ;
28966 int res1 = 0 ;
28967 PyObject *swig_obj[1] ;
28968
28969 if (!args) SWIG_fail;
28970 swig_obj[0] = args;
28971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28972 if (!SWIG_IsOK(res1)) {
28973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28974 }
28975 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28976 {
28977 PyThreadState* __tstate = wxPyBeginAllowThreads();
28978 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28979 wxPyEndAllowThreads(__tstate);
28980 if (PyErr_Occurred()) SWIG_fail;
28981 }
28982 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28983 return resultobj;
28984 fail:
28985 return NULL;
28986 }
28987
28988
28989 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28990 PyObject *resultobj = 0;
28991 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28992 wxTextCtrl *result = 0 ;
28993 void *argp1 = 0 ;
28994 int res1 = 0 ;
28995 PyObject *swig_obj[1] ;
28996
28997 if (!args) SWIG_fail;
28998 swig_obj[0] = args;
28999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29000 if (!SWIG_IsOK(res1)) {
29001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29002 }
29003 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
29006 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29007 wxPyEndAllowThreads(__tstate);
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 {
29011 resultobj = wxPyMake_wxObject(result, 0);
29012 }
29013 return resultobj;
29014 fail:
29015 return NULL;
29016 }
29017
29018
29019 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29020 PyObject *resultobj = 0;
29021 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29022 long arg2 ;
29023 int arg3 = (int) 0 ;
29024 wxListItem *result = 0 ;
29025 void *argp1 = 0 ;
29026 int res1 = 0 ;
29027 long val2 ;
29028 int ecode2 = 0 ;
29029 int val3 ;
29030 int ecode3 = 0 ;
29031 PyObject * obj0 = 0 ;
29032 PyObject * obj1 = 0 ;
29033 PyObject * obj2 = 0 ;
29034 char * kwnames[] = {
29035 (char *) "self",(char *) "itemId",(char *) "col", NULL
29036 };
29037
29038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29040 if (!SWIG_IsOK(res1)) {
29041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29042 }
29043 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29044 ecode2 = SWIG_AsVal_long(obj1, &val2);
29045 if (!SWIG_IsOK(ecode2)) {
29046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29047 }
29048 arg2 = static_cast< long >(val2);
29049 if (obj2) {
29050 ecode3 = SWIG_AsVal_int(obj2, &val3);
29051 if (!SWIG_IsOK(ecode3)) {
29052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29053 }
29054 arg3 = static_cast< int >(val3);
29055 }
29056 {
29057 PyThreadState* __tstate = wxPyBeginAllowThreads();
29058 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29059 wxPyEndAllowThreads(__tstate);
29060 if (PyErr_Occurred()) SWIG_fail;
29061 }
29062 {
29063 resultobj = wxPyMake_wxObject(result, (bool)0);
29064 }
29065 return resultobj;
29066 fail:
29067 return NULL;
29068 }
29069
29070
29071 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29072 PyObject *resultobj = 0;
29073 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29074 wxListItem *arg2 = 0 ;
29075 bool result;
29076 void *argp1 = 0 ;
29077 int res1 = 0 ;
29078 void *argp2 = 0 ;
29079 int res2 = 0 ;
29080 PyObject * obj0 = 0 ;
29081 PyObject * obj1 = 0 ;
29082 char * kwnames[] = {
29083 (char *) "self",(char *) "info", NULL
29084 };
29085
29086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29088 if (!SWIG_IsOK(res1)) {
29089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29090 }
29091 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29093 if (!SWIG_IsOK(res2)) {
29094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29095 }
29096 if (!argp2) {
29097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29098 }
29099 arg2 = reinterpret_cast< wxListItem * >(argp2);
29100 {
29101 PyThreadState* __tstate = wxPyBeginAllowThreads();
29102 result = (bool)(arg1)->SetItem(*arg2);
29103 wxPyEndAllowThreads(__tstate);
29104 if (PyErr_Occurred()) SWIG_fail;
29105 }
29106 {
29107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29108 }
29109 return resultobj;
29110 fail:
29111 return NULL;
29112 }
29113
29114
29115 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29116 PyObject *resultobj = 0;
29117 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29118 long arg2 ;
29119 int arg3 ;
29120 wxString *arg4 = 0 ;
29121 int arg5 = (int) -1 ;
29122 long result;
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 long val2 ;
29126 int ecode2 = 0 ;
29127 int val3 ;
29128 int ecode3 = 0 ;
29129 bool temp4 = false ;
29130 int val5 ;
29131 int ecode5 = 0 ;
29132 PyObject * obj0 = 0 ;
29133 PyObject * obj1 = 0 ;
29134 PyObject * obj2 = 0 ;
29135 PyObject * obj3 = 0 ;
29136 PyObject * obj4 = 0 ;
29137 char * kwnames[] = {
29138 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29139 };
29140
29141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29143 if (!SWIG_IsOK(res1)) {
29144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29145 }
29146 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29147 ecode2 = SWIG_AsVal_long(obj1, &val2);
29148 if (!SWIG_IsOK(ecode2)) {
29149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29150 }
29151 arg2 = static_cast< long >(val2);
29152 ecode3 = SWIG_AsVal_int(obj2, &val3);
29153 if (!SWIG_IsOK(ecode3)) {
29154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29155 }
29156 arg3 = static_cast< int >(val3);
29157 {
29158 arg4 = wxString_in_helper(obj3);
29159 if (arg4 == NULL) SWIG_fail;
29160 temp4 = true;
29161 }
29162 if (obj4) {
29163 ecode5 = SWIG_AsVal_int(obj4, &val5);
29164 if (!SWIG_IsOK(ecode5)) {
29165 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29166 }
29167 arg5 = static_cast< int >(val5);
29168 }
29169 {
29170 PyThreadState* __tstate = wxPyBeginAllowThreads();
29171 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29172 wxPyEndAllowThreads(__tstate);
29173 if (PyErr_Occurred()) SWIG_fail;
29174 }
29175 resultobj = SWIG_From_long(static_cast< long >(result));
29176 {
29177 if (temp4)
29178 delete arg4;
29179 }
29180 return resultobj;
29181 fail:
29182 {
29183 if (temp4)
29184 delete arg4;
29185 }
29186 return NULL;
29187 }
29188
29189
29190 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29191 PyObject *resultobj = 0;
29192 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29193 long arg2 ;
29194 long arg3 ;
29195 int result;
29196 void *argp1 = 0 ;
29197 int res1 = 0 ;
29198 long val2 ;
29199 int ecode2 = 0 ;
29200 long val3 ;
29201 int ecode3 = 0 ;
29202 PyObject * obj0 = 0 ;
29203 PyObject * obj1 = 0 ;
29204 PyObject * obj2 = 0 ;
29205 char * kwnames[] = {
29206 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29207 };
29208
29209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29211 if (!SWIG_IsOK(res1)) {
29212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29213 }
29214 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29215 ecode2 = SWIG_AsVal_long(obj1, &val2);
29216 if (!SWIG_IsOK(ecode2)) {
29217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29218 }
29219 arg2 = static_cast< long >(val2);
29220 ecode3 = SWIG_AsVal_long(obj2, &val3);
29221 if (!SWIG_IsOK(ecode3)) {
29222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29223 }
29224 arg3 = static_cast< long >(val3);
29225 {
29226 PyThreadState* __tstate = wxPyBeginAllowThreads();
29227 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29228 wxPyEndAllowThreads(__tstate);
29229 if (PyErr_Occurred()) SWIG_fail;
29230 }
29231 resultobj = SWIG_From_int(static_cast< int >(result));
29232 return resultobj;
29233 fail:
29234 return NULL;
29235 }
29236
29237
29238 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29239 PyObject *resultobj = 0;
29240 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29241 long arg2 ;
29242 long arg3 ;
29243 long arg4 ;
29244 bool result;
29245 void *argp1 = 0 ;
29246 int res1 = 0 ;
29247 long val2 ;
29248 int ecode2 = 0 ;
29249 long val3 ;
29250 int ecode3 = 0 ;
29251 long val4 ;
29252 int ecode4 = 0 ;
29253 PyObject * obj0 = 0 ;
29254 PyObject * obj1 = 0 ;
29255 PyObject * obj2 = 0 ;
29256 PyObject * obj3 = 0 ;
29257 char * kwnames[] = {
29258 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29259 };
29260
29261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29263 if (!SWIG_IsOK(res1)) {
29264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29265 }
29266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29267 ecode2 = SWIG_AsVal_long(obj1, &val2);
29268 if (!SWIG_IsOK(ecode2)) {
29269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29270 }
29271 arg2 = static_cast< long >(val2);
29272 ecode3 = SWIG_AsVal_long(obj2, &val3);
29273 if (!SWIG_IsOK(ecode3)) {
29274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29275 }
29276 arg3 = static_cast< long >(val3);
29277 ecode4 = SWIG_AsVal_long(obj3, &val4);
29278 if (!SWIG_IsOK(ecode4)) {
29279 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29280 }
29281 arg4 = static_cast< long >(val4);
29282 {
29283 PyThreadState* __tstate = wxPyBeginAllowThreads();
29284 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29285 wxPyEndAllowThreads(__tstate);
29286 if (PyErr_Occurred()) SWIG_fail;
29287 }
29288 {
29289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29290 }
29291 return resultobj;
29292 fail:
29293 return NULL;
29294 }
29295
29296
29297 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29298 PyObject *resultobj = 0;
29299 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29300 long arg2 ;
29301 int arg3 ;
29302 int arg4 = (int) -1 ;
29303 bool result;
29304 void *argp1 = 0 ;
29305 int res1 = 0 ;
29306 long val2 ;
29307 int ecode2 = 0 ;
29308 int val3 ;
29309 int ecode3 = 0 ;
29310 int val4 ;
29311 int ecode4 = 0 ;
29312 PyObject * obj0 = 0 ;
29313 PyObject * obj1 = 0 ;
29314 PyObject * obj2 = 0 ;
29315 PyObject * obj3 = 0 ;
29316 char * kwnames[] = {
29317 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29318 };
29319
29320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29322 if (!SWIG_IsOK(res1)) {
29323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29324 }
29325 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29326 ecode2 = SWIG_AsVal_long(obj1, &val2);
29327 if (!SWIG_IsOK(ecode2)) {
29328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29329 }
29330 arg2 = static_cast< long >(val2);
29331 ecode3 = SWIG_AsVal_int(obj2, &val3);
29332 if (!SWIG_IsOK(ecode3)) {
29333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29334 }
29335 arg3 = static_cast< int >(val3);
29336 if (obj3) {
29337 ecode4 = SWIG_AsVal_int(obj3, &val4);
29338 if (!SWIG_IsOK(ecode4)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29340 }
29341 arg4 = static_cast< int >(val4);
29342 }
29343 {
29344 PyThreadState* __tstate = wxPyBeginAllowThreads();
29345 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29346 wxPyEndAllowThreads(__tstate);
29347 if (PyErr_Occurred()) SWIG_fail;
29348 }
29349 {
29350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29351 }
29352 return resultobj;
29353 fail:
29354 return NULL;
29355 }
29356
29357
29358 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29359 PyObject *resultobj = 0;
29360 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29361 long arg2 ;
29362 long arg3 ;
29363 int arg4 ;
29364 bool result;
29365 void *argp1 = 0 ;
29366 int res1 = 0 ;
29367 long val2 ;
29368 int ecode2 = 0 ;
29369 long val3 ;
29370 int ecode3 = 0 ;
29371 int val4 ;
29372 int ecode4 = 0 ;
29373 PyObject * obj0 = 0 ;
29374 PyObject * obj1 = 0 ;
29375 PyObject * obj2 = 0 ;
29376 PyObject * obj3 = 0 ;
29377 char * kwnames[] = {
29378 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29379 };
29380
29381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29383 if (!SWIG_IsOK(res1)) {
29384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29385 }
29386 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29387 ecode2 = SWIG_AsVal_long(obj1, &val2);
29388 if (!SWIG_IsOK(ecode2)) {
29389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29390 }
29391 arg2 = static_cast< long >(val2);
29392 ecode3 = SWIG_AsVal_long(obj2, &val3);
29393 if (!SWIG_IsOK(ecode3)) {
29394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29395 }
29396 arg3 = static_cast< long >(val3);
29397 ecode4 = SWIG_AsVal_int(obj3, &val4);
29398 if (!SWIG_IsOK(ecode4)) {
29399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29400 }
29401 arg4 = static_cast< int >(val4);
29402 {
29403 PyThreadState* __tstate = wxPyBeginAllowThreads();
29404 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29405 wxPyEndAllowThreads(__tstate);
29406 if (PyErr_Occurred()) SWIG_fail;
29407 }
29408 {
29409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29410 }
29411 return resultobj;
29412 fail:
29413 return NULL;
29414 }
29415
29416
29417 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29418 PyObject *resultobj = 0;
29419 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29420 long arg2 ;
29421 wxString result;
29422 void *argp1 = 0 ;
29423 int res1 = 0 ;
29424 long val2 ;
29425 int ecode2 = 0 ;
29426 PyObject * obj0 = 0 ;
29427 PyObject * obj1 = 0 ;
29428 char * kwnames[] = {
29429 (char *) "self",(char *) "item", NULL
29430 };
29431
29432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29434 if (!SWIG_IsOK(res1)) {
29435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29436 }
29437 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29438 ecode2 = SWIG_AsVal_long(obj1, &val2);
29439 if (!SWIG_IsOK(ecode2)) {
29440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29441 }
29442 arg2 = static_cast< long >(val2);
29443 {
29444 PyThreadState* __tstate = wxPyBeginAllowThreads();
29445 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29446 wxPyEndAllowThreads(__tstate);
29447 if (PyErr_Occurred()) SWIG_fail;
29448 }
29449 {
29450 #if wxUSE_UNICODE
29451 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29452 #else
29453 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29454 #endif
29455 }
29456 return resultobj;
29457 fail:
29458 return NULL;
29459 }
29460
29461
29462 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29463 PyObject *resultobj = 0;
29464 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29465 long arg2 ;
29466 wxString *arg3 = 0 ;
29467 void *argp1 = 0 ;
29468 int res1 = 0 ;
29469 long val2 ;
29470 int ecode2 = 0 ;
29471 bool temp3 = false ;
29472 PyObject * obj0 = 0 ;
29473 PyObject * obj1 = 0 ;
29474 PyObject * obj2 = 0 ;
29475 char * kwnames[] = {
29476 (char *) "self",(char *) "item",(char *) "str", NULL
29477 };
29478
29479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29481 if (!SWIG_IsOK(res1)) {
29482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29483 }
29484 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29485 ecode2 = SWIG_AsVal_long(obj1, &val2);
29486 if (!SWIG_IsOK(ecode2)) {
29487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29488 }
29489 arg2 = static_cast< long >(val2);
29490 {
29491 arg3 = wxString_in_helper(obj2);
29492 if (arg3 == NULL) SWIG_fail;
29493 temp3 = true;
29494 }
29495 {
29496 PyThreadState* __tstate = wxPyBeginAllowThreads();
29497 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29498 wxPyEndAllowThreads(__tstate);
29499 if (PyErr_Occurred()) SWIG_fail;
29500 }
29501 resultobj = SWIG_Py_Void();
29502 {
29503 if (temp3)
29504 delete arg3;
29505 }
29506 return resultobj;
29507 fail:
29508 {
29509 if (temp3)
29510 delete arg3;
29511 }
29512 return NULL;
29513 }
29514
29515
29516 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29517 PyObject *resultobj = 0;
29518 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29519 long arg2 ;
29520 long result;
29521 void *argp1 = 0 ;
29522 int res1 = 0 ;
29523 long val2 ;
29524 int ecode2 = 0 ;
29525 PyObject * obj0 = 0 ;
29526 PyObject * obj1 = 0 ;
29527 char * kwnames[] = {
29528 (char *) "self",(char *) "item", NULL
29529 };
29530
29531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29533 if (!SWIG_IsOK(res1)) {
29534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29535 }
29536 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29537 ecode2 = SWIG_AsVal_long(obj1, &val2);
29538 if (!SWIG_IsOK(ecode2)) {
29539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29540 }
29541 arg2 = static_cast< long >(val2);
29542 {
29543 PyThreadState* __tstate = wxPyBeginAllowThreads();
29544 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29545 wxPyEndAllowThreads(__tstate);
29546 if (PyErr_Occurred()) SWIG_fail;
29547 }
29548 resultobj = SWIG_From_long(static_cast< long >(result));
29549 return resultobj;
29550 fail:
29551 return NULL;
29552 }
29553
29554
29555 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29556 PyObject *resultobj = 0;
29557 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29558 long arg2 ;
29559 long arg3 ;
29560 bool result;
29561 void *argp1 = 0 ;
29562 int res1 = 0 ;
29563 long val2 ;
29564 int ecode2 = 0 ;
29565 long val3 ;
29566 int ecode3 = 0 ;
29567 PyObject * obj0 = 0 ;
29568 PyObject * obj1 = 0 ;
29569 PyObject * obj2 = 0 ;
29570 char * kwnames[] = {
29571 (char *) "self",(char *) "item",(char *) "data", NULL
29572 };
29573
29574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29576 if (!SWIG_IsOK(res1)) {
29577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29578 }
29579 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29580 ecode2 = SWIG_AsVal_long(obj1, &val2);
29581 if (!SWIG_IsOK(ecode2)) {
29582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29583 }
29584 arg2 = static_cast< long >(val2);
29585 ecode3 = SWIG_AsVal_long(obj2, &val3);
29586 if (!SWIG_IsOK(ecode3)) {
29587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29588 }
29589 arg3 = static_cast< long >(val3);
29590 {
29591 PyThreadState* __tstate = wxPyBeginAllowThreads();
29592 result = (bool)(arg1)->SetItemData(arg2,arg3);
29593 wxPyEndAllowThreads(__tstate);
29594 if (PyErr_Occurred()) SWIG_fail;
29595 }
29596 {
29597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29598 }
29599 return resultobj;
29600 fail:
29601 return NULL;
29602 }
29603
29604
29605 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29606 PyObject *resultobj = 0;
29607 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29608 long arg2 ;
29609 wxPoint result;
29610 void *argp1 = 0 ;
29611 int res1 = 0 ;
29612 long val2 ;
29613 int ecode2 = 0 ;
29614 PyObject * obj0 = 0 ;
29615 PyObject * obj1 = 0 ;
29616 char * kwnames[] = {
29617 (char *) "self",(char *) "item", NULL
29618 };
29619
29620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29622 if (!SWIG_IsOK(res1)) {
29623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29624 }
29625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29626 ecode2 = SWIG_AsVal_long(obj1, &val2);
29627 if (!SWIG_IsOK(ecode2)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29629 }
29630 arg2 = static_cast< long >(val2);
29631 {
29632 PyThreadState* __tstate = wxPyBeginAllowThreads();
29633 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29634 wxPyEndAllowThreads(__tstate);
29635 if (PyErr_Occurred()) SWIG_fail;
29636 }
29637 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29638 return resultobj;
29639 fail:
29640 return NULL;
29641 }
29642
29643
29644 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29645 PyObject *resultobj = 0;
29646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29647 long arg2 ;
29648 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29649 wxRect result;
29650 void *argp1 = 0 ;
29651 int res1 = 0 ;
29652 long val2 ;
29653 int ecode2 = 0 ;
29654 int val3 ;
29655 int ecode3 = 0 ;
29656 PyObject * obj0 = 0 ;
29657 PyObject * obj1 = 0 ;
29658 PyObject * obj2 = 0 ;
29659 char * kwnames[] = {
29660 (char *) "self",(char *) "item",(char *) "code", NULL
29661 };
29662
29663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29665 if (!SWIG_IsOK(res1)) {
29666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29667 }
29668 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29669 ecode2 = SWIG_AsVal_long(obj1, &val2);
29670 if (!SWIG_IsOK(ecode2)) {
29671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29672 }
29673 arg2 = static_cast< long >(val2);
29674 if (obj2) {
29675 ecode3 = SWIG_AsVal_int(obj2, &val3);
29676 if (!SWIG_IsOK(ecode3)) {
29677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29678 }
29679 arg3 = static_cast< int >(val3);
29680 }
29681 {
29682 PyThreadState* __tstate = wxPyBeginAllowThreads();
29683 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29684 wxPyEndAllowThreads(__tstate);
29685 if (PyErr_Occurred()) SWIG_fail;
29686 }
29687 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29688 return resultobj;
29689 fail:
29690 return NULL;
29691 }
29692
29693
29694 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29695 PyObject *resultobj = 0;
29696 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29697 long arg2 ;
29698 wxPoint *arg3 = 0 ;
29699 bool result;
29700 void *argp1 = 0 ;
29701 int res1 = 0 ;
29702 long val2 ;
29703 int ecode2 = 0 ;
29704 wxPoint temp3 ;
29705 PyObject * obj0 = 0 ;
29706 PyObject * obj1 = 0 ;
29707 PyObject * obj2 = 0 ;
29708 char * kwnames[] = {
29709 (char *) "self",(char *) "item",(char *) "pos", NULL
29710 };
29711
29712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29714 if (!SWIG_IsOK(res1)) {
29715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29716 }
29717 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29718 ecode2 = SWIG_AsVal_long(obj1, &val2);
29719 if (!SWIG_IsOK(ecode2)) {
29720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29721 }
29722 arg2 = static_cast< long >(val2);
29723 {
29724 arg3 = &temp3;
29725 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29726 }
29727 {
29728 PyThreadState* __tstate = wxPyBeginAllowThreads();
29729 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29730 wxPyEndAllowThreads(__tstate);
29731 if (PyErr_Occurred()) SWIG_fail;
29732 }
29733 {
29734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29735 }
29736 return resultobj;
29737 fail:
29738 return NULL;
29739 }
29740
29741
29742 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29743 PyObject *resultobj = 0;
29744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29745 int result;
29746 void *argp1 = 0 ;
29747 int res1 = 0 ;
29748 PyObject *swig_obj[1] ;
29749
29750 if (!args) SWIG_fail;
29751 swig_obj[0] = args;
29752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29753 if (!SWIG_IsOK(res1)) {
29754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29755 }
29756 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29757 {
29758 PyThreadState* __tstate = wxPyBeginAllowThreads();
29759 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29760 wxPyEndAllowThreads(__tstate);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 resultobj = SWIG_From_int(static_cast< int >(result));
29764 return resultobj;
29765 fail:
29766 return NULL;
29767 }
29768
29769
29770 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29771 PyObject *resultobj = 0;
29772 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29773 int result;
29774 void *argp1 = 0 ;
29775 int res1 = 0 ;
29776 PyObject *swig_obj[1] ;
29777
29778 if (!args) SWIG_fail;
29779 swig_obj[0] = args;
29780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29781 if (!SWIG_IsOK(res1)) {
29782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29783 }
29784 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29785 {
29786 PyThreadState* __tstate = wxPyBeginAllowThreads();
29787 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29788 wxPyEndAllowThreads(__tstate);
29789 if (PyErr_Occurred()) SWIG_fail;
29790 }
29791 resultobj = SWIG_From_int(static_cast< int >(result));
29792 return resultobj;
29793 fail:
29794 return NULL;
29795 }
29796
29797
29798 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29799 PyObject *resultobj = 0;
29800 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29801 wxSize result;
29802 void *argp1 = 0 ;
29803 int res1 = 0 ;
29804 PyObject *swig_obj[1] ;
29805
29806 if (!args) SWIG_fail;
29807 swig_obj[0] = args;
29808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29809 if (!SWIG_IsOK(res1)) {
29810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29811 }
29812 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29813 {
29814 PyThreadState* __tstate = wxPyBeginAllowThreads();
29815 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29816 wxPyEndAllowThreads(__tstate);
29817 if (PyErr_Occurred()) SWIG_fail;
29818 }
29819 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29820 return resultobj;
29821 fail:
29822 return NULL;
29823 }
29824
29825
29826 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29827 PyObject *resultobj = 0;
29828 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29829 int result;
29830 void *argp1 = 0 ;
29831 int res1 = 0 ;
29832 PyObject *swig_obj[1] ;
29833
29834 if (!args) SWIG_fail;
29835 swig_obj[0] = args;
29836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29837 if (!SWIG_IsOK(res1)) {
29838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29839 }
29840 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29841 {
29842 PyThreadState* __tstate = wxPyBeginAllowThreads();
29843 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29844 wxPyEndAllowThreads(__tstate);
29845 if (PyErr_Occurred()) SWIG_fail;
29846 }
29847 resultobj = SWIG_From_int(static_cast< int >(result));
29848 return resultobj;
29849 fail:
29850 return NULL;
29851 }
29852
29853
29854 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29855 PyObject *resultobj = 0;
29856 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29857 wxColour result;
29858 void *argp1 = 0 ;
29859 int res1 = 0 ;
29860 PyObject *swig_obj[1] ;
29861
29862 if (!args) SWIG_fail;
29863 swig_obj[0] = args;
29864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29865 if (!SWIG_IsOK(res1)) {
29866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29867 }
29868 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29869 {
29870 PyThreadState* __tstate = wxPyBeginAllowThreads();
29871 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29872 wxPyEndAllowThreads(__tstate);
29873 if (PyErr_Occurred()) SWIG_fail;
29874 }
29875 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29876 return resultobj;
29877 fail:
29878 return NULL;
29879 }
29880
29881
29882 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29883 PyObject *resultobj = 0;
29884 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29885 wxColour *arg2 = 0 ;
29886 void *argp1 = 0 ;
29887 int res1 = 0 ;
29888 wxColour temp2 ;
29889 PyObject * obj0 = 0 ;
29890 PyObject * obj1 = 0 ;
29891 char * kwnames[] = {
29892 (char *) "self",(char *) "col", NULL
29893 };
29894
29895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29897 if (!SWIG_IsOK(res1)) {
29898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29899 }
29900 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29901 {
29902 arg2 = &temp2;
29903 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29904 }
29905 {
29906 PyThreadState* __tstate = wxPyBeginAllowThreads();
29907 (arg1)->SetTextColour((wxColour const &)*arg2);
29908 wxPyEndAllowThreads(__tstate);
29909 if (PyErr_Occurred()) SWIG_fail;
29910 }
29911 resultobj = SWIG_Py_Void();
29912 return resultobj;
29913 fail:
29914 return NULL;
29915 }
29916
29917
29918 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29919 PyObject *resultobj = 0;
29920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29921 long result;
29922 void *argp1 = 0 ;
29923 int res1 = 0 ;
29924 PyObject *swig_obj[1] ;
29925
29926 if (!args) SWIG_fail;
29927 swig_obj[0] = args;
29928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29929 if (!SWIG_IsOK(res1)) {
29930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29931 }
29932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29933 {
29934 PyThreadState* __tstate = wxPyBeginAllowThreads();
29935 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29936 wxPyEndAllowThreads(__tstate);
29937 if (PyErr_Occurred()) SWIG_fail;
29938 }
29939 resultobj = SWIG_From_long(static_cast< long >(result));
29940 return resultobj;
29941 fail:
29942 return NULL;
29943 }
29944
29945
29946 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29947 PyObject *resultobj = 0;
29948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29949 long arg2 ;
29950 bool arg3 = (bool) true ;
29951 void *argp1 = 0 ;
29952 int res1 = 0 ;
29953 long val2 ;
29954 int ecode2 = 0 ;
29955 bool val3 ;
29956 int ecode3 = 0 ;
29957 PyObject * obj0 = 0 ;
29958 PyObject * obj1 = 0 ;
29959 PyObject * obj2 = 0 ;
29960 char * kwnames[] = {
29961 (char *) "self",(char *) "style",(char *) "add", NULL
29962 };
29963
29964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29966 if (!SWIG_IsOK(res1)) {
29967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29968 }
29969 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29970 ecode2 = SWIG_AsVal_long(obj1, &val2);
29971 if (!SWIG_IsOK(ecode2)) {
29972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29973 }
29974 arg2 = static_cast< long >(val2);
29975 if (obj2) {
29976 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29977 if (!SWIG_IsOK(ecode3)) {
29978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29979 }
29980 arg3 = static_cast< bool >(val3);
29981 }
29982 {
29983 PyThreadState* __tstate = wxPyBeginAllowThreads();
29984 (arg1)->SetSingleStyle(arg2,arg3);
29985 wxPyEndAllowThreads(__tstate);
29986 if (PyErr_Occurred()) SWIG_fail;
29987 }
29988 resultobj = SWIG_Py_Void();
29989 return resultobj;
29990 fail:
29991 return NULL;
29992 }
29993
29994
29995 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29996 PyObject *resultobj = 0;
29997 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29998 long arg2 ;
29999 int arg3 = (int) wxLIST_NEXT_ALL ;
30000 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30001 long result;
30002 void *argp1 = 0 ;
30003 int res1 = 0 ;
30004 long val2 ;
30005 int ecode2 = 0 ;
30006 int val3 ;
30007 int ecode3 = 0 ;
30008 int val4 ;
30009 int ecode4 = 0 ;
30010 PyObject * obj0 = 0 ;
30011 PyObject * obj1 = 0 ;
30012 PyObject * obj2 = 0 ;
30013 PyObject * obj3 = 0 ;
30014 char * kwnames[] = {
30015 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30016 };
30017
30018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30020 if (!SWIG_IsOK(res1)) {
30021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30022 }
30023 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30024 ecode2 = SWIG_AsVal_long(obj1, &val2);
30025 if (!SWIG_IsOK(ecode2)) {
30026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30027 }
30028 arg2 = static_cast< long >(val2);
30029 if (obj2) {
30030 ecode3 = SWIG_AsVal_int(obj2, &val3);
30031 if (!SWIG_IsOK(ecode3)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30033 }
30034 arg3 = static_cast< int >(val3);
30035 }
30036 if (obj3) {
30037 ecode4 = SWIG_AsVal_int(obj3, &val4);
30038 if (!SWIG_IsOK(ecode4)) {
30039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30040 }
30041 arg4 = static_cast< int >(val4);
30042 }
30043 {
30044 PyThreadState* __tstate = wxPyBeginAllowThreads();
30045 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30046 wxPyEndAllowThreads(__tstate);
30047 if (PyErr_Occurred()) SWIG_fail;
30048 }
30049 resultobj = SWIG_From_long(static_cast< long >(result));
30050 return resultobj;
30051 fail:
30052 return NULL;
30053 }
30054
30055
30056 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30057 PyObject *resultobj = 0;
30058 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30059 int arg2 ;
30060 wxImageList *result = 0 ;
30061 void *argp1 = 0 ;
30062 int res1 = 0 ;
30063 int val2 ;
30064 int ecode2 = 0 ;
30065 PyObject * obj0 = 0 ;
30066 PyObject * obj1 = 0 ;
30067 char * kwnames[] = {
30068 (char *) "self",(char *) "which", NULL
30069 };
30070
30071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30073 if (!SWIG_IsOK(res1)) {
30074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30075 }
30076 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30077 ecode2 = SWIG_AsVal_int(obj1, &val2);
30078 if (!SWIG_IsOK(ecode2)) {
30079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30080 }
30081 arg2 = static_cast< int >(val2);
30082 {
30083 PyThreadState* __tstate = wxPyBeginAllowThreads();
30084 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30085 wxPyEndAllowThreads(__tstate);
30086 if (PyErr_Occurred()) SWIG_fail;
30087 }
30088 {
30089 resultobj = wxPyMake_wxObject(result, (bool)0);
30090 }
30091 return resultobj;
30092 fail:
30093 return NULL;
30094 }
30095
30096
30097 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30098 PyObject *resultobj = 0;
30099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30100 wxImageList *arg2 = (wxImageList *) 0 ;
30101 int arg3 ;
30102 void *argp1 = 0 ;
30103 int res1 = 0 ;
30104 void *argp2 = 0 ;
30105 int res2 = 0 ;
30106 int val3 ;
30107 int ecode3 = 0 ;
30108 PyObject * obj0 = 0 ;
30109 PyObject * obj1 = 0 ;
30110 PyObject * obj2 = 0 ;
30111 char * kwnames[] = {
30112 (char *) "self",(char *) "imageList",(char *) "which", NULL
30113 };
30114
30115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30117 if (!SWIG_IsOK(res1)) {
30118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30119 }
30120 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30121 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30122 if (!SWIG_IsOK(res2)) {
30123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30124 }
30125 arg2 = reinterpret_cast< wxImageList * >(argp2);
30126 ecode3 = SWIG_AsVal_int(obj2, &val3);
30127 if (!SWIG_IsOK(ecode3)) {
30128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30129 }
30130 arg3 = static_cast< int >(val3);
30131 {
30132 PyThreadState* __tstate = wxPyBeginAllowThreads();
30133 (arg1)->SetImageList(arg2,arg3);
30134 wxPyEndAllowThreads(__tstate);
30135 if (PyErr_Occurred()) SWIG_fail;
30136 }
30137 resultobj = SWIG_Py_Void();
30138 return resultobj;
30139 fail:
30140 return NULL;
30141 }
30142
30143
30144 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30145 PyObject *resultobj = 0;
30146 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30147 wxImageList *arg2 = (wxImageList *) 0 ;
30148 int arg3 ;
30149 void *argp1 = 0 ;
30150 int res1 = 0 ;
30151 int res2 = 0 ;
30152 int val3 ;
30153 int ecode3 = 0 ;
30154 PyObject * obj0 = 0 ;
30155 PyObject * obj1 = 0 ;
30156 PyObject * obj2 = 0 ;
30157 char * kwnames[] = {
30158 (char *) "self",(char *) "imageList",(char *) "which", NULL
30159 };
30160
30161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30163 if (!SWIG_IsOK(res1)) {
30164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30165 }
30166 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30167 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30168 if (!SWIG_IsOK(res2)) {
30169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30170 }
30171 ecode3 = SWIG_AsVal_int(obj2, &val3);
30172 if (!SWIG_IsOK(ecode3)) {
30173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30174 }
30175 arg3 = static_cast< int >(val3);
30176 {
30177 PyThreadState* __tstate = wxPyBeginAllowThreads();
30178 (arg1)->AssignImageList(arg2,arg3);
30179 wxPyEndAllowThreads(__tstate);
30180 if (PyErr_Occurred()) SWIG_fail;
30181 }
30182 resultobj = SWIG_Py_Void();
30183 return resultobj;
30184 fail:
30185 return NULL;
30186 }
30187
30188
30189 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30190 PyObject *resultobj = 0;
30191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30192 bool result;
30193 void *argp1 = 0 ;
30194 int res1 = 0 ;
30195 PyObject *swig_obj[1] ;
30196
30197 if (!args) SWIG_fail;
30198 swig_obj[0] = args;
30199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30200 if (!SWIG_IsOK(res1)) {
30201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30202 }
30203 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30204 {
30205 PyThreadState* __tstate = wxPyBeginAllowThreads();
30206 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30207 wxPyEndAllowThreads(__tstate);
30208 if (PyErr_Occurred()) SWIG_fail;
30209 }
30210 {
30211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30212 }
30213 return resultobj;
30214 fail:
30215 return NULL;
30216 }
30217
30218
30219 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30220 PyObject *resultobj = 0;
30221 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30222 bool result;
30223 void *argp1 = 0 ;
30224 int res1 = 0 ;
30225 PyObject *swig_obj[1] ;
30226
30227 if (!args) SWIG_fail;
30228 swig_obj[0] = args;
30229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30230 if (!SWIG_IsOK(res1)) {
30231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30232 }
30233 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30234 {
30235 PyThreadState* __tstate = wxPyBeginAllowThreads();
30236 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30237 wxPyEndAllowThreads(__tstate);
30238 if (PyErr_Occurred()) SWIG_fail;
30239 }
30240 {
30241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30242 }
30243 return resultobj;
30244 fail:
30245 return NULL;
30246 }
30247
30248
30249 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30250 PyObject *resultobj = 0;
30251 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30252 long arg2 ;
30253 void *argp1 = 0 ;
30254 int res1 = 0 ;
30255 long val2 ;
30256 int ecode2 = 0 ;
30257 PyObject * obj0 = 0 ;
30258 PyObject * obj1 = 0 ;
30259 char * kwnames[] = {
30260 (char *) "self",(char *) "item", NULL
30261 };
30262
30263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30265 if (!SWIG_IsOK(res1)) {
30266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30267 }
30268 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30269 ecode2 = SWIG_AsVal_long(obj1, &val2);
30270 if (!SWIG_IsOK(ecode2)) {
30271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30272 }
30273 arg2 = static_cast< long >(val2);
30274 {
30275 PyThreadState* __tstate = wxPyBeginAllowThreads();
30276 (arg1)->RefreshItem(arg2);
30277 wxPyEndAllowThreads(__tstate);
30278 if (PyErr_Occurred()) SWIG_fail;
30279 }
30280 resultobj = SWIG_Py_Void();
30281 return resultobj;
30282 fail:
30283 return NULL;
30284 }
30285
30286
30287 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30288 PyObject *resultobj = 0;
30289 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30290 long arg2 ;
30291 long arg3 ;
30292 void *argp1 = 0 ;
30293 int res1 = 0 ;
30294 long val2 ;
30295 int ecode2 = 0 ;
30296 long val3 ;
30297 int ecode3 = 0 ;
30298 PyObject * obj0 = 0 ;
30299 PyObject * obj1 = 0 ;
30300 PyObject * obj2 = 0 ;
30301 char * kwnames[] = {
30302 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30303 };
30304
30305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30307 if (!SWIG_IsOK(res1)) {
30308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30309 }
30310 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30311 ecode2 = SWIG_AsVal_long(obj1, &val2);
30312 if (!SWIG_IsOK(ecode2)) {
30313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30314 }
30315 arg2 = static_cast< long >(val2);
30316 ecode3 = SWIG_AsVal_long(obj2, &val3);
30317 if (!SWIG_IsOK(ecode3)) {
30318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30319 }
30320 arg3 = static_cast< long >(val3);
30321 {
30322 PyThreadState* __tstate = wxPyBeginAllowThreads();
30323 (arg1)->RefreshItems(arg2,arg3);
30324 wxPyEndAllowThreads(__tstate);
30325 if (PyErr_Occurred()) SWIG_fail;
30326 }
30327 resultobj = SWIG_Py_Void();
30328 return resultobj;
30329 fail:
30330 return NULL;
30331 }
30332
30333
30334 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30335 PyObject *resultobj = 0;
30336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30337 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30338 bool result;
30339 void *argp1 = 0 ;
30340 int res1 = 0 ;
30341 int val2 ;
30342 int ecode2 = 0 ;
30343 PyObject * obj0 = 0 ;
30344 PyObject * obj1 = 0 ;
30345 char * kwnames[] = {
30346 (char *) "self",(char *) "flag", NULL
30347 };
30348
30349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30351 if (!SWIG_IsOK(res1)) {
30352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30353 }
30354 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30355 if (obj1) {
30356 ecode2 = SWIG_AsVal_int(obj1, &val2);
30357 if (!SWIG_IsOK(ecode2)) {
30358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30359 }
30360 arg2 = static_cast< int >(val2);
30361 }
30362 {
30363 PyThreadState* __tstate = wxPyBeginAllowThreads();
30364 result = (bool)(arg1)->Arrange(arg2);
30365 wxPyEndAllowThreads(__tstate);
30366 if (PyErr_Occurred()) SWIG_fail;
30367 }
30368 {
30369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30370 }
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = 0;
30379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30380 long arg2 ;
30381 bool result;
30382 void *argp1 = 0 ;
30383 int res1 = 0 ;
30384 long val2 ;
30385 int ecode2 = 0 ;
30386 PyObject * obj0 = 0 ;
30387 PyObject * obj1 = 0 ;
30388 char * kwnames[] = {
30389 (char *) "self",(char *) "item", NULL
30390 };
30391
30392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30394 if (!SWIG_IsOK(res1)) {
30395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30396 }
30397 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30398 ecode2 = SWIG_AsVal_long(obj1, &val2);
30399 if (!SWIG_IsOK(ecode2)) {
30400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30401 }
30402 arg2 = static_cast< long >(val2);
30403 {
30404 PyThreadState* __tstate = wxPyBeginAllowThreads();
30405 result = (bool)(arg1)->DeleteItem(arg2);
30406 wxPyEndAllowThreads(__tstate);
30407 if (PyErr_Occurred()) SWIG_fail;
30408 }
30409 {
30410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30411 }
30412 return resultobj;
30413 fail:
30414 return NULL;
30415 }
30416
30417
30418 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30419 PyObject *resultobj = 0;
30420 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30421 bool result;
30422 void *argp1 = 0 ;
30423 int res1 = 0 ;
30424 PyObject *swig_obj[1] ;
30425
30426 if (!args) SWIG_fail;
30427 swig_obj[0] = args;
30428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30429 if (!SWIG_IsOK(res1)) {
30430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30431 }
30432 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30433 {
30434 PyThreadState* __tstate = wxPyBeginAllowThreads();
30435 result = (bool)(arg1)->DeleteAllItems();
30436 wxPyEndAllowThreads(__tstate);
30437 if (PyErr_Occurred()) SWIG_fail;
30438 }
30439 {
30440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30441 }
30442 return resultobj;
30443 fail:
30444 return NULL;
30445 }
30446
30447
30448 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30449 PyObject *resultobj = 0;
30450 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30451 int arg2 ;
30452 bool result;
30453 void *argp1 = 0 ;
30454 int res1 = 0 ;
30455 int val2 ;
30456 int ecode2 = 0 ;
30457 PyObject * obj0 = 0 ;
30458 PyObject * obj1 = 0 ;
30459 char * kwnames[] = {
30460 (char *) "self",(char *) "col", NULL
30461 };
30462
30463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30465 if (!SWIG_IsOK(res1)) {
30466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30467 }
30468 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30469 ecode2 = SWIG_AsVal_int(obj1, &val2);
30470 if (!SWIG_IsOK(ecode2)) {
30471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30472 }
30473 arg2 = static_cast< int >(val2);
30474 {
30475 PyThreadState* __tstate = wxPyBeginAllowThreads();
30476 result = (bool)(arg1)->DeleteColumn(arg2);
30477 wxPyEndAllowThreads(__tstate);
30478 if (PyErr_Occurred()) SWIG_fail;
30479 }
30480 {
30481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30482 }
30483 return resultobj;
30484 fail:
30485 return NULL;
30486 }
30487
30488
30489 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30490 PyObject *resultobj = 0;
30491 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30492 bool result;
30493 void *argp1 = 0 ;
30494 int res1 = 0 ;
30495 PyObject *swig_obj[1] ;
30496
30497 if (!args) SWIG_fail;
30498 swig_obj[0] = args;
30499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30500 if (!SWIG_IsOK(res1)) {
30501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30502 }
30503 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30504 {
30505 PyThreadState* __tstate = wxPyBeginAllowThreads();
30506 result = (bool)(arg1)->DeleteAllColumns();
30507 wxPyEndAllowThreads(__tstate);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 {
30511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30512 }
30513 return resultobj;
30514 fail:
30515 return NULL;
30516 }
30517
30518
30519 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30520 PyObject *resultobj = 0;
30521 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30522 void *argp1 = 0 ;
30523 int res1 = 0 ;
30524 PyObject *swig_obj[1] ;
30525
30526 if (!args) SWIG_fail;
30527 swig_obj[0] = args;
30528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30529 if (!SWIG_IsOK(res1)) {
30530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30531 }
30532 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30533 {
30534 PyThreadState* __tstate = wxPyBeginAllowThreads();
30535 (arg1)->ClearAll();
30536 wxPyEndAllowThreads(__tstate);
30537 if (PyErr_Occurred()) SWIG_fail;
30538 }
30539 resultobj = SWIG_Py_Void();
30540 return resultobj;
30541 fail:
30542 return NULL;
30543 }
30544
30545
30546 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30547 PyObject *resultobj = 0;
30548 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30549 long arg2 ;
30550 wxTextCtrl *result = 0 ;
30551 void *argp1 = 0 ;
30552 int res1 = 0 ;
30553 long val2 ;
30554 int ecode2 = 0 ;
30555 PyObject * obj0 = 0 ;
30556 PyObject * obj1 = 0 ;
30557 char * kwnames[] = {
30558 (char *) "self",(char *) "item", NULL
30559 };
30560
30561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30563 if (!SWIG_IsOK(res1)) {
30564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30565 }
30566 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30567 ecode2 = SWIG_AsVal_long(obj1, &val2);
30568 if (!SWIG_IsOK(ecode2)) {
30569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30570 }
30571 arg2 = static_cast< long >(val2);
30572 {
30573 PyThreadState* __tstate = wxPyBeginAllowThreads();
30574 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30575 wxPyEndAllowThreads(__tstate);
30576 if (PyErr_Occurred()) SWIG_fail;
30577 }
30578 {
30579 resultobj = wxPyMake_wxObject(result, 0);
30580 }
30581 return resultobj;
30582 fail:
30583 return NULL;
30584 }
30585
30586
30587 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30588 PyObject *resultobj = 0;
30589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30590 bool arg2 ;
30591 bool result;
30592 void *argp1 = 0 ;
30593 int res1 = 0 ;
30594 bool val2 ;
30595 int ecode2 = 0 ;
30596 PyObject * obj0 = 0 ;
30597 PyObject * obj1 = 0 ;
30598 char * kwnames[] = {
30599 (char *) "self",(char *) "cancel", NULL
30600 };
30601
30602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30604 if (!SWIG_IsOK(res1)) {
30605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30606 }
30607 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30608 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30609 if (!SWIG_IsOK(ecode2)) {
30610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30611 }
30612 arg2 = static_cast< bool >(val2);
30613 {
30614 PyThreadState* __tstate = wxPyBeginAllowThreads();
30615 result = (bool)(arg1)->EndEditLabel(arg2);
30616 wxPyEndAllowThreads(__tstate);
30617 if (PyErr_Occurred()) SWIG_fail;
30618 }
30619 {
30620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30621 }
30622 return resultobj;
30623 fail:
30624 return NULL;
30625 }
30626
30627
30628 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30629 PyObject *resultobj = 0;
30630 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30631 long arg2 ;
30632 bool result;
30633 void *argp1 = 0 ;
30634 int res1 = 0 ;
30635 long val2 ;
30636 int ecode2 = 0 ;
30637 PyObject * obj0 = 0 ;
30638 PyObject * obj1 = 0 ;
30639 char * kwnames[] = {
30640 (char *) "self",(char *) "item", NULL
30641 };
30642
30643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30645 if (!SWIG_IsOK(res1)) {
30646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30647 }
30648 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30649 ecode2 = SWIG_AsVal_long(obj1, &val2);
30650 if (!SWIG_IsOK(ecode2)) {
30651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30652 }
30653 arg2 = static_cast< long >(val2);
30654 {
30655 PyThreadState* __tstate = wxPyBeginAllowThreads();
30656 result = (bool)(arg1)->EnsureVisible(arg2);
30657 wxPyEndAllowThreads(__tstate);
30658 if (PyErr_Occurred()) SWIG_fail;
30659 }
30660 {
30661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30662 }
30663 return resultobj;
30664 fail:
30665 return NULL;
30666 }
30667
30668
30669 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30670 PyObject *resultobj = 0;
30671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30672 long arg2 ;
30673 wxString *arg3 = 0 ;
30674 bool arg4 = (bool) false ;
30675 long result;
30676 void *argp1 = 0 ;
30677 int res1 = 0 ;
30678 long val2 ;
30679 int ecode2 = 0 ;
30680 bool temp3 = false ;
30681 bool val4 ;
30682 int ecode4 = 0 ;
30683 PyObject * obj0 = 0 ;
30684 PyObject * obj1 = 0 ;
30685 PyObject * obj2 = 0 ;
30686 PyObject * obj3 = 0 ;
30687 char * kwnames[] = {
30688 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30689 };
30690
30691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30693 if (!SWIG_IsOK(res1)) {
30694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30695 }
30696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30697 ecode2 = SWIG_AsVal_long(obj1, &val2);
30698 if (!SWIG_IsOK(ecode2)) {
30699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30700 }
30701 arg2 = static_cast< long >(val2);
30702 {
30703 arg3 = wxString_in_helper(obj2);
30704 if (arg3 == NULL) SWIG_fail;
30705 temp3 = true;
30706 }
30707 if (obj3) {
30708 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30709 if (!SWIG_IsOK(ecode4)) {
30710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30711 }
30712 arg4 = static_cast< bool >(val4);
30713 }
30714 {
30715 PyThreadState* __tstate = wxPyBeginAllowThreads();
30716 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30717 wxPyEndAllowThreads(__tstate);
30718 if (PyErr_Occurred()) SWIG_fail;
30719 }
30720 resultobj = SWIG_From_long(static_cast< long >(result));
30721 {
30722 if (temp3)
30723 delete arg3;
30724 }
30725 return resultobj;
30726 fail:
30727 {
30728 if (temp3)
30729 delete arg3;
30730 }
30731 return NULL;
30732 }
30733
30734
30735 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30736 PyObject *resultobj = 0;
30737 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30738 long arg2 ;
30739 long arg3 ;
30740 long result;
30741 void *argp1 = 0 ;
30742 int res1 = 0 ;
30743 long val2 ;
30744 int ecode2 = 0 ;
30745 long val3 ;
30746 int ecode3 = 0 ;
30747 PyObject * obj0 = 0 ;
30748 PyObject * obj1 = 0 ;
30749 PyObject * obj2 = 0 ;
30750 char * kwnames[] = {
30751 (char *) "self",(char *) "start",(char *) "data", NULL
30752 };
30753
30754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30756 if (!SWIG_IsOK(res1)) {
30757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30758 }
30759 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30760 ecode2 = SWIG_AsVal_long(obj1, &val2);
30761 if (!SWIG_IsOK(ecode2)) {
30762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30763 }
30764 arg2 = static_cast< long >(val2);
30765 ecode3 = SWIG_AsVal_long(obj2, &val3);
30766 if (!SWIG_IsOK(ecode3)) {
30767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30768 }
30769 arg3 = static_cast< long >(val3);
30770 {
30771 PyThreadState* __tstate = wxPyBeginAllowThreads();
30772 result = (long)(arg1)->FindItem(arg2,arg3);
30773 wxPyEndAllowThreads(__tstate);
30774 if (PyErr_Occurred()) SWIG_fail;
30775 }
30776 resultobj = SWIG_From_long(static_cast< long >(result));
30777 return resultobj;
30778 fail:
30779 return NULL;
30780 }
30781
30782
30783 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30784 PyObject *resultobj = 0;
30785 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30786 long arg2 ;
30787 wxPoint *arg3 = 0 ;
30788 int arg4 ;
30789 long result;
30790 void *argp1 = 0 ;
30791 int res1 = 0 ;
30792 long val2 ;
30793 int ecode2 = 0 ;
30794 wxPoint temp3 ;
30795 int val4 ;
30796 int ecode4 = 0 ;
30797 PyObject * obj0 = 0 ;
30798 PyObject * obj1 = 0 ;
30799 PyObject * obj2 = 0 ;
30800 PyObject * obj3 = 0 ;
30801 char * kwnames[] = {
30802 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30803 };
30804
30805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30807 if (!SWIG_IsOK(res1)) {
30808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30809 }
30810 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30811 ecode2 = SWIG_AsVal_long(obj1, &val2);
30812 if (!SWIG_IsOK(ecode2)) {
30813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30814 }
30815 arg2 = static_cast< long >(val2);
30816 {
30817 arg3 = &temp3;
30818 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30819 }
30820 ecode4 = SWIG_AsVal_int(obj3, &val4);
30821 if (!SWIG_IsOK(ecode4)) {
30822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30823 }
30824 arg4 = static_cast< int >(val4);
30825 {
30826 PyThreadState* __tstate = wxPyBeginAllowThreads();
30827 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30828 wxPyEndAllowThreads(__tstate);
30829 if (PyErr_Occurred()) SWIG_fail;
30830 }
30831 resultobj = SWIG_From_long(static_cast< long >(result));
30832 return resultobj;
30833 fail:
30834 return NULL;
30835 }
30836
30837
30838 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30839 PyObject *resultobj = 0;
30840 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30841 wxPoint *arg2 = 0 ;
30842 int *arg3 = 0 ;
30843 long result;
30844 void *argp1 = 0 ;
30845 int res1 = 0 ;
30846 wxPoint temp2 ;
30847 int temp3 ;
30848 int res3 = SWIG_TMPOBJ ;
30849 PyObject * obj0 = 0 ;
30850 PyObject * obj1 = 0 ;
30851 char * kwnames[] = {
30852 (char *) "self",(char *) "point", NULL
30853 };
30854
30855 arg3 = &temp3;
30856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30858 if (!SWIG_IsOK(res1)) {
30859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30860 }
30861 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30862 {
30863 arg2 = &temp2;
30864 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30865 }
30866 {
30867 PyThreadState* __tstate = wxPyBeginAllowThreads();
30868 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30869 wxPyEndAllowThreads(__tstate);
30870 if (PyErr_Occurred()) SWIG_fail;
30871 }
30872 resultobj = SWIG_From_long(static_cast< long >(result));
30873 if (SWIG_IsTmpObj(res3)) {
30874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30875 } else {
30876 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30878 }
30879 return resultobj;
30880 fail:
30881 return NULL;
30882 }
30883
30884
30885 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30886 PyObject *resultobj = 0;
30887 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30888 wxListItem *arg2 = 0 ;
30889 long result;
30890 void *argp1 = 0 ;
30891 int res1 = 0 ;
30892 void *argp2 = 0 ;
30893 int res2 = 0 ;
30894 PyObject * obj0 = 0 ;
30895 PyObject * obj1 = 0 ;
30896 char * kwnames[] = {
30897 (char *) "self",(char *) "info", NULL
30898 };
30899
30900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30902 if (!SWIG_IsOK(res1)) {
30903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30904 }
30905 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30906 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30907 if (!SWIG_IsOK(res2)) {
30908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30909 }
30910 if (!argp2) {
30911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30912 }
30913 arg2 = reinterpret_cast< wxListItem * >(argp2);
30914 {
30915 PyThreadState* __tstate = wxPyBeginAllowThreads();
30916 result = (long)(arg1)->InsertItem(*arg2);
30917 wxPyEndAllowThreads(__tstate);
30918 if (PyErr_Occurred()) SWIG_fail;
30919 }
30920 resultobj = SWIG_From_long(static_cast< long >(result));
30921 return resultobj;
30922 fail:
30923 return NULL;
30924 }
30925
30926
30927 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30928 PyObject *resultobj = 0;
30929 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30930 long arg2 ;
30931 wxString *arg3 = 0 ;
30932 int arg4 = (int) -1 ;
30933 long result;
30934 void *argp1 = 0 ;
30935 int res1 = 0 ;
30936 long val2 ;
30937 int ecode2 = 0 ;
30938 bool temp3 = false ;
30939 int val4 ;
30940 int ecode4 = 0 ;
30941 PyObject * obj0 = 0 ;
30942 PyObject * obj1 = 0 ;
30943 PyObject * obj2 = 0 ;
30944 PyObject * obj3 = 0 ;
30945 char * kwnames[] = {
30946 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30947 };
30948
30949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30951 if (!SWIG_IsOK(res1)) {
30952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30953 }
30954 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30955 ecode2 = SWIG_AsVal_long(obj1, &val2);
30956 if (!SWIG_IsOK(ecode2)) {
30957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30958 }
30959 arg2 = static_cast< long >(val2);
30960 {
30961 arg3 = wxString_in_helper(obj2);
30962 if (arg3 == NULL) SWIG_fail;
30963 temp3 = true;
30964 }
30965 if (obj3) {
30966 ecode4 = SWIG_AsVal_int(obj3, &val4);
30967 if (!SWIG_IsOK(ecode4)) {
30968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30969 }
30970 arg4 = static_cast< int >(val4);
30971 }
30972 {
30973 PyThreadState* __tstate = wxPyBeginAllowThreads();
30974 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30975 wxPyEndAllowThreads(__tstate);
30976 if (PyErr_Occurred()) SWIG_fail;
30977 }
30978 resultobj = SWIG_From_long(static_cast< long >(result));
30979 {
30980 if (temp3)
30981 delete arg3;
30982 }
30983 return resultobj;
30984 fail:
30985 {
30986 if (temp3)
30987 delete arg3;
30988 }
30989 return NULL;
30990 }
30991
30992
30993 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30994 PyObject *resultobj = 0;
30995 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30996 long arg2 ;
30997 int arg3 ;
30998 long result;
30999 void *argp1 = 0 ;
31000 int res1 = 0 ;
31001 long val2 ;
31002 int ecode2 = 0 ;
31003 int val3 ;
31004 int ecode3 = 0 ;
31005 PyObject * obj0 = 0 ;
31006 PyObject * obj1 = 0 ;
31007 PyObject * obj2 = 0 ;
31008 char * kwnames[] = {
31009 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31010 };
31011
31012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31014 if (!SWIG_IsOK(res1)) {
31015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31016 }
31017 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31018 ecode2 = SWIG_AsVal_long(obj1, &val2);
31019 if (!SWIG_IsOK(ecode2)) {
31020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31021 }
31022 arg2 = static_cast< long >(val2);
31023 ecode3 = SWIG_AsVal_int(obj2, &val3);
31024 if (!SWIG_IsOK(ecode3)) {
31025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31026 }
31027 arg3 = static_cast< int >(val3);
31028 {
31029 PyThreadState* __tstate = wxPyBeginAllowThreads();
31030 result = (long)(arg1)->InsertItem(arg2,arg3);
31031 wxPyEndAllowThreads(__tstate);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 resultobj = SWIG_From_long(static_cast< long >(result));
31035 return resultobj;
31036 fail:
31037 return NULL;
31038 }
31039
31040
31041 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31042 PyObject *resultobj = 0;
31043 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31044 long arg2 ;
31045 wxString *arg3 = 0 ;
31046 int arg4 ;
31047 long result;
31048 void *argp1 = 0 ;
31049 int res1 = 0 ;
31050 long val2 ;
31051 int ecode2 = 0 ;
31052 bool temp3 = false ;
31053 int val4 ;
31054 int ecode4 = 0 ;
31055 PyObject * obj0 = 0 ;
31056 PyObject * obj1 = 0 ;
31057 PyObject * obj2 = 0 ;
31058 PyObject * obj3 = 0 ;
31059 char * kwnames[] = {
31060 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31061 };
31062
31063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31065 if (!SWIG_IsOK(res1)) {
31066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31067 }
31068 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31069 ecode2 = SWIG_AsVal_long(obj1, &val2);
31070 if (!SWIG_IsOK(ecode2)) {
31071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31072 }
31073 arg2 = static_cast< long >(val2);
31074 {
31075 arg3 = wxString_in_helper(obj2);
31076 if (arg3 == NULL) SWIG_fail;
31077 temp3 = true;
31078 }
31079 ecode4 = SWIG_AsVal_int(obj3, &val4);
31080 if (!SWIG_IsOK(ecode4)) {
31081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31082 }
31083 arg4 = static_cast< int >(val4);
31084 {
31085 PyThreadState* __tstate = wxPyBeginAllowThreads();
31086 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31087 wxPyEndAllowThreads(__tstate);
31088 if (PyErr_Occurred()) SWIG_fail;
31089 }
31090 resultobj = SWIG_From_long(static_cast< long >(result));
31091 {
31092 if (temp3)
31093 delete arg3;
31094 }
31095 return resultobj;
31096 fail:
31097 {
31098 if (temp3)
31099 delete arg3;
31100 }
31101 return NULL;
31102 }
31103
31104
31105 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31106 PyObject *resultobj = 0;
31107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31108 long arg2 ;
31109 wxListItem *arg3 = 0 ;
31110 long result;
31111 void *argp1 = 0 ;
31112 int res1 = 0 ;
31113 long val2 ;
31114 int ecode2 = 0 ;
31115 void *argp3 = 0 ;
31116 int res3 = 0 ;
31117 PyObject * obj0 = 0 ;
31118 PyObject * obj1 = 0 ;
31119 PyObject * obj2 = 0 ;
31120 char * kwnames[] = {
31121 (char *) "self",(char *) "col",(char *) "info", NULL
31122 };
31123
31124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31126 if (!SWIG_IsOK(res1)) {
31127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31128 }
31129 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31130 ecode2 = SWIG_AsVal_long(obj1, &val2);
31131 if (!SWIG_IsOK(ecode2)) {
31132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31133 }
31134 arg2 = static_cast< long >(val2);
31135 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31136 if (!SWIG_IsOK(res3)) {
31137 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31138 }
31139 if (!argp3) {
31140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31141 }
31142 arg3 = reinterpret_cast< wxListItem * >(argp3);
31143 {
31144 PyThreadState* __tstate = wxPyBeginAllowThreads();
31145 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31146 wxPyEndAllowThreads(__tstate);
31147 if (PyErr_Occurred()) SWIG_fail;
31148 }
31149 resultobj = SWIG_From_long(static_cast< long >(result));
31150 return resultobj;
31151 fail:
31152 return NULL;
31153 }
31154
31155
31156 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31157 PyObject *resultobj = 0;
31158 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31159 long arg2 ;
31160 wxString *arg3 = 0 ;
31161 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31162 int arg5 = (int) -1 ;
31163 long result;
31164 void *argp1 = 0 ;
31165 int res1 = 0 ;
31166 long val2 ;
31167 int ecode2 = 0 ;
31168 bool temp3 = false ;
31169 int val4 ;
31170 int ecode4 = 0 ;
31171 int val5 ;
31172 int ecode5 = 0 ;
31173 PyObject * obj0 = 0 ;
31174 PyObject * obj1 = 0 ;
31175 PyObject * obj2 = 0 ;
31176 PyObject * obj3 = 0 ;
31177 PyObject * obj4 = 0 ;
31178 char * kwnames[] = {
31179 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31180 };
31181
31182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31184 if (!SWIG_IsOK(res1)) {
31185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31186 }
31187 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31188 ecode2 = SWIG_AsVal_long(obj1, &val2);
31189 if (!SWIG_IsOK(ecode2)) {
31190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31191 }
31192 arg2 = static_cast< long >(val2);
31193 {
31194 arg3 = wxString_in_helper(obj2);
31195 if (arg3 == NULL) SWIG_fail;
31196 temp3 = true;
31197 }
31198 if (obj3) {
31199 ecode4 = SWIG_AsVal_int(obj3, &val4);
31200 if (!SWIG_IsOK(ecode4)) {
31201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31202 }
31203 arg4 = static_cast< int >(val4);
31204 }
31205 if (obj4) {
31206 ecode5 = SWIG_AsVal_int(obj4, &val5);
31207 if (!SWIG_IsOK(ecode5)) {
31208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31209 }
31210 arg5 = static_cast< int >(val5);
31211 }
31212 {
31213 PyThreadState* __tstate = wxPyBeginAllowThreads();
31214 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31215 wxPyEndAllowThreads(__tstate);
31216 if (PyErr_Occurred()) SWIG_fail;
31217 }
31218 resultobj = SWIG_From_long(static_cast< long >(result));
31219 {
31220 if (temp3)
31221 delete arg3;
31222 }
31223 return resultobj;
31224 fail:
31225 {
31226 if (temp3)
31227 delete arg3;
31228 }
31229 return NULL;
31230 }
31231
31232
31233 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31234 PyObject *resultobj = 0;
31235 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31236 long arg2 ;
31237 void *argp1 = 0 ;
31238 int res1 = 0 ;
31239 long val2 ;
31240 int ecode2 = 0 ;
31241 PyObject * obj0 = 0 ;
31242 PyObject * obj1 = 0 ;
31243 char * kwnames[] = {
31244 (char *) "self",(char *) "count", NULL
31245 };
31246
31247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31249 if (!SWIG_IsOK(res1)) {
31250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31251 }
31252 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31253 ecode2 = SWIG_AsVal_long(obj1, &val2);
31254 if (!SWIG_IsOK(ecode2)) {
31255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31256 }
31257 arg2 = static_cast< long >(val2);
31258 {
31259 PyThreadState* __tstate = wxPyBeginAllowThreads();
31260 (arg1)->SetItemCount(arg2);
31261 wxPyEndAllowThreads(__tstate);
31262 if (PyErr_Occurred()) SWIG_fail;
31263 }
31264 resultobj = SWIG_Py_Void();
31265 return resultobj;
31266 fail:
31267 return NULL;
31268 }
31269
31270
31271 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31272 PyObject *resultobj = 0;
31273 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31274 int arg2 ;
31275 int arg3 ;
31276 bool result;
31277 void *argp1 = 0 ;
31278 int res1 = 0 ;
31279 int val2 ;
31280 int ecode2 = 0 ;
31281 int val3 ;
31282 int ecode3 = 0 ;
31283 PyObject * obj0 = 0 ;
31284 PyObject * obj1 = 0 ;
31285 PyObject * obj2 = 0 ;
31286 char * kwnames[] = {
31287 (char *) "self",(char *) "dx",(char *) "dy", NULL
31288 };
31289
31290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31292 if (!SWIG_IsOK(res1)) {
31293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31294 }
31295 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31296 ecode2 = SWIG_AsVal_int(obj1, &val2);
31297 if (!SWIG_IsOK(ecode2)) {
31298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31299 }
31300 arg2 = static_cast< int >(val2);
31301 ecode3 = SWIG_AsVal_int(obj2, &val3);
31302 if (!SWIG_IsOK(ecode3)) {
31303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31304 }
31305 arg3 = static_cast< int >(val3);
31306 {
31307 PyThreadState* __tstate = wxPyBeginAllowThreads();
31308 result = (bool)(arg1)->ScrollList(arg2,arg3);
31309 wxPyEndAllowThreads(__tstate);
31310 if (PyErr_Occurred()) SWIG_fail;
31311 }
31312 {
31313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31314 }
31315 return resultobj;
31316 fail:
31317 return NULL;
31318 }
31319
31320
31321 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31322 PyObject *resultobj = 0;
31323 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31324 long arg2 ;
31325 wxColour *arg3 = 0 ;
31326 void *argp1 = 0 ;
31327 int res1 = 0 ;
31328 long val2 ;
31329 int ecode2 = 0 ;
31330 wxColour temp3 ;
31331 PyObject * obj0 = 0 ;
31332 PyObject * obj1 = 0 ;
31333 PyObject * obj2 = 0 ;
31334 char * kwnames[] = {
31335 (char *) "self",(char *) "item",(char *) "col", NULL
31336 };
31337
31338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31340 if (!SWIG_IsOK(res1)) {
31341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31342 }
31343 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31344 ecode2 = SWIG_AsVal_long(obj1, &val2);
31345 if (!SWIG_IsOK(ecode2)) {
31346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31347 }
31348 arg2 = static_cast< long >(val2);
31349 {
31350 arg3 = &temp3;
31351 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31352 }
31353 {
31354 PyThreadState* __tstate = wxPyBeginAllowThreads();
31355 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31356 wxPyEndAllowThreads(__tstate);
31357 if (PyErr_Occurred()) SWIG_fail;
31358 }
31359 resultobj = SWIG_Py_Void();
31360 return resultobj;
31361 fail:
31362 return NULL;
31363 }
31364
31365
31366 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31367 PyObject *resultobj = 0;
31368 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31369 long arg2 ;
31370 wxColour result;
31371 void *argp1 = 0 ;
31372 int res1 = 0 ;
31373 long val2 ;
31374 int ecode2 = 0 ;
31375 PyObject * obj0 = 0 ;
31376 PyObject * obj1 = 0 ;
31377 char * kwnames[] = {
31378 (char *) "self",(char *) "item", NULL
31379 };
31380
31381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31383 if (!SWIG_IsOK(res1)) {
31384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31385 }
31386 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31387 ecode2 = SWIG_AsVal_long(obj1, &val2);
31388 if (!SWIG_IsOK(ecode2)) {
31389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31390 }
31391 arg2 = static_cast< long >(val2);
31392 {
31393 PyThreadState* __tstate = wxPyBeginAllowThreads();
31394 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31395 wxPyEndAllowThreads(__tstate);
31396 if (PyErr_Occurred()) SWIG_fail;
31397 }
31398 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31399 return resultobj;
31400 fail:
31401 return NULL;
31402 }
31403
31404
31405 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31406 PyObject *resultobj = 0;
31407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31408 long arg2 ;
31409 wxColour *arg3 = 0 ;
31410 void *argp1 = 0 ;
31411 int res1 = 0 ;
31412 long val2 ;
31413 int ecode2 = 0 ;
31414 wxColour temp3 ;
31415 PyObject * obj0 = 0 ;
31416 PyObject * obj1 = 0 ;
31417 PyObject * obj2 = 0 ;
31418 char * kwnames[] = {
31419 (char *) "self",(char *) "item",(char *) "col", NULL
31420 };
31421
31422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31424 if (!SWIG_IsOK(res1)) {
31425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31426 }
31427 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31428 ecode2 = SWIG_AsVal_long(obj1, &val2);
31429 if (!SWIG_IsOK(ecode2)) {
31430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31431 }
31432 arg2 = static_cast< long >(val2);
31433 {
31434 arg3 = &temp3;
31435 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31436 }
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 resultobj = SWIG_Py_Void();
31444 return resultobj;
31445 fail:
31446 return NULL;
31447 }
31448
31449
31450 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31451 PyObject *resultobj = 0;
31452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31453 long arg2 ;
31454 wxColour result;
31455 void *argp1 = 0 ;
31456 int res1 = 0 ;
31457 long val2 ;
31458 int ecode2 = 0 ;
31459 PyObject * obj0 = 0 ;
31460 PyObject * obj1 = 0 ;
31461 char * kwnames[] = {
31462 (char *) "self",(char *) "item", NULL
31463 };
31464
31465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31467 if (!SWIG_IsOK(res1)) {
31468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31469 }
31470 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31471 ecode2 = SWIG_AsVal_long(obj1, &val2);
31472 if (!SWIG_IsOK(ecode2)) {
31473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31474 }
31475 arg2 = static_cast< long >(val2);
31476 {
31477 PyThreadState* __tstate = wxPyBeginAllowThreads();
31478 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31479 wxPyEndAllowThreads(__tstate);
31480 if (PyErr_Occurred()) SWIG_fail;
31481 }
31482 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31483 return resultobj;
31484 fail:
31485 return NULL;
31486 }
31487
31488
31489 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31490 PyObject *resultobj = 0;
31491 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31492 long arg2 ;
31493 wxFont *arg3 = 0 ;
31494 void *argp1 = 0 ;
31495 int res1 = 0 ;
31496 long val2 ;
31497 int ecode2 = 0 ;
31498 void *argp3 = 0 ;
31499 int res3 = 0 ;
31500 PyObject * obj0 = 0 ;
31501 PyObject * obj1 = 0 ;
31502 PyObject * obj2 = 0 ;
31503 char * kwnames[] = {
31504 (char *) "self",(char *) "item",(char *) "f", NULL
31505 };
31506
31507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31509 if (!SWIG_IsOK(res1)) {
31510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31511 }
31512 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31513 ecode2 = SWIG_AsVal_long(obj1, &val2);
31514 if (!SWIG_IsOK(ecode2)) {
31515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31516 }
31517 arg2 = static_cast< long >(val2);
31518 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31519 if (!SWIG_IsOK(res3)) {
31520 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31521 }
31522 if (!argp3) {
31523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31524 }
31525 arg3 = reinterpret_cast< wxFont * >(argp3);
31526 {
31527 PyThreadState* __tstate = wxPyBeginAllowThreads();
31528 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31529 wxPyEndAllowThreads(__tstate);
31530 if (PyErr_Occurred()) SWIG_fail;
31531 }
31532 resultobj = SWIG_Py_Void();
31533 return resultobj;
31534 fail:
31535 return NULL;
31536 }
31537
31538
31539 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31540 PyObject *resultobj = 0;
31541 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31542 long arg2 ;
31543 wxFont result;
31544 void *argp1 = 0 ;
31545 int res1 = 0 ;
31546 long val2 ;
31547 int ecode2 = 0 ;
31548 PyObject * obj0 = 0 ;
31549 PyObject * obj1 = 0 ;
31550 char * kwnames[] = {
31551 (char *) "self",(char *) "item", NULL
31552 };
31553
31554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31556 if (!SWIG_IsOK(res1)) {
31557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31558 }
31559 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31560 ecode2 = SWIG_AsVal_long(obj1, &val2);
31561 if (!SWIG_IsOK(ecode2)) {
31562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31563 }
31564 arg2 = static_cast< long >(val2);
31565 {
31566 PyThreadState* __tstate = wxPyBeginAllowThreads();
31567 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31568 wxPyEndAllowThreads(__tstate);
31569 if (PyErr_Occurred()) SWIG_fail;
31570 }
31571 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31572 return resultobj;
31573 fail:
31574 return NULL;
31575 }
31576
31577
31578 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31579 PyObject *resultobj = 0;
31580 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31581 PyObject *arg2 = (PyObject *) 0 ;
31582 bool result;
31583 void *argp1 = 0 ;
31584 int res1 = 0 ;
31585 PyObject * obj0 = 0 ;
31586 PyObject * obj1 = 0 ;
31587 char * kwnames[] = {
31588 (char *) "self",(char *) "func", NULL
31589 };
31590
31591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31593 if (!SWIG_IsOK(res1)) {
31594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31595 }
31596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31597 arg2 = obj1;
31598 {
31599 PyThreadState* __tstate = wxPyBeginAllowThreads();
31600 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31601 wxPyEndAllowThreads(__tstate);
31602 if (PyErr_Occurred()) SWIG_fail;
31603 }
31604 {
31605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31606 }
31607 return resultobj;
31608 fail:
31609 return NULL;
31610 }
31611
31612
31613 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31614 PyObject *resultobj = 0;
31615 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31616 wxWindow *result = 0 ;
31617 void *argp1 = 0 ;
31618 int res1 = 0 ;
31619 PyObject *swig_obj[1] ;
31620
31621 if (!args) SWIG_fail;
31622 swig_obj[0] = args;
31623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31624 if (!SWIG_IsOK(res1)) {
31625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31626 }
31627 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31628 {
31629 PyThreadState* __tstate = wxPyBeginAllowThreads();
31630 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31631 wxPyEndAllowThreads(__tstate);
31632 if (PyErr_Occurred()) SWIG_fail;
31633 }
31634 {
31635 resultobj = wxPyMake_wxObject(result, 0);
31636 }
31637 return resultobj;
31638 fail:
31639 return NULL;
31640 }
31641
31642
31643 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31644 PyObject *resultobj = 0;
31645 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31646 SwigValueWrapper<wxVisualAttributes > result;
31647 int val1 ;
31648 int ecode1 = 0 ;
31649 PyObject * obj0 = 0 ;
31650 char * kwnames[] = {
31651 (char *) "variant", NULL
31652 };
31653
31654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31655 if (obj0) {
31656 ecode1 = SWIG_AsVal_int(obj0, &val1);
31657 if (!SWIG_IsOK(ecode1)) {
31658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31659 }
31660 arg1 = static_cast< wxWindowVariant >(val1);
31661 }
31662 {
31663 if (!wxPyCheckForApp()) SWIG_fail;
31664 PyThreadState* __tstate = wxPyBeginAllowThreads();
31665 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31666 wxPyEndAllowThreads(__tstate);
31667 if (PyErr_Occurred()) SWIG_fail;
31668 }
31669 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31670 return resultobj;
31671 fail:
31672 return NULL;
31673 }
31674
31675
31676 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31677 PyObject *obj;
31678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31679 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31680 return SWIG_Py_Void();
31681 }
31682
31683 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31684 return SWIG_Python_InitShadowInstance(args);
31685 }
31686
31687 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31688 PyObject *resultobj = 0;
31689 wxWindow *arg1 = (wxWindow *) 0 ;
31690 int arg2 = (int) -1 ;
31691 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31692 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31693 wxSize const &arg4_defvalue = wxDefaultSize ;
31694 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31695 long arg5 = (long) wxLC_REPORT ;
31696 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31697 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31698 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31699 wxString *arg7 = (wxString *) &arg7_defvalue ;
31700 wxListView *result = 0 ;
31701 void *argp1 = 0 ;
31702 int res1 = 0 ;
31703 int val2 ;
31704 int ecode2 = 0 ;
31705 wxPoint temp3 ;
31706 wxSize temp4 ;
31707 long val5 ;
31708 int ecode5 = 0 ;
31709 void *argp6 = 0 ;
31710 int res6 = 0 ;
31711 bool temp7 = false ;
31712 PyObject * obj0 = 0 ;
31713 PyObject * obj1 = 0 ;
31714 PyObject * obj2 = 0 ;
31715 PyObject * obj3 = 0 ;
31716 PyObject * obj4 = 0 ;
31717 PyObject * obj5 = 0 ;
31718 PyObject * obj6 = 0 ;
31719 char * kwnames[] = {
31720 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31721 };
31722
31723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31725 if (!SWIG_IsOK(res1)) {
31726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31727 }
31728 arg1 = reinterpret_cast< wxWindow * >(argp1);
31729 if (obj1) {
31730 ecode2 = SWIG_AsVal_int(obj1, &val2);
31731 if (!SWIG_IsOK(ecode2)) {
31732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31733 }
31734 arg2 = static_cast< int >(val2);
31735 }
31736 if (obj2) {
31737 {
31738 arg3 = &temp3;
31739 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31740 }
31741 }
31742 if (obj3) {
31743 {
31744 arg4 = &temp4;
31745 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31746 }
31747 }
31748 if (obj4) {
31749 ecode5 = SWIG_AsVal_long(obj4, &val5);
31750 if (!SWIG_IsOK(ecode5)) {
31751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31752 }
31753 arg5 = static_cast< long >(val5);
31754 }
31755 if (obj5) {
31756 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31757 if (!SWIG_IsOK(res6)) {
31758 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31759 }
31760 if (!argp6) {
31761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31762 }
31763 arg6 = reinterpret_cast< wxValidator * >(argp6);
31764 }
31765 if (obj6) {
31766 {
31767 arg7 = wxString_in_helper(obj6);
31768 if (arg7 == NULL) SWIG_fail;
31769 temp7 = true;
31770 }
31771 }
31772 {
31773 if (!wxPyCheckForApp()) SWIG_fail;
31774 PyThreadState* __tstate = wxPyBeginAllowThreads();
31775 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31776 wxPyEndAllowThreads(__tstate);
31777 if (PyErr_Occurred()) SWIG_fail;
31778 }
31779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31780 {
31781 if (temp7)
31782 delete arg7;
31783 }
31784 return resultobj;
31785 fail:
31786 {
31787 if (temp7)
31788 delete arg7;
31789 }
31790 return NULL;
31791 }
31792
31793
31794 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31795 PyObject *resultobj = 0;
31796 wxListView *result = 0 ;
31797
31798 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31799 {
31800 if (!wxPyCheckForApp()) SWIG_fail;
31801 PyThreadState* __tstate = wxPyBeginAllowThreads();
31802 result = (wxListView *)new wxListView();
31803 wxPyEndAllowThreads(__tstate);
31804 if (PyErr_Occurred()) SWIG_fail;
31805 }
31806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31807 return resultobj;
31808 fail:
31809 return NULL;
31810 }
31811
31812
31813 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31814 PyObject *resultobj = 0;
31815 wxListView *arg1 = (wxListView *) 0 ;
31816 wxWindow *arg2 = (wxWindow *) 0 ;
31817 int arg3 = (int) -1 ;
31818 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31819 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31820 wxSize const &arg5_defvalue = wxDefaultSize ;
31821 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31822 long arg6 = (long) wxLC_REPORT ;
31823 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31824 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31825 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31826 wxString *arg8 = (wxString *) &arg8_defvalue ;
31827 bool result;
31828 void *argp1 = 0 ;
31829 int res1 = 0 ;
31830 void *argp2 = 0 ;
31831 int res2 = 0 ;
31832 int val3 ;
31833 int ecode3 = 0 ;
31834 wxPoint temp4 ;
31835 wxSize temp5 ;
31836 long val6 ;
31837 int ecode6 = 0 ;
31838 void *argp7 = 0 ;
31839 int res7 = 0 ;
31840 bool temp8 = false ;
31841 PyObject * obj0 = 0 ;
31842 PyObject * obj1 = 0 ;
31843 PyObject * obj2 = 0 ;
31844 PyObject * obj3 = 0 ;
31845 PyObject * obj4 = 0 ;
31846 PyObject * obj5 = 0 ;
31847 PyObject * obj6 = 0 ;
31848 PyObject * obj7 = 0 ;
31849 char * kwnames[] = {
31850 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31851 };
31852
31853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31855 if (!SWIG_IsOK(res1)) {
31856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31857 }
31858 arg1 = reinterpret_cast< wxListView * >(argp1);
31859 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31860 if (!SWIG_IsOK(res2)) {
31861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31862 }
31863 arg2 = reinterpret_cast< wxWindow * >(argp2);
31864 if (obj2) {
31865 ecode3 = SWIG_AsVal_int(obj2, &val3);
31866 if (!SWIG_IsOK(ecode3)) {
31867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31868 }
31869 arg3 = static_cast< int >(val3);
31870 }
31871 if (obj3) {
31872 {
31873 arg4 = &temp4;
31874 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31875 }
31876 }
31877 if (obj4) {
31878 {
31879 arg5 = &temp5;
31880 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31881 }
31882 }
31883 if (obj5) {
31884 ecode6 = SWIG_AsVal_long(obj5, &val6);
31885 if (!SWIG_IsOK(ecode6)) {
31886 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31887 }
31888 arg6 = static_cast< long >(val6);
31889 }
31890 if (obj6) {
31891 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31892 if (!SWIG_IsOK(res7)) {
31893 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31894 }
31895 if (!argp7) {
31896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31897 }
31898 arg7 = reinterpret_cast< wxValidator * >(argp7);
31899 }
31900 if (obj7) {
31901 {
31902 arg8 = wxString_in_helper(obj7);
31903 if (arg8 == NULL) SWIG_fail;
31904 temp8 = true;
31905 }
31906 }
31907 {
31908 PyThreadState* __tstate = wxPyBeginAllowThreads();
31909 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31910 wxPyEndAllowThreads(__tstate);
31911 if (PyErr_Occurred()) SWIG_fail;
31912 }
31913 {
31914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31915 }
31916 {
31917 if (temp8)
31918 delete arg8;
31919 }
31920 return resultobj;
31921 fail:
31922 {
31923 if (temp8)
31924 delete arg8;
31925 }
31926 return NULL;
31927 }
31928
31929
31930 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31931 PyObject *resultobj = 0;
31932 wxListView *arg1 = (wxListView *) 0 ;
31933 long arg2 ;
31934 bool arg3 = (bool) true ;
31935 void *argp1 = 0 ;
31936 int res1 = 0 ;
31937 long val2 ;
31938 int ecode2 = 0 ;
31939 bool val3 ;
31940 int ecode3 = 0 ;
31941 PyObject * obj0 = 0 ;
31942 PyObject * obj1 = 0 ;
31943 PyObject * obj2 = 0 ;
31944 char * kwnames[] = {
31945 (char *) "self",(char *) "n",(char *) "on", NULL
31946 };
31947
31948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31950 if (!SWIG_IsOK(res1)) {
31951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31952 }
31953 arg1 = reinterpret_cast< wxListView * >(argp1);
31954 ecode2 = SWIG_AsVal_long(obj1, &val2);
31955 if (!SWIG_IsOK(ecode2)) {
31956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31957 }
31958 arg2 = static_cast< long >(val2);
31959 if (obj2) {
31960 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31961 if (!SWIG_IsOK(ecode3)) {
31962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31963 }
31964 arg3 = static_cast< bool >(val3);
31965 }
31966 {
31967 PyThreadState* __tstate = wxPyBeginAllowThreads();
31968 (arg1)->Select(arg2,arg3);
31969 wxPyEndAllowThreads(__tstate);
31970 if (PyErr_Occurred()) SWIG_fail;
31971 }
31972 resultobj = SWIG_Py_Void();
31973 return resultobj;
31974 fail:
31975 return NULL;
31976 }
31977
31978
31979 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31980 PyObject *resultobj = 0;
31981 wxListView *arg1 = (wxListView *) 0 ;
31982 long arg2 ;
31983 void *argp1 = 0 ;
31984 int res1 = 0 ;
31985 long val2 ;
31986 int ecode2 = 0 ;
31987 PyObject * obj0 = 0 ;
31988 PyObject * obj1 = 0 ;
31989 char * kwnames[] = {
31990 (char *) "self",(char *) "index", NULL
31991 };
31992
31993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31995 if (!SWIG_IsOK(res1)) {
31996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31997 }
31998 arg1 = reinterpret_cast< wxListView * >(argp1);
31999 ecode2 = SWIG_AsVal_long(obj1, &val2);
32000 if (!SWIG_IsOK(ecode2)) {
32001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32002 }
32003 arg2 = static_cast< long >(val2);
32004 {
32005 PyThreadState* __tstate = wxPyBeginAllowThreads();
32006 (arg1)->Focus(arg2);
32007 wxPyEndAllowThreads(__tstate);
32008 if (PyErr_Occurred()) SWIG_fail;
32009 }
32010 resultobj = SWIG_Py_Void();
32011 return resultobj;
32012 fail:
32013 return NULL;
32014 }
32015
32016
32017 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32018 PyObject *resultobj = 0;
32019 wxListView *arg1 = (wxListView *) 0 ;
32020 long result;
32021 void *argp1 = 0 ;
32022 int res1 = 0 ;
32023 PyObject *swig_obj[1] ;
32024
32025 if (!args) SWIG_fail;
32026 swig_obj[0] = args;
32027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32028 if (!SWIG_IsOK(res1)) {
32029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32030 }
32031 arg1 = reinterpret_cast< wxListView * >(argp1);
32032 {
32033 PyThreadState* __tstate = wxPyBeginAllowThreads();
32034 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32035 wxPyEndAllowThreads(__tstate);
32036 if (PyErr_Occurred()) SWIG_fail;
32037 }
32038 resultobj = SWIG_From_long(static_cast< long >(result));
32039 return resultobj;
32040 fail:
32041 return NULL;
32042 }
32043
32044
32045 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32046 PyObject *resultobj = 0;
32047 wxListView *arg1 = (wxListView *) 0 ;
32048 long arg2 ;
32049 long result;
32050 void *argp1 = 0 ;
32051 int res1 = 0 ;
32052 long val2 ;
32053 int ecode2 = 0 ;
32054 PyObject * obj0 = 0 ;
32055 PyObject * obj1 = 0 ;
32056 char * kwnames[] = {
32057 (char *) "self",(char *) "item", NULL
32058 };
32059
32060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32062 if (!SWIG_IsOK(res1)) {
32063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32064 }
32065 arg1 = reinterpret_cast< wxListView * >(argp1);
32066 ecode2 = SWIG_AsVal_long(obj1, &val2);
32067 if (!SWIG_IsOK(ecode2)) {
32068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32069 }
32070 arg2 = static_cast< long >(val2);
32071 {
32072 PyThreadState* __tstate = wxPyBeginAllowThreads();
32073 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32074 wxPyEndAllowThreads(__tstate);
32075 if (PyErr_Occurred()) SWIG_fail;
32076 }
32077 resultobj = SWIG_From_long(static_cast< long >(result));
32078 return resultobj;
32079 fail:
32080 return NULL;
32081 }
32082
32083
32084 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32085 PyObject *resultobj = 0;
32086 wxListView *arg1 = (wxListView *) 0 ;
32087 long result;
32088 void *argp1 = 0 ;
32089 int res1 = 0 ;
32090 PyObject *swig_obj[1] ;
32091
32092 if (!args) SWIG_fail;
32093 swig_obj[0] = args;
32094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32095 if (!SWIG_IsOK(res1)) {
32096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32097 }
32098 arg1 = reinterpret_cast< wxListView * >(argp1);
32099 {
32100 PyThreadState* __tstate = wxPyBeginAllowThreads();
32101 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32102 wxPyEndAllowThreads(__tstate);
32103 if (PyErr_Occurred()) SWIG_fail;
32104 }
32105 resultobj = SWIG_From_long(static_cast< long >(result));
32106 return resultobj;
32107 fail:
32108 return NULL;
32109 }
32110
32111
32112 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32113 PyObject *resultobj = 0;
32114 wxListView *arg1 = (wxListView *) 0 ;
32115 long arg2 ;
32116 bool result;
32117 void *argp1 = 0 ;
32118 int res1 = 0 ;
32119 long val2 ;
32120 int ecode2 = 0 ;
32121 PyObject * obj0 = 0 ;
32122 PyObject * obj1 = 0 ;
32123 char * kwnames[] = {
32124 (char *) "self",(char *) "index", NULL
32125 };
32126
32127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32129 if (!SWIG_IsOK(res1)) {
32130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32131 }
32132 arg1 = reinterpret_cast< wxListView * >(argp1);
32133 ecode2 = SWIG_AsVal_long(obj1, &val2);
32134 if (!SWIG_IsOK(ecode2)) {
32135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32136 }
32137 arg2 = static_cast< long >(val2);
32138 {
32139 PyThreadState* __tstate = wxPyBeginAllowThreads();
32140 result = (bool)(arg1)->IsSelected(arg2);
32141 wxPyEndAllowThreads(__tstate);
32142 if (PyErr_Occurred()) SWIG_fail;
32143 }
32144 {
32145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32146 }
32147 return resultobj;
32148 fail:
32149 return NULL;
32150 }
32151
32152
32153 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32154 PyObject *resultobj = 0;
32155 wxListView *arg1 = (wxListView *) 0 ;
32156 int arg2 ;
32157 int arg3 ;
32158 void *argp1 = 0 ;
32159 int res1 = 0 ;
32160 int val2 ;
32161 int ecode2 = 0 ;
32162 int val3 ;
32163 int ecode3 = 0 ;
32164 PyObject * obj0 = 0 ;
32165 PyObject * obj1 = 0 ;
32166 PyObject * obj2 = 0 ;
32167 char * kwnames[] = {
32168 (char *) "self",(char *) "col",(char *) "image", NULL
32169 };
32170
32171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32173 if (!SWIG_IsOK(res1)) {
32174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32175 }
32176 arg1 = reinterpret_cast< wxListView * >(argp1);
32177 ecode2 = SWIG_AsVal_int(obj1, &val2);
32178 if (!SWIG_IsOK(ecode2)) {
32179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32180 }
32181 arg2 = static_cast< int >(val2);
32182 ecode3 = SWIG_AsVal_int(obj2, &val3);
32183 if (!SWIG_IsOK(ecode3)) {
32184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32185 }
32186 arg3 = static_cast< int >(val3);
32187 {
32188 PyThreadState* __tstate = wxPyBeginAllowThreads();
32189 (arg1)->SetColumnImage(arg2,arg3);
32190 wxPyEndAllowThreads(__tstate);
32191 if (PyErr_Occurred()) SWIG_fail;
32192 }
32193 resultobj = SWIG_Py_Void();
32194 return resultobj;
32195 fail:
32196 return NULL;
32197 }
32198
32199
32200 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32201 PyObject *resultobj = 0;
32202 wxListView *arg1 = (wxListView *) 0 ;
32203 int arg2 ;
32204 void *argp1 = 0 ;
32205 int res1 = 0 ;
32206 int val2 ;
32207 int ecode2 = 0 ;
32208 PyObject * obj0 = 0 ;
32209 PyObject * obj1 = 0 ;
32210 char * kwnames[] = {
32211 (char *) "self",(char *) "col", NULL
32212 };
32213
32214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32216 if (!SWIG_IsOK(res1)) {
32217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32218 }
32219 arg1 = reinterpret_cast< wxListView * >(argp1);
32220 ecode2 = SWIG_AsVal_int(obj1, &val2);
32221 if (!SWIG_IsOK(ecode2)) {
32222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32223 }
32224 arg2 = static_cast< int >(val2);
32225 {
32226 PyThreadState* __tstate = wxPyBeginAllowThreads();
32227 (arg1)->ClearColumnImage(arg2);
32228 wxPyEndAllowThreads(__tstate);
32229 if (PyErr_Occurred()) SWIG_fail;
32230 }
32231 resultobj = SWIG_Py_Void();
32232 return resultobj;
32233 fail:
32234 return NULL;
32235 }
32236
32237
32238 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32239 PyObject *obj;
32240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32241 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32242 return SWIG_Py_Void();
32243 }
32244
32245 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32246 return SWIG_Python_InitShadowInstance(args);
32247 }
32248
32249 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32250 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32251 return 1;
32252 }
32253
32254
32255 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32256 PyObject *pyobj = 0;
32257
32258 {
32259 #if wxUSE_UNICODE
32260 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32261 #else
32262 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32263 #endif
32264 }
32265 return pyobj;
32266 }
32267
32268
32269 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32270 PyObject *resultobj = 0;
32271 wxTreeItemId *result = 0 ;
32272
32273 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32274 {
32275 PyThreadState* __tstate = wxPyBeginAllowThreads();
32276 result = (wxTreeItemId *)new wxTreeItemId();
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32281 return resultobj;
32282 fail:
32283 return NULL;
32284 }
32285
32286
32287 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32288 PyObject *resultobj = 0;
32289 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32290 void *argp1 = 0 ;
32291 int res1 = 0 ;
32292 PyObject *swig_obj[1] ;
32293
32294 if (!args) SWIG_fail;
32295 swig_obj[0] = args;
32296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32297 if (!SWIG_IsOK(res1)) {
32298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32299 }
32300 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32301 {
32302 PyThreadState* __tstate = wxPyBeginAllowThreads();
32303 delete arg1;
32304
32305 wxPyEndAllowThreads(__tstate);
32306 if (PyErr_Occurred()) SWIG_fail;
32307 }
32308 resultobj = SWIG_Py_Void();
32309 return resultobj;
32310 fail:
32311 return NULL;
32312 }
32313
32314
32315 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32316 PyObject *resultobj = 0;
32317 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32318 bool result;
32319 void *argp1 = 0 ;
32320 int res1 = 0 ;
32321 PyObject *swig_obj[1] ;
32322
32323 if (!args) SWIG_fail;
32324 swig_obj[0] = args;
32325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32326 if (!SWIG_IsOK(res1)) {
32327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32328 }
32329 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32330 {
32331 PyThreadState* __tstate = wxPyBeginAllowThreads();
32332 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32333 wxPyEndAllowThreads(__tstate);
32334 if (PyErr_Occurred()) SWIG_fail;
32335 }
32336 {
32337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32338 }
32339 return resultobj;
32340 fail:
32341 return NULL;
32342 }
32343
32344
32345 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32346 PyObject *resultobj = 0;
32347 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32348 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32349 bool result;
32350 void *argp1 = 0 ;
32351 int res1 = 0 ;
32352 void *argp2 = 0 ;
32353 int res2 = 0 ;
32354 PyObject * obj0 = 0 ;
32355 PyObject * obj1 = 0 ;
32356 char * kwnames[] = {
32357 (char *) "self",(char *) "other", NULL
32358 };
32359
32360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32362 if (!SWIG_IsOK(res1)) {
32363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32364 }
32365 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32366 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32367 if (!SWIG_IsOK(res2)) {
32368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32369 }
32370 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32371 {
32372 PyThreadState* __tstate = wxPyBeginAllowThreads();
32373 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32374 wxPyEndAllowThreads(__tstate);
32375 if (PyErr_Occurred()) SWIG_fail;
32376 }
32377 {
32378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32379 }
32380 return resultobj;
32381 fail:
32382 return NULL;
32383 }
32384
32385
32386 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32387 PyObject *resultobj = 0;
32388 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32389 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32390 bool result;
32391 void *argp1 = 0 ;
32392 int res1 = 0 ;
32393 void *argp2 = 0 ;
32394 int res2 = 0 ;
32395 PyObject * obj0 = 0 ;
32396 PyObject * obj1 = 0 ;
32397 char * kwnames[] = {
32398 (char *) "self",(char *) "other", NULL
32399 };
32400
32401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32403 if (!SWIG_IsOK(res1)) {
32404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32405 }
32406 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32408 if (!SWIG_IsOK(res2)) {
32409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32410 }
32411 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32412 {
32413 PyThreadState* __tstate = wxPyBeginAllowThreads();
32414 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32415 wxPyEndAllowThreads(__tstate);
32416 if (PyErr_Occurred()) SWIG_fail;
32417 }
32418 {
32419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32420 }
32421 return resultobj;
32422 fail:
32423 return NULL;
32424 }
32425
32426
32427 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32428 PyObject *resultobj = 0;
32429 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32430 void *arg2 = (void *) 0 ;
32431 void *argp1 = 0 ;
32432 int res1 = 0 ;
32433 int res2 ;
32434 PyObject *swig_obj[2] ;
32435
32436 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32438 if (!SWIG_IsOK(res1)) {
32439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32440 }
32441 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32442 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32443 if (!SWIG_IsOK(res2)) {
32444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32445 }
32446 if (arg1) (arg1)->m_pItem = arg2;
32447
32448 resultobj = SWIG_Py_Void();
32449 return resultobj;
32450 fail:
32451 return NULL;
32452 }
32453
32454
32455 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32456 PyObject *resultobj = 0;
32457 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32458 void *result = 0 ;
32459 void *argp1 = 0 ;
32460 int res1 = 0 ;
32461 PyObject *swig_obj[1] ;
32462
32463 if (!args) SWIG_fail;
32464 swig_obj[0] = args;
32465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32466 if (!SWIG_IsOK(res1)) {
32467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32468 }
32469 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32470 result = (void *) ((arg1)->m_pItem);
32471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32472 return resultobj;
32473 fail:
32474 return NULL;
32475 }
32476
32477
32478 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32479 PyObject *obj;
32480 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32481 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32482 return SWIG_Py_Void();
32483 }
32484
32485 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32486 return SWIG_Python_InitShadowInstance(args);
32487 }
32488
32489 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32490 PyObject *resultobj = 0;
32491 PyObject *arg1 = (PyObject *) NULL ;
32492 wxPyTreeItemData *result = 0 ;
32493 PyObject * obj0 = 0 ;
32494 char * kwnames[] = {
32495 (char *) "obj", NULL
32496 };
32497
32498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32499 if (obj0) {
32500 arg1 = obj0;
32501 }
32502 {
32503 PyThreadState* __tstate = wxPyBeginAllowThreads();
32504 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32505 wxPyEndAllowThreads(__tstate);
32506 if (PyErr_Occurred()) SWIG_fail;
32507 }
32508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32509 return resultobj;
32510 fail:
32511 return NULL;
32512 }
32513
32514
32515 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32516 PyObject *resultobj = 0;
32517 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32518 void *argp1 = 0 ;
32519 int res1 = 0 ;
32520 PyObject *swig_obj[1] ;
32521
32522 if (!args) SWIG_fail;
32523 swig_obj[0] = args;
32524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32525 if (!SWIG_IsOK(res1)) {
32526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32527 }
32528 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32529 {
32530 PyThreadState* __tstate = wxPyBeginAllowThreads();
32531 delete arg1;
32532
32533 wxPyEndAllowThreads(__tstate);
32534 if (PyErr_Occurred()) SWIG_fail;
32535 }
32536 resultobj = SWIG_Py_Void();
32537 return resultobj;
32538 fail:
32539 return NULL;
32540 }
32541
32542
32543 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32544 PyObject *resultobj = 0;
32545 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32546 PyObject *result = 0 ;
32547 void *argp1 = 0 ;
32548 int res1 = 0 ;
32549 PyObject *swig_obj[1] ;
32550
32551 if (!args) SWIG_fail;
32552 swig_obj[0] = args;
32553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32554 if (!SWIG_IsOK(res1)) {
32555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32556 }
32557 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32558 {
32559 PyThreadState* __tstate = wxPyBeginAllowThreads();
32560 result = (PyObject *)(arg1)->GetData();
32561 wxPyEndAllowThreads(__tstate);
32562 if (PyErr_Occurred()) SWIG_fail;
32563 }
32564 resultobj = result;
32565 return resultobj;
32566 fail:
32567 return NULL;
32568 }
32569
32570
32571 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32572 PyObject *resultobj = 0;
32573 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32574 PyObject *arg2 = (PyObject *) 0 ;
32575 void *argp1 = 0 ;
32576 int res1 = 0 ;
32577 PyObject * obj0 = 0 ;
32578 PyObject * obj1 = 0 ;
32579 char * kwnames[] = {
32580 (char *) "self",(char *) "obj", NULL
32581 };
32582
32583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32585 if (!SWIG_IsOK(res1)) {
32586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32587 }
32588 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32589 arg2 = obj1;
32590 {
32591 PyThreadState* __tstate = wxPyBeginAllowThreads();
32592 (arg1)->SetData(arg2);
32593 wxPyEndAllowThreads(__tstate);
32594 if (PyErr_Occurred()) SWIG_fail;
32595 }
32596 resultobj = SWIG_Py_Void();
32597 return resultobj;
32598 fail:
32599 return NULL;
32600 }
32601
32602
32603 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32604 PyObject *resultobj = 0;
32605 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32606 wxTreeItemId *result = 0 ;
32607 void *argp1 = 0 ;
32608 int res1 = 0 ;
32609 PyObject *swig_obj[1] ;
32610
32611 if (!args) SWIG_fail;
32612 swig_obj[0] = args;
32613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32614 if (!SWIG_IsOK(res1)) {
32615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32616 }
32617 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32618 {
32619 PyThreadState* __tstate = wxPyBeginAllowThreads();
32620 {
32621 wxTreeItemId const &_result_ref = (arg1)->GetId();
32622 result = (wxTreeItemId *) &_result_ref;
32623 }
32624 wxPyEndAllowThreads(__tstate);
32625 if (PyErr_Occurred()) SWIG_fail;
32626 }
32627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32628 return resultobj;
32629 fail:
32630 return NULL;
32631 }
32632
32633
32634 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32635 PyObject *resultobj = 0;
32636 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32637 wxTreeItemId *arg2 = 0 ;
32638 void *argp1 = 0 ;
32639 int res1 = 0 ;
32640 void *argp2 = 0 ;
32641 int res2 = 0 ;
32642 PyObject * obj0 = 0 ;
32643 PyObject * obj1 = 0 ;
32644 char * kwnames[] = {
32645 (char *) "self",(char *) "id", NULL
32646 };
32647
32648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32650 if (!SWIG_IsOK(res1)) {
32651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32652 }
32653 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32655 if (!SWIG_IsOK(res2)) {
32656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32657 }
32658 if (!argp2) {
32659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32660 }
32661 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32662 {
32663 PyThreadState* __tstate = wxPyBeginAllowThreads();
32664 (arg1)->SetId((wxTreeItemId const &)*arg2);
32665 wxPyEndAllowThreads(__tstate);
32666 if (PyErr_Occurred()) SWIG_fail;
32667 }
32668 resultobj = SWIG_Py_Void();
32669 return resultobj;
32670 fail:
32671 return NULL;
32672 }
32673
32674
32675 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32676 PyObject *resultobj = 0;
32677 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32678 void *argp1 = 0 ;
32679 int res1 = 0 ;
32680 PyObject *swig_obj[1] ;
32681
32682 if (!args) SWIG_fail;
32683 swig_obj[0] = args;
32684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32685 if (!SWIG_IsOK(res1)) {
32686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32687 }
32688 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32689 {
32690 PyThreadState* __tstate = wxPyBeginAllowThreads();
32691 wxPyTreeItemData_Destroy(arg1);
32692 wxPyEndAllowThreads(__tstate);
32693 if (PyErr_Occurred()) SWIG_fail;
32694 }
32695 resultobj = SWIG_Py_Void();
32696 return resultobj;
32697 fail:
32698 return NULL;
32699 }
32700
32701
32702 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32703 PyObject *obj;
32704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32705 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32706 return SWIG_Py_Void();
32707 }
32708
32709 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32710 return SWIG_Python_InitShadowInstance(args);
32711 }
32712
32713 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32714 PyObject *resultobj = 0;
32715 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32716 int arg2 = (int) 0 ;
32717 wxTreeEvent *result = 0 ;
32718 int val1 ;
32719 int ecode1 = 0 ;
32720 int val2 ;
32721 int ecode2 = 0 ;
32722 PyObject * obj0 = 0 ;
32723 PyObject * obj1 = 0 ;
32724 char * kwnames[] = {
32725 (char *) "commandType",(char *) "id", NULL
32726 };
32727
32728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32729 if (obj0) {
32730 ecode1 = SWIG_AsVal_int(obj0, &val1);
32731 if (!SWIG_IsOK(ecode1)) {
32732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32733 }
32734 arg1 = static_cast< wxEventType >(val1);
32735 }
32736 if (obj1) {
32737 ecode2 = SWIG_AsVal_int(obj1, &val2);
32738 if (!SWIG_IsOK(ecode2)) {
32739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32740 }
32741 arg2 = static_cast< int >(val2);
32742 }
32743 {
32744 PyThreadState* __tstate = wxPyBeginAllowThreads();
32745 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32746 wxPyEndAllowThreads(__tstate);
32747 if (PyErr_Occurred()) SWIG_fail;
32748 }
32749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32750 return resultobj;
32751 fail:
32752 return NULL;
32753 }
32754
32755
32756 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32757 PyObject *resultobj = 0;
32758 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32759 wxTreeItemId result;
32760 void *argp1 = 0 ;
32761 int res1 = 0 ;
32762 PyObject *swig_obj[1] ;
32763
32764 if (!args) SWIG_fail;
32765 swig_obj[0] = args;
32766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32767 if (!SWIG_IsOK(res1)) {
32768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32769 }
32770 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32771 {
32772 PyThreadState* __tstate = wxPyBeginAllowThreads();
32773 result = ((wxTreeEvent const *)arg1)->GetItem();
32774 wxPyEndAllowThreads(__tstate);
32775 if (PyErr_Occurred()) SWIG_fail;
32776 }
32777 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32778 return resultobj;
32779 fail:
32780 return NULL;
32781 }
32782
32783
32784 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32785 PyObject *resultobj = 0;
32786 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32787 wxTreeItemId *arg2 = 0 ;
32788 void *argp1 = 0 ;
32789 int res1 = 0 ;
32790 void *argp2 = 0 ;
32791 int res2 = 0 ;
32792 PyObject * obj0 = 0 ;
32793 PyObject * obj1 = 0 ;
32794 char * kwnames[] = {
32795 (char *) "self",(char *) "item", NULL
32796 };
32797
32798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32800 if (!SWIG_IsOK(res1)) {
32801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32802 }
32803 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32805 if (!SWIG_IsOK(res2)) {
32806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32807 }
32808 if (!argp2) {
32809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32810 }
32811 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32812 {
32813 PyThreadState* __tstate = wxPyBeginAllowThreads();
32814 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32815 wxPyEndAllowThreads(__tstate);
32816 if (PyErr_Occurred()) SWIG_fail;
32817 }
32818 resultobj = SWIG_Py_Void();
32819 return resultobj;
32820 fail:
32821 return NULL;
32822 }
32823
32824
32825 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32826 PyObject *resultobj = 0;
32827 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32828 wxTreeItemId result;
32829 void *argp1 = 0 ;
32830 int res1 = 0 ;
32831 PyObject *swig_obj[1] ;
32832
32833 if (!args) SWIG_fail;
32834 swig_obj[0] = args;
32835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32836 if (!SWIG_IsOK(res1)) {
32837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32838 }
32839 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32840 {
32841 PyThreadState* __tstate = wxPyBeginAllowThreads();
32842 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32843 wxPyEndAllowThreads(__tstate);
32844 if (PyErr_Occurred()) SWIG_fail;
32845 }
32846 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32847 return resultobj;
32848 fail:
32849 return NULL;
32850 }
32851
32852
32853 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32854 PyObject *resultobj = 0;
32855 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32856 wxTreeItemId *arg2 = 0 ;
32857 void *argp1 = 0 ;
32858 int res1 = 0 ;
32859 void *argp2 = 0 ;
32860 int res2 = 0 ;
32861 PyObject * obj0 = 0 ;
32862 PyObject * obj1 = 0 ;
32863 char * kwnames[] = {
32864 (char *) "self",(char *) "item", NULL
32865 };
32866
32867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32869 if (!SWIG_IsOK(res1)) {
32870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32871 }
32872 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32874 if (!SWIG_IsOK(res2)) {
32875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32876 }
32877 if (!argp2) {
32878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32879 }
32880 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32881 {
32882 PyThreadState* __tstate = wxPyBeginAllowThreads();
32883 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32884 wxPyEndAllowThreads(__tstate);
32885 if (PyErr_Occurred()) SWIG_fail;
32886 }
32887 resultobj = SWIG_Py_Void();
32888 return resultobj;
32889 fail:
32890 return NULL;
32891 }
32892
32893
32894 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32895 PyObject *resultobj = 0;
32896 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32897 wxPoint result;
32898 void *argp1 = 0 ;
32899 int res1 = 0 ;
32900 PyObject *swig_obj[1] ;
32901
32902 if (!args) SWIG_fail;
32903 swig_obj[0] = args;
32904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32905 if (!SWIG_IsOK(res1)) {
32906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32907 }
32908 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32909 {
32910 PyThreadState* __tstate = wxPyBeginAllowThreads();
32911 result = ((wxTreeEvent const *)arg1)->GetPoint();
32912 wxPyEndAllowThreads(__tstate);
32913 if (PyErr_Occurred()) SWIG_fail;
32914 }
32915 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32916 return resultobj;
32917 fail:
32918 return NULL;
32919 }
32920
32921
32922 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32923 PyObject *resultobj = 0;
32924 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32925 wxPoint *arg2 = 0 ;
32926 void *argp1 = 0 ;
32927 int res1 = 0 ;
32928 wxPoint temp2 ;
32929 PyObject * obj0 = 0 ;
32930 PyObject * obj1 = 0 ;
32931 char * kwnames[] = {
32932 (char *) "self",(char *) "pt", NULL
32933 };
32934
32935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32937 if (!SWIG_IsOK(res1)) {
32938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32939 }
32940 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32941 {
32942 arg2 = &temp2;
32943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32944 }
32945 {
32946 PyThreadState* __tstate = wxPyBeginAllowThreads();
32947 (arg1)->SetPoint((wxPoint const &)*arg2);
32948 wxPyEndAllowThreads(__tstate);
32949 if (PyErr_Occurred()) SWIG_fail;
32950 }
32951 resultobj = SWIG_Py_Void();
32952 return resultobj;
32953 fail:
32954 return NULL;
32955 }
32956
32957
32958 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32959 PyObject *resultobj = 0;
32960 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32961 wxKeyEvent *result = 0 ;
32962 void *argp1 = 0 ;
32963 int res1 = 0 ;
32964 PyObject *swig_obj[1] ;
32965
32966 if (!args) SWIG_fail;
32967 swig_obj[0] = args;
32968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32969 if (!SWIG_IsOK(res1)) {
32970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32971 }
32972 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32973 {
32974 PyThreadState* __tstate = wxPyBeginAllowThreads();
32975 {
32976 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32977 result = (wxKeyEvent *) &_result_ref;
32978 }
32979 wxPyEndAllowThreads(__tstate);
32980 if (PyErr_Occurred()) SWIG_fail;
32981 }
32982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32983 return resultobj;
32984 fail:
32985 return NULL;
32986 }
32987
32988
32989 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32990 PyObject *resultobj = 0;
32991 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32992 int result;
32993 void *argp1 = 0 ;
32994 int res1 = 0 ;
32995 PyObject *swig_obj[1] ;
32996
32997 if (!args) SWIG_fail;
32998 swig_obj[0] = args;
32999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33000 if (!SWIG_IsOK(res1)) {
33001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33002 }
33003 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33004 {
33005 PyThreadState* __tstate = wxPyBeginAllowThreads();
33006 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33007 wxPyEndAllowThreads(__tstate);
33008 if (PyErr_Occurred()) SWIG_fail;
33009 }
33010 resultobj = SWIG_From_int(static_cast< int >(result));
33011 return resultobj;
33012 fail:
33013 return NULL;
33014 }
33015
33016
33017 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33018 PyObject *resultobj = 0;
33019 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33020 wxKeyEvent *arg2 = 0 ;
33021 void *argp1 = 0 ;
33022 int res1 = 0 ;
33023 void *argp2 = 0 ;
33024 int res2 = 0 ;
33025 PyObject * obj0 = 0 ;
33026 PyObject * obj1 = 0 ;
33027 char * kwnames[] = {
33028 (char *) "self",(char *) "evt", NULL
33029 };
33030
33031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33033 if (!SWIG_IsOK(res1)) {
33034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33035 }
33036 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33038 if (!SWIG_IsOK(res2)) {
33039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33040 }
33041 if (!argp2) {
33042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33043 }
33044 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33045 {
33046 PyThreadState* __tstate = wxPyBeginAllowThreads();
33047 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33048 wxPyEndAllowThreads(__tstate);
33049 if (PyErr_Occurred()) SWIG_fail;
33050 }
33051 resultobj = SWIG_Py_Void();
33052 return resultobj;
33053 fail:
33054 return NULL;
33055 }
33056
33057
33058 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33059 PyObject *resultobj = 0;
33060 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33061 wxString *result = 0 ;
33062 void *argp1 = 0 ;
33063 int res1 = 0 ;
33064 PyObject *swig_obj[1] ;
33065
33066 if (!args) SWIG_fail;
33067 swig_obj[0] = args;
33068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33069 if (!SWIG_IsOK(res1)) {
33070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33071 }
33072 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33073 {
33074 PyThreadState* __tstate = wxPyBeginAllowThreads();
33075 {
33076 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33077 result = (wxString *) &_result_ref;
33078 }
33079 wxPyEndAllowThreads(__tstate);
33080 if (PyErr_Occurred()) SWIG_fail;
33081 }
33082 {
33083 #if wxUSE_UNICODE
33084 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33085 #else
33086 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33087 #endif
33088 }
33089 return resultobj;
33090 fail:
33091 return NULL;
33092 }
33093
33094
33095 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33096 PyObject *resultobj = 0;
33097 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33098 wxString *arg2 = 0 ;
33099 void *argp1 = 0 ;
33100 int res1 = 0 ;
33101 bool temp2 = false ;
33102 PyObject * obj0 = 0 ;
33103 PyObject * obj1 = 0 ;
33104 char * kwnames[] = {
33105 (char *) "self",(char *) "label", NULL
33106 };
33107
33108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33110 if (!SWIG_IsOK(res1)) {
33111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33112 }
33113 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33114 {
33115 arg2 = wxString_in_helper(obj1);
33116 if (arg2 == NULL) SWIG_fail;
33117 temp2 = true;
33118 }
33119 {
33120 PyThreadState* __tstate = wxPyBeginAllowThreads();
33121 (arg1)->SetLabel((wxString const &)*arg2);
33122 wxPyEndAllowThreads(__tstate);
33123 if (PyErr_Occurred()) SWIG_fail;
33124 }
33125 resultobj = SWIG_Py_Void();
33126 {
33127 if (temp2)
33128 delete arg2;
33129 }
33130 return resultobj;
33131 fail:
33132 {
33133 if (temp2)
33134 delete arg2;
33135 }
33136 return NULL;
33137 }
33138
33139
33140 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33141 PyObject *resultobj = 0;
33142 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33143 bool result;
33144 void *argp1 = 0 ;
33145 int res1 = 0 ;
33146 PyObject *swig_obj[1] ;
33147
33148 if (!args) SWIG_fail;
33149 swig_obj[0] = args;
33150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33151 if (!SWIG_IsOK(res1)) {
33152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33153 }
33154 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33155 {
33156 PyThreadState* __tstate = wxPyBeginAllowThreads();
33157 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33158 wxPyEndAllowThreads(__tstate);
33159 if (PyErr_Occurred()) SWIG_fail;
33160 }
33161 {
33162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33163 }
33164 return resultobj;
33165 fail:
33166 return NULL;
33167 }
33168
33169
33170 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33171 PyObject *resultobj = 0;
33172 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33173 bool arg2 ;
33174 void *argp1 = 0 ;
33175 int res1 = 0 ;
33176 bool val2 ;
33177 int ecode2 = 0 ;
33178 PyObject * obj0 = 0 ;
33179 PyObject * obj1 = 0 ;
33180 char * kwnames[] = {
33181 (char *) "self",(char *) "editCancelled", NULL
33182 };
33183
33184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33186 if (!SWIG_IsOK(res1)) {
33187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33188 }
33189 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33190 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33191 if (!SWIG_IsOK(ecode2)) {
33192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33193 }
33194 arg2 = static_cast< bool >(val2);
33195 {
33196 PyThreadState* __tstate = wxPyBeginAllowThreads();
33197 (arg1)->SetEditCanceled(arg2);
33198 wxPyEndAllowThreads(__tstate);
33199 if (PyErr_Occurred()) SWIG_fail;
33200 }
33201 resultobj = SWIG_Py_Void();
33202 return resultobj;
33203 fail:
33204 return NULL;
33205 }
33206
33207
33208 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33209 PyObject *resultobj = 0;
33210 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33211 wxString *arg2 = 0 ;
33212 void *argp1 = 0 ;
33213 int res1 = 0 ;
33214 bool temp2 = false ;
33215 PyObject * obj0 = 0 ;
33216 PyObject * obj1 = 0 ;
33217 char * kwnames[] = {
33218 (char *) "self",(char *) "toolTip", NULL
33219 };
33220
33221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33223 if (!SWIG_IsOK(res1)) {
33224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33225 }
33226 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33227 {
33228 arg2 = wxString_in_helper(obj1);
33229 if (arg2 == NULL) SWIG_fail;
33230 temp2 = true;
33231 }
33232 {
33233 PyThreadState* __tstate = wxPyBeginAllowThreads();
33234 (arg1)->SetToolTip((wxString const &)*arg2);
33235 wxPyEndAllowThreads(__tstate);
33236 if (PyErr_Occurred()) SWIG_fail;
33237 }
33238 resultobj = SWIG_Py_Void();
33239 {
33240 if (temp2)
33241 delete arg2;
33242 }
33243 return resultobj;
33244 fail:
33245 {
33246 if (temp2)
33247 delete arg2;
33248 }
33249 return NULL;
33250 }
33251
33252
33253 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33254 PyObject *resultobj = 0;
33255 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33256 wxString result;
33257 void *argp1 = 0 ;
33258 int res1 = 0 ;
33259 PyObject *swig_obj[1] ;
33260
33261 if (!args) SWIG_fail;
33262 swig_obj[0] = args;
33263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33264 if (!SWIG_IsOK(res1)) {
33265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33266 }
33267 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33268 {
33269 PyThreadState* __tstate = wxPyBeginAllowThreads();
33270 result = (arg1)->GetToolTip();
33271 wxPyEndAllowThreads(__tstate);
33272 if (PyErr_Occurred()) SWIG_fail;
33273 }
33274 {
33275 #if wxUSE_UNICODE
33276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33277 #else
33278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33279 #endif
33280 }
33281 return resultobj;
33282 fail:
33283 return NULL;
33284 }
33285
33286
33287 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33288 PyObject *obj;
33289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33290 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33291 return SWIG_Py_Void();
33292 }
33293
33294 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33295 return SWIG_Python_InitShadowInstance(args);
33296 }
33297
33298 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33299 PyObject *resultobj = 0;
33300 wxWindow *arg1 = (wxWindow *) 0 ;
33301 int arg2 = (int) -1 ;
33302 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33303 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33304 wxSize const &arg4_defvalue = wxDefaultSize ;
33305 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33306 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33307 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33308 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33309 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33310 wxString *arg7 = (wxString *) &arg7_defvalue ;
33311 wxPyTreeCtrl *result = 0 ;
33312 void *argp1 = 0 ;
33313 int res1 = 0 ;
33314 int val2 ;
33315 int ecode2 = 0 ;
33316 wxPoint temp3 ;
33317 wxSize temp4 ;
33318 long val5 ;
33319 int ecode5 = 0 ;
33320 void *argp6 = 0 ;
33321 int res6 = 0 ;
33322 bool temp7 = false ;
33323 PyObject * obj0 = 0 ;
33324 PyObject * obj1 = 0 ;
33325 PyObject * obj2 = 0 ;
33326 PyObject * obj3 = 0 ;
33327 PyObject * obj4 = 0 ;
33328 PyObject * obj5 = 0 ;
33329 PyObject * obj6 = 0 ;
33330 char * kwnames[] = {
33331 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33332 };
33333
33334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33336 if (!SWIG_IsOK(res1)) {
33337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33338 }
33339 arg1 = reinterpret_cast< wxWindow * >(argp1);
33340 if (obj1) {
33341 ecode2 = SWIG_AsVal_int(obj1, &val2);
33342 if (!SWIG_IsOK(ecode2)) {
33343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33344 }
33345 arg2 = static_cast< int >(val2);
33346 }
33347 if (obj2) {
33348 {
33349 arg3 = &temp3;
33350 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33351 }
33352 }
33353 if (obj3) {
33354 {
33355 arg4 = &temp4;
33356 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33357 }
33358 }
33359 if (obj4) {
33360 ecode5 = SWIG_AsVal_long(obj4, &val5);
33361 if (!SWIG_IsOK(ecode5)) {
33362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33363 }
33364 arg5 = static_cast< long >(val5);
33365 }
33366 if (obj5) {
33367 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33368 if (!SWIG_IsOK(res6)) {
33369 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33370 }
33371 if (!argp6) {
33372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33373 }
33374 arg6 = reinterpret_cast< wxValidator * >(argp6);
33375 }
33376 if (obj6) {
33377 {
33378 arg7 = wxString_in_helper(obj6);
33379 if (arg7 == NULL) SWIG_fail;
33380 temp7 = true;
33381 }
33382 }
33383 {
33384 if (!wxPyCheckForApp()) SWIG_fail;
33385 PyThreadState* __tstate = wxPyBeginAllowThreads();
33386 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33387 wxPyEndAllowThreads(__tstate);
33388 if (PyErr_Occurred()) SWIG_fail;
33389 }
33390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33391 {
33392 if (temp7)
33393 delete arg7;
33394 }
33395 return resultobj;
33396 fail:
33397 {
33398 if (temp7)
33399 delete arg7;
33400 }
33401 return NULL;
33402 }
33403
33404
33405 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33406 PyObject *resultobj = 0;
33407 wxPyTreeCtrl *result = 0 ;
33408
33409 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33410 {
33411 if (!wxPyCheckForApp()) SWIG_fail;
33412 PyThreadState* __tstate = wxPyBeginAllowThreads();
33413 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33414 wxPyEndAllowThreads(__tstate);
33415 if (PyErr_Occurred()) SWIG_fail;
33416 }
33417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33418 return resultobj;
33419 fail:
33420 return NULL;
33421 }
33422
33423
33424 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33425 PyObject *resultobj = 0;
33426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33427 wxWindow *arg2 = (wxWindow *) 0 ;
33428 int arg3 = (int) -1 ;
33429 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33430 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33431 wxSize const &arg5_defvalue = wxDefaultSize ;
33432 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33433 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33434 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33435 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33436 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33437 wxString *arg8 = (wxString *) &arg8_defvalue ;
33438 bool result;
33439 void *argp1 = 0 ;
33440 int res1 = 0 ;
33441 void *argp2 = 0 ;
33442 int res2 = 0 ;
33443 int val3 ;
33444 int ecode3 = 0 ;
33445 wxPoint temp4 ;
33446 wxSize temp5 ;
33447 long val6 ;
33448 int ecode6 = 0 ;
33449 void *argp7 = 0 ;
33450 int res7 = 0 ;
33451 bool temp8 = false ;
33452 PyObject * obj0 = 0 ;
33453 PyObject * obj1 = 0 ;
33454 PyObject * obj2 = 0 ;
33455 PyObject * obj3 = 0 ;
33456 PyObject * obj4 = 0 ;
33457 PyObject * obj5 = 0 ;
33458 PyObject * obj6 = 0 ;
33459 PyObject * obj7 = 0 ;
33460 char * kwnames[] = {
33461 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33462 };
33463
33464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33466 if (!SWIG_IsOK(res1)) {
33467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33468 }
33469 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33470 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33471 if (!SWIG_IsOK(res2)) {
33472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33473 }
33474 arg2 = reinterpret_cast< wxWindow * >(argp2);
33475 if (obj2) {
33476 ecode3 = SWIG_AsVal_int(obj2, &val3);
33477 if (!SWIG_IsOK(ecode3)) {
33478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33479 }
33480 arg3 = static_cast< int >(val3);
33481 }
33482 if (obj3) {
33483 {
33484 arg4 = &temp4;
33485 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33486 }
33487 }
33488 if (obj4) {
33489 {
33490 arg5 = &temp5;
33491 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33492 }
33493 }
33494 if (obj5) {
33495 ecode6 = SWIG_AsVal_long(obj5, &val6);
33496 if (!SWIG_IsOK(ecode6)) {
33497 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33498 }
33499 arg6 = static_cast< long >(val6);
33500 }
33501 if (obj6) {
33502 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33503 if (!SWIG_IsOK(res7)) {
33504 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33505 }
33506 if (!argp7) {
33507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33508 }
33509 arg7 = reinterpret_cast< wxValidator * >(argp7);
33510 }
33511 if (obj7) {
33512 {
33513 arg8 = wxString_in_helper(obj7);
33514 if (arg8 == NULL) SWIG_fail;
33515 temp8 = true;
33516 }
33517 }
33518 {
33519 PyThreadState* __tstate = wxPyBeginAllowThreads();
33520 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33521 wxPyEndAllowThreads(__tstate);
33522 if (PyErr_Occurred()) SWIG_fail;
33523 }
33524 {
33525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33526 }
33527 {
33528 if (temp8)
33529 delete arg8;
33530 }
33531 return resultobj;
33532 fail:
33533 {
33534 if (temp8)
33535 delete arg8;
33536 }
33537 return NULL;
33538 }
33539
33540
33541 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33542 PyObject *resultobj = 0;
33543 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33544 PyObject *arg2 = (PyObject *) 0 ;
33545 PyObject *arg3 = (PyObject *) 0 ;
33546 void *argp1 = 0 ;
33547 int res1 = 0 ;
33548 PyObject * obj0 = 0 ;
33549 PyObject * obj1 = 0 ;
33550 PyObject * obj2 = 0 ;
33551 char * kwnames[] = {
33552 (char *) "self",(char *) "self",(char *) "_class", NULL
33553 };
33554
33555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33557 if (!SWIG_IsOK(res1)) {
33558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33559 }
33560 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33561 arg2 = obj1;
33562 arg3 = obj2;
33563 {
33564 PyThreadState* __tstate = wxPyBeginAllowThreads();
33565 (arg1)->_setCallbackInfo(arg2,arg3);
33566 wxPyEndAllowThreads(__tstate);
33567 if (PyErr_Occurred()) SWIG_fail;
33568 }
33569 resultobj = SWIG_Py_Void();
33570 return resultobj;
33571 fail:
33572 return NULL;
33573 }
33574
33575
33576 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33577 PyObject *resultobj = 0;
33578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33579 unsigned int result;
33580 void *argp1 = 0 ;
33581 int res1 = 0 ;
33582 PyObject *swig_obj[1] ;
33583
33584 if (!args) SWIG_fail;
33585 swig_obj[0] = args;
33586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33587 if (!SWIG_IsOK(res1)) {
33588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33589 }
33590 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33591 {
33592 PyThreadState* __tstate = wxPyBeginAllowThreads();
33593 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33594 wxPyEndAllowThreads(__tstate);
33595 if (PyErr_Occurred()) SWIG_fail;
33596 }
33597 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33598 return resultobj;
33599 fail:
33600 return NULL;
33601 }
33602
33603
33604 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33605 PyObject *resultobj = 0;
33606 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33607 unsigned int result;
33608 void *argp1 = 0 ;
33609 int res1 = 0 ;
33610 PyObject *swig_obj[1] ;
33611
33612 if (!args) SWIG_fail;
33613 swig_obj[0] = args;
33614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33615 if (!SWIG_IsOK(res1)) {
33616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33617 }
33618 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33619 {
33620 PyThreadState* __tstate = wxPyBeginAllowThreads();
33621 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33622 wxPyEndAllowThreads(__tstate);
33623 if (PyErr_Occurred()) SWIG_fail;
33624 }
33625 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33626 return resultobj;
33627 fail:
33628 return NULL;
33629 }
33630
33631
33632 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33633 PyObject *resultobj = 0;
33634 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33635 unsigned int arg2 ;
33636 void *argp1 = 0 ;
33637 int res1 = 0 ;
33638 unsigned int val2 ;
33639 int ecode2 = 0 ;
33640 PyObject * obj0 = 0 ;
33641 PyObject * obj1 = 0 ;
33642 char * kwnames[] = {
33643 (char *) "self",(char *) "indent", NULL
33644 };
33645
33646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33648 if (!SWIG_IsOK(res1)) {
33649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33650 }
33651 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33652 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33653 if (!SWIG_IsOK(ecode2)) {
33654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33655 }
33656 arg2 = static_cast< unsigned int >(val2);
33657 {
33658 PyThreadState* __tstate = wxPyBeginAllowThreads();
33659 (arg1)->SetIndent(arg2);
33660 wxPyEndAllowThreads(__tstate);
33661 if (PyErr_Occurred()) SWIG_fail;
33662 }
33663 resultobj = SWIG_Py_Void();
33664 return resultobj;
33665 fail:
33666 return NULL;
33667 }
33668
33669
33670 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33671 PyObject *resultobj = 0;
33672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33673 unsigned int result;
33674 void *argp1 = 0 ;
33675 int res1 = 0 ;
33676 PyObject *swig_obj[1] ;
33677
33678 if (!args) SWIG_fail;
33679 swig_obj[0] = args;
33680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33681 if (!SWIG_IsOK(res1)) {
33682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33683 }
33684 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33685 {
33686 PyThreadState* __tstate = wxPyBeginAllowThreads();
33687 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33688 wxPyEndAllowThreads(__tstate);
33689 if (PyErr_Occurred()) SWIG_fail;
33690 }
33691 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33692 return resultobj;
33693 fail:
33694 return NULL;
33695 }
33696
33697
33698 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33699 PyObject *resultobj = 0;
33700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33701 unsigned int arg2 ;
33702 void *argp1 = 0 ;
33703 int res1 = 0 ;
33704 unsigned int val2 ;
33705 int ecode2 = 0 ;
33706 PyObject * obj0 = 0 ;
33707 PyObject * obj1 = 0 ;
33708 char * kwnames[] = {
33709 (char *) "self",(char *) "spacing", NULL
33710 };
33711
33712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33714 if (!SWIG_IsOK(res1)) {
33715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33716 }
33717 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33718 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33719 if (!SWIG_IsOK(ecode2)) {
33720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33721 }
33722 arg2 = static_cast< unsigned int >(val2);
33723 {
33724 PyThreadState* __tstate = wxPyBeginAllowThreads();
33725 (arg1)->SetSpacing(arg2);
33726 wxPyEndAllowThreads(__tstate);
33727 if (PyErr_Occurred()) SWIG_fail;
33728 }
33729 resultobj = SWIG_Py_Void();
33730 return resultobj;
33731 fail:
33732 return NULL;
33733 }
33734
33735
33736 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33737 PyObject *resultobj = 0;
33738 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33739 wxImageList *result = 0 ;
33740 void *argp1 = 0 ;
33741 int res1 = 0 ;
33742 PyObject *swig_obj[1] ;
33743
33744 if (!args) SWIG_fail;
33745 swig_obj[0] = args;
33746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33747 if (!SWIG_IsOK(res1)) {
33748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33749 }
33750 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33751 {
33752 PyThreadState* __tstate = wxPyBeginAllowThreads();
33753 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33754 wxPyEndAllowThreads(__tstate);
33755 if (PyErr_Occurred()) SWIG_fail;
33756 }
33757 {
33758 resultobj = wxPyMake_wxObject(result, (bool)0);
33759 }
33760 return resultobj;
33761 fail:
33762 return NULL;
33763 }
33764
33765
33766 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33767 PyObject *resultobj = 0;
33768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33769 wxImageList *result = 0 ;
33770 void *argp1 = 0 ;
33771 int res1 = 0 ;
33772 PyObject *swig_obj[1] ;
33773
33774 if (!args) SWIG_fail;
33775 swig_obj[0] = args;
33776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33777 if (!SWIG_IsOK(res1)) {
33778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33779 }
33780 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33781 {
33782 PyThreadState* __tstate = wxPyBeginAllowThreads();
33783 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33784 wxPyEndAllowThreads(__tstate);
33785 if (PyErr_Occurred()) SWIG_fail;
33786 }
33787 {
33788 resultobj = wxPyMake_wxObject(result, (bool)0);
33789 }
33790 return resultobj;
33791 fail:
33792 return NULL;
33793 }
33794
33795
33796 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33797 PyObject *resultobj = 0;
33798 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33799 wxImageList *arg2 = (wxImageList *) 0 ;
33800 void *argp1 = 0 ;
33801 int res1 = 0 ;
33802 void *argp2 = 0 ;
33803 int res2 = 0 ;
33804 PyObject * obj0 = 0 ;
33805 PyObject * obj1 = 0 ;
33806 char * kwnames[] = {
33807 (char *) "self",(char *) "imageList", NULL
33808 };
33809
33810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33812 if (!SWIG_IsOK(res1)) {
33813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33814 }
33815 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33817 if (!SWIG_IsOK(res2)) {
33818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33819 }
33820 arg2 = reinterpret_cast< wxImageList * >(argp2);
33821 {
33822 PyThreadState* __tstate = wxPyBeginAllowThreads();
33823 (arg1)->SetImageList(arg2);
33824 wxPyEndAllowThreads(__tstate);
33825 if (PyErr_Occurred()) SWIG_fail;
33826 }
33827 resultobj = SWIG_Py_Void();
33828 return resultobj;
33829 fail:
33830 return NULL;
33831 }
33832
33833
33834 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33835 PyObject *resultobj = 0;
33836 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33837 wxImageList *arg2 = (wxImageList *) 0 ;
33838 void *argp1 = 0 ;
33839 int res1 = 0 ;
33840 void *argp2 = 0 ;
33841 int res2 = 0 ;
33842 PyObject * obj0 = 0 ;
33843 PyObject * obj1 = 0 ;
33844 char * kwnames[] = {
33845 (char *) "self",(char *) "imageList", NULL
33846 };
33847
33848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33850 if (!SWIG_IsOK(res1)) {
33851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33852 }
33853 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33854 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33855 if (!SWIG_IsOK(res2)) {
33856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33857 }
33858 arg2 = reinterpret_cast< wxImageList * >(argp2);
33859 {
33860 PyThreadState* __tstate = wxPyBeginAllowThreads();
33861 (arg1)->SetStateImageList(arg2);
33862 wxPyEndAllowThreads(__tstate);
33863 if (PyErr_Occurred()) SWIG_fail;
33864 }
33865 resultobj = SWIG_Py_Void();
33866 return resultobj;
33867 fail:
33868 return NULL;
33869 }
33870
33871
33872 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33873 PyObject *resultobj = 0;
33874 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33875 wxImageList *arg2 = (wxImageList *) 0 ;
33876 void *argp1 = 0 ;
33877 int res1 = 0 ;
33878 int res2 = 0 ;
33879 PyObject * obj0 = 0 ;
33880 PyObject * obj1 = 0 ;
33881 char * kwnames[] = {
33882 (char *) "self",(char *) "imageList", NULL
33883 };
33884
33885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33887 if (!SWIG_IsOK(res1)) {
33888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33889 }
33890 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33891 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33892 if (!SWIG_IsOK(res2)) {
33893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33894 }
33895 {
33896 PyThreadState* __tstate = wxPyBeginAllowThreads();
33897 (arg1)->AssignImageList(arg2);
33898 wxPyEndAllowThreads(__tstate);
33899 if (PyErr_Occurred()) SWIG_fail;
33900 }
33901 resultobj = SWIG_Py_Void();
33902 return resultobj;
33903 fail:
33904 return NULL;
33905 }
33906
33907
33908 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33909 PyObject *resultobj = 0;
33910 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33911 wxImageList *arg2 = (wxImageList *) 0 ;
33912 void *argp1 = 0 ;
33913 int res1 = 0 ;
33914 int res2 = 0 ;
33915 PyObject * obj0 = 0 ;
33916 PyObject * obj1 = 0 ;
33917 char * kwnames[] = {
33918 (char *) "self",(char *) "imageList", NULL
33919 };
33920
33921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33923 if (!SWIG_IsOK(res1)) {
33924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33925 }
33926 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33927 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33928 if (!SWIG_IsOK(res2)) {
33929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33930 }
33931 {
33932 PyThreadState* __tstate = wxPyBeginAllowThreads();
33933 (arg1)->AssignStateImageList(arg2);
33934 wxPyEndAllowThreads(__tstate);
33935 if (PyErr_Occurred()) SWIG_fail;
33936 }
33937 resultobj = SWIG_Py_Void();
33938 return resultobj;
33939 fail:
33940 return NULL;
33941 }
33942
33943
33944 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33945 PyObject *resultobj = 0;
33946 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33947 wxTreeItemId *arg2 = 0 ;
33948 wxString result;
33949 void *argp1 = 0 ;
33950 int res1 = 0 ;
33951 void *argp2 = 0 ;
33952 int res2 = 0 ;
33953 PyObject * obj0 = 0 ;
33954 PyObject * obj1 = 0 ;
33955 char * kwnames[] = {
33956 (char *) "self",(char *) "item", NULL
33957 };
33958
33959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33961 if (!SWIG_IsOK(res1)) {
33962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33963 }
33964 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33966 if (!SWIG_IsOK(res2)) {
33967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33968 }
33969 if (!argp2) {
33970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33971 }
33972 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33973 {
33974 PyThreadState* __tstate = wxPyBeginAllowThreads();
33975 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33976 wxPyEndAllowThreads(__tstate);
33977 if (PyErr_Occurred()) SWIG_fail;
33978 }
33979 {
33980 #if wxUSE_UNICODE
33981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33982 #else
33983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33984 #endif
33985 }
33986 return resultobj;
33987 fail:
33988 return NULL;
33989 }
33990
33991
33992 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33993 PyObject *resultobj = 0;
33994 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33995 wxTreeItemId *arg2 = 0 ;
33996 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33997 int result;
33998 void *argp1 = 0 ;
33999 int res1 = 0 ;
34000 void *argp2 = 0 ;
34001 int res2 = 0 ;
34002 int val3 ;
34003 int ecode3 = 0 ;
34004 PyObject * obj0 = 0 ;
34005 PyObject * obj1 = 0 ;
34006 PyObject * obj2 = 0 ;
34007 char * kwnames[] = {
34008 (char *) "self",(char *) "item",(char *) "which", NULL
34009 };
34010
34011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34013 if (!SWIG_IsOK(res1)) {
34014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34015 }
34016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34018 if (!SWIG_IsOK(res2)) {
34019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34020 }
34021 if (!argp2) {
34022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34023 }
34024 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34025 if (obj2) {
34026 ecode3 = SWIG_AsVal_int(obj2, &val3);
34027 if (!SWIG_IsOK(ecode3)) {
34028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34029 }
34030 arg3 = static_cast< wxTreeItemIcon >(val3);
34031 }
34032 {
34033 PyThreadState* __tstate = wxPyBeginAllowThreads();
34034 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34035 wxPyEndAllowThreads(__tstate);
34036 if (PyErr_Occurred()) SWIG_fail;
34037 }
34038 resultobj = SWIG_From_int(static_cast< int >(result));
34039 return resultobj;
34040 fail:
34041 return NULL;
34042 }
34043
34044
34045 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34046 PyObject *resultobj = 0;
34047 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34048 wxTreeItemId *arg2 = 0 ;
34049 wxPyTreeItemData *result = 0 ;
34050 void *argp1 = 0 ;
34051 int res1 = 0 ;
34052 void *argp2 = 0 ;
34053 int res2 = 0 ;
34054 PyObject * obj0 = 0 ;
34055 PyObject * obj1 = 0 ;
34056 char * kwnames[] = {
34057 (char *) "self",(char *) "item", NULL
34058 };
34059
34060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34062 if (!SWIG_IsOK(res1)) {
34063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34064 }
34065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34067 if (!SWIG_IsOK(res2)) {
34068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34069 }
34070 if (!argp2) {
34071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34072 }
34073 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34074 {
34075 PyThreadState* __tstate = wxPyBeginAllowThreads();
34076 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34077 wxPyEndAllowThreads(__tstate);
34078 if (PyErr_Occurred()) SWIG_fail;
34079 }
34080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34081 return resultobj;
34082 fail:
34083 return NULL;
34084 }
34085
34086
34087 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34088 PyObject *resultobj = 0;
34089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34090 wxTreeItemId *arg2 = 0 ;
34091 PyObject *result = 0 ;
34092 void *argp1 = 0 ;
34093 int res1 = 0 ;
34094 void *argp2 = 0 ;
34095 int res2 = 0 ;
34096 PyObject * obj0 = 0 ;
34097 PyObject * obj1 = 0 ;
34098 char * kwnames[] = {
34099 (char *) "self",(char *) "item", NULL
34100 };
34101
34102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34104 if (!SWIG_IsOK(res1)) {
34105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34106 }
34107 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34109 if (!SWIG_IsOK(res2)) {
34110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34111 }
34112 if (!argp2) {
34113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34114 }
34115 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34116 {
34117 PyThreadState* __tstate = wxPyBeginAllowThreads();
34118 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34119 wxPyEndAllowThreads(__tstate);
34120 if (PyErr_Occurred()) SWIG_fail;
34121 }
34122 resultobj = result;
34123 return resultobj;
34124 fail:
34125 return NULL;
34126 }
34127
34128
34129 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34130 PyObject *resultobj = 0;
34131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34132 wxTreeItemId *arg2 = 0 ;
34133 wxColour result;
34134 void *argp1 = 0 ;
34135 int res1 = 0 ;
34136 void *argp2 = 0 ;
34137 int res2 = 0 ;
34138 PyObject * obj0 = 0 ;
34139 PyObject * obj1 = 0 ;
34140 char * kwnames[] = {
34141 (char *) "self",(char *) "item", NULL
34142 };
34143
34144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34146 if (!SWIG_IsOK(res1)) {
34147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34148 }
34149 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34151 if (!SWIG_IsOK(res2)) {
34152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34153 }
34154 if (!argp2) {
34155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34156 }
34157 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34158 {
34159 PyThreadState* __tstate = wxPyBeginAllowThreads();
34160 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34161 wxPyEndAllowThreads(__tstate);
34162 if (PyErr_Occurred()) SWIG_fail;
34163 }
34164 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34165 return resultobj;
34166 fail:
34167 return NULL;
34168 }
34169
34170
34171 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34172 PyObject *resultobj = 0;
34173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34174 wxTreeItemId *arg2 = 0 ;
34175 wxColour result;
34176 void *argp1 = 0 ;
34177 int res1 = 0 ;
34178 void *argp2 = 0 ;
34179 int res2 = 0 ;
34180 PyObject * obj0 = 0 ;
34181 PyObject * obj1 = 0 ;
34182 char * kwnames[] = {
34183 (char *) "self",(char *) "item", NULL
34184 };
34185
34186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34188 if (!SWIG_IsOK(res1)) {
34189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34190 }
34191 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34193 if (!SWIG_IsOK(res2)) {
34194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34195 }
34196 if (!argp2) {
34197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34198 }
34199 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34200 {
34201 PyThreadState* __tstate = wxPyBeginAllowThreads();
34202 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34203 wxPyEndAllowThreads(__tstate);
34204 if (PyErr_Occurred()) SWIG_fail;
34205 }
34206 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34207 return resultobj;
34208 fail:
34209 return NULL;
34210 }
34211
34212
34213 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34214 PyObject *resultobj = 0;
34215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34216 wxTreeItemId *arg2 = 0 ;
34217 wxFont result;
34218 void *argp1 = 0 ;
34219 int res1 = 0 ;
34220 void *argp2 = 0 ;
34221 int res2 = 0 ;
34222 PyObject * obj0 = 0 ;
34223 PyObject * obj1 = 0 ;
34224 char * kwnames[] = {
34225 (char *) "self",(char *) "item", NULL
34226 };
34227
34228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34230 if (!SWIG_IsOK(res1)) {
34231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34232 }
34233 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34234 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34235 if (!SWIG_IsOK(res2)) {
34236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34237 }
34238 if (!argp2) {
34239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34240 }
34241 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34242 {
34243 PyThreadState* __tstate = wxPyBeginAllowThreads();
34244 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34245 wxPyEndAllowThreads(__tstate);
34246 if (PyErr_Occurred()) SWIG_fail;
34247 }
34248 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34249 return resultobj;
34250 fail:
34251 return NULL;
34252 }
34253
34254
34255 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34256 PyObject *resultobj = 0;
34257 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34258 wxTreeItemId *arg2 = 0 ;
34259 wxString *arg3 = 0 ;
34260 void *argp1 = 0 ;
34261 int res1 = 0 ;
34262 void *argp2 = 0 ;
34263 int res2 = 0 ;
34264 bool temp3 = false ;
34265 PyObject * obj0 = 0 ;
34266 PyObject * obj1 = 0 ;
34267 PyObject * obj2 = 0 ;
34268 char * kwnames[] = {
34269 (char *) "self",(char *) "item",(char *) "text", NULL
34270 };
34271
34272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34274 if (!SWIG_IsOK(res1)) {
34275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34276 }
34277 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34279 if (!SWIG_IsOK(res2)) {
34280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34281 }
34282 if (!argp2) {
34283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34284 }
34285 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34286 {
34287 arg3 = wxString_in_helper(obj2);
34288 if (arg3 == NULL) SWIG_fail;
34289 temp3 = true;
34290 }
34291 {
34292 PyThreadState* __tstate = wxPyBeginAllowThreads();
34293 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34294 wxPyEndAllowThreads(__tstate);
34295 if (PyErr_Occurred()) SWIG_fail;
34296 }
34297 resultobj = SWIG_Py_Void();
34298 {
34299 if (temp3)
34300 delete arg3;
34301 }
34302 return resultobj;
34303 fail:
34304 {
34305 if (temp3)
34306 delete arg3;
34307 }
34308 return NULL;
34309 }
34310
34311
34312 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34313 PyObject *resultobj = 0;
34314 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34315 wxTreeItemId *arg2 = 0 ;
34316 int arg3 ;
34317 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34318 void *argp1 = 0 ;
34319 int res1 = 0 ;
34320 void *argp2 = 0 ;
34321 int res2 = 0 ;
34322 int val3 ;
34323 int ecode3 = 0 ;
34324 int val4 ;
34325 int ecode4 = 0 ;
34326 PyObject * obj0 = 0 ;
34327 PyObject * obj1 = 0 ;
34328 PyObject * obj2 = 0 ;
34329 PyObject * obj3 = 0 ;
34330 char * kwnames[] = {
34331 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34332 };
34333
34334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34336 if (!SWIG_IsOK(res1)) {
34337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34338 }
34339 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34341 if (!SWIG_IsOK(res2)) {
34342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34343 }
34344 if (!argp2) {
34345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34346 }
34347 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34348 ecode3 = SWIG_AsVal_int(obj2, &val3);
34349 if (!SWIG_IsOK(ecode3)) {
34350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34351 }
34352 arg3 = static_cast< int >(val3);
34353 if (obj3) {
34354 ecode4 = SWIG_AsVal_int(obj3, &val4);
34355 if (!SWIG_IsOK(ecode4)) {
34356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34357 }
34358 arg4 = static_cast< wxTreeItemIcon >(val4);
34359 }
34360 {
34361 PyThreadState* __tstate = wxPyBeginAllowThreads();
34362 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34363 wxPyEndAllowThreads(__tstate);
34364 if (PyErr_Occurred()) SWIG_fail;
34365 }
34366 resultobj = SWIG_Py_Void();
34367 return resultobj;
34368 fail:
34369 return NULL;
34370 }
34371
34372
34373 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34374 PyObject *resultobj = 0;
34375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34376 wxTreeItemId *arg2 = 0 ;
34377 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34378 void *argp1 = 0 ;
34379 int res1 = 0 ;
34380 void *argp2 = 0 ;
34381 int res2 = 0 ;
34382 int res3 = 0 ;
34383 PyObject * obj0 = 0 ;
34384 PyObject * obj1 = 0 ;
34385 PyObject * obj2 = 0 ;
34386 char * kwnames[] = {
34387 (char *) "self",(char *) "item",(char *) "data", NULL
34388 };
34389
34390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34392 if (!SWIG_IsOK(res1)) {
34393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34394 }
34395 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34397 if (!SWIG_IsOK(res2)) {
34398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34399 }
34400 if (!argp2) {
34401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34402 }
34403 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34404 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34405 if (!SWIG_IsOK(res3)) {
34406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34407 }
34408 {
34409 PyThreadState* __tstate = wxPyBeginAllowThreads();
34410 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34411 wxPyEndAllowThreads(__tstate);
34412 if (PyErr_Occurred()) SWIG_fail;
34413 }
34414 resultobj = SWIG_Py_Void();
34415 return resultobj;
34416 fail:
34417 return NULL;
34418 }
34419
34420
34421 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34422 PyObject *resultobj = 0;
34423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34424 wxTreeItemId *arg2 = 0 ;
34425 PyObject *arg3 = (PyObject *) 0 ;
34426 void *argp1 = 0 ;
34427 int res1 = 0 ;
34428 void *argp2 = 0 ;
34429 int res2 = 0 ;
34430 PyObject * obj0 = 0 ;
34431 PyObject * obj1 = 0 ;
34432 PyObject * obj2 = 0 ;
34433 char * kwnames[] = {
34434 (char *) "self",(char *) "item",(char *) "obj", NULL
34435 };
34436
34437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34439 if (!SWIG_IsOK(res1)) {
34440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34441 }
34442 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34444 if (!SWIG_IsOK(res2)) {
34445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34446 }
34447 if (!argp2) {
34448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34449 }
34450 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34451 arg3 = obj2;
34452 {
34453 PyThreadState* __tstate = wxPyBeginAllowThreads();
34454 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34455 wxPyEndAllowThreads(__tstate);
34456 if (PyErr_Occurred()) SWIG_fail;
34457 }
34458 resultobj = SWIG_Py_Void();
34459 return resultobj;
34460 fail:
34461 return NULL;
34462 }
34463
34464
34465 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34466 PyObject *resultobj = 0;
34467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34468 wxTreeItemId *arg2 = 0 ;
34469 bool arg3 = (bool) true ;
34470 void *argp1 = 0 ;
34471 int res1 = 0 ;
34472 void *argp2 = 0 ;
34473 int res2 = 0 ;
34474 bool val3 ;
34475 int ecode3 = 0 ;
34476 PyObject * obj0 = 0 ;
34477 PyObject * obj1 = 0 ;
34478 PyObject * obj2 = 0 ;
34479 char * kwnames[] = {
34480 (char *) "self",(char *) "item",(char *) "has", NULL
34481 };
34482
34483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34485 if (!SWIG_IsOK(res1)) {
34486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34487 }
34488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34490 if (!SWIG_IsOK(res2)) {
34491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34492 }
34493 if (!argp2) {
34494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34495 }
34496 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34497 if (obj2) {
34498 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34499 if (!SWIG_IsOK(ecode3)) {
34500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34501 }
34502 arg3 = static_cast< bool >(val3);
34503 }
34504 {
34505 PyThreadState* __tstate = wxPyBeginAllowThreads();
34506 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34507 wxPyEndAllowThreads(__tstate);
34508 if (PyErr_Occurred()) SWIG_fail;
34509 }
34510 resultobj = SWIG_Py_Void();
34511 return resultobj;
34512 fail:
34513 return NULL;
34514 }
34515
34516
34517 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34518 PyObject *resultobj = 0;
34519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34520 wxTreeItemId *arg2 = 0 ;
34521 bool arg3 = (bool) true ;
34522 void *argp1 = 0 ;
34523 int res1 = 0 ;
34524 void *argp2 = 0 ;
34525 int res2 = 0 ;
34526 bool val3 ;
34527 int ecode3 = 0 ;
34528 PyObject * obj0 = 0 ;
34529 PyObject * obj1 = 0 ;
34530 PyObject * obj2 = 0 ;
34531 char * kwnames[] = {
34532 (char *) "self",(char *) "item",(char *) "bold", NULL
34533 };
34534
34535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34537 if (!SWIG_IsOK(res1)) {
34538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34539 }
34540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34542 if (!SWIG_IsOK(res2)) {
34543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34544 }
34545 if (!argp2) {
34546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34547 }
34548 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34549 if (obj2) {
34550 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34551 if (!SWIG_IsOK(ecode3)) {
34552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34553 }
34554 arg3 = static_cast< bool >(val3);
34555 }
34556 {
34557 PyThreadState* __tstate = wxPyBeginAllowThreads();
34558 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34559 wxPyEndAllowThreads(__tstate);
34560 if (PyErr_Occurred()) SWIG_fail;
34561 }
34562 resultobj = SWIG_Py_Void();
34563 return resultobj;
34564 fail:
34565 return NULL;
34566 }
34567
34568
34569 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34570 PyObject *resultobj = 0;
34571 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34572 wxTreeItemId *arg2 = 0 ;
34573 bool arg3 = (bool) true ;
34574 void *argp1 = 0 ;
34575 int res1 = 0 ;
34576 void *argp2 = 0 ;
34577 int res2 = 0 ;
34578 bool val3 ;
34579 int ecode3 = 0 ;
34580 PyObject * obj0 = 0 ;
34581 PyObject * obj1 = 0 ;
34582 PyObject * obj2 = 0 ;
34583 char * kwnames[] = {
34584 (char *) "self",(char *) "item",(char *) "highlight", NULL
34585 };
34586
34587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34589 if (!SWIG_IsOK(res1)) {
34590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34591 }
34592 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34594 if (!SWIG_IsOK(res2)) {
34595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34596 }
34597 if (!argp2) {
34598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34599 }
34600 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34601 if (obj2) {
34602 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34603 if (!SWIG_IsOK(ecode3)) {
34604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34605 }
34606 arg3 = static_cast< bool >(val3);
34607 }
34608 {
34609 PyThreadState* __tstate = wxPyBeginAllowThreads();
34610 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34611 wxPyEndAllowThreads(__tstate);
34612 if (PyErr_Occurred()) SWIG_fail;
34613 }
34614 resultobj = SWIG_Py_Void();
34615 return resultobj;
34616 fail:
34617 return NULL;
34618 }
34619
34620
34621 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34622 PyObject *resultobj = 0;
34623 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34624 wxTreeItemId *arg2 = 0 ;
34625 wxColour *arg3 = 0 ;
34626 void *argp1 = 0 ;
34627 int res1 = 0 ;
34628 void *argp2 = 0 ;
34629 int res2 = 0 ;
34630 wxColour temp3 ;
34631 PyObject * obj0 = 0 ;
34632 PyObject * obj1 = 0 ;
34633 PyObject * obj2 = 0 ;
34634 char * kwnames[] = {
34635 (char *) "self",(char *) "item",(char *) "col", NULL
34636 };
34637
34638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34640 if (!SWIG_IsOK(res1)) {
34641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34642 }
34643 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34645 if (!SWIG_IsOK(res2)) {
34646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34647 }
34648 if (!argp2) {
34649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34650 }
34651 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34652 {
34653 arg3 = &temp3;
34654 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34655 }
34656 {
34657 PyThreadState* __tstate = wxPyBeginAllowThreads();
34658 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34659 wxPyEndAllowThreads(__tstate);
34660 if (PyErr_Occurred()) SWIG_fail;
34661 }
34662 resultobj = SWIG_Py_Void();
34663 return resultobj;
34664 fail:
34665 return NULL;
34666 }
34667
34668
34669 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34670 PyObject *resultobj = 0;
34671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34672 wxTreeItemId *arg2 = 0 ;
34673 wxColour *arg3 = 0 ;
34674 void *argp1 = 0 ;
34675 int res1 = 0 ;
34676 void *argp2 = 0 ;
34677 int res2 = 0 ;
34678 wxColour temp3 ;
34679 PyObject * obj0 = 0 ;
34680 PyObject * obj1 = 0 ;
34681 PyObject * obj2 = 0 ;
34682 char * kwnames[] = {
34683 (char *) "self",(char *) "item",(char *) "col", NULL
34684 };
34685
34686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34688 if (!SWIG_IsOK(res1)) {
34689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34690 }
34691 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34693 if (!SWIG_IsOK(res2)) {
34694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34695 }
34696 if (!argp2) {
34697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34698 }
34699 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34700 {
34701 arg3 = &temp3;
34702 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34703 }
34704 {
34705 PyThreadState* __tstate = wxPyBeginAllowThreads();
34706 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34707 wxPyEndAllowThreads(__tstate);
34708 if (PyErr_Occurred()) SWIG_fail;
34709 }
34710 resultobj = SWIG_Py_Void();
34711 return resultobj;
34712 fail:
34713 return NULL;
34714 }
34715
34716
34717 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34718 PyObject *resultobj = 0;
34719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34720 wxTreeItemId *arg2 = 0 ;
34721 wxFont *arg3 = 0 ;
34722 void *argp1 = 0 ;
34723 int res1 = 0 ;
34724 void *argp2 = 0 ;
34725 int res2 = 0 ;
34726 void *argp3 = 0 ;
34727 int res3 = 0 ;
34728 PyObject * obj0 = 0 ;
34729 PyObject * obj1 = 0 ;
34730 PyObject * obj2 = 0 ;
34731 char * kwnames[] = {
34732 (char *) "self",(char *) "item",(char *) "font", NULL
34733 };
34734
34735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34737 if (!SWIG_IsOK(res1)) {
34738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34739 }
34740 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34742 if (!SWIG_IsOK(res2)) {
34743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34744 }
34745 if (!argp2) {
34746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34747 }
34748 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34749 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34750 if (!SWIG_IsOK(res3)) {
34751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34752 }
34753 if (!argp3) {
34754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34755 }
34756 arg3 = reinterpret_cast< wxFont * >(argp3);
34757 {
34758 PyThreadState* __tstate = wxPyBeginAllowThreads();
34759 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34760 wxPyEndAllowThreads(__tstate);
34761 if (PyErr_Occurred()) SWIG_fail;
34762 }
34763 resultobj = SWIG_Py_Void();
34764 return resultobj;
34765 fail:
34766 return NULL;
34767 }
34768
34769
34770 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34771 PyObject *resultobj = 0;
34772 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34773 wxTreeItemId *arg2 = 0 ;
34774 bool result;
34775 void *argp1 = 0 ;
34776 int res1 = 0 ;
34777 void *argp2 = 0 ;
34778 int res2 = 0 ;
34779 PyObject * obj0 = 0 ;
34780 PyObject * obj1 = 0 ;
34781 char * kwnames[] = {
34782 (char *) "self",(char *) "item", NULL
34783 };
34784
34785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34787 if (!SWIG_IsOK(res1)) {
34788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34789 }
34790 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34792 if (!SWIG_IsOK(res2)) {
34793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34794 }
34795 if (!argp2) {
34796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34797 }
34798 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34799 {
34800 PyThreadState* __tstate = wxPyBeginAllowThreads();
34801 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34802 wxPyEndAllowThreads(__tstate);
34803 if (PyErr_Occurred()) SWIG_fail;
34804 }
34805 {
34806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34807 }
34808 return resultobj;
34809 fail:
34810 return NULL;
34811 }
34812
34813
34814 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34815 PyObject *resultobj = 0;
34816 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34817 wxTreeItemId *arg2 = 0 ;
34818 bool result;
34819 void *argp1 = 0 ;
34820 int res1 = 0 ;
34821 void *argp2 = 0 ;
34822 int res2 = 0 ;
34823 PyObject * obj0 = 0 ;
34824 PyObject * obj1 = 0 ;
34825 char * kwnames[] = {
34826 (char *) "self",(char *) "item", NULL
34827 };
34828
34829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34831 if (!SWIG_IsOK(res1)) {
34832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34833 }
34834 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34836 if (!SWIG_IsOK(res2)) {
34837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34838 }
34839 if (!argp2) {
34840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34841 }
34842 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34843 {
34844 PyThreadState* __tstate = wxPyBeginAllowThreads();
34845 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34846 wxPyEndAllowThreads(__tstate);
34847 if (PyErr_Occurred()) SWIG_fail;
34848 }
34849 {
34850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34851 }
34852 return resultobj;
34853 fail:
34854 return NULL;
34855 }
34856
34857
34858 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34859 PyObject *resultobj = 0;
34860 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34861 wxTreeItemId *arg2 = 0 ;
34862 bool result;
34863 void *argp1 = 0 ;
34864 int res1 = 0 ;
34865 void *argp2 = 0 ;
34866 int res2 = 0 ;
34867 PyObject * obj0 = 0 ;
34868 PyObject * obj1 = 0 ;
34869 char * kwnames[] = {
34870 (char *) "self",(char *) "item", NULL
34871 };
34872
34873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34875 if (!SWIG_IsOK(res1)) {
34876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34877 }
34878 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34880 if (!SWIG_IsOK(res2)) {
34881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34882 }
34883 if (!argp2) {
34884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34885 }
34886 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34887 {
34888 PyThreadState* __tstate = wxPyBeginAllowThreads();
34889 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34890 wxPyEndAllowThreads(__tstate);
34891 if (PyErr_Occurred()) SWIG_fail;
34892 }
34893 {
34894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34895 }
34896 return resultobj;
34897 fail:
34898 return NULL;
34899 }
34900
34901
34902 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34903 PyObject *resultobj = 0;
34904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34905 wxTreeItemId *arg2 = 0 ;
34906 bool result;
34907 void *argp1 = 0 ;
34908 int res1 = 0 ;
34909 void *argp2 = 0 ;
34910 int res2 = 0 ;
34911 PyObject * obj0 = 0 ;
34912 PyObject * obj1 = 0 ;
34913 char * kwnames[] = {
34914 (char *) "self",(char *) "item", NULL
34915 };
34916
34917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34919 if (!SWIG_IsOK(res1)) {
34920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34921 }
34922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34924 if (!SWIG_IsOK(res2)) {
34925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34926 }
34927 if (!argp2) {
34928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34929 }
34930 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34931 {
34932 PyThreadState* __tstate = wxPyBeginAllowThreads();
34933 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34934 wxPyEndAllowThreads(__tstate);
34935 if (PyErr_Occurred()) SWIG_fail;
34936 }
34937 {
34938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34939 }
34940 return resultobj;
34941 fail:
34942 return NULL;
34943 }
34944
34945
34946 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34947 PyObject *resultobj = 0;
34948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34949 wxTreeItemId *arg2 = 0 ;
34950 bool result;
34951 void *argp1 = 0 ;
34952 int res1 = 0 ;
34953 void *argp2 = 0 ;
34954 int res2 = 0 ;
34955 PyObject * obj0 = 0 ;
34956 PyObject * obj1 = 0 ;
34957 char * kwnames[] = {
34958 (char *) "self",(char *) "item", NULL
34959 };
34960
34961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34963 if (!SWIG_IsOK(res1)) {
34964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34965 }
34966 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34968 if (!SWIG_IsOK(res2)) {
34969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34970 }
34971 if (!argp2) {
34972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34973 }
34974 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34975 {
34976 PyThreadState* __tstate = wxPyBeginAllowThreads();
34977 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34978 wxPyEndAllowThreads(__tstate);
34979 if (PyErr_Occurred()) SWIG_fail;
34980 }
34981 {
34982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34983 }
34984 return resultobj;
34985 fail:
34986 return NULL;
34987 }
34988
34989
34990 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34991 PyObject *resultobj = 0;
34992 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34993 wxTreeItemId *arg2 = 0 ;
34994 bool arg3 = (bool) true ;
34995 size_t result;
34996 void *argp1 = 0 ;
34997 int res1 = 0 ;
34998 void *argp2 = 0 ;
34999 int res2 = 0 ;
35000 bool val3 ;
35001 int ecode3 = 0 ;
35002 PyObject * obj0 = 0 ;
35003 PyObject * obj1 = 0 ;
35004 PyObject * obj2 = 0 ;
35005 char * kwnames[] = {
35006 (char *) "self",(char *) "item",(char *) "recursively", NULL
35007 };
35008
35009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35011 if (!SWIG_IsOK(res1)) {
35012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35013 }
35014 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35016 if (!SWIG_IsOK(res2)) {
35017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35018 }
35019 if (!argp2) {
35020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35021 }
35022 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35023 if (obj2) {
35024 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35025 if (!SWIG_IsOK(ecode3)) {
35026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35027 }
35028 arg3 = static_cast< bool >(val3);
35029 }
35030 {
35031 PyThreadState* __tstate = wxPyBeginAllowThreads();
35032 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35033 wxPyEndAllowThreads(__tstate);
35034 if (PyErr_Occurred()) SWIG_fail;
35035 }
35036 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35037 return resultobj;
35038 fail:
35039 return NULL;
35040 }
35041
35042
35043 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35044 PyObject *resultobj = 0;
35045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35046 wxTreeItemId result;
35047 void *argp1 = 0 ;
35048 int res1 = 0 ;
35049 PyObject *swig_obj[1] ;
35050
35051 if (!args) SWIG_fail;
35052 swig_obj[0] = args;
35053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35054 if (!SWIG_IsOK(res1)) {
35055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35056 }
35057 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35058 {
35059 PyThreadState* __tstate = wxPyBeginAllowThreads();
35060 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35061 wxPyEndAllowThreads(__tstate);
35062 if (PyErr_Occurred()) SWIG_fail;
35063 }
35064 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35065 return resultobj;
35066 fail:
35067 return NULL;
35068 }
35069
35070
35071 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35072 PyObject *resultobj = 0;
35073 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35074 wxTreeItemId result;
35075 void *argp1 = 0 ;
35076 int res1 = 0 ;
35077 PyObject *swig_obj[1] ;
35078
35079 if (!args) SWIG_fail;
35080 swig_obj[0] = args;
35081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35082 if (!SWIG_IsOK(res1)) {
35083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35084 }
35085 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35086 {
35087 PyThreadState* __tstate = wxPyBeginAllowThreads();
35088 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35089 wxPyEndAllowThreads(__tstate);
35090 if (PyErr_Occurred()) SWIG_fail;
35091 }
35092 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35093 return resultobj;
35094 fail:
35095 return NULL;
35096 }
35097
35098
35099 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35100 PyObject *resultobj = 0;
35101 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35102 PyObject *result = 0 ;
35103 void *argp1 = 0 ;
35104 int res1 = 0 ;
35105 PyObject *swig_obj[1] ;
35106
35107 if (!args) SWIG_fail;
35108 swig_obj[0] = args;
35109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35110 if (!SWIG_IsOK(res1)) {
35111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35112 }
35113 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35114 {
35115 PyThreadState* __tstate = wxPyBeginAllowThreads();
35116 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35117 wxPyEndAllowThreads(__tstate);
35118 if (PyErr_Occurred()) SWIG_fail;
35119 }
35120 resultobj = result;
35121 return resultobj;
35122 fail:
35123 return NULL;
35124 }
35125
35126
35127 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35128 PyObject *resultobj = 0;
35129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35130 wxTreeItemId *arg2 = 0 ;
35131 wxTreeItemId result;
35132 void *argp1 = 0 ;
35133 int res1 = 0 ;
35134 void *argp2 = 0 ;
35135 int res2 = 0 ;
35136 PyObject * obj0 = 0 ;
35137 PyObject * obj1 = 0 ;
35138 char * kwnames[] = {
35139 (char *) "self",(char *) "item", NULL
35140 };
35141
35142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35144 if (!SWIG_IsOK(res1)) {
35145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35146 }
35147 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35149 if (!SWIG_IsOK(res2)) {
35150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35151 }
35152 if (!argp2) {
35153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35154 }
35155 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35156 {
35157 PyThreadState* __tstate = wxPyBeginAllowThreads();
35158 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35159 wxPyEndAllowThreads(__tstate);
35160 if (PyErr_Occurred()) SWIG_fail;
35161 }
35162 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35163 return resultobj;
35164 fail:
35165 return NULL;
35166 }
35167
35168
35169 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35170 PyObject *resultobj = 0;
35171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35172 wxTreeItemId *arg2 = 0 ;
35173 PyObject *result = 0 ;
35174 void *argp1 = 0 ;
35175 int res1 = 0 ;
35176 void *argp2 = 0 ;
35177 int res2 = 0 ;
35178 PyObject * obj0 = 0 ;
35179 PyObject * obj1 = 0 ;
35180 char * kwnames[] = {
35181 (char *) "self",(char *) "item", NULL
35182 };
35183
35184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35186 if (!SWIG_IsOK(res1)) {
35187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35188 }
35189 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35191 if (!SWIG_IsOK(res2)) {
35192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35193 }
35194 if (!argp2) {
35195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35196 }
35197 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35198 {
35199 PyThreadState* __tstate = wxPyBeginAllowThreads();
35200 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35201 wxPyEndAllowThreads(__tstate);
35202 if (PyErr_Occurred()) SWIG_fail;
35203 }
35204 resultobj = result;
35205 return resultobj;
35206 fail:
35207 return NULL;
35208 }
35209
35210
35211 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35212 PyObject *resultobj = 0;
35213 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35214 wxTreeItemId *arg2 = 0 ;
35215 void *arg3 = (void *) 0 ;
35216 PyObject *result = 0 ;
35217 void *argp1 = 0 ;
35218 int res1 = 0 ;
35219 void *argp2 = 0 ;
35220 int res2 = 0 ;
35221 int res3 ;
35222 PyObject * obj0 = 0 ;
35223 PyObject * obj1 = 0 ;
35224 PyObject * obj2 = 0 ;
35225 char * kwnames[] = {
35226 (char *) "self",(char *) "item",(char *) "cookie", NULL
35227 };
35228
35229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35231 if (!SWIG_IsOK(res1)) {
35232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35233 }
35234 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35236 if (!SWIG_IsOK(res2)) {
35237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35238 }
35239 if (!argp2) {
35240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35241 }
35242 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35243 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35244 if (!SWIG_IsOK(res3)) {
35245 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35246 }
35247 {
35248 PyThreadState* __tstate = wxPyBeginAllowThreads();
35249 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35250 wxPyEndAllowThreads(__tstate);
35251 if (PyErr_Occurred()) SWIG_fail;
35252 }
35253 resultobj = result;
35254 return resultobj;
35255 fail:
35256 return NULL;
35257 }
35258
35259
35260 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35261 PyObject *resultobj = 0;
35262 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35263 wxTreeItemId *arg2 = 0 ;
35264 wxTreeItemId result;
35265 void *argp1 = 0 ;
35266 int res1 = 0 ;
35267 void *argp2 = 0 ;
35268 int res2 = 0 ;
35269 PyObject * obj0 = 0 ;
35270 PyObject * obj1 = 0 ;
35271 char * kwnames[] = {
35272 (char *) "self",(char *) "item", NULL
35273 };
35274
35275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35277 if (!SWIG_IsOK(res1)) {
35278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35279 }
35280 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35282 if (!SWIG_IsOK(res2)) {
35283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35284 }
35285 if (!argp2) {
35286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35287 }
35288 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35289 {
35290 PyThreadState* __tstate = wxPyBeginAllowThreads();
35291 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35292 wxPyEndAllowThreads(__tstate);
35293 if (PyErr_Occurred()) SWIG_fail;
35294 }
35295 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35296 return resultobj;
35297 fail:
35298 return NULL;
35299 }
35300
35301
35302 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35303 PyObject *resultobj = 0;
35304 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35305 wxTreeItemId *arg2 = 0 ;
35306 wxTreeItemId result;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 void *argp2 = 0 ;
35310 int res2 = 0 ;
35311 PyObject * obj0 = 0 ;
35312 PyObject * obj1 = 0 ;
35313 char * kwnames[] = {
35314 (char *) "self",(char *) "item", NULL
35315 };
35316
35317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35319 if (!SWIG_IsOK(res1)) {
35320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35321 }
35322 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35324 if (!SWIG_IsOK(res2)) {
35325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35326 }
35327 if (!argp2) {
35328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35329 }
35330 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35331 {
35332 PyThreadState* __tstate = wxPyBeginAllowThreads();
35333 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35334 wxPyEndAllowThreads(__tstate);
35335 if (PyErr_Occurred()) SWIG_fail;
35336 }
35337 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35338 return resultobj;
35339 fail:
35340 return NULL;
35341 }
35342
35343
35344 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35345 PyObject *resultobj = 0;
35346 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35347 wxTreeItemId *arg2 = 0 ;
35348 wxTreeItemId result;
35349 void *argp1 = 0 ;
35350 int res1 = 0 ;
35351 void *argp2 = 0 ;
35352 int res2 = 0 ;
35353 PyObject * obj0 = 0 ;
35354 PyObject * obj1 = 0 ;
35355 char * kwnames[] = {
35356 (char *) "self",(char *) "item", NULL
35357 };
35358
35359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35361 if (!SWIG_IsOK(res1)) {
35362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35363 }
35364 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35366 if (!SWIG_IsOK(res2)) {
35367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35368 }
35369 if (!argp2) {
35370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35371 }
35372 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35373 {
35374 PyThreadState* __tstate = wxPyBeginAllowThreads();
35375 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35376 wxPyEndAllowThreads(__tstate);
35377 if (PyErr_Occurred()) SWIG_fail;
35378 }
35379 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35380 return resultobj;
35381 fail:
35382 return NULL;
35383 }
35384
35385
35386 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35387 PyObject *resultobj = 0;
35388 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35389 wxTreeItemId result;
35390 void *argp1 = 0 ;
35391 int res1 = 0 ;
35392 PyObject *swig_obj[1] ;
35393
35394 if (!args) SWIG_fail;
35395 swig_obj[0] = args;
35396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35397 if (!SWIG_IsOK(res1)) {
35398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35399 }
35400 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35401 {
35402 PyThreadState* __tstate = wxPyBeginAllowThreads();
35403 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35404 wxPyEndAllowThreads(__tstate);
35405 if (PyErr_Occurred()) SWIG_fail;
35406 }
35407 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35408 return resultobj;
35409 fail:
35410 return NULL;
35411 }
35412
35413
35414 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35415 PyObject *resultobj = 0;
35416 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35417 wxTreeItemId *arg2 = 0 ;
35418 wxTreeItemId result;
35419 void *argp1 = 0 ;
35420 int res1 = 0 ;
35421 void *argp2 = 0 ;
35422 int res2 = 0 ;
35423 PyObject * obj0 = 0 ;
35424 PyObject * obj1 = 0 ;
35425 char * kwnames[] = {
35426 (char *) "self",(char *) "item", NULL
35427 };
35428
35429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35431 if (!SWIG_IsOK(res1)) {
35432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35433 }
35434 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35436 if (!SWIG_IsOK(res2)) {
35437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35438 }
35439 if (!argp2) {
35440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35441 }
35442 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35443 {
35444 PyThreadState* __tstate = wxPyBeginAllowThreads();
35445 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35446 wxPyEndAllowThreads(__tstate);
35447 if (PyErr_Occurred()) SWIG_fail;
35448 }
35449 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35450 return resultobj;
35451 fail:
35452 return NULL;
35453 }
35454
35455
35456 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35457 PyObject *resultobj = 0;
35458 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35459 wxTreeItemId *arg2 = 0 ;
35460 wxTreeItemId result;
35461 void *argp1 = 0 ;
35462 int res1 = 0 ;
35463 void *argp2 = 0 ;
35464 int res2 = 0 ;
35465 PyObject * obj0 = 0 ;
35466 PyObject * obj1 = 0 ;
35467 char * kwnames[] = {
35468 (char *) "self",(char *) "item", NULL
35469 };
35470
35471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35473 if (!SWIG_IsOK(res1)) {
35474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35475 }
35476 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35478 if (!SWIG_IsOK(res2)) {
35479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35480 }
35481 if (!argp2) {
35482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35483 }
35484 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35485 {
35486 PyThreadState* __tstate = wxPyBeginAllowThreads();
35487 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35488 wxPyEndAllowThreads(__tstate);
35489 if (PyErr_Occurred()) SWIG_fail;
35490 }
35491 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35492 return resultobj;
35493 fail:
35494 return NULL;
35495 }
35496
35497
35498 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35499 PyObject *resultobj = 0;
35500 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35501 wxString *arg2 = 0 ;
35502 int arg3 = (int) -1 ;
35503 int arg4 = (int) -1 ;
35504 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35505 wxTreeItemId result;
35506 void *argp1 = 0 ;
35507 int res1 = 0 ;
35508 bool temp2 = false ;
35509 int val3 ;
35510 int ecode3 = 0 ;
35511 int val4 ;
35512 int ecode4 = 0 ;
35513 int res5 = 0 ;
35514 PyObject * obj0 = 0 ;
35515 PyObject * obj1 = 0 ;
35516 PyObject * obj2 = 0 ;
35517 PyObject * obj3 = 0 ;
35518 PyObject * obj4 = 0 ;
35519 char * kwnames[] = {
35520 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35521 };
35522
35523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35525 if (!SWIG_IsOK(res1)) {
35526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35527 }
35528 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35529 {
35530 arg2 = wxString_in_helper(obj1);
35531 if (arg2 == NULL) SWIG_fail;
35532 temp2 = true;
35533 }
35534 if (obj2) {
35535 ecode3 = SWIG_AsVal_int(obj2, &val3);
35536 if (!SWIG_IsOK(ecode3)) {
35537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35538 }
35539 arg3 = static_cast< int >(val3);
35540 }
35541 if (obj3) {
35542 ecode4 = SWIG_AsVal_int(obj3, &val4);
35543 if (!SWIG_IsOK(ecode4)) {
35544 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35545 }
35546 arg4 = static_cast< int >(val4);
35547 }
35548 if (obj4) {
35549 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35550 if (!SWIG_IsOK(res5)) {
35551 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35552 }
35553 }
35554 {
35555 PyThreadState* __tstate = wxPyBeginAllowThreads();
35556 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35557 wxPyEndAllowThreads(__tstate);
35558 if (PyErr_Occurred()) SWIG_fail;
35559 }
35560 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35561 {
35562 if (temp2)
35563 delete arg2;
35564 }
35565 return resultobj;
35566 fail:
35567 {
35568 if (temp2)
35569 delete arg2;
35570 }
35571 return NULL;
35572 }
35573
35574
35575 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35576 PyObject *resultobj = 0;
35577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35578 wxTreeItemId *arg2 = 0 ;
35579 wxString *arg3 = 0 ;
35580 int arg4 = (int) -1 ;
35581 int arg5 = (int) -1 ;
35582 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35583 wxTreeItemId result;
35584 void *argp1 = 0 ;
35585 int res1 = 0 ;
35586 void *argp2 = 0 ;
35587 int res2 = 0 ;
35588 bool temp3 = false ;
35589 int val4 ;
35590 int ecode4 = 0 ;
35591 int val5 ;
35592 int ecode5 = 0 ;
35593 int res6 = 0 ;
35594 PyObject * obj0 = 0 ;
35595 PyObject * obj1 = 0 ;
35596 PyObject * obj2 = 0 ;
35597 PyObject * obj3 = 0 ;
35598 PyObject * obj4 = 0 ;
35599 PyObject * obj5 = 0 ;
35600 char * kwnames[] = {
35601 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35602 };
35603
35604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35606 if (!SWIG_IsOK(res1)) {
35607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35608 }
35609 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35611 if (!SWIG_IsOK(res2)) {
35612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35613 }
35614 if (!argp2) {
35615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35616 }
35617 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35618 {
35619 arg3 = wxString_in_helper(obj2);
35620 if (arg3 == NULL) SWIG_fail;
35621 temp3 = true;
35622 }
35623 if (obj3) {
35624 ecode4 = SWIG_AsVal_int(obj3, &val4);
35625 if (!SWIG_IsOK(ecode4)) {
35626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35627 }
35628 arg4 = static_cast< int >(val4);
35629 }
35630 if (obj4) {
35631 ecode5 = SWIG_AsVal_int(obj4, &val5);
35632 if (!SWIG_IsOK(ecode5)) {
35633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35634 }
35635 arg5 = static_cast< int >(val5);
35636 }
35637 if (obj5) {
35638 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35639 if (!SWIG_IsOK(res6)) {
35640 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35641 }
35642 }
35643 {
35644 PyThreadState* __tstate = wxPyBeginAllowThreads();
35645 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35646 wxPyEndAllowThreads(__tstate);
35647 if (PyErr_Occurred()) SWIG_fail;
35648 }
35649 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35650 {
35651 if (temp3)
35652 delete arg3;
35653 }
35654 return resultobj;
35655 fail:
35656 {
35657 if (temp3)
35658 delete arg3;
35659 }
35660 return NULL;
35661 }
35662
35663
35664 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35665 PyObject *resultobj = 0;
35666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35667 wxTreeItemId *arg2 = 0 ;
35668 wxTreeItemId *arg3 = 0 ;
35669 wxString *arg4 = 0 ;
35670 int arg5 = (int) -1 ;
35671 int arg6 = (int) -1 ;
35672 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35673 wxTreeItemId result;
35674 void *argp1 = 0 ;
35675 int res1 = 0 ;
35676 void *argp2 = 0 ;
35677 int res2 = 0 ;
35678 void *argp3 = 0 ;
35679 int res3 = 0 ;
35680 bool temp4 = false ;
35681 int val5 ;
35682 int ecode5 = 0 ;
35683 int val6 ;
35684 int ecode6 = 0 ;
35685 int res7 = 0 ;
35686 PyObject * obj0 = 0 ;
35687 PyObject * obj1 = 0 ;
35688 PyObject * obj2 = 0 ;
35689 PyObject * obj3 = 0 ;
35690 PyObject * obj4 = 0 ;
35691 PyObject * obj5 = 0 ;
35692 PyObject * obj6 = 0 ;
35693 char * kwnames[] = {
35694 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35695 };
35696
35697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35699 if (!SWIG_IsOK(res1)) {
35700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35701 }
35702 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35704 if (!SWIG_IsOK(res2)) {
35705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35706 }
35707 if (!argp2) {
35708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35709 }
35710 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35711 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35712 if (!SWIG_IsOK(res3)) {
35713 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35714 }
35715 if (!argp3) {
35716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35717 }
35718 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35719 {
35720 arg4 = wxString_in_helper(obj3);
35721 if (arg4 == NULL) SWIG_fail;
35722 temp4 = true;
35723 }
35724 if (obj4) {
35725 ecode5 = SWIG_AsVal_int(obj4, &val5);
35726 if (!SWIG_IsOK(ecode5)) {
35727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35728 }
35729 arg5 = static_cast< int >(val5);
35730 }
35731 if (obj5) {
35732 ecode6 = SWIG_AsVal_int(obj5, &val6);
35733 if (!SWIG_IsOK(ecode6)) {
35734 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35735 }
35736 arg6 = static_cast< int >(val6);
35737 }
35738 if (obj6) {
35739 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35740 if (!SWIG_IsOK(res7)) {
35741 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35742 }
35743 }
35744 {
35745 PyThreadState* __tstate = wxPyBeginAllowThreads();
35746 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35747 wxPyEndAllowThreads(__tstate);
35748 if (PyErr_Occurred()) SWIG_fail;
35749 }
35750 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35751 {
35752 if (temp4)
35753 delete arg4;
35754 }
35755 return resultobj;
35756 fail:
35757 {
35758 if (temp4)
35759 delete arg4;
35760 }
35761 return NULL;
35762 }
35763
35764
35765 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35766 PyObject *resultobj = 0;
35767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35768 wxTreeItemId *arg2 = 0 ;
35769 size_t arg3 ;
35770 wxString *arg4 = 0 ;
35771 int arg5 = (int) -1 ;
35772 int arg6 = (int) -1 ;
35773 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35774 wxTreeItemId result;
35775 void *argp1 = 0 ;
35776 int res1 = 0 ;
35777 void *argp2 = 0 ;
35778 int res2 = 0 ;
35779 size_t val3 ;
35780 int ecode3 = 0 ;
35781 bool temp4 = false ;
35782 int val5 ;
35783 int ecode5 = 0 ;
35784 int val6 ;
35785 int ecode6 = 0 ;
35786 int res7 = 0 ;
35787 PyObject * obj0 = 0 ;
35788 PyObject * obj1 = 0 ;
35789 PyObject * obj2 = 0 ;
35790 PyObject * obj3 = 0 ;
35791 PyObject * obj4 = 0 ;
35792 PyObject * obj5 = 0 ;
35793 PyObject * obj6 = 0 ;
35794 char * kwnames[] = {
35795 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35796 };
35797
35798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35800 if (!SWIG_IsOK(res1)) {
35801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35802 }
35803 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35805 if (!SWIG_IsOK(res2)) {
35806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35807 }
35808 if (!argp2) {
35809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35810 }
35811 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35812 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35813 if (!SWIG_IsOK(ecode3)) {
35814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35815 }
35816 arg3 = static_cast< size_t >(val3);
35817 {
35818 arg4 = wxString_in_helper(obj3);
35819 if (arg4 == NULL) SWIG_fail;
35820 temp4 = true;
35821 }
35822 if (obj4) {
35823 ecode5 = SWIG_AsVal_int(obj4, &val5);
35824 if (!SWIG_IsOK(ecode5)) {
35825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35826 }
35827 arg5 = static_cast< int >(val5);
35828 }
35829 if (obj5) {
35830 ecode6 = SWIG_AsVal_int(obj5, &val6);
35831 if (!SWIG_IsOK(ecode6)) {
35832 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35833 }
35834 arg6 = static_cast< int >(val6);
35835 }
35836 if (obj6) {
35837 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35838 if (!SWIG_IsOK(res7)) {
35839 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35840 }
35841 }
35842 {
35843 PyThreadState* __tstate = wxPyBeginAllowThreads();
35844 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35845 wxPyEndAllowThreads(__tstate);
35846 if (PyErr_Occurred()) SWIG_fail;
35847 }
35848 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35849 {
35850 if (temp4)
35851 delete arg4;
35852 }
35853 return resultobj;
35854 fail:
35855 {
35856 if (temp4)
35857 delete arg4;
35858 }
35859 return NULL;
35860 }
35861
35862
35863 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35864 PyObject *resultobj = 0;
35865 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35866 wxTreeItemId *arg2 = 0 ;
35867 wxString *arg3 = 0 ;
35868 int arg4 = (int) -1 ;
35869 int arg5 = (int) -1 ;
35870 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35871 wxTreeItemId result;
35872 void *argp1 = 0 ;
35873 int res1 = 0 ;
35874 void *argp2 = 0 ;
35875 int res2 = 0 ;
35876 bool temp3 = false ;
35877 int val4 ;
35878 int ecode4 = 0 ;
35879 int val5 ;
35880 int ecode5 = 0 ;
35881 int res6 = 0 ;
35882 PyObject * obj0 = 0 ;
35883 PyObject * obj1 = 0 ;
35884 PyObject * obj2 = 0 ;
35885 PyObject * obj3 = 0 ;
35886 PyObject * obj4 = 0 ;
35887 PyObject * obj5 = 0 ;
35888 char * kwnames[] = {
35889 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35890 };
35891
35892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35894 if (!SWIG_IsOK(res1)) {
35895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35896 }
35897 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35899 if (!SWIG_IsOK(res2)) {
35900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35901 }
35902 if (!argp2) {
35903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35904 }
35905 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35906 {
35907 arg3 = wxString_in_helper(obj2);
35908 if (arg3 == NULL) SWIG_fail;
35909 temp3 = true;
35910 }
35911 if (obj3) {
35912 ecode4 = SWIG_AsVal_int(obj3, &val4);
35913 if (!SWIG_IsOK(ecode4)) {
35914 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35915 }
35916 arg4 = static_cast< int >(val4);
35917 }
35918 if (obj4) {
35919 ecode5 = SWIG_AsVal_int(obj4, &val5);
35920 if (!SWIG_IsOK(ecode5)) {
35921 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35922 }
35923 arg5 = static_cast< int >(val5);
35924 }
35925 if (obj5) {
35926 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35927 if (!SWIG_IsOK(res6)) {
35928 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35929 }
35930 }
35931 {
35932 PyThreadState* __tstate = wxPyBeginAllowThreads();
35933 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35934 wxPyEndAllowThreads(__tstate);
35935 if (PyErr_Occurred()) SWIG_fail;
35936 }
35937 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35938 {
35939 if (temp3)
35940 delete arg3;
35941 }
35942 return resultobj;
35943 fail:
35944 {
35945 if (temp3)
35946 delete arg3;
35947 }
35948 return NULL;
35949 }
35950
35951
35952 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35953 PyObject *resultobj = 0;
35954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35955 wxTreeItemId *arg2 = 0 ;
35956 void *argp1 = 0 ;
35957 int res1 = 0 ;
35958 void *argp2 = 0 ;
35959 int res2 = 0 ;
35960 PyObject * obj0 = 0 ;
35961 PyObject * obj1 = 0 ;
35962 char * kwnames[] = {
35963 (char *) "self",(char *) "item", NULL
35964 };
35965
35966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35968 if (!SWIG_IsOK(res1)) {
35969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35970 }
35971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35973 if (!SWIG_IsOK(res2)) {
35974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35975 }
35976 if (!argp2) {
35977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35978 }
35979 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35980 {
35981 PyThreadState* __tstate = wxPyBeginAllowThreads();
35982 (arg1)->Delete((wxTreeItemId const &)*arg2);
35983 wxPyEndAllowThreads(__tstate);
35984 if (PyErr_Occurred()) SWIG_fail;
35985 }
35986 resultobj = SWIG_Py_Void();
35987 return resultobj;
35988 fail:
35989 return NULL;
35990 }
35991
35992
35993 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj = 0;
35995 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35996 wxTreeItemId *arg2 = 0 ;
35997 void *argp1 = 0 ;
35998 int res1 = 0 ;
35999 void *argp2 = 0 ;
36000 int res2 = 0 ;
36001 PyObject * obj0 = 0 ;
36002 PyObject * obj1 = 0 ;
36003 char * kwnames[] = {
36004 (char *) "self",(char *) "item", NULL
36005 };
36006
36007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36009 if (!SWIG_IsOK(res1)) {
36010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36011 }
36012 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36014 if (!SWIG_IsOK(res2)) {
36015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36016 }
36017 if (!argp2) {
36018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36019 }
36020 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36021 {
36022 PyThreadState* __tstate = wxPyBeginAllowThreads();
36023 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36024 wxPyEndAllowThreads(__tstate);
36025 if (PyErr_Occurred()) SWIG_fail;
36026 }
36027 resultobj = SWIG_Py_Void();
36028 return resultobj;
36029 fail:
36030 return NULL;
36031 }
36032
36033
36034 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36035 PyObject *resultobj = 0;
36036 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36037 void *argp1 = 0 ;
36038 int res1 = 0 ;
36039 PyObject *swig_obj[1] ;
36040
36041 if (!args) SWIG_fail;
36042 swig_obj[0] = args;
36043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36044 if (!SWIG_IsOK(res1)) {
36045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36046 }
36047 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36048 {
36049 PyThreadState* __tstate = wxPyBeginAllowThreads();
36050 (arg1)->DeleteAllItems();
36051 wxPyEndAllowThreads(__tstate);
36052 if (PyErr_Occurred()) SWIG_fail;
36053 }
36054 resultobj = SWIG_Py_Void();
36055 return resultobj;
36056 fail:
36057 return NULL;
36058 }
36059
36060
36061 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36062 PyObject *resultobj = 0;
36063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36064 wxTreeItemId *arg2 = 0 ;
36065 void *argp1 = 0 ;
36066 int res1 = 0 ;
36067 void *argp2 = 0 ;
36068 int res2 = 0 ;
36069 PyObject * obj0 = 0 ;
36070 PyObject * obj1 = 0 ;
36071 char * kwnames[] = {
36072 (char *) "self",(char *) "item", NULL
36073 };
36074
36075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36077 if (!SWIG_IsOK(res1)) {
36078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36079 }
36080 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36082 if (!SWIG_IsOK(res2)) {
36083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36084 }
36085 if (!argp2) {
36086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36087 }
36088 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36089 {
36090 PyThreadState* __tstate = wxPyBeginAllowThreads();
36091 (arg1)->Expand((wxTreeItemId const &)*arg2);
36092 wxPyEndAllowThreads(__tstate);
36093 if (PyErr_Occurred()) SWIG_fail;
36094 }
36095 resultobj = SWIG_Py_Void();
36096 return resultobj;
36097 fail:
36098 return NULL;
36099 }
36100
36101
36102 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36103 PyObject *resultobj = 0;
36104 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36105 wxTreeItemId *arg2 = 0 ;
36106 void *argp1 = 0 ;
36107 int res1 = 0 ;
36108 void *argp2 = 0 ;
36109 int res2 = 0 ;
36110 PyObject * obj0 = 0 ;
36111 PyObject * obj1 = 0 ;
36112 char * kwnames[] = {
36113 (char *) "self",(char *) "item", NULL
36114 };
36115
36116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36118 if (!SWIG_IsOK(res1)) {
36119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36120 }
36121 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36123 if (!SWIG_IsOK(res2)) {
36124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36125 }
36126 if (!argp2) {
36127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36128 }
36129 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36130 {
36131 PyThreadState* __tstate = wxPyBeginAllowThreads();
36132 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36133 wxPyEndAllowThreads(__tstate);
36134 if (PyErr_Occurred()) SWIG_fail;
36135 }
36136 resultobj = SWIG_Py_Void();
36137 return resultobj;
36138 fail:
36139 return NULL;
36140 }
36141
36142
36143 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36144 PyObject *resultobj = 0;
36145 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36146 wxTreeItemId *arg2 = 0 ;
36147 void *argp1 = 0 ;
36148 int res1 = 0 ;
36149 void *argp2 = 0 ;
36150 int res2 = 0 ;
36151 PyObject * obj0 = 0 ;
36152 PyObject * obj1 = 0 ;
36153 char * kwnames[] = {
36154 (char *) "self",(char *) "item", NULL
36155 };
36156
36157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36159 if (!SWIG_IsOK(res1)) {
36160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36161 }
36162 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36164 if (!SWIG_IsOK(res2)) {
36165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36166 }
36167 if (!argp2) {
36168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36169 }
36170 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36171 {
36172 PyThreadState* __tstate = wxPyBeginAllowThreads();
36173 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36174 wxPyEndAllowThreads(__tstate);
36175 if (PyErr_Occurred()) SWIG_fail;
36176 }
36177 resultobj = SWIG_Py_Void();
36178 return resultobj;
36179 fail:
36180 return NULL;
36181 }
36182
36183
36184 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36185 PyObject *resultobj = 0;
36186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36187 wxTreeItemId *arg2 = 0 ;
36188 void *argp1 = 0 ;
36189 int res1 = 0 ;
36190 void *argp2 = 0 ;
36191 int res2 = 0 ;
36192 PyObject * obj0 = 0 ;
36193 PyObject * obj1 = 0 ;
36194 char * kwnames[] = {
36195 (char *) "self",(char *) "item", NULL
36196 };
36197
36198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36200 if (!SWIG_IsOK(res1)) {
36201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36202 }
36203 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36205 if (!SWIG_IsOK(res2)) {
36206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36207 }
36208 if (!argp2) {
36209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36210 }
36211 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36212 {
36213 PyThreadState* __tstate = wxPyBeginAllowThreads();
36214 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36215 wxPyEndAllowThreads(__tstate);
36216 if (PyErr_Occurred()) SWIG_fail;
36217 }
36218 resultobj = SWIG_Py_Void();
36219 return resultobj;
36220 fail:
36221 return NULL;
36222 }
36223
36224
36225 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36226 PyObject *resultobj = 0;
36227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36228 void *argp1 = 0 ;
36229 int res1 = 0 ;
36230 PyObject *swig_obj[1] ;
36231
36232 if (!args) SWIG_fail;
36233 swig_obj[0] = args;
36234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36235 if (!SWIG_IsOK(res1)) {
36236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36237 }
36238 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36239 {
36240 PyThreadState* __tstate = wxPyBeginAllowThreads();
36241 (arg1)->Unselect();
36242 wxPyEndAllowThreads(__tstate);
36243 if (PyErr_Occurred()) SWIG_fail;
36244 }
36245 resultobj = SWIG_Py_Void();
36246 return resultobj;
36247 fail:
36248 return NULL;
36249 }
36250
36251
36252 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36253 PyObject *resultobj = 0;
36254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36255 wxTreeItemId *arg2 = 0 ;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 void *argp2 = 0 ;
36259 int res2 = 0 ;
36260 PyObject * obj0 = 0 ;
36261 PyObject * obj1 = 0 ;
36262 char * kwnames[] = {
36263 (char *) "self",(char *) "item", NULL
36264 };
36265
36266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36268 if (!SWIG_IsOK(res1)) {
36269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36270 }
36271 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36273 if (!SWIG_IsOK(res2)) {
36274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36275 }
36276 if (!argp2) {
36277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36278 }
36279 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36280 {
36281 PyThreadState* __tstate = wxPyBeginAllowThreads();
36282 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36283 wxPyEndAllowThreads(__tstate);
36284 if (PyErr_Occurred()) SWIG_fail;
36285 }
36286 resultobj = SWIG_Py_Void();
36287 return resultobj;
36288 fail:
36289 return NULL;
36290 }
36291
36292
36293 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36294 PyObject *resultobj = 0;
36295 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36296 void *argp1 = 0 ;
36297 int res1 = 0 ;
36298 PyObject *swig_obj[1] ;
36299
36300 if (!args) SWIG_fail;
36301 swig_obj[0] = args;
36302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36303 if (!SWIG_IsOK(res1)) {
36304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36305 }
36306 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36307 {
36308 PyThreadState* __tstate = wxPyBeginAllowThreads();
36309 (arg1)->UnselectAll();
36310 wxPyEndAllowThreads(__tstate);
36311 if (PyErr_Occurred()) SWIG_fail;
36312 }
36313 resultobj = SWIG_Py_Void();
36314 return resultobj;
36315 fail:
36316 return NULL;
36317 }
36318
36319
36320 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36321 PyObject *resultobj = 0;
36322 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36323 wxTreeItemId *arg2 = 0 ;
36324 bool arg3 = (bool) true ;
36325 void *argp1 = 0 ;
36326 int res1 = 0 ;
36327 void *argp2 = 0 ;
36328 int res2 = 0 ;
36329 bool val3 ;
36330 int ecode3 = 0 ;
36331 PyObject * obj0 = 0 ;
36332 PyObject * obj1 = 0 ;
36333 PyObject * obj2 = 0 ;
36334 char * kwnames[] = {
36335 (char *) "self",(char *) "item",(char *) "select", NULL
36336 };
36337
36338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36340 if (!SWIG_IsOK(res1)) {
36341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36342 }
36343 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36345 if (!SWIG_IsOK(res2)) {
36346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36347 }
36348 if (!argp2) {
36349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36350 }
36351 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36352 if (obj2) {
36353 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36354 if (!SWIG_IsOK(ecode3)) {
36355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36356 }
36357 arg3 = static_cast< bool >(val3);
36358 }
36359 {
36360 PyThreadState* __tstate = wxPyBeginAllowThreads();
36361 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36362 wxPyEndAllowThreads(__tstate);
36363 if (PyErr_Occurred()) SWIG_fail;
36364 }
36365 resultobj = SWIG_Py_Void();
36366 return resultobj;
36367 fail:
36368 return NULL;
36369 }
36370
36371
36372 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36373 PyObject *resultobj = 0;
36374 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36375 wxTreeItemId *arg2 = 0 ;
36376 void *argp1 = 0 ;
36377 int res1 = 0 ;
36378 void *argp2 = 0 ;
36379 int res2 = 0 ;
36380 PyObject * obj0 = 0 ;
36381 PyObject * obj1 = 0 ;
36382 char * kwnames[] = {
36383 (char *) "self",(char *) "item", NULL
36384 };
36385
36386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36388 if (!SWIG_IsOK(res1)) {
36389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36390 }
36391 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36393 if (!SWIG_IsOK(res2)) {
36394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36395 }
36396 if (!argp2) {
36397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36398 }
36399 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36400 {
36401 PyThreadState* __tstate = wxPyBeginAllowThreads();
36402 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36403 wxPyEndAllowThreads(__tstate);
36404 if (PyErr_Occurred()) SWIG_fail;
36405 }
36406 resultobj = SWIG_Py_Void();
36407 return resultobj;
36408 fail:
36409 return NULL;
36410 }
36411
36412
36413 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36414 PyObject *resultobj = 0;
36415 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36416 wxTreeItemId *arg2 = 0 ;
36417 void *argp1 = 0 ;
36418 int res1 = 0 ;
36419 void *argp2 = 0 ;
36420 int res2 = 0 ;
36421 PyObject * obj0 = 0 ;
36422 PyObject * obj1 = 0 ;
36423 char * kwnames[] = {
36424 (char *) "self",(char *) "item", NULL
36425 };
36426
36427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36429 if (!SWIG_IsOK(res1)) {
36430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36431 }
36432 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36434 if (!SWIG_IsOK(res2)) {
36435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36436 }
36437 if (!argp2) {
36438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36439 }
36440 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36441 {
36442 PyThreadState* __tstate = wxPyBeginAllowThreads();
36443 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36444 wxPyEndAllowThreads(__tstate);
36445 if (PyErr_Occurred()) SWIG_fail;
36446 }
36447 resultobj = SWIG_Py_Void();
36448 return resultobj;
36449 fail:
36450 return NULL;
36451 }
36452
36453
36454 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36455 PyObject *resultobj = 0;
36456 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36457 wxTreeItemId *arg2 = 0 ;
36458 void *argp1 = 0 ;
36459 int res1 = 0 ;
36460 void *argp2 = 0 ;
36461 int res2 = 0 ;
36462 PyObject * obj0 = 0 ;
36463 PyObject * obj1 = 0 ;
36464 char * kwnames[] = {
36465 (char *) "self",(char *) "item", NULL
36466 };
36467
36468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36470 if (!SWIG_IsOK(res1)) {
36471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36472 }
36473 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36474 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36475 if (!SWIG_IsOK(res2)) {
36476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36477 }
36478 if (!argp2) {
36479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36480 }
36481 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36482 {
36483 PyThreadState* __tstate = wxPyBeginAllowThreads();
36484 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36485 wxPyEndAllowThreads(__tstate);
36486 if (PyErr_Occurred()) SWIG_fail;
36487 }
36488 resultobj = SWIG_Py_Void();
36489 return resultobj;
36490 fail:
36491 return NULL;
36492 }
36493
36494
36495 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36496 PyObject *resultobj = 0;
36497 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36498 wxTreeItemId *arg2 = 0 ;
36499 void *argp1 = 0 ;
36500 int res1 = 0 ;
36501 void *argp2 = 0 ;
36502 int res2 = 0 ;
36503 PyObject * obj0 = 0 ;
36504 PyObject * obj1 = 0 ;
36505 char * kwnames[] = {
36506 (char *) "self",(char *) "item", NULL
36507 };
36508
36509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36511 if (!SWIG_IsOK(res1)) {
36512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36513 }
36514 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36516 if (!SWIG_IsOK(res2)) {
36517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36518 }
36519 if (!argp2) {
36520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36521 }
36522 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36523 {
36524 PyThreadState* __tstate = wxPyBeginAllowThreads();
36525 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36526 wxPyEndAllowThreads(__tstate);
36527 if (PyErr_Occurred()) SWIG_fail;
36528 }
36529 resultobj = SWIG_Py_Void();
36530 return resultobj;
36531 fail:
36532 return NULL;
36533 }
36534
36535
36536 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36537 PyObject *resultobj = 0;
36538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36539 wxTextCtrl *result = 0 ;
36540 void *argp1 = 0 ;
36541 int res1 = 0 ;
36542 PyObject *swig_obj[1] ;
36543
36544 if (!args) SWIG_fail;
36545 swig_obj[0] = args;
36546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36547 if (!SWIG_IsOK(res1)) {
36548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36549 }
36550 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36551 {
36552 PyThreadState* __tstate = wxPyBeginAllowThreads();
36553 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36554 wxPyEndAllowThreads(__tstate);
36555 if (PyErr_Occurred()) SWIG_fail;
36556 }
36557 {
36558 resultobj = wxPyMake_wxObject(result, 0);
36559 }
36560 return resultobj;
36561 fail:
36562 return NULL;
36563 }
36564
36565
36566 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36567 PyObject *resultobj = 0;
36568 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36569 wxTreeItemId *arg2 = 0 ;
36570 bool arg3 = (bool) false ;
36571 void *argp1 = 0 ;
36572 int res1 = 0 ;
36573 void *argp2 = 0 ;
36574 int res2 = 0 ;
36575 bool val3 ;
36576 int ecode3 = 0 ;
36577 PyObject * obj0 = 0 ;
36578 PyObject * obj1 = 0 ;
36579 PyObject * obj2 = 0 ;
36580 char * kwnames[] = {
36581 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36582 };
36583
36584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36586 if (!SWIG_IsOK(res1)) {
36587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36588 }
36589 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36591 if (!SWIG_IsOK(res2)) {
36592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36593 }
36594 if (!argp2) {
36595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36596 }
36597 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36598 if (obj2) {
36599 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36600 if (!SWIG_IsOK(ecode3)) {
36601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36602 }
36603 arg3 = static_cast< bool >(val3);
36604 }
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 resultobj = SWIG_Py_Void();
36612 return resultobj;
36613 fail:
36614 return NULL;
36615 }
36616
36617
36618 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36619 PyObject *resultobj = 0;
36620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36621 wxTreeItemId *arg2 = 0 ;
36622 void *argp1 = 0 ;
36623 int res1 = 0 ;
36624 void *argp2 = 0 ;
36625 int res2 = 0 ;
36626 PyObject * obj0 = 0 ;
36627 PyObject * obj1 = 0 ;
36628 char * kwnames[] = {
36629 (char *) "self",(char *) "item", NULL
36630 };
36631
36632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36634 if (!SWIG_IsOK(res1)) {
36635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36636 }
36637 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36639 if (!SWIG_IsOK(res2)) {
36640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36641 }
36642 if (!argp2) {
36643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36644 }
36645 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36646 {
36647 PyThreadState* __tstate = wxPyBeginAllowThreads();
36648 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36649 wxPyEndAllowThreads(__tstate);
36650 if (PyErr_Occurred()) SWIG_fail;
36651 }
36652 resultobj = SWIG_Py_Void();
36653 return resultobj;
36654 fail:
36655 return NULL;
36656 }
36657
36658
36659 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36660 PyObject *resultobj = 0;
36661 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36662 wxPoint *arg2 = 0 ;
36663 int *arg3 = 0 ;
36664 wxTreeItemId result;
36665 void *argp1 = 0 ;
36666 int res1 = 0 ;
36667 wxPoint temp2 ;
36668 int temp3 ;
36669 int res3 = SWIG_TMPOBJ ;
36670 PyObject * obj0 = 0 ;
36671 PyObject * obj1 = 0 ;
36672 char * kwnames[] = {
36673 (char *) "self",(char *) "point", NULL
36674 };
36675
36676 arg3 = &temp3;
36677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36679 if (!SWIG_IsOK(res1)) {
36680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36681 }
36682 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36683 {
36684 arg2 = &temp2;
36685 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36686 }
36687 {
36688 PyThreadState* __tstate = wxPyBeginAllowThreads();
36689 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36690 wxPyEndAllowThreads(__tstate);
36691 if (PyErr_Occurred()) SWIG_fail;
36692 }
36693 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36694 if (SWIG_IsTmpObj(res3)) {
36695 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36696 } else {
36697 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36698 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36699 }
36700 return resultobj;
36701 fail:
36702 return NULL;
36703 }
36704
36705
36706 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36707 PyObject *resultobj = 0;
36708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36709 wxTreeItemId *arg2 = 0 ;
36710 bool arg3 = (bool) false ;
36711 PyObject *result = 0 ;
36712 void *argp1 = 0 ;
36713 int res1 = 0 ;
36714 void *argp2 = 0 ;
36715 int res2 = 0 ;
36716 bool val3 ;
36717 int ecode3 = 0 ;
36718 PyObject * obj0 = 0 ;
36719 PyObject * obj1 = 0 ;
36720 PyObject * obj2 = 0 ;
36721 char * kwnames[] = {
36722 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36723 };
36724
36725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36727 if (!SWIG_IsOK(res1)) {
36728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36729 }
36730 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36732 if (!SWIG_IsOK(res2)) {
36733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36734 }
36735 if (!argp2) {
36736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36737 }
36738 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36739 if (obj2) {
36740 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36741 if (!SWIG_IsOK(ecode3)) {
36742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36743 }
36744 arg3 = static_cast< bool >(val3);
36745 }
36746 {
36747 PyThreadState* __tstate = wxPyBeginAllowThreads();
36748 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36749 wxPyEndAllowThreads(__tstate);
36750 if (PyErr_Occurred()) SWIG_fail;
36751 }
36752 resultobj = result;
36753 return resultobj;
36754 fail:
36755 return NULL;
36756 }
36757
36758
36759 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36760 PyObject *resultobj = 0;
36761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36762 wxTreeItemId *arg2 = 0 ;
36763 int arg3 ;
36764 void *argp1 = 0 ;
36765 int res1 = 0 ;
36766 void *argp2 = 0 ;
36767 int res2 = 0 ;
36768 int val3 ;
36769 int ecode3 = 0 ;
36770 PyObject * obj0 = 0 ;
36771 PyObject * obj1 = 0 ;
36772 PyObject * obj2 = 0 ;
36773 char * kwnames[] = {
36774 (char *) "self",(char *) "node",(char *) "state", NULL
36775 };
36776
36777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36779 if (!SWIG_IsOK(res1)) {
36780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36781 }
36782 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36784 if (!SWIG_IsOK(res2)) {
36785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36786 }
36787 if (!argp2) {
36788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36789 }
36790 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36791 ecode3 = SWIG_AsVal_int(obj2, &val3);
36792 if (!SWIG_IsOK(ecode3)) {
36793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
36794 }
36795 arg3 = static_cast< int >(val3);
36796 {
36797 PyThreadState* __tstate = wxPyBeginAllowThreads();
36798 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
36799 wxPyEndAllowThreads(__tstate);
36800 if (PyErr_Occurred()) SWIG_fail;
36801 }
36802 resultobj = SWIG_Py_Void();
36803 return resultobj;
36804 fail:
36805 return NULL;
36806 }
36807
36808
36809 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36810 PyObject *resultobj = 0;
36811 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36812 wxTreeItemId *arg2 = 0 ;
36813 int result;
36814 void *argp1 = 0 ;
36815 int res1 = 0 ;
36816 void *argp2 = 0 ;
36817 int res2 = 0 ;
36818 PyObject * obj0 = 0 ;
36819 PyObject * obj1 = 0 ;
36820 char * kwnames[] = {
36821 (char *) "self",(char *) "node", NULL
36822 };
36823
36824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
36825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36826 if (!SWIG_IsOK(res1)) {
36827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36828 }
36829 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36831 if (!SWIG_IsOK(res2)) {
36832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36833 }
36834 if (!argp2) {
36835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36836 }
36837 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36838 {
36839 PyThreadState* __tstate = wxPyBeginAllowThreads();
36840 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
36841 wxPyEndAllowThreads(__tstate);
36842 if (PyErr_Occurred()) SWIG_fail;
36843 }
36844 resultobj = SWIG_From_int(static_cast< int >(result));
36845 return resultobj;
36846 fail:
36847 return NULL;
36848 }
36849
36850
36851 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36852 PyObject *resultobj = 0;
36853 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36854 SwigValueWrapper<wxVisualAttributes > result;
36855 int val1 ;
36856 int ecode1 = 0 ;
36857 PyObject * obj0 = 0 ;
36858 char * kwnames[] = {
36859 (char *) "variant", NULL
36860 };
36861
36862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36863 if (obj0) {
36864 ecode1 = SWIG_AsVal_int(obj0, &val1);
36865 if (!SWIG_IsOK(ecode1)) {
36866 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36867 }
36868 arg1 = static_cast< wxWindowVariant >(val1);
36869 }
36870 {
36871 if (!wxPyCheckForApp()) SWIG_fail;
36872 PyThreadState* __tstate = wxPyBeginAllowThreads();
36873 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36874 wxPyEndAllowThreads(__tstate);
36875 if (PyErr_Occurred()) SWIG_fail;
36876 }
36877 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36878 return resultobj;
36879 fail:
36880 return NULL;
36881 }
36882
36883
36884 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36885 PyObject *resultobj = 0;
36886 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36887 bool arg2 ;
36888 void *argp1 = 0 ;
36889 int res1 = 0 ;
36890 bool val2 ;
36891 int ecode2 = 0 ;
36892 PyObject * obj0 = 0 ;
36893 PyObject * obj1 = 0 ;
36894 char * kwnames[] = {
36895 (char *) "self",(char *) "q", NULL
36896 };
36897
36898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36900 if (!SWIG_IsOK(res1)) {
36901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36902 }
36903 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36904 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36905 if (!SWIG_IsOK(ecode2)) {
36906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36907 }
36908 arg2 = static_cast< bool >(val2);
36909 {
36910 PyThreadState* __tstate = wxPyBeginAllowThreads();
36911 (arg1)->SetQuickBestSize(arg2);
36912 wxPyEndAllowThreads(__tstate);
36913 if (PyErr_Occurred()) SWIG_fail;
36914 }
36915 resultobj = SWIG_Py_Void();
36916 return resultobj;
36917 fail:
36918 return NULL;
36919 }
36920
36921
36922 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36923 PyObject *resultobj = 0;
36924 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36925 bool result;
36926 void *argp1 = 0 ;
36927 int res1 = 0 ;
36928 PyObject *swig_obj[1] ;
36929
36930 if (!args) SWIG_fail;
36931 swig_obj[0] = args;
36932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36933 if (!SWIG_IsOK(res1)) {
36934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36935 }
36936 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36937 {
36938 PyThreadState* __tstate = wxPyBeginAllowThreads();
36939 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
36940 wxPyEndAllowThreads(__tstate);
36941 if (PyErr_Occurred()) SWIG_fail;
36942 }
36943 {
36944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36945 }
36946 return resultobj;
36947 fail:
36948 return NULL;
36949 }
36950
36951
36952 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36953 PyObject *obj;
36954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36955 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36956 return SWIG_Py_Void();
36957 }
36958
36959 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36960 return SWIG_Python_InitShadowInstance(args);
36961 }
36962
36963 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36964 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36965 return 1;
36966 }
36967
36968
36969 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36970 PyObject *pyobj = 0;
36971
36972 {
36973 #if wxUSE_UNICODE
36974 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36975 #else
36976 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36977 #endif
36978 }
36979 return pyobj;
36980 }
36981
36982
36983 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36984 PyObject *resultobj = 0;
36985 wxWindow *arg1 = (wxWindow *) 0 ;
36986 int arg2 = (int) (int)-1 ;
36987 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36988 wxString *arg3 = (wxString *) &arg3_defvalue ;
36989 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36990 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36991 wxSize const &arg5_defvalue = wxDefaultSize ;
36992 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36993 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36994 wxString const &arg7_defvalue = wxPyEmptyString ;
36995 wxString *arg7 = (wxString *) &arg7_defvalue ;
36996 int arg8 = (int) 0 ;
36997 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36998 wxString *arg9 = (wxString *) &arg9_defvalue ;
36999 wxGenericDirCtrl *result = 0 ;
37000 void *argp1 = 0 ;
37001 int res1 = 0 ;
37002 int val2 ;
37003 int ecode2 = 0 ;
37004 bool temp3 = false ;
37005 wxPoint temp4 ;
37006 wxSize temp5 ;
37007 long val6 ;
37008 int ecode6 = 0 ;
37009 bool temp7 = false ;
37010 int val8 ;
37011 int ecode8 = 0 ;
37012 bool temp9 = false ;
37013 PyObject * obj0 = 0 ;
37014 PyObject * obj1 = 0 ;
37015 PyObject * obj2 = 0 ;
37016 PyObject * obj3 = 0 ;
37017 PyObject * obj4 = 0 ;
37018 PyObject * obj5 = 0 ;
37019 PyObject * obj6 = 0 ;
37020 PyObject * obj7 = 0 ;
37021 PyObject * obj8 = 0 ;
37022 char * kwnames[] = {
37023 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37024 };
37025
37026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37028 if (!SWIG_IsOK(res1)) {
37029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37030 }
37031 arg1 = reinterpret_cast< wxWindow * >(argp1);
37032 if (obj1) {
37033 ecode2 = SWIG_AsVal_int(obj1, &val2);
37034 if (!SWIG_IsOK(ecode2)) {
37035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37036 }
37037 arg2 = static_cast< int >(val2);
37038 }
37039 if (obj2) {
37040 {
37041 arg3 = wxString_in_helper(obj2);
37042 if (arg3 == NULL) SWIG_fail;
37043 temp3 = true;
37044 }
37045 }
37046 if (obj3) {
37047 {
37048 arg4 = &temp4;
37049 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37050 }
37051 }
37052 if (obj4) {
37053 {
37054 arg5 = &temp5;
37055 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37056 }
37057 }
37058 if (obj5) {
37059 ecode6 = SWIG_AsVal_long(obj5, &val6);
37060 if (!SWIG_IsOK(ecode6)) {
37061 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37062 }
37063 arg6 = static_cast< long >(val6);
37064 }
37065 if (obj6) {
37066 {
37067 arg7 = wxString_in_helper(obj6);
37068 if (arg7 == NULL) SWIG_fail;
37069 temp7 = true;
37070 }
37071 }
37072 if (obj7) {
37073 ecode8 = SWIG_AsVal_int(obj7, &val8);
37074 if (!SWIG_IsOK(ecode8)) {
37075 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37076 }
37077 arg8 = static_cast< int >(val8);
37078 }
37079 if (obj8) {
37080 {
37081 arg9 = wxString_in_helper(obj8);
37082 if (arg9 == NULL) SWIG_fail;
37083 temp9 = true;
37084 }
37085 }
37086 {
37087 if (!wxPyCheckForApp()) SWIG_fail;
37088 PyThreadState* __tstate = wxPyBeginAllowThreads();
37089 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37090 wxPyEndAllowThreads(__tstate);
37091 if (PyErr_Occurred()) SWIG_fail;
37092 }
37093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37094 {
37095 if (temp3)
37096 delete arg3;
37097 }
37098 {
37099 if (temp7)
37100 delete arg7;
37101 }
37102 {
37103 if (temp9)
37104 delete arg9;
37105 }
37106 return resultobj;
37107 fail:
37108 {
37109 if (temp3)
37110 delete arg3;
37111 }
37112 {
37113 if (temp7)
37114 delete arg7;
37115 }
37116 {
37117 if (temp9)
37118 delete arg9;
37119 }
37120 return NULL;
37121 }
37122
37123
37124 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37125 PyObject *resultobj = 0;
37126 wxGenericDirCtrl *result = 0 ;
37127
37128 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37129 {
37130 if (!wxPyCheckForApp()) SWIG_fail;
37131 PyThreadState* __tstate = wxPyBeginAllowThreads();
37132 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37133 wxPyEndAllowThreads(__tstate);
37134 if (PyErr_Occurred()) SWIG_fail;
37135 }
37136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37137 return resultobj;
37138 fail:
37139 return NULL;
37140 }
37141
37142
37143 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37144 PyObject *resultobj = 0;
37145 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37146 wxWindow *arg2 = (wxWindow *) 0 ;
37147 int arg3 = (int) (int)-1 ;
37148 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37149 wxString *arg4 = (wxString *) &arg4_defvalue ;
37150 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37151 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37152 wxSize const &arg6_defvalue = wxDefaultSize ;
37153 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37154 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37155 wxString const &arg8_defvalue = wxPyEmptyString ;
37156 wxString *arg8 = (wxString *) &arg8_defvalue ;
37157 int arg9 = (int) 0 ;
37158 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37159 wxString *arg10 = (wxString *) &arg10_defvalue ;
37160 bool result;
37161 void *argp1 = 0 ;
37162 int res1 = 0 ;
37163 void *argp2 = 0 ;
37164 int res2 = 0 ;
37165 int val3 ;
37166 int ecode3 = 0 ;
37167 bool temp4 = false ;
37168 wxPoint temp5 ;
37169 wxSize temp6 ;
37170 long val7 ;
37171 int ecode7 = 0 ;
37172 bool temp8 = false ;
37173 int val9 ;
37174 int ecode9 = 0 ;
37175 bool temp10 = false ;
37176 PyObject * obj0 = 0 ;
37177 PyObject * obj1 = 0 ;
37178 PyObject * obj2 = 0 ;
37179 PyObject * obj3 = 0 ;
37180 PyObject * obj4 = 0 ;
37181 PyObject * obj5 = 0 ;
37182 PyObject * obj6 = 0 ;
37183 PyObject * obj7 = 0 ;
37184 PyObject * obj8 = 0 ;
37185 PyObject * obj9 = 0 ;
37186 char * kwnames[] = {
37187 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37188 };
37189
37190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37192 if (!SWIG_IsOK(res1)) {
37193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37194 }
37195 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37196 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37197 if (!SWIG_IsOK(res2)) {
37198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37199 }
37200 arg2 = reinterpret_cast< wxWindow * >(argp2);
37201 if (obj2) {
37202 ecode3 = SWIG_AsVal_int(obj2, &val3);
37203 if (!SWIG_IsOK(ecode3)) {
37204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37205 }
37206 arg3 = static_cast< int >(val3);
37207 }
37208 if (obj3) {
37209 {
37210 arg4 = wxString_in_helper(obj3);
37211 if (arg4 == NULL) SWIG_fail;
37212 temp4 = true;
37213 }
37214 }
37215 if (obj4) {
37216 {
37217 arg5 = &temp5;
37218 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37219 }
37220 }
37221 if (obj5) {
37222 {
37223 arg6 = &temp6;
37224 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37225 }
37226 }
37227 if (obj6) {
37228 ecode7 = SWIG_AsVal_long(obj6, &val7);
37229 if (!SWIG_IsOK(ecode7)) {
37230 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37231 }
37232 arg7 = static_cast< long >(val7);
37233 }
37234 if (obj7) {
37235 {
37236 arg8 = wxString_in_helper(obj7);
37237 if (arg8 == NULL) SWIG_fail;
37238 temp8 = true;
37239 }
37240 }
37241 if (obj8) {
37242 ecode9 = SWIG_AsVal_int(obj8, &val9);
37243 if (!SWIG_IsOK(ecode9)) {
37244 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37245 }
37246 arg9 = static_cast< int >(val9);
37247 }
37248 if (obj9) {
37249 {
37250 arg10 = wxString_in_helper(obj9);
37251 if (arg10 == NULL) SWIG_fail;
37252 temp10 = true;
37253 }
37254 }
37255 {
37256 PyThreadState* __tstate = wxPyBeginAllowThreads();
37257 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37258 wxPyEndAllowThreads(__tstate);
37259 if (PyErr_Occurred()) SWIG_fail;
37260 }
37261 {
37262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37263 }
37264 {
37265 if (temp4)
37266 delete arg4;
37267 }
37268 {
37269 if (temp8)
37270 delete arg8;
37271 }
37272 {
37273 if (temp10)
37274 delete arg10;
37275 }
37276 return resultobj;
37277 fail:
37278 {
37279 if (temp4)
37280 delete arg4;
37281 }
37282 {
37283 if (temp8)
37284 delete arg8;
37285 }
37286 {
37287 if (temp10)
37288 delete arg10;
37289 }
37290 return NULL;
37291 }
37292
37293
37294 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37295 PyObject *resultobj = 0;
37296 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37297 wxString *arg2 = 0 ;
37298 bool result;
37299 void *argp1 = 0 ;
37300 int res1 = 0 ;
37301 bool temp2 = false ;
37302 PyObject * obj0 = 0 ;
37303 PyObject * obj1 = 0 ;
37304 char * kwnames[] = {
37305 (char *) "self",(char *) "path", NULL
37306 };
37307
37308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37310 if (!SWIG_IsOK(res1)) {
37311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37312 }
37313 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37314 {
37315 arg2 = wxString_in_helper(obj1);
37316 if (arg2 == NULL) SWIG_fail;
37317 temp2 = true;
37318 }
37319 {
37320 PyThreadState* __tstate = wxPyBeginAllowThreads();
37321 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37322 wxPyEndAllowThreads(__tstate);
37323 if (PyErr_Occurred()) SWIG_fail;
37324 }
37325 {
37326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37327 }
37328 {
37329 if (temp2)
37330 delete arg2;
37331 }
37332 return resultobj;
37333 fail:
37334 {
37335 if (temp2)
37336 delete arg2;
37337 }
37338 return NULL;
37339 }
37340
37341
37342 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37343 PyObject *resultobj = 0;
37344 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37345 wxString result;
37346 void *argp1 = 0 ;
37347 int res1 = 0 ;
37348 PyObject *swig_obj[1] ;
37349
37350 if (!args) SWIG_fail;
37351 swig_obj[0] = args;
37352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37353 if (!SWIG_IsOK(res1)) {
37354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37355 }
37356 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37357 {
37358 PyThreadState* __tstate = wxPyBeginAllowThreads();
37359 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37360 wxPyEndAllowThreads(__tstate);
37361 if (PyErr_Occurred()) SWIG_fail;
37362 }
37363 {
37364 #if wxUSE_UNICODE
37365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37366 #else
37367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37368 #endif
37369 }
37370 return resultobj;
37371 fail:
37372 return NULL;
37373 }
37374
37375
37376 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37377 PyObject *resultobj = 0;
37378 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37379 wxString *arg2 = 0 ;
37380 void *argp1 = 0 ;
37381 int res1 = 0 ;
37382 bool temp2 = false ;
37383 PyObject * obj0 = 0 ;
37384 PyObject * obj1 = 0 ;
37385 char * kwnames[] = {
37386 (char *) "self",(char *) "path", NULL
37387 };
37388
37389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37391 if (!SWIG_IsOK(res1)) {
37392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37393 }
37394 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37395 {
37396 arg2 = wxString_in_helper(obj1);
37397 if (arg2 == NULL) SWIG_fail;
37398 temp2 = true;
37399 }
37400 {
37401 PyThreadState* __tstate = wxPyBeginAllowThreads();
37402 (arg1)->SetDefaultPath((wxString const &)*arg2);
37403 wxPyEndAllowThreads(__tstate);
37404 if (PyErr_Occurred()) SWIG_fail;
37405 }
37406 resultobj = SWIG_Py_Void();
37407 {
37408 if (temp2)
37409 delete arg2;
37410 }
37411 return resultobj;
37412 fail:
37413 {
37414 if (temp2)
37415 delete arg2;
37416 }
37417 return NULL;
37418 }
37419
37420
37421 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37422 PyObject *resultobj = 0;
37423 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37424 wxString result;
37425 void *argp1 = 0 ;
37426 int res1 = 0 ;
37427 PyObject *swig_obj[1] ;
37428
37429 if (!args) SWIG_fail;
37430 swig_obj[0] = args;
37431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37432 if (!SWIG_IsOK(res1)) {
37433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37434 }
37435 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37436 {
37437 PyThreadState* __tstate = wxPyBeginAllowThreads();
37438 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37439 wxPyEndAllowThreads(__tstate);
37440 if (PyErr_Occurred()) SWIG_fail;
37441 }
37442 {
37443 #if wxUSE_UNICODE
37444 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37445 #else
37446 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37447 #endif
37448 }
37449 return resultobj;
37450 fail:
37451 return NULL;
37452 }
37453
37454
37455 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37456 PyObject *resultobj = 0;
37457 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37458 wxString result;
37459 void *argp1 = 0 ;
37460 int res1 = 0 ;
37461 PyObject *swig_obj[1] ;
37462
37463 if (!args) SWIG_fail;
37464 swig_obj[0] = args;
37465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37466 if (!SWIG_IsOK(res1)) {
37467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37468 }
37469 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37470 {
37471 PyThreadState* __tstate = wxPyBeginAllowThreads();
37472 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37473 wxPyEndAllowThreads(__tstate);
37474 if (PyErr_Occurred()) SWIG_fail;
37475 }
37476 {
37477 #if wxUSE_UNICODE
37478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37479 #else
37480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37481 #endif
37482 }
37483 return resultobj;
37484 fail:
37485 return NULL;
37486 }
37487
37488
37489 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37490 PyObject *resultobj = 0;
37491 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37492 wxString *arg2 = 0 ;
37493 void *argp1 = 0 ;
37494 int res1 = 0 ;
37495 bool temp2 = false ;
37496 PyObject * obj0 = 0 ;
37497 PyObject * obj1 = 0 ;
37498 char * kwnames[] = {
37499 (char *) "self",(char *) "path", NULL
37500 };
37501
37502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37504 if (!SWIG_IsOK(res1)) {
37505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37506 }
37507 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37508 {
37509 arg2 = wxString_in_helper(obj1);
37510 if (arg2 == NULL) SWIG_fail;
37511 temp2 = true;
37512 }
37513 {
37514 PyThreadState* __tstate = wxPyBeginAllowThreads();
37515 (arg1)->SetPath((wxString const &)*arg2);
37516 wxPyEndAllowThreads(__tstate);
37517 if (PyErr_Occurred()) SWIG_fail;
37518 }
37519 resultobj = SWIG_Py_Void();
37520 {
37521 if (temp2)
37522 delete arg2;
37523 }
37524 return resultobj;
37525 fail:
37526 {
37527 if (temp2)
37528 delete arg2;
37529 }
37530 return NULL;
37531 }
37532
37533
37534 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37535 PyObject *resultobj = 0;
37536 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37537 bool arg2 ;
37538 void *argp1 = 0 ;
37539 int res1 = 0 ;
37540 bool val2 ;
37541 int ecode2 = 0 ;
37542 PyObject * obj0 = 0 ;
37543 PyObject * obj1 = 0 ;
37544 char * kwnames[] = {
37545 (char *) "self",(char *) "show", NULL
37546 };
37547
37548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37550 if (!SWIG_IsOK(res1)) {
37551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37552 }
37553 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37554 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37555 if (!SWIG_IsOK(ecode2)) {
37556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37557 }
37558 arg2 = static_cast< bool >(val2);
37559 {
37560 PyThreadState* __tstate = wxPyBeginAllowThreads();
37561 (arg1)->ShowHidden(arg2);
37562 wxPyEndAllowThreads(__tstate);
37563 if (PyErr_Occurred()) SWIG_fail;
37564 }
37565 resultobj = SWIG_Py_Void();
37566 return resultobj;
37567 fail:
37568 return NULL;
37569 }
37570
37571
37572 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37573 PyObject *resultobj = 0;
37574 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37575 bool result;
37576 void *argp1 = 0 ;
37577 int res1 = 0 ;
37578 PyObject *swig_obj[1] ;
37579
37580 if (!args) SWIG_fail;
37581 swig_obj[0] = args;
37582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37583 if (!SWIG_IsOK(res1)) {
37584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37585 }
37586 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37587 {
37588 PyThreadState* __tstate = wxPyBeginAllowThreads();
37589 result = (bool)(arg1)->GetShowHidden();
37590 wxPyEndAllowThreads(__tstate);
37591 if (PyErr_Occurred()) SWIG_fail;
37592 }
37593 {
37594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37595 }
37596 return resultobj;
37597 fail:
37598 return NULL;
37599 }
37600
37601
37602 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37603 PyObject *resultobj = 0;
37604 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37605 wxString result;
37606 void *argp1 = 0 ;
37607 int res1 = 0 ;
37608 PyObject *swig_obj[1] ;
37609
37610 if (!args) SWIG_fail;
37611 swig_obj[0] = args;
37612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37613 if (!SWIG_IsOK(res1)) {
37614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37615 }
37616 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37617 {
37618 PyThreadState* __tstate = wxPyBeginAllowThreads();
37619 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37620 wxPyEndAllowThreads(__tstate);
37621 if (PyErr_Occurred()) SWIG_fail;
37622 }
37623 {
37624 #if wxUSE_UNICODE
37625 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37626 #else
37627 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37628 #endif
37629 }
37630 return resultobj;
37631 fail:
37632 return NULL;
37633 }
37634
37635
37636 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37637 PyObject *resultobj = 0;
37638 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37639 wxString *arg2 = 0 ;
37640 void *argp1 = 0 ;
37641 int res1 = 0 ;
37642 bool temp2 = false ;
37643 PyObject * obj0 = 0 ;
37644 PyObject * obj1 = 0 ;
37645 char * kwnames[] = {
37646 (char *) "self",(char *) "filter", NULL
37647 };
37648
37649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37651 if (!SWIG_IsOK(res1)) {
37652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37653 }
37654 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37655 {
37656 arg2 = wxString_in_helper(obj1);
37657 if (arg2 == NULL) SWIG_fail;
37658 temp2 = true;
37659 }
37660 {
37661 PyThreadState* __tstate = wxPyBeginAllowThreads();
37662 (arg1)->SetFilter((wxString const &)*arg2);
37663 wxPyEndAllowThreads(__tstate);
37664 if (PyErr_Occurred()) SWIG_fail;
37665 }
37666 resultobj = SWIG_Py_Void();
37667 {
37668 if (temp2)
37669 delete arg2;
37670 }
37671 return resultobj;
37672 fail:
37673 {
37674 if (temp2)
37675 delete arg2;
37676 }
37677 return NULL;
37678 }
37679
37680
37681 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37682 PyObject *resultobj = 0;
37683 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37684 int result;
37685 void *argp1 = 0 ;
37686 int res1 = 0 ;
37687 PyObject *swig_obj[1] ;
37688
37689 if (!args) SWIG_fail;
37690 swig_obj[0] = args;
37691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37692 if (!SWIG_IsOK(res1)) {
37693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37694 }
37695 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37696 {
37697 PyThreadState* __tstate = wxPyBeginAllowThreads();
37698 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37699 wxPyEndAllowThreads(__tstate);
37700 if (PyErr_Occurred()) SWIG_fail;
37701 }
37702 resultobj = SWIG_From_int(static_cast< int >(result));
37703 return resultobj;
37704 fail:
37705 return NULL;
37706 }
37707
37708
37709 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37710 PyObject *resultobj = 0;
37711 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37712 int arg2 ;
37713 void *argp1 = 0 ;
37714 int res1 = 0 ;
37715 int val2 ;
37716 int ecode2 = 0 ;
37717 PyObject * obj0 = 0 ;
37718 PyObject * obj1 = 0 ;
37719 char * kwnames[] = {
37720 (char *) "self",(char *) "n", NULL
37721 };
37722
37723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37725 if (!SWIG_IsOK(res1)) {
37726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37727 }
37728 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37729 ecode2 = SWIG_AsVal_int(obj1, &val2);
37730 if (!SWIG_IsOK(ecode2)) {
37731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37732 }
37733 arg2 = static_cast< int >(val2);
37734 {
37735 PyThreadState* __tstate = wxPyBeginAllowThreads();
37736 (arg1)->SetFilterIndex(arg2);
37737 wxPyEndAllowThreads(__tstate);
37738 if (PyErr_Occurred()) SWIG_fail;
37739 }
37740 resultobj = SWIG_Py_Void();
37741 return resultobj;
37742 fail:
37743 return NULL;
37744 }
37745
37746
37747 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37748 PyObject *resultobj = 0;
37749 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37750 wxTreeItemId result;
37751 void *argp1 = 0 ;
37752 int res1 = 0 ;
37753 PyObject *swig_obj[1] ;
37754
37755 if (!args) SWIG_fail;
37756 swig_obj[0] = args;
37757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37758 if (!SWIG_IsOK(res1)) {
37759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37760 }
37761 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37762 {
37763 PyThreadState* __tstate = wxPyBeginAllowThreads();
37764 result = (arg1)->GetRootId();
37765 wxPyEndAllowThreads(__tstate);
37766 if (PyErr_Occurred()) SWIG_fail;
37767 }
37768 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37769 return resultobj;
37770 fail:
37771 return NULL;
37772 }
37773
37774
37775 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37776 PyObject *resultobj = 0;
37777 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37778 wxPyTreeCtrl *result = 0 ;
37779 void *argp1 = 0 ;
37780 int res1 = 0 ;
37781 PyObject *swig_obj[1] ;
37782
37783 if (!args) SWIG_fail;
37784 swig_obj[0] = args;
37785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37786 if (!SWIG_IsOK(res1)) {
37787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37788 }
37789 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37790 {
37791 PyThreadState* __tstate = wxPyBeginAllowThreads();
37792 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37793 wxPyEndAllowThreads(__tstate);
37794 if (PyErr_Occurred()) SWIG_fail;
37795 }
37796 {
37797 resultobj = wxPyMake_wxObject(result, 0);
37798 }
37799 return resultobj;
37800 fail:
37801 return NULL;
37802 }
37803
37804
37805 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37806 PyObject *resultobj = 0;
37807 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37808 wxDirFilterListCtrl *result = 0 ;
37809 void *argp1 = 0 ;
37810 int res1 = 0 ;
37811 PyObject *swig_obj[1] ;
37812
37813 if (!args) SWIG_fail;
37814 swig_obj[0] = args;
37815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37816 if (!SWIG_IsOK(res1)) {
37817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37818 }
37819 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37820 {
37821 PyThreadState* __tstate = wxPyBeginAllowThreads();
37822 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37823 wxPyEndAllowThreads(__tstate);
37824 if (PyErr_Occurred()) SWIG_fail;
37825 }
37826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37827 return resultobj;
37828 fail:
37829 return NULL;
37830 }
37831
37832
37833 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37834 PyObject *resultobj = 0;
37835 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37836 wxTreeItemId arg2 ;
37837 wxString *arg3 = 0 ;
37838 bool *arg4 = 0 ;
37839 wxTreeItemId result;
37840 void *argp1 = 0 ;
37841 int res1 = 0 ;
37842 void *argp2 ;
37843 int res2 = 0 ;
37844 bool temp3 = false ;
37845 bool temp4 ;
37846 int res4 = SWIG_TMPOBJ ;
37847 PyObject * obj0 = 0 ;
37848 PyObject * obj1 = 0 ;
37849 PyObject * obj2 = 0 ;
37850 char * kwnames[] = {
37851 (char *) "self",(char *) "parentId",(char *) "path", NULL
37852 };
37853
37854 arg4 = &temp4;
37855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37857 if (!SWIG_IsOK(res1)) {
37858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37859 }
37860 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37861 {
37862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37863 if (!SWIG_IsOK(res2)) {
37864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37865 }
37866 if (!argp2) {
37867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37868 } else {
37869 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37870 arg2 = *temp;
37871 if (SWIG_IsNewObj(res2)) delete temp;
37872 }
37873 }
37874 {
37875 arg3 = wxString_in_helper(obj2);
37876 if (arg3 == NULL) SWIG_fail;
37877 temp3 = true;
37878 }
37879 {
37880 PyThreadState* __tstate = wxPyBeginAllowThreads();
37881 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37882 wxPyEndAllowThreads(__tstate);
37883 if (PyErr_Occurred()) SWIG_fail;
37884 }
37885 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37886 if (SWIG_IsTmpObj(res4)) {
37887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37888 } else {
37889 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37891 }
37892 {
37893 if (temp3)
37894 delete arg3;
37895 }
37896 return resultobj;
37897 fail:
37898 {
37899 if (temp3)
37900 delete arg3;
37901 }
37902 return NULL;
37903 }
37904
37905
37906 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37907 PyObject *resultobj = 0;
37908 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37909 void *argp1 = 0 ;
37910 int res1 = 0 ;
37911 PyObject *swig_obj[1] ;
37912
37913 if (!args) SWIG_fail;
37914 swig_obj[0] = args;
37915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37916 if (!SWIG_IsOK(res1)) {
37917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37918 }
37919 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37920 {
37921 PyThreadState* __tstate = wxPyBeginAllowThreads();
37922 (arg1)->DoResize();
37923 wxPyEndAllowThreads(__tstate);
37924 if (PyErr_Occurred()) SWIG_fail;
37925 }
37926 resultobj = SWIG_Py_Void();
37927 return resultobj;
37928 fail:
37929 return NULL;
37930 }
37931
37932
37933 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37934 PyObject *resultobj = 0;
37935 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37936 void *argp1 = 0 ;
37937 int res1 = 0 ;
37938 PyObject *swig_obj[1] ;
37939
37940 if (!args) SWIG_fail;
37941 swig_obj[0] = args;
37942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37943 if (!SWIG_IsOK(res1)) {
37944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37945 }
37946 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37947 {
37948 PyThreadState* __tstate = wxPyBeginAllowThreads();
37949 (arg1)->ReCreateTree();
37950 wxPyEndAllowThreads(__tstate);
37951 if (PyErr_Occurred()) SWIG_fail;
37952 }
37953 resultobj = SWIG_Py_Void();
37954 return resultobj;
37955 fail:
37956 return NULL;
37957 }
37958
37959
37960 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37961 PyObject *obj;
37962 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37963 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37964 return SWIG_Py_Void();
37965 }
37966
37967 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37968 return SWIG_Python_InitShadowInstance(args);
37969 }
37970
37971 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37972 PyObject *resultobj = 0;
37973 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37974 int arg2 = (int) (int)-1 ;
37975 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37976 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37977 wxSize const &arg4_defvalue = wxDefaultSize ;
37978 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37979 long arg5 = (long) 0 ;
37980 wxDirFilterListCtrl *result = 0 ;
37981 void *argp1 = 0 ;
37982 int res1 = 0 ;
37983 int val2 ;
37984 int ecode2 = 0 ;
37985 wxPoint temp3 ;
37986 wxSize temp4 ;
37987 long val5 ;
37988 int ecode5 = 0 ;
37989 PyObject * obj0 = 0 ;
37990 PyObject * obj1 = 0 ;
37991 PyObject * obj2 = 0 ;
37992 PyObject * obj3 = 0 ;
37993 PyObject * obj4 = 0 ;
37994 char * kwnames[] = {
37995 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37996 };
37997
37998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38000 if (!SWIG_IsOK(res1)) {
38001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38002 }
38003 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38004 if (obj1) {
38005 ecode2 = SWIG_AsVal_int(obj1, &val2);
38006 if (!SWIG_IsOK(ecode2)) {
38007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38008 }
38009 arg2 = static_cast< int >(val2);
38010 }
38011 if (obj2) {
38012 {
38013 arg3 = &temp3;
38014 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38015 }
38016 }
38017 if (obj3) {
38018 {
38019 arg4 = &temp4;
38020 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38021 }
38022 }
38023 if (obj4) {
38024 ecode5 = SWIG_AsVal_long(obj4, &val5);
38025 if (!SWIG_IsOK(ecode5)) {
38026 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38027 }
38028 arg5 = static_cast< long >(val5);
38029 }
38030 {
38031 if (!wxPyCheckForApp()) SWIG_fail;
38032 PyThreadState* __tstate = wxPyBeginAllowThreads();
38033 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38034 wxPyEndAllowThreads(__tstate);
38035 if (PyErr_Occurred()) SWIG_fail;
38036 }
38037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38038 return resultobj;
38039 fail:
38040 return NULL;
38041 }
38042
38043
38044 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38045 PyObject *resultobj = 0;
38046 wxDirFilterListCtrl *result = 0 ;
38047
38048 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38049 {
38050 if (!wxPyCheckForApp()) SWIG_fail;
38051 PyThreadState* __tstate = wxPyBeginAllowThreads();
38052 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38053 wxPyEndAllowThreads(__tstate);
38054 if (PyErr_Occurred()) SWIG_fail;
38055 }
38056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38057 return resultobj;
38058 fail:
38059 return NULL;
38060 }
38061
38062
38063 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38064 PyObject *resultobj = 0;
38065 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38066 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38067 int arg3 = (int) (int)-1 ;
38068 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38069 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38070 wxSize const &arg5_defvalue = wxDefaultSize ;
38071 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38072 long arg6 = (long) 0 ;
38073 bool result;
38074 void *argp1 = 0 ;
38075 int res1 = 0 ;
38076 void *argp2 = 0 ;
38077 int res2 = 0 ;
38078 int val3 ;
38079 int ecode3 = 0 ;
38080 wxPoint temp4 ;
38081 wxSize temp5 ;
38082 long val6 ;
38083 int ecode6 = 0 ;
38084 PyObject * obj0 = 0 ;
38085 PyObject * obj1 = 0 ;
38086 PyObject * obj2 = 0 ;
38087 PyObject * obj3 = 0 ;
38088 PyObject * obj4 = 0 ;
38089 PyObject * obj5 = 0 ;
38090 char * kwnames[] = {
38091 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38092 };
38093
38094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38096 if (!SWIG_IsOK(res1)) {
38097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38098 }
38099 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38101 if (!SWIG_IsOK(res2)) {
38102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38103 }
38104 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38105 if (obj2) {
38106 ecode3 = SWIG_AsVal_int(obj2, &val3);
38107 if (!SWIG_IsOK(ecode3)) {
38108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38109 }
38110 arg3 = static_cast< int >(val3);
38111 }
38112 if (obj3) {
38113 {
38114 arg4 = &temp4;
38115 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38116 }
38117 }
38118 if (obj4) {
38119 {
38120 arg5 = &temp5;
38121 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38122 }
38123 }
38124 if (obj5) {
38125 ecode6 = SWIG_AsVal_long(obj5, &val6);
38126 if (!SWIG_IsOK(ecode6)) {
38127 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38128 }
38129 arg6 = static_cast< long >(val6);
38130 }
38131 {
38132 PyThreadState* __tstate = wxPyBeginAllowThreads();
38133 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38134 wxPyEndAllowThreads(__tstate);
38135 if (PyErr_Occurred()) SWIG_fail;
38136 }
38137 {
38138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38139 }
38140 return resultobj;
38141 fail:
38142 return NULL;
38143 }
38144
38145
38146 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38147 PyObject *resultobj = 0;
38148 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38149 wxString *arg2 = 0 ;
38150 int arg3 ;
38151 void *argp1 = 0 ;
38152 int res1 = 0 ;
38153 bool temp2 = false ;
38154 int val3 ;
38155 int ecode3 = 0 ;
38156 PyObject * obj0 = 0 ;
38157 PyObject * obj1 = 0 ;
38158 PyObject * obj2 = 0 ;
38159 char * kwnames[] = {
38160 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38161 };
38162
38163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38165 if (!SWIG_IsOK(res1)) {
38166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38167 }
38168 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38169 {
38170 arg2 = wxString_in_helper(obj1);
38171 if (arg2 == NULL) SWIG_fail;
38172 temp2 = true;
38173 }
38174 ecode3 = SWIG_AsVal_int(obj2, &val3);
38175 if (!SWIG_IsOK(ecode3)) {
38176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38177 }
38178 arg3 = static_cast< int >(val3);
38179 {
38180 PyThreadState* __tstate = wxPyBeginAllowThreads();
38181 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38182 wxPyEndAllowThreads(__tstate);
38183 if (PyErr_Occurred()) SWIG_fail;
38184 }
38185 resultobj = SWIG_Py_Void();
38186 {
38187 if (temp2)
38188 delete arg2;
38189 }
38190 return resultobj;
38191 fail:
38192 {
38193 if (temp2)
38194 delete arg2;
38195 }
38196 return NULL;
38197 }
38198
38199
38200 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38201 PyObject *obj;
38202 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38203 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38204 return SWIG_Py_Void();
38205 }
38206
38207 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38208 return SWIG_Python_InitShadowInstance(args);
38209 }
38210
38211 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38212 PyObject *resultobj = 0;
38213 wxWindow *arg1 = (wxWindow *) 0 ;
38214 int arg2 = (int) (int)-1 ;
38215 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38216 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38217 wxSize const &arg4_defvalue = wxDefaultSize ;
38218 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38219 long arg5 = (long) 0 ;
38220 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38221 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38222 wxString const &arg7_defvalue = wxPyControlNameStr ;
38223 wxString *arg7 = (wxString *) &arg7_defvalue ;
38224 wxPyControl *result = 0 ;
38225 void *argp1 = 0 ;
38226 int res1 = 0 ;
38227 int val2 ;
38228 int ecode2 = 0 ;
38229 wxPoint temp3 ;
38230 wxSize temp4 ;
38231 long val5 ;
38232 int ecode5 = 0 ;
38233 void *argp6 = 0 ;
38234 int res6 = 0 ;
38235 bool temp7 = false ;
38236 PyObject * obj0 = 0 ;
38237 PyObject * obj1 = 0 ;
38238 PyObject * obj2 = 0 ;
38239 PyObject * obj3 = 0 ;
38240 PyObject * obj4 = 0 ;
38241 PyObject * obj5 = 0 ;
38242 PyObject * obj6 = 0 ;
38243 char * kwnames[] = {
38244 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38245 };
38246
38247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38249 if (!SWIG_IsOK(res1)) {
38250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38251 }
38252 arg1 = reinterpret_cast< wxWindow * >(argp1);
38253 if (obj1) {
38254 ecode2 = SWIG_AsVal_int(obj1, &val2);
38255 if (!SWIG_IsOK(ecode2)) {
38256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38257 }
38258 arg2 = static_cast< int >(val2);
38259 }
38260 if (obj2) {
38261 {
38262 arg3 = &temp3;
38263 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38264 }
38265 }
38266 if (obj3) {
38267 {
38268 arg4 = &temp4;
38269 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38270 }
38271 }
38272 if (obj4) {
38273 ecode5 = SWIG_AsVal_long(obj4, &val5);
38274 if (!SWIG_IsOK(ecode5)) {
38275 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38276 }
38277 arg5 = static_cast< long >(val5);
38278 }
38279 if (obj5) {
38280 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38281 if (!SWIG_IsOK(res6)) {
38282 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38283 }
38284 if (!argp6) {
38285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38286 }
38287 arg6 = reinterpret_cast< wxValidator * >(argp6);
38288 }
38289 if (obj6) {
38290 {
38291 arg7 = wxString_in_helper(obj6);
38292 if (arg7 == NULL) SWIG_fail;
38293 temp7 = true;
38294 }
38295 }
38296 {
38297 if (!wxPyCheckForApp()) SWIG_fail;
38298 PyThreadState* __tstate = wxPyBeginAllowThreads();
38299 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38300 wxPyEndAllowThreads(__tstate);
38301 if (PyErr_Occurred()) SWIG_fail;
38302 }
38303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38304 {
38305 if (temp7)
38306 delete arg7;
38307 }
38308 return resultobj;
38309 fail:
38310 {
38311 if (temp7)
38312 delete arg7;
38313 }
38314 return NULL;
38315 }
38316
38317
38318 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38319 PyObject *resultobj = 0;
38320 wxPyControl *result = 0 ;
38321
38322 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38323 {
38324 if (!wxPyCheckForApp()) SWIG_fail;
38325 PyThreadState* __tstate = wxPyBeginAllowThreads();
38326 result = (wxPyControl *)new wxPyControl();
38327 wxPyEndAllowThreads(__tstate);
38328 if (PyErr_Occurred()) SWIG_fail;
38329 }
38330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38331 return resultobj;
38332 fail:
38333 return NULL;
38334 }
38335
38336
38337 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38338 PyObject *resultobj = 0;
38339 wxPyControl *arg1 = (wxPyControl *) 0 ;
38340 PyObject *arg2 = (PyObject *) 0 ;
38341 PyObject *arg3 = (PyObject *) 0 ;
38342 void *argp1 = 0 ;
38343 int res1 = 0 ;
38344 PyObject * obj0 = 0 ;
38345 PyObject * obj1 = 0 ;
38346 PyObject * obj2 = 0 ;
38347 char * kwnames[] = {
38348 (char *) "self",(char *) "self",(char *) "_class", NULL
38349 };
38350
38351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38353 if (!SWIG_IsOK(res1)) {
38354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38355 }
38356 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38357 arg2 = obj1;
38358 arg3 = obj2;
38359 {
38360 PyThreadState* __tstate = wxPyBeginAllowThreads();
38361 (arg1)->_setCallbackInfo(arg2,arg3);
38362 wxPyEndAllowThreads(__tstate);
38363 if (PyErr_Occurred()) SWIG_fail;
38364 }
38365 resultobj = SWIG_Py_Void();
38366 return resultobj;
38367 fail:
38368 return NULL;
38369 }
38370
38371
38372 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38373 PyObject *resultobj = 0;
38374 wxPyControl *arg1 = (wxPyControl *) 0 ;
38375 wxSize *arg2 = 0 ;
38376 void *argp1 = 0 ;
38377 int res1 = 0 ;
38378 wxSize temp2 ;
38379 PyObject * obj0 = 0 ;
38380 PyObject * obj1 = 0 ;
38381 char * kwnames[] = {
38382 (char *) "self",(char *) "size", NULL
38383 };
38384
38385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38387 if (!SWIG_IsOK(res1)) {
38388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38389 }
38390 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38391 {
38392 arg2 = &temp2;
38393 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38394 }
38395 {
38396 PyThreadState* __tstate = wxPyBeginAllowThreads();
38397 (arg1)->SetBestSize((wxSize const &)*arg2);
38398 wxPyEndAllowThreads(__tstate);
38399 if (PyErr_Occurred()) SWIG_fail;
38400 }
38401 resultobj = SWIG_Py_Void();
38402 return resultobj;
38403 fail:
38404 return NULL;
38405 }
38406
38407
38408 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38409 PyObject *resultobj = 0;
38410 wxPyControl *arg1 = (wxPyControl *) 0 ;
38411 wxDC *arg2 = (wxDC *) 0 ;
38412 bool result;
38413 void *argp1 = 0 ;
38414 int res1 = 0 ;
38415 void *argp2 = 0 ;
38416 int res2 = 0 ;
38417 PyObject * obj0 = 0 ;
38418 PyObject * obj1 = 0 ;
38419 char * kwnames[] = {
38420 (char *) "self",(char *) "dc", NULL
38421 };
38422
38423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38425 if (!SWIG_IsOK(res1)) {
38426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38427 }
38428 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38429 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38430 if (!SWIG_IsOK(res2)) {
38431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38432 }
38433 arg2 = reinterpret_cast< wxDC * >(argp2);
38434 {
38435 PyThreadState* __tstate = wxPyBeginAllowThreads();
38436 result = (bool)(arg1)->DoEraseBackground(arg2);
38437 wxPyEndAllowThreads(__tstate);
38438 if (PyErr_Occurred()) SWIG_fail;
38439 }
38440 {
38441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38442 }
38443 return resultobj;
38444 fail:
38445 return NULL;
38446 }
38447
38448
38449 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38450 PyObject *resultobj = 0;
38451 wxPyControl *arg1 = (wxPyControl *) 0 ;
38452 int arg2 ;
38453 int arg3 ;
38454 int arg4 ;
38455 int arg5 ;
38456 void *argp1 = 0 ;
38457 int res1 = 0 ;
38458 int val2 ;
38459 int ecode2 = 0 ;
38460 int val3 ;
38461 int ecode3 = 0 ;
38462 int val4 ;
38463 int ecode4 = 0 ;
38464 int val5 ;
38465 int ecode5 = 0 ;
38466 PyObject * obj0 = 0 ;
38467 PyObject * obj1 = 0 ;
38468 PyObject * obj2 = 0 ;
38469 PyObject * obj3 = 0 ;
38470 PyObject * obj4 = 0 ;
38471 char * kwnames[] = {
38472 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38473 };
38474
38475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38477 if (!SWIG_IsOK(res1)) {
38478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38479 }
38480 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38481 ecode2 = SWIG_AsVal_int(obj1, &val2);
38482 if (!SWIG_IsOK(ecode2)) {
38483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38484 }
38485 arg2 = static_cast< int >(val2);
38486 ecode3 = SWIG_AsVal_int(obj2, &val3);
38487 if (!SWIG_IsOK(ecode3)) {
38488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38489 }
38490 arg3 = static_cast< int >(val3);
38491 ecode4 = SWIG_AsVal_int(obj3, &val4);
38492 if (!SWIG_IsOK(ecode4)) {
38493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38494 }
38495 arg4 = static_cast< int >(val4);
38496 ecode5 = SWIG_AsVal_int(obj4, &val5);
38497 if (!SWIG_IsOK(ecode5)) {
38498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38499 }
38500 arg5 = static_cast< int >(val5);
38501 {
38502 PyThreadState* __tstate = wxPyBeginAllowThreads();
38503 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38504 wxPyEndAllowThreads(__tstate);
38505 if (PyErr_Occurred()) SWIG_fail;
38506 }
38507 resultobj = SWIG_Py_Void();
38508 return resultobj;
38509 fail:
38510 return NULL;
38511 }
38512
38513
38514 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38515 PyObject *resultobj = 0;
38516 wxPyControl *arg1 = (wxPyControl *) 0 ;
38517 int arg2 ;
38518 int arg3 ;
38519 int arg4 ;
38520 int arg5 ;
38521 int arg6 = (int) wxSIZE_AUTO ;
38522 void *argp1 = 0 ;
38523 int res1 = 0 ;
38524 int val2 ;
38525 int ecode2 = 0 ;
38526 int val3 ;
38527 int ecode3 = 0 ;
38528 int val4 ;
38529 int ecode4 = 0 ;
38530 int val5 ;
38531 int ecode5 = 0 ;
38532 int val6 ;
38533 int ecode6 = 0 ;
38534 PyObject * obj0 = 0 ;
38535 PyObject * obj1 = 0 ;
38536 PyObject * obj2 = 0 ;
38537 PyObject * obj3 = 0 ;
38538 PyObject * obj4 = 0 ;
38539 PyObject * obj5 = 0 ;
38540 char * kwnames[] = {
38541 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38542 };
38543
38544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38546 if (!SWIG_IsOK(res1)) {
38547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38548 }
38549 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38550 ecode2 = SWIG_AsVal_int(obj1, &val2);
38551 if (!SWIG_IsOK(ecode2)) {
38552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38553 }
38554 arg2 = static_cast< int >(val2);
38555 ecode3 = SWIG_AsVal_int(obj2, &val3);
38556 if (!SWIG_IsOK(ecode3)) {
38557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38558 }
38559 arg3 = static_cast< int >(val3);
38560 ecode4 = SWIG_AsVal_int(obj3, &val4);
38561 if (!SWIG_IsOK(ecode4)) {
38562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38563 }
38564 arg4 = static_cast< int >(val4);
38565 ecode5 = SWIG_AsVal_int(obj4, &val5);
38566 if (!SWIG_IsOK(ecode5)) {
38567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38568 }
38569 arg5 = static_cast< int >(val5);
38570 if (obj5) {
38571 ecode6 = SWIG_AsVal_int(obj5, &val6);
38572 if (!SWIG_IsOK(ecode6)) {
38573 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38574 }
38575 arg6 = static_cast< int >(val6);
38576 }
38577 {
38578 PyThreadState* __tstate = wxPyBeginAllowThreads();
38579 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38580 wxPyEndAllowThreads(__tstate);
38581 if (PyErr_Occurred()) SWIG_fail;
38582 }
38583 resultobj = SWIG_Py_Void();
38584 return resultobj;
38585 fail:
38586 return NULL;
38587 }
38588
38589
38590 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38591 PyObject *resultobj = 0;
38592 wxPyControl *arg1 = (wxPyControl *) 0 ;
38593 int arg2 ;
38594 int arg3 ;
38595 void *argp1 = 0 ;
38596 int res1 = 0 ;
38597 int val2 ;
38598 int ecode2 = 0 ;
38599 int val3 ;
38600 int ecode3 = 0 ;
38601 PyObject * obj0 = 0 ;
38602 PyObject * obj1 = 0 ;
38603 PyObject * obj2 = 0 ;
38604 char * kwnames[] = {
38605 (char *) "self",(char *) "width",(char *) "height", NULL
38606 };
38607
38608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38610 if (!SWIG_IsOK(res1)) {
38611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38612 }
38613 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38614 ecode2 = SWIG_AsVal_int(obj1, &val2);
38615 if (!SWIG_IsOK(ecode2)) {
38616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38617 }
38618 arg2 = static_cast< int >(val2);
38619 ecode3 = SWIG_AsVal_int(obj2, &val3);
38620 if (!SWIG_IsOK(ecode3)) {
38621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38622 }
38623 arg3 = static_cast< int >(val3);
38624 {
38625 PyThreadState* __tstate = wxPyBeginAllowThreads();
38626 (arg1)->DoSetClientSize(arg2,arg3);
38627 wxPyEndAllowThreads(__tstate);
38628 if (PyErr_Occurred()) SWIG_fail;
38629 }
38630 resultobj = SWIG_Py_Void();
38631 return resultobj;
38632 fail:
38633 return NULL;
38634 }
38635
38636
38637 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38638 PyObject *resultobj = 0;
38639 wxPyControl *arg1 = (wxPyControl *) 0 ;
38640 int arg2 ;
38641 int arg3 ;
38642 void *argp1 = 0 ;
38643 int res1 = 0 ;
38644 int val2 ;
38645 int ecode2 = 0 ;
38646 int val3 ;
38647 int ecode3 = 0 ;
38648 PyObject * obj0 = 0 ;
38649 PyObject * obj1 = 0 ;
38650 PyObject * obj2 = 0 ;
38651 char * kwnames[] = {
38652 (char *) "self",(char *) "x",(char *) "y", NULL
38653 };
38654
38655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38657 if (!SWIG_IsOK(res1)) {
38658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38659 }
38660 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38661 ecode2 = SWIG_AsVal_int(obj1, &val2);
38662 if (!SWIG_IsOK(ecode2)) {
38663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38664 }
38665 arg2 = static_cast< int >(val2);
38666 ecode3 = SWIG_AsVal_int(obj2, &val3);
38667 if (!SWIG_IsOK(ecode3)) {
38668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38669 }
38670 arg3 = static_cast< int >(val3);
38671 {
38672 PyThreadState* __tstate = wxPyBeginAllowThreads();
38673 (arg1)->DoSetVirtualSize(arg2,arg3);
38674 wxPyEndAllowThreads(__tstate);
38675 if (PyErr_Occurred()) SWIG_fail;
38676 }
38677 resultobj = SWIG_Py_Void();
38678 return resultobj;
38679 fail:
38680 return NULL;
38681 }
38682
38683
38684 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38685 PyObject *resultobj = 0;
38686 wxPyControl *arg1 = (wxPyControl *) 0 ;
38687 int *arg2 = (int *) 0 ;
38688 int *arg3 = (int *) 0 ;
38689 void *argp1 = 0 ;
38690 int res1 = 0 ;
38691 int temp2 ;
38692 int res2 = SWIG_TMPOBJ ;
38693 int temp3 ;
38694 int res3 = SWIG_TMPOBJ ;
38695 PyObject *swig_obj[1] ;
38696
38697 arg2 = &temp2;
38698 arg3 = &temp3;
38699 if (!args) SWIG_fail;
38700 swig_obj[0] = args;
38701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38702 if (!SWIG_IsOK(res1)) {
38703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38704 }
38705 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38706 {
38707 PyThreadState* __tstate = wxPyBeginAllowThreads();
38708 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38709 wxPyEndAllowThreads(__tstate);
38710 if (PyErr_Occurred()) SWIG_fail;
38711 }
38712 resultobj = SWIG_Py_Void();
38713 if (SWIG_IsTmpObj(res2)) {
38714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38715 } else {
38716 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38718 }
38719 if (SWIG_IsTmpObj(res3)) {
38720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38721 } else {
38722 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38723 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38724 }
38725 return resultobj;
38726 fail:
38727 return NULL;
38728 }
38729
38730
38731 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38732 PyObject *resultobj = 0;
38733 wxPyControl *arg1 = (wxPyControl *) 0 ;
38734 int *arg2 = (int *) 0 ;
38735 int *arg3 = (int *) 0 ;
38736 void *argp1 = 0 ;
38737 int res1 = 0 ;
38738 int temp2 ;
38739 int res2 = SWIG_TMPOBJ ;
38740 int temp3 ;
38741 int res3 = SWIG_TMPOBJ ;
38742 PyObject *swig_obj[1] ;
38743
38744 arg2 = &temp2;
38745 arg3 = &temp3;
38746 if (!args) SWIG_fail;
38747 swig_obj[0] = args;
38748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38749 if (!SWIG_IsOK(res1)) {
38750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38751 }
38752 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38753 {
38754 PyThreadState* __tstate = wxPyBeginAllowThreads();
38755 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38756 wxPyEndAllowThreads(__tstate);
38757 if (PyErr_Occurred()) SWIG_fail;
38758 }
38759 resultobj = SWIG_Py_Void();
38760 if (SWIG_IsTmpObj(res2)) {
38761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38762 } else {
38763 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38765 }
38766 if (SWIG_IsTmpObj(res3)) {
38767 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38768 } else {
38769 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38771 }
38772 return resultobj;
38773 fail:
38774 return NULL;
38775 }
38776
38777
38778 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38779 PyObject *resultobj = 0;
38780 wxPyControl *arg1 = (wxPyControl *) 0 ;
38781 int *arg2 = (int *) 0 ;
38782 int *arg3 = (int *) 0 ;
38783 void *argp1 = 0 ;
38784 int res1 = 0 ;
38785 int temp2 ;
38786 int res2 = SWIG_TMPOBJ ;
38787 int temp3 ;
38788 int res3 = SWIG_TMPOBJ ;
38789 PyObject *swig_obj[1] ;
38790
38791 arg2 = &temp2;
38792 arg3 = &temp3;
38793 if (!args) SWIG_fail;
38794 swig_obj[0] = args;
38795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38796 if (!SWIG_IsOK(res1)) {
38797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38798 }
38799 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38800 {
38801 PyThreadState* __tstate = wxPyBeginAllowThreads();
38802 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38803 wxPyEndAllowThreads(__tstate);
38804 if (PyErr_Occurred()) SWIG_fail;
38805 }
38806 resultobj = SWIG_Py_Void();
38807 if (SWIG_IsTmpObj(res2)) {
38808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38809 } else {
38810 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38812 }
38813 if (SWIG_IsTmpObj(res3)) {
38814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38815 } else {
38816 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38818 }
38819 return resultobj;
38820 fail:
38821 return NULL;
38822 }
38823
38824
38825 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38826 PyObject *resultobj = 0;
38827 wxPyControl *arg1 = (wxPyControl *) 0 ;
38828 wxSize result;
38829 void *argp1 = 0 ;
38830 int res1 = 0 ;
38831 PyObject *swig_obj[1] ;
38832
38833 if (!args) SWIG_fail;
38834 swig_obj[0] = args;
38835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38836 if (!SWIG_IsOK(res1)) {
38837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38838 }
38839 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38840 {
38841 PyThreadState* __tstate = wxPyBeginAllowThreads();
38842 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38843 wxPyEndAllowThreads(__tstate);
38844 if (PyErr_Occurred()) SWIG_fail;
38845 }
38846 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38847 return resultobj;
38848 fail:
38849 return NULL;
38850 }
38851
38852
38853 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38854 PyObject *resultobj = 0;
38855 wxPyControl *arg1 = (wxPyControl *) 0 ;
38856 wxSize result;
38857 void *argp1 = 0 ;
38858 int res1 = 0 ;
38859 PyObject *swig_obj[1] ;
38860
38861 if (!args) SWIG_fail;
38862 swig_obj[0] = args;
38863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38864 if (!SWIG_IsOK(res1)) {
38865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38866 }
38867 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38868 {
38869 PyThreadState* __tstate = wxPyBeginAllowThreads();
38870 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38871 wxPyEndAllowThreads(__tstate);
38872 if (PyErr_Occurred()) SWIG_fail;
38873 }
38874 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38875 return resultobj;
38876 fail:
38877 return NULL;
38878 }
38879
38880
38881 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38882 PyObject *resultobj = 0;
38883 wxPyControl *arg1 = (wxPyControl *) 0 ;
38884 SwigValueWrapper<wxVisualAttributes > result;
38885 void *argp1 = 0 ;
38886 int res1 = 0 ;
38887 PyObject *swig_obj[1] ;
38888
38889 if (!args) SWIG_fail;
38890 swig_obj[0] = args;
38891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38892 if (!SWIG_IsOK(res1)) {
38893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38894 }
38895 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38896 {
38897 PyThreadState* __tstate = wxPyBeginAllowThreads();
38898 result = (arg1)->GetDefaultAttributes();
38899 wxPyEndAllowThreads(__tstate);
38900 if (PyErr_Occurred()) SWIG_fail;
38901 }
38902 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38903 return resultobj;
38904 fail:
38905 return NULL;
38906 }
38907
38908
38909 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38910 PyObject *resultobj = 0;
38911 wxPyControl *arg1 = (wxPyControl *) 0 ;
38912 void *argp1 = 0 ;
38913 int res1 = 0 ;
38914 PyObject *swig_obj[1] ;
38915
38916 if (!args) SWIG_fail;
38917 swig_obj[0] = args;
38918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38919 if (!SWIG_IsOK(res1)) {
38920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38921 }
38922 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38923 {
38924 PyThreadState* __tstate = wxPyBeginAllowThreads();
38925 (arg1)->OnInternalIdle();
38926 wxPyEndAllowThreads(__tstate);
38927 if (PyErr_Occurred()) SWIG_fail;
38928 }
38929 resultobj = SWIG_Py_Void();
38930 return resultobj;
38931 fail:
38932 return NULL;
38933 }
38934
38935
38936 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38937 PyObject *obj;
38938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38939 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38940 return SWIG_Py_Void();
38941 }
38942
38943 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38944 return SWIG_Python_InitShadowInstance(args);
38945 }
38946
38947 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38948 PyObject *resultobj = 0;
38949 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38950 int arg2 = (int) 0 ;
38951 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38952 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38953 wxHelpEvent *result = 0 ;
38954 int val1 ;
38955 int ecode1 = 0 ;
38956 int val2 ;
38957 int ecode2 = 0 ;
38958 wxPoint temp3 ;
38959 PyObject * obj0 = 0 ;
38960 PyObject * obj1 = 0 ;
38961 PyObject * obj2 = 0 ;
38962 char * kwnames[] = {
38963 (char *) "type",(char *) "winid",(char *) "pt", NULL
38964 };
38965
38966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38967 if (obj0) {
38968 ecode1 = SWIG_AsVal_int(obj0, &val1);
38969 if (!SWIG_IsOK(ecode1)) {
38970 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38971 }
38972 arg1 = static_cast< wxEventType >(val1);
38973 }
38974 if (obj1) {
38975 ecode2 = SWIG_AsVal_int(obj1, &val2);
38976 if (!SWIG_IsOK(ecode2)) {
38977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38978 }
38979 arg2 = static_cast< int >(val2);
38980 }
38981 if (obj2) {
38982 {
38983 arg3 = &temp3;
38984 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38985 }
38986 }
38987 {
38988 PyThreadState* __tstate = wxPyBeginAllowThreads();
38989 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38990 wxPyEndAllowThreads(__tstate);
38991 if (PyErr_Occurred()) SWIG_fail;
38992 }
38993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38994 return resultobj;
38995 fail:
38996 return NULL;
38997 }
38998
38999
39000 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39001 PyObject *resultobj = 0;
39002 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39003 wxPoint result;
39004 void *argp1 = 0 ;
39005 int res1 = 0 ;
39006 PyObject *swig_obj[1] ;
39007
39008 if (!args) SWIG_fail;
39009 swig_obj[0] = args;
39010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39011 if (!SWIG_IsOK(res1)) {
39012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39013 }
39014 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39015 {
39016 PyThreadState* __tstate = wxPyBeginAllowThreads();
39017 result = ((wxHelpEvent const *)arg1)->GetPosition();
39018 wxPyEndAllowThreads(__tstate);
39019 if (PyErr_Occurred()) SWIG_fail;
39020 }
39021 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39022 return resultobj;
39023 fail:
39024 return NULL;
39025 }
39026
39027
39028 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39029 PyObject *resultobj = 0;
39030 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39031 wxPoint *arg2 = 0 ;
39032 void *argp1 = 0 ;
39033 int res1 = 0 ;
39034 wxPoint temp2 ;
39035 PyObject * obj0 = 0 ;
39036 PyObject * obj1 = 0 ;
39037 char * kwnames[] = {
39038 (char *) "self",(char *) "pos", NULL
39039 };
39040
39041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39043 if (!SWIG_IsOK(res1)) {
39044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39045 }
39046 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39047 {
39048 arg2 = &temp2;
39049 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39050 }
39051 {
39052 PyThreadState* __tstate = wxPyBeginAllowThreads();
39053 (arg1)->SetPosition((wxPoint const &)*arg2);
39054 wxPyEndAllowThreads(__tstate);
39055 if (PyErr_Occurred()) SWIG_fail;
39056 }
39057 resultobj = SWIG_Py_Void();
39058 return resultobj;
39059 fail:
39060 return NULL;
39061 }
39062
39063
39064 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39065 PyObject *resultobj = 0;
39066 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39067 wxString *result = 0 ;
39068 void *argp1 = 0 ;
39069 int res1 = 0 ;
39070 PyObject *swig_obj[1] ;
39071
39072 if (!args) SWIG_fail;
39073 swig_obj[0] = args;
39074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39075 if (!SWIG_IsOK(res1)) {
39076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39077 }
39078 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39079 {
39080 PyThreadState* __tstate = wxPyBeginAllowThreads();
39081 {
39082 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39083 result = (wxString *) &_result_ref;
39084 }
39085 wxPyEndAllowThreads(__tstate);
39086 if (PyErr_Occurred()) SWIG_fail;
39087 }
39088 {
39089 #if wxUSE_UNICODE
39090 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39091 #else
39092 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39093 #endif
39094 }
39095 return resultobj;
39096 fail:
39097 return NULL;
39098 }
39099
39100
39101 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39102 PyObject *resultobj = 0;
39103 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39104 wxString *arg2 = 0 ;
39105 void *argp1 = 0 ;
39106 int res1 = 0 ;
39107 bool temp2 = false ;
39108 PyObject * obj0 = 0 ;
39109 PyObject * obj1 = 0 ;
39110 char * kwnames[] = {
39111 (char *) "self",(char *) "link", NULL
39112 };
39113
39114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39116 if (!SWIG_IsOK(res1)) {
39117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39118 }
39119 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39120 {
39121 arg2 = wxString_in_helper(obj1);
39122 if (arg2 == NULL) SWIG_fail;
39123 temp2 = true;
39124 }
39125 {
39126 PyThreadState* __tstate = wxPyBeginAllowThreads();
39127 (arg1)->SetLink((wxString const &)*arg2);
39128 wxPyEndAllowThreads(__tstate);
39129 if (PyErr_Occurred()) SWIG_fail;
39130 }
39131 resultobj = SWIG_Py_Void();
39132 {
39133 if (temp2)
39134 delete arg2;
39135 }
39136 return resultobj;
39137 fail:
39138 {
39139 if (temp2)
39140 delete arg2;
39141 }
39142 return NULL;
39143 }
39144
39145
39146 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39147 PyObject *resultobj = 0;
39148 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39149 wxString *result = 0 ;
39150 void *argp1 = 0 ;
39151 int res1 = 0 ;
39152 PyObject *swig_obj[1] ;
39153
39154 if (!args) SWIG_fail;
39155 swig_obj[0] = args;
39156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39157 if (!SWIG_IsOK(res1)) {
39158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39159 }
39160 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39161 {
39162 PyThreadState* __tstate = wxPyBeginAllowThreads();
39163 {
39164 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39165 result = (wxString *) &_result_ref;
39166 }
39167 wxPyEndAllowThreads(__tstate);
39168 if (PyErr_Occurred()) SWIG_fail;
39169 }
39170 {
39171 #if wxUSE_UNICODE
39172 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39173 #else
39174 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39175 #endif
39176 }
39177 return resultobj;
39178 fail:
39179 return NULL;
39180 }
39181
39182
39183 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39184 PyObject *resultobj = 0;
39185 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39186 wxString *arg2 = 0 ;
39187 void *argp1 = 0 ;
39188 int res1 = 0 ;
39189 bool temp2 = false ;
39190 PyObject * obj0 = 0 ;
39191 PyObject * obj1 = 0 ;
39192 char * kwnames[] = {
39193 (char *) "self",(char *) "target", NULL
39194 };
39195
39196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39198 if (!SWIG_IsOK(res1)) {
39199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39200 }
39201 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39202 {
39203 arg2 = wxString_in_helper(obj1);
39204 if (arg2 == NULL) SWIG_fail;
39205 temp2 = true;
39206 }
39207 {
39208 PyThreadState* __tstate = wxPyBeginAllowThreads();
39209 (arg1)->SetTarget((wxString const &)*arg2);
39210 wxPyEndAllowThreads(__tstate);
39211 if (PyErr_Occurred()) SWIG_fail;
39212 }
39213 resultobj = SWIG_Py_Void();
39214 {
39215 if (temp2)
39216 delete arg2;
39217 }
39218 return resultobj;
39219 fail:
39220 {
39221 if (temp2)
39222 delete arg2;
39223 }
39224 return NULL;
39225 }
39226
39227
39228 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39229 PyObject *obj;
39230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39231 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39232 return SWIG_Py_Void();
39233 }
39234
39235 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39236 return SWIG_Python_InitShadowInstance(args);
39237 }
39238
39239 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39240 PyObject *resultobj = 0;
39241 wxWindow *arg1 = (wxWindow *) NULL ;
39242 bool arg2 = (bool) true ;
39243 wxContextHelp *result = 0 ;
39244 void *argp1 = 0 ;
39245 int res1 = 0 ;
39246 bool val2 ;
39247 int ecode2 = 0 ;
39248 PyObject * obj0 = 0 ;
39249 PyObject * obj1 = 0 ;
39250 char * kwnames[] = {
39251 (char *) "window",(char *) "doNow", NULL
39252 };
39253
39254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39255 if (obj0) {
39256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39257 if (!SWIG_IsOK(res1)) {
39258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39259 }
39260 arg1 = reinterpret_cast< wxWindow * >(argp1);
39261 }
39262 if (obj1) {
39263 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39264 if (!SWIG_IsOK(ecode2)) {
39265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39266 }
39267 arg2 = static_cast< bool >(val2);
39268 }
39269 {
39270 if (!wxPyCheckForApp()) SWIG_fail;
39271 PyThreadState* __tstate = wxPyBeginAllowThreads();
39272 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39273 wxPyEndAllowThreads(__tstate);
39274 if (PyErr_Occurred()) SWIG_fail;
39275 }
39276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39277 return resultobj;
39278 fail:
39279 return NULL;
39280 }
39281
39282
39283 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39284 PyObject *resultobj = 0;
39285 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39286 void *argp1 = 0 ;
39287 int res1 = 0 ;
39288 PyObject *swig_obj[1] ;
39289
39290 if (!args) SWIG_fail;
39291 swig_obj[0] = args;
39292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39293 if (!SWIG_IsOK(res1)) {
39294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39295 }
39296 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39297 {
39298 PyThreadState* __tstate = wxPyBeginAllowThreads();
39299 delete arg1;
39300
39301 wxPyEndAllowThreads(__tstate);
39302 if (PyErr_Occurred()) SWIG_fail;
39303 }
39304 resultobj = SWIG_Py_Void();
39305 return resultobj;
39306 fail:
39307 return NULL;
39308 }
39309
39310
39311 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39312 PyObject *resultobj = 0;
39313 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39314 wxWindow *arg2 = (wxWindow *) NULL ;
39315 bool result;
39316 void *argp1 = 0 ;
39317 int res1 = 0 ;
39318 void *argp2 = 0 ;
39319 int res2 = 0 ;
39320 PyObject * obj0 = 0 ;
39321 PyObject * obj1 = 0 ;
39322 char * kwnames[] = {
39323 (char *) "self",(char *) "window", NULL
39324 };
39325
39326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39328 if (!SWIG_IsOK(res1)) {
39329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39330 }
39331 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39332 if (obj1) {
39333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39334 if (!SWIG_IsOK(res2)) {
39335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39336 }
39337 arg2 = reinterpret_cast< wxWindow * >(argp2);
39338 }
39339 {
39340 PyThreadState* __tstate = wxPyBeginAllowThreads();
39341 result = (bool)(arg1)->BeginContextHelp(arg2);
39342 wxPyEndAllowThreads(__tstate);
39343 if (PyErr_Occurred()) SWIG_fail;
39344 }
39345 {
39346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39347 }
39348 return resultobj;
39349 fail:
39350 return NULL;
39351 }
39352
39353
39354 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39355 PyObject *resultobj = 0;
39356 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39357 bool result;
39358 void *argp1 = 0 ;
39359 int res1 = 0 ;
39360 PyObject *swig_obj[1] ;
39361
39362 if (!args) SWIG_fail;
39363 swig_obj[0] = args;
39364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39365 if (!SWIG_IsOK(res1)) {
39366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39367 }
39368 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39369 {
39370 PyThreadState* __tstate = wxPyBeginAllowThreads();
39371 result = (bool)(arg1)->EndContextHelp();
39372 wxPyEndAllowThreads(__tstate);
39373 if (PyErr_Occurred()) SWIG_fail;
39374 }
39375 {
39376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39377 }
39378 return resultobj;
39379 fail:
39380 return NULL;
39381 }
39382
39383
39384 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39385 PyObject *obj;
39386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39387 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39388 return SWIG_Py_Void();
39389 }
39390
39391 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39392 return SWIG_Python_InitShadowInstance(args);
39393 }
39394
39395 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39396 PyObject *resultobj = 0;
39397 wxWindow *arg1 = (wxWindow *) 0 ;
39398 int arg2 = (int) wxID_CONTEXT_HELP ;
39399 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39400 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39401 wxSize const &arg4_defvalue = wxDefaultSize ;
39402 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39403 long arg5 = (long) wxBU_AUTODRAW ;
39404 wxContextHelpButton *result = 0 ;
39405 void *argp1 = 0 ;
39406 int res1 = 0 ;
39407 int val2 ;
39408 int ecode2 = 0 ;
39409 wxPoint temp3 ;
39410 wxSize temp4 ;
39411 long val5 ;
39412 int ecode5 = 0 ;
39413 PyObject * obj0 = 0 ;
39414 PyObject * obj1 = 0 ;
39415 PyObject * obj2 = 0 ;
39416 PyObject * obj3 = 0 ;
39417 PyObject * obj4 = 0 ;
39418 char * kwnames[] = {
39419 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39420 };
39421
39422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39424 if (!SWIG_IsOK(res1)) {
39425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39426 }
39427 arg1 = reinterpret_cast< wxWindow * >(argp1);
39428 if (obj1) {
39429 ecode2 = SWIG_AsVal_int(obj1, &val2);
39430 if (!SWIG_IsOK(ecode2)) {
39431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39432 }
39433 arg2 = static_cast< int >(val2);
39434 }
39435 if (obj2) {
39436 {
39437 arg3 = &temp3;
39438 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39439 }
39440 }
39441 if (obj3) {
39442 {
39443 arg4 = &temp4;
39444 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39445 }
39446 }
39447 if (obj4) {
39448 ecode5 = SWIG_AsVal_long(obj4, &val5);
39449 if (!SWIG_IsOK(ecode5)) {
39450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39451 }
39452 arg5 = static_cast< long >(val5);
39453 }
39454 {
39455 if (!wxPyCheckForApp()) SWIG_fail;
39456 PyThreadState* __tstate = wxPyBeginAllowThreads();
39457 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39458 wxPyEndAllowThreads(__tstate);
39459 if (PyErr_Occurred()) SWIG_fail;
39460 }
39461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39462 return resultobj;
39463 fail:
39464 return NULL;
39465 }
39466
39467
39468 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39469 PyObject *obj;
39470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39471 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39472 return SWIG_Py_Void();
39473 }
39474
39475 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39476 return SWIG_Python_InitShadowInstance(args);
39477 }
39478
39479 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39480 PyObject *resultobj = 0;
39481 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39482 void *argp1 = 0 ;
39483 int res1 = 0 ;
39484 PyObject *swig_obj[1] ;
39485
39486 if (!args) SWIG_fail;
39487 swig_obj[0] = args;
39488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39489 if (!SWIG_IsOK(res1)) {
39490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39491 }
39492 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39493 {
39494 PyThreadState* __tstate = wxPyBeginAllowThreads();
39495 delete arg1;
39496
39497 wxPyEndAllowThreads(__tstate);
39498 if (PyErr_Occurred()) SWIG_fail;
39499 }
39500 resultobj = SWIG_Py_Void();
39501 return resultobj;
39502 fail:
39503 return NULL;
39504 }
39505
39506
39507 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39508 PyObject *resultobj = 0;
39509 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39510 wxHelpProvider *result = 0 ;
39511 int res1 = 0 ;
39512 PyObject * obj0 = 0 ;
39513 char * kwnames[] = {
39514 (char *) "helpProvider", NULL
39515 };
39516
39517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39518 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39519 if (!SWIG_IsOK(res1)) {
39520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39521 }
39522 {
39523 PyThreadState* __tstate = wxPyBeginAllowThreads();
39524 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39525 wxPyEndAllowThreads(__tstate);
39526 if (PyErr_Occurred()) SWIG_fail;
39527 }
39528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39529 return resultobj;
39530 fail:
39531 return NULL;
39532 }
39533
39534
39535 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39536 PyObject *resultobj = 0;
39537 wxHelpProvider *result = 0 ;
39538
39539 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39540 {
39541 PyThreadState* __tstate = wxPyBeginAllowThreads();
39542 result = (wxHelpProvider *)wxHelpProvider::Get();
39543 wxPyEndAllowThreads(__tstate);
39544 if (PyErr_Occurred()) SWIG_fail;
39545 }
39546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39547 return resultobj;
39548 fail:
39549 return NULL;
39550 }
39551
39552
39553 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39554 PyObject *resultobj = 0;
39555 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39556 wxWindow *arg2 = (wxWindow *) 0 ;
39557 wxString result;
39558 void *argp1 = 0 ;
39559 int res1 = 0 ;
39560 void *argp2 = 0 ;
39561 int res2 = 0 ;
39562 PyObject * obj0 = 0 ;
39563 PyObject * obj1 = 0 ;
39564 char * kwnames[] = {
39565 (char *) "self",(char *) "window", NULL
39566 };
39567
39568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39570 if (!SWIG_IsOK(res1)) {
39571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39572 }
39573 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39574 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39575 if (!SWIG_IsOK(res2)) {
39576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39577 }
39578 arg2 = reinterpret_cast< wxWindow * >(argp2);
39579 {
39580 PyThreadState* __tstate = wxPyBeginAllowThreads();
39581 result = (arg1)->GetHelp((wxWindow const *)arg2);
39582 wxPyEndAllowThreads(__tstate);
39583 if (PyErr_Occurred()) SWIG_fail;
39584 }
39585 {
39586 #if wxUSE_UNICODE
39587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39588 #else
39589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39590 #endif
39591 }
39592 return resultobj;
39593 fail:
39594 return NULL;
39595 }
39596
39597
39598 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39599 PyObject *resultobj = 0;
39600 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39601 wxWindow *arg2 = (wxWindow *) 0 ;
39602 bool result;
39603 void *argp1 = 0 ;
39604 int res1 = 0 ;
39605 void *argp2 = 0 ;
39606 int res2 = 0 ;
39607 PyObject * obj0 = 0 ;
39608 PyObject * obj1 = 0 ;
39609 char * kwnames[] = {
39610 (char *) "self",(char *) "window", NULL
39611 };
39612
39613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39615 if (!SWIG_IsOK(res1)) {
39616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39617 }
39618 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39620 if (!SWIG_IsOK(res2)) {
39621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39622 }
39623 arg2 = reinterpret_cast< wxWindow * >(argp2);
39624 {
39625 PyThreadState* __tstate = wxPyBeginAllowThreads();
39626 result = (bool)(arg1)->ShowHelp(arg2);
39627 wxPyEndAllowThreads(__tstate);
39628 if (PyErr_Occurred()) SWIG_fail;
39629 }
39630 {
39631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39632 }
39633 return resultobj;
39634 fail:
39635 return NULL;
39636 }
39637
39638
39639 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39640 PyObject *resultobj = 0;
39641 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39642 wxWindow *arg2 = (wxWindow *) 0 ;
39643 wxString *arg3 = 0 ;
39644 void *argp1 = 0 ;
39645 int res1 = 0 ;
39646 void *argp2 = 0 ;
39647 int res2 = 0 ;
39648 bool temp3 = false ;
39649 PyObject * obj0 = 0 ;
39650 PyObject * obj1 = 0 ;
39651 PyObject * obj2 = 0 ;
39652 char * kwnames[] = {
39653 (char *) "self",(char *) "window",(char *) "text", NULL
39654 };
39655
39656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39658 if (!SWIG_IsOK(res1)) {
39659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39660 }
39661 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39662 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39663 if (!SWIG_IsOK(res2)) {
39664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39665 }
39666 arg2 = reinterpret_cast< wxWindow * >(argp2);
39667 {
39668 arg3 = wxString_in_helper(obj2);
39669 if (arg3 == NULL) SWIG_fail;
39670 temp3 = true;
39671 }
39672 {
39673 PyThreadState* __tstate = wxPyBeginAllowThreads();
39674 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39675 wxPyEndAllowThreads(__tstate);
39676 if (PyErr_Occurred()) SWIG_fail;
39677 }
39678 resultobj = SWIG_Py_Void();
39679 {
39680 if (temp3)
39681 delete arg3;
39682 }
39683 return resultobj;
39684 fail:
39685 {
39686 if (temp3)
39687 delete arg3;
39688 }
39689 return NULL;
39690 }
39691
39692
39693 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39694 PyObject *resultobj = 0;
39695 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39696 int arg2 ;
39697 wxString *arg3 = 0 ;
39698 void *argp1 = 0 ;
39699 int res1 = 0 ;
39700 int val2 ;
39701 int ecode2 = 0 ;
39702 bool temp3 = false ;
39703 PyObject * obj0 = 0 ;
39704 PyObject * obj1 = 0 ;
39705 PyObject * obj2 = 0 ;
39706 char * kwnames[] = {
39707 (char *) "self",(char *) "id",(char *) "text", NULL
39708 };
39709
39710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39712 if (!SWIG_IsOK(res1)) {
39713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39714 }
39715 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39716 ecode2 = SWIG_AsVal_int(obj1, &val2);
39717 if (!SWIG_IsOK(ecode2)) {
39718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39719 }
39720 arg2 = static_cast< int >(val2);
39721 {
39722 arg3 = wxString_in_helper(obj2);
39723 if (arg3 == NULL) SWIG_fail;
39724 temp3 = true;
39725 }
39726 {
39727 PyThreadState* __tstate = wxPyBeginAllowThreads();
39728 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39729 wxPyEndAllowThreads(__tstate);
39730 if (PyErr_Occurred()) SWIG_fail;
39731 }
39732 resultobj = SWIG_Py_Void();
39733 {
39734 if (temp3)
39735 delete arg3;
39736 }
39737 return resultobj;
39738 fail:
39739 {
39740 if (temp3)
39741 delete arg3;
39742 }
39743 return NULL;
39744 }
39745
39746
39747 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39748 PyObject *resultobj = 0;
39749 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39750 wxWindow *arg2 = (wxWindow *) 0 ;
39751 void *argp1 = 0 ;
39752 int res1 = 0 ;
39753 void *argp2 = 0 ;
39754 int res2 = 0 ;
39755 PyObject * obj0 = 0 ;
39756 PyObject * obj1 = 0 ;
39757 char * kwnames[] = {
39758 (char *) "self",(char *) "window", NULL
39759 };
39760
39761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39763 if (!SWIG_IsOK(res1)) {
39764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39765 }
39766 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39768 if (!SWIG_IsOK(res2)) {
39769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39770 }
39771 arg2 = reinterpret_cast< wxWindow * >(argp2);
39772 {
39773 PyThreadState* __tstate = wxPyBeginAllowThreads();
39774 (arg1)->RemoveHelp(arg2);
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 *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39786 PyObject *resultobj = 0;
39787 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39788 void *argp1 = 0 ;
39789 int res1 = 0 ;
39790 PyObject *swig_obj[1] ;
39791
39792 if (!args) SWIG_fail;
39793 swig_obj[0] = args;
39794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39795 if (!SWIG_IsOK(res1)) {
39796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39797 }
39798 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39799 {
39800 PyThreadState* __tstate = wxPyBeginAllowThreads();
39801 wxHelpProvider_Destroy(arg1);
39802 wxPyEndAllowThreads(__tstate);
39803 if (PyErr_Occurred()) SWIG_fail;
39804 }
39805 resultobj = SWIG_Py_Void();
39806 return resultobj;
39807 fail:
39808 return NULL;
39809 }
39810
39811
39812 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39813 PyObject *obj;
39814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39815 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39816 return SWIG_Py_Void();
39817 }
39818
39819 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39820 PyObject *resultobj = 0;
39821 wxSimpleHelpProvider *result = 0 ;
39822
39823 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39824 {
39825 PyThreadState* __tstate = wxPyBeginAllowThreads();
39826 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39827 wxPyEndAllowThreads(__tstate);
39828 if (PyErr_Occurred()) SWIG_fail;
39829 }
39830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39831 return resultobj;
39832 fail:
39833 return NULL;
39834 }
39835
39836
39837 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39838 PyObject *obj;
39839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39840 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39841 return SWIG_Py_Void();
39842 }
39843
39844 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39845 return SWIG_Python_InitShadowInstance(args);
39846 }
39847
39848 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39849 PyObject *resultobj = 0;
39850 wxBitmap *arg1 = 0 ;
39851 wxCursor const &arg2_defvalue = wxNullCursor ;
39852 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39853 wxGenericDragImage *result = 0 ;
39854 void *argp1 = 0 ;
39855 int res1 = 0 ;
39856 void *argp2 = 0 ;
39857 int res2 = 0 ;
39858 PyObject * obj0 = 0 ;
39859 PyObject * obj1 = 0 ;
39860 char * kwnames[] = {
39861 (char *) "image",(char *) "cursor", NULL
39862 };
39863
39864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39865 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39866 if (!SWIG_IsOK(res1)) {
39867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39868 }
39869 if (!argp1) {
39870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39871 }
39872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39873 if (obj1) {
39874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39875 if (!SWIG_IsOK(res2)) {
39876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39877 }
39878 if (!argp2) {
39879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39880 }
39881 arg2 = reinterpret_cast< wxCursor * >(argp2);
39882 }
39883 {
39884 if (!wxPyCheckForApp()) SWIG_fail;
39885 PyThreadState* __tstate = wxPyBeginAllowThreads();
39886 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39887 wxPyEndAllowThreads(__tstate);
39888 if (PyErr_Occurred()) SWIG_fail;
39889 }
39890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39891 return resultobj;
39892 fail:
39893 return NULL;
39894 }
39895
39896
39897 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39898 PyObject *resultobj = 0;
39899 wxIcon *arg1 = 0 ;
39900 wxCursor const &arg2_defvalue = wxNullCursor ;
39901 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39902 wxGenericDragImage *result = 0 ;
39903 void *argp1 = 0 ;
39904 int res1 = 0 ;
39905 void *argp2 = 0 ;
39906 int res2 = 0 ;
39907 PyObject * obj0 = 0 ;
39908 PyObject * obj1 = 0 ;
39909 char * kwnames[] = {
39910 (char *) "image",(char *) "cursor", NULL
39911 };
39912
39913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39914 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39915 if (!SWIG_IsOK(res1)) {
39916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39917 }
39918 if (!argp1) {
39919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39920 }
39921 arg1 = reinterpret_cast< wxIcon * >(argp1);
39922 if (obj1) {
39923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39924 if (!SWIG_IsOK(res2)) {
39925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39926 }
39927 if (!argp2) {
39928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39929 }
39930 arg2 = reinterpret_cast< wxCursor * >(argp2);
39931 }
39932 {
39933 if (!wxPyCheckForApp()) SWIG_fail;
39934 PyThreadState* __tstate = wxPyBeginAllowThreads();
39935 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39936 wxPyEndAllowThreads(__tstate);
39937 if (PyErr_Occurred()) SWIG_fail;
39938 }
39939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39940 return resultobj;
39941 fail:
39942 return NULL;
39943 }
39944
39945
39946 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39947 PyObject *resultobj = 0;
39948 wxString *arg1 = 0 ;
39949 wxCursor const &arg2_defvalue = wxNullCursor ;
39950 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39951 wxGenericDragImage *result = 0 ;
39952 bool temp1 = false ;
39953 void *argp2 = 0 ;
39954 int res2 = 0 ;
39955 PyObject * obj0 = 0 ;
39956 PyObject * obj1 = 0 ;
39957 char * kwnames[] = {
39958 (char *) "str",(char *) "cursor", NULL
39959 };
39960
39961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39962 {
39963 arg1 = wxString_in_helper(obj0);
39964 if (arg1 == NULL) SWIG_fail;
39965 temp1 = true;
39966 }
39967 if (obj1) {
39968 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39969 if (!SWIG_IsOK(res2)) {
39970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39971 }
39972 if (!argp2) {
39973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39974 }
39975 arg2 = reinterpret_cast< wxCursor * >(argp2);
39976 }
39977 {
39978 if (!wxPyCheckForApp()) SWIG_fail;
39979 PyThreadState* __tstate = wxPyBeginAllowThreads();
39980 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39981 wxPyEndAllowThreads(__tstate);
39982 if (PyErr_Occurred()) SWIG_fail;
39983 }
39984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39985 {
39986 if (temp1)
39987 delete arg1;
39988 }
39989 return resultobj;
39990 fail:
39991 {
39992 if (temp1)
39993 delete arg1;
39994 }
39995 return NULL;
39996 }
39997
39998
39999 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40000 PyObject *resultobj = 0;
40001 wxPyTreeCtrl *arg1 = 0 ;
40002 wxTreeItemId *arg2 = 0 ;
40003 wxGenericDragImage *result = 0 ;
40004 void *argp1 = 0 ;
40005 int res1 = 0 ;
40006 void *argp2 = 0 ;
40007 int res2 = 0 ;
40008 PyObject * obj0 = 0 ;
40009 PyObject * obj1 = 0 ;
40010 char * kwnames[] = {
40011 (char *) "treeCtrl",(char *) "id", NULL
40012 };
40013
40014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40015 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40016 if (!SWIG_IsOK(res1)) {
40017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40018 }
40019 if (!argp1) {
40020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40021 }
40022 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40024 if (!SWIG_IsOK(res2)) {
40025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40026 }
40027 if (!argp2) {
40028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40029 }
40030 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40031 {
40032 if (!wxPyCheckForApp()) SWIG_fail;
40033 PyThreadState* __tstate = wxPyBeginAllowThreads();
40034 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40035 wxPyEndAllowThreads(__tstate);
40036 if (PyErr_Occurred()) SWIG_fail;
40037 }
40038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40039 return resultobj;
40040 fail:
40041 return NULL;
40042 }
40043
40044
40045 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40046 PyObject *resultobj = 0;
40047 wxPyListCtrl *arg1 = 0 ;
40048 long arg2 ;
40049 wxGenericDragImage *result = 0 ;
40050 void *argp1 = 0 ;
40051 int res1 = 0 ;
40052 long val2 ;
40053 int ecode2 = 0 ;
40054 PyObject * obj0 = 0 ;
40055 PyObject * obj1 = 0 ;
40056 char * kwnames[] = {
40057 (char *) "listCtrl",(char *) "id", NULL
40058 };
40059
40060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40061 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40062 if (!SWIG_IsOK(res1)) {
40063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40064 }
40065 if (!argp1) {
40066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40067 }
40068 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40069 ecode2 = SWIG_AsVal_long(obj1, &val2);
40070 if (!SWIG_IsOK(ecode2)) {
40071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40072 }
40073 arg2 = static_cast< long >(val2);
40074 {
40075 if (!wxPyCheckForApp()) SWIG_fail;
40076 PyThreadState* __tstate = wxPyBeginAllowThreads();
40077 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40078 wxPyEndAllowThreads(__tstate);
40079 if (PyErr_Occurred()) SWIG_fail;
40080 }
40081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40082 return resultobj;
40083 fail:
40084 return NULL;
40085 }
40086
40087
40088 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40089 PyObject *resultobj = 0;
40090 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40091 void *argp1 = 0 ;
40092 int res1 = 0 ;
40093 PyObject *swig_obj[1] ;
40094
40095 if (!args) SWIG_fail;
40096 swig_obj[0] = args;
40097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40098 if (!SWIG_IsOK(res1)) {
40099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40100 }
40101 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40102 {
40103 PyThreadState* __tstate = wxPyBeginAllowThreads();
40104 delete arg1;
40105
40106 wxPyEndAllowThreads(__tstate);
40107 if (PyErr_Occurred()) SWIG_fail;
40108 }
40109 resultobj = SWIG_Py_Void();
40110 return resultobj;
40111 fail:
40112 return NULL;
40113 }
40114
40115
40116 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40117 PyObject *resultobj = 0;
40118 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40119 wxBitmap *arg2 = (wxBitmap *) 0 ;
40120 void *argp1 = 0 ;
40121 int res1 = 0 ;
40122 void *argp2 = 0 ;
40123 int res2 = 0 ;
40124 PyObject * obj0 = 0 ;
40125 PyObject * obj1 = 0 ;
40126 char * kwnames[] = {
40127 (char *) "self",(char *) "bitmap", NULL
40128 };
40129
40130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40132 if (!SWIG_IsOK(res1)) {
40133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40134 }
40135 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40137 if (!SWIG_IsOK(res2)) {
40138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40139 }
40140 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40141 {
40142 PyThreadState* __tstate = wxPyBeginAllowThreads();
40143 (arg1)->SetBackingBitmap(arg2);
40144 wxPyEndAllowThreads(__tstate);
40145 if (PyErr_Occurred()) SWIG_fail;
40146 }
40147 resultobj = SWIG_Py_Void();
40148 return resultobj;
40149 fail:
40150 return NULL;
40151 }
40152
40153
40154 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40155 PyObject *resultobj = 0;
40156 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40157 wxPoint *arg2 = 0 ;
40158 wxWindow *arg3 = (wxWindow *) 0 ;
40159 bool arg4 = (bool) false ;
40160 wxRect *arg5 = (wxRect *) NULL ;
40161 bool result;
40162 void *argp1 = 0 ;
40163 int res1 = 0 ;
40164 wxPoint temp2 ;
40165 void *argp3 = 0 ;
40166 int res3 = 0 ;
40167 bool val4 ;
40168 int ecode4 = 0 ;
40169 void *argp5 = 0 ;
40170 int res5 = 0 ;
40171 PyObject * obj0 = 0 ;
40172 PyObject * obj1 = 0 ;
40173 PyObject * obj2 = 0 ;
40174 PyObject * obj3 = 0 ;
40175 PyObject * obj4 = 0 ;
40176 char * kwnames[] = {
40177 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40178 };
40179
40180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40182 if (!SWIG_IsOK(res1)) {
40183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40184 }
40185 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40186 {
40187 arg2 = &temp2;
40188 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40189 }
40190 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40191 if (!SWIG_IsOK(res3)) {
40192 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40193 }
40194 arg3 = reinterpret_cast< wxWindow * >(argp3);
40195 if (obj3) {
40196 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40197 if (!SWIG_IsOK(ecode4)) {
40198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40199 }
40200 arg4 = static_cast< bool >(val4);
40201 }
40202 if (obj4) {
40203 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40204 if (!SWIG_IsOK(res5)) {
40205 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40206 }
40207 arg5 = reinterpret_cast< wxRect * >(argp5);
40208 }
40209 {
40210 PyThreadState* __tstate = wxPyBeginAllowThreads();
40211 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40212 wxPyEndAllowThreads(__tstate);
40213 if (PyErr_Occurred()) SWIG_fail;
40214 }
40215 {
40216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40217 }
40218 return resultobj;
40219 fail:
40220 return NULL;
40221 }
40222
40223
40224 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40225 PyObject *resultobj = 0;
40226 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40227 wxPoint *arg2 = 0 ;
40228 wxWindow *arg3 = (wxWindow *) 0 ;
40229 wxWindow *arg4 = (wxWindow *) 0 ;
40230 bool result;
40231 void *argp1 = 0 ;
40232 int res1 = 0 ;
40233 wxPoint temp2 ;
40234 void *argp3 = 0 ;
40235 int res3 = 0 ;
40236 void *argp4 = 0 ;
40237 int res4 = 0 ;
40238 PyObject * obj0 = 0 ;
40239 PyObject * obj1 = 0 ;
40240 PyObject * obj2 = 0 ;
40241 PyObject * obj3 = 0 ;
40242 char * kwnames[] = {
40243 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40244 };
40245
40246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40248 if (!SWIG_IsOK(res1)) {
40249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40250 }
40251 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40252 {
40253 arg2 = &temp2;
40254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40255 }
40256 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40257 if (!SWIG_IsOK(res3)) {
40258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40259 }
40260 arg3 = reinterpret_cast< wxWindow * >(argp3);
40261 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40262 if (!SWIG_IsOK(res4)) {
40263 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40264 }
40265 arg4 = reinterpret_cast< wxWindow * >(argp4);
40266 {
40267 PyThreadState* __tstate = wxPyBeginAllowThreads();
40268 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40269 wxPyEndAllowThreads(__tstate);
40270 if (PyErr_Occurred()) SWIG_fail;
40271 }
40272 {
40273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40274 }
40275 return resultobj;
40276 fail:
40277 return NULL;
40278 }
40279
40280
40281 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40282 PyObject *resultobj = 0;
40283 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40284 bool result;
40285 void *argp1 = 0 ;
40286 int res1 = 0 ;
40287 PyObject *swig_obj[1] ;
40288
40289 if (!args) SWIG_fail;
40290 swig_obj[0] = args;
40291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40292 if (!SWIG_IsOK(res1)) {
40293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40294 }
40295 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40296 {
40297 PyThreadState* __tstate = wxPyBeginAllowThreads();
40298 result = (bool)(arg1)->EndDrag();
40299 wxPyEndAllowThreads(__tstate);
40300 if (PyErr_Occurred()) SWIG_fail;
40301 }
40302 {
40303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40304 }
40305 return resultobj;
40306 fail:
40307 return NULL;
40308 }
40309
40310
40311 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40312 PyObject *resultobj = 0;
40313 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40314 wxPoint *arg2 = 0 ;
40315 bool result;
40316 void *argp1 = 0 ;
40317 int res1 = 0 ;
40318 wxPoint temp2 ;
40319 PyObject * obj0 = 0 ;
40320 PyObject * obj1 = 0 ;
40321 char * kwnames[] = {
40322 (char *) "self",(char *) "pt", NULL
40323 };
40324
40325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40327 if (!SWIG_IsOK(res1)) {
40328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40329 }
40330 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40331 {
40332 arg2 = &temp2;
40333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40334 }
40335 {
40336 PyThreadState* __tstate = wxPyBeginAllowThreads();
40337 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40338 wxPyEndAllowThreads(__tstate);
40339 if (PyErr_Occurred()) SWIG_fail;
40340 }
40341 {
40342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40343 }
40344 return resultobj;
40345 fail:
40346 return NULL;
40347 }
40348
40349
40350 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40351 PyObject *resultobj = 0;
40352 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40353 bool result;
40354 void *argp1 = 0 ;
40355 int res1 = 0 ;
40356 PyObject *swig_obj[1] ;
40357
40358 if (!args) SWIG_fail;
40359 swig_obj[0] = args;
40360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40361 if (!SWIG_IsOK(res1)) {
40362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40363 }
40364 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40365 {
40366 PyThreadState* __tstate = wxPyBeginAllowThreads();
40367 result = (bool)(arg1)->Show();
40368 wxPyEndAllowThreads(__tstate);
40369 if (PyErr_Occurred()) SWIG_fail;
40370 }
40371 {
40372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40373 }
40374 return resultobj;
40375 fail:
40376 return NULL;
40377 }
40378
40379
40380 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40381 PyObject *resultobj = 0;
40382 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40383 bool result;
40384 void *argp1 = 0 ;
40385 int res1 = 0 ;
40386 PyObject *swig_obj[1] ;
40387
40388 if (!args) SWIG_fail;
40389 swig_obj[0] = args;
40390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40391 if (!SWIG_IsOK(res1)) {
40392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40393 }
40394 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40395 {
40396 PyThreadState* __tstate = wxPyBeginAllowThreads();
40397 result = (bool)(arg1)->Hide();
40398 wxPyEndAllowThreads(__tstate);
40399 if (PyErr_Occurred()) SWIG_fail;
40400 }
40401 {
40402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40403 }
40404 return resultobj;
40405 fail:
40406 return NULL;
40407 }
40408
40409
40410 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40411 PyObject *resultobj = 0;
40412 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40413 wxPoint *arg2 = 0 ;
40414 wxRect result;
40415 void *argp1 = 0 ;
40416 int res1 = 0 ;
40417 wxPoint temp2 ;
40418 PyObject * obj0 = 0 ;
40419 PyObject * obj1 = 0 ;
40420 char * kwnames[] = {
40421 (char *) "self",(char *) "pos", NULL
40422 };
40423
40424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40426 if (!SWIG_IsOK(res1)) {
40427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40428 }
40429 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40430 {
40431 arg2 = &temp2;
40432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40433 }
40434 {
40435 PyThreadState* __tstate = wxPyBeginAllowThreads();
40436 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40437 wxPyEndAllowThreads(__tstate);
40438 if (PyErr_Occurred()) SWIG_fail;
40439 }
40440 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40441 return resultobj;
40442 fail:
40443 return NULL;
40444 }
40445
40446
40447 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40448 PyObject *resultobj = 0;
40449 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40450 wxDC *arg2 = 0 ;
40451 wxPoint *arg3 = 0 ;
40452 bool result;
40453 void *argp1 = 0 ;
40454 int res1 = 0 ;
40455 void *argp2 = 0 ;
40456 int res2 = 0 ;
40457 wxPoint temp3 ;
40458 PyObject * obj0 = 0 ;
40459 PyObject * obj1 = 0 ;
40460 PyObject * obj2 = 0 ;
40461 char * kwnames[] = {
40462 (char *) "self",(char *) "dc",(char *) "pos", NULL
40463 };
40464
40465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40467 if (!SWIG_IsOK(res1)) {
40468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40469 }
40470 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40472 if (!SWIG_IsOK(res2)) {
40473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40474 }
40475 if (!argp2) {
40476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40477 }
40478 arg2 = reinterpret_cast< wxDC * >(argp2);
40479 {
40480 arg3 = &temp3;
40481 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40482 }
40483 {
40484 PyThreadState* __tstate = wxPyBeginAllowThreads();
40485 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40486 wxPyEndAllowThreads(__tstate);
40487 if (PyErr_Occurred()) SWIG_fail;
40488 }
40489 {
40490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40491 }
40492 return resultobj;
40493 fail:
40494 return NULL;
40495 }
40496
40497
40498 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40499 PyObject *resultobj = 0;
40500 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40501 wxDC *arg2 = 0 ;
40502 wxMemoryDC *arg3 = 0 ;
40503 wxRect *arg4 = 0 ;
40504 wxRect *arg5 = 0 ;
40505 bool result;
40506 void *argp1 = 0 ;
40507 int res1 = 0 ;
40508 void *argp2 = 0 ;
40509 int res2 = 0 ;
40510 void *argp3 = 0 ;
40511 int res3 = 0 ;
40512 wxRect temp4 ;
40513 wxRect temp5 ;
40514 PyObject * obj0 = 0 ;
40515 PyObject * obj1 = 0 ;
40516 PyObject * obj2 = 0 ;
40517 PyObject * obj3 = 0 ;
40518 PyObject * obj4 = 0 ;
40519 char * kwnames[] = {
40520 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40521 };
40522
40523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40525 if (!SWIG_IsOK(res1)) {
40526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40527 }
40528 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40529 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40530 if (!SWIG_IsOK(res2)) {
40531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40532 }
40533 if (!argp2) {
40534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40535 }
40536 arg2 = reinterpret_cast< wxDC * >(argp2);
40537 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40538 if (!SWIG_IsOK(res3)) {
40539 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40540 }
40541 if (!argp3) {
40542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40543 }
40544 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40545 {
40546 arg4 = &temp4;
40547 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40548 }
40549 {
40550 arg5 = &temp5;
40551 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40552 }
40553 {
40554 PyThreadState* __tstate = wxPyBeginAllowThreads();
40555 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40556 wxPyEndAllowThreads(__tstate);
40557 if (PyErr_Occurred()) SWIG_fail;
40558 }
40559 {
40560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40561 }
40562 return resultobj;
40563 fail:
40564 return NULL;
40565 }
40566
40567
40568 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40569 PyObject *resultobj = 0;
40570 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40571 wxPoint *arg2 = 0 ;
40572 wxPoint *arg3 = 0 ;
40573 bool arg4 ;
40574 bool arg5 ;
40575 bool result;
40576 void *argp1 = 0 ;
40577 int res1 = 0 ;
40578 wxPoint temp2 ;
40579 wxPoint temp3 ;
40580 bool val4 ;
40581 int ecode4 = 0 ;
40582 bool val5 ;
40583 int ecode5 = 0 ;
40584 PyObject * obj0 = 0 ;
40585 PyObject * obj1 = 0 ;
40586 PyObject * obj2 = 0 ;
40587 PyObject * obj3 = 0 ;
40588 PyObject * obj4 = 0 ;
40589 char * kwnames[] = {
40590 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40591 };
40592
40593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40595 if (!SWIG_IsOK(res1)) {
40596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40597 }
40598 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40599 {
40600 arg2 = &temp2;
40601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40602 }
40603 {
40604 arg3 = &temp3;
40605 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40606 }
40607 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40608 if (!SWIG_IsOK(ecode4)) {
40609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40610 }
40611 arg4 = static_cast< bool >(val4);
40612 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40613 if (!SWIG_IsOK(ecode5)) {
40614 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40615 }
40616 arg5 = static_cast< bool >(val5);
40617 {
40618 PyThreadState* __tstate = wxPyBeginAllowThreads();
40619 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40620 wxPyEndAllowThreads(__tstate);
40621 if (PyErr_Occurred()) SWIG_fail;
40622 }
40623 {
40624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40625 }
40626 return resultobj;
40627 fail:
40628 return NULL;
40629 }
40630
40631
40632 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40633 PyObject *obj;
40634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40635 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40636 return SWIG_Py_Void();
40637 }
40638
40639 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40640 return SWIG_Python_InitShadowInstance(args);
40641 }
40642
40643 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40644 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40645 return 1;
40646 }
40647
40648
40649 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40650 PyObject *pyobj = 0;
40651
40652 {
40653 #if wxUSE_UNICODE
40654 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40655 #else
40656 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40657 #endif
40658 }
40659 return pyobj;
40660 }
40661
40662
40663 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40664 PyObject *resultobj = 0;
40665 wxWindow *arg1 = (wxWindow *) 0 ;
40666 int arg2 = (int) -1 ;
40667 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40668 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40669 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40670 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40671 wxSize const &arg5_defvalue = wxDefaultSize ;
40672 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40673 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40674 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40675 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40676 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40677 wxString *arg8 = (wxString *) &arg8_defvalue ;
40678 wxDatePickerCtrl *result = 0 ;
40679 void *argp1 = 0 ;
40680 int res1 = 0 ;
40681 int val2 ;
40682 int ecode2 = 0 ;
40683 void *argp3 = 0 ;
40684 int res3 = 0 ;
40685 wxPoint temp4 ;
40686 wxSize temp5 ;
40687 long val6 ;
40688 int ecode6 = 0 ;
40689 void *argp7 = 0 ;
40690 int res7 = 0 ;
40691 bool temp8 = false ;
40692 PyObject * obj0 = 0 ;
40693 PyObject * obj1 = 0 ;
40694 PyObject * obj2 = 0 ;
40695 PyObject * obj3 = 0 ;
40696 PyObject * obj4 = 0 ;
40697 PyObject * obj5 = 0 ;
40698 PyObject * obj6 = 0 ;
40699 PyObject * obj7 = 0 ;
40700 char * kwnames[] = {
40701 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40702 };
40703
40704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40706 if (!SWIG_IsOK(res1)) {
40707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40708 }
40709 arg1 = reinterpret_cast< wxWindow * >(argp1);
40710 if (obj1) {
40711 ecode2 = SWIG_AsVal_int(obj1, &val2);
40712 if (!SWIG_IsOK(ecode2)) {
40713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40714 }
40715 arg2 = static_cast< int >(val2);
40716 }
40717 if (obj2) {
40718 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40719 if (!SWIG_IsOK(res3)) {
40720 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40721 }
40722 if (!argp3) {
40723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40724 }
40725 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40726 }
40727 if (obj3) {
40728 {
40729 arg4 = &temp4;
40730 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40731 }
40732 }
40733 if (obj4) {
40734 {
40735 arg5 = &temp5;
40736 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40737 }
40738 }
40739 if (obj5) {
40740 ecode6 = SWIG_AsVal_long(obj5, &val6);
40741 if (!SWIG_IsOK(ecode6)) {
40742 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40743 }
40744 arg6 = static_cast< long >(val6);
40745 }
40746 if (obj6) {
40747 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40748 if (!SWIG_IsOK(res7)) {
40749 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40750 }
40751 if (!argp7) {
40752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40753 }
40754 arg7 = reinterpret_cast< wxValidator * >(argp7);
40755 }
40756 if (obj7) {
40757 {
40758 arg8 = wxString_in_helper(obj7);
40759 if (arg8 == NULL) SWIG_fail;
40760 temp8 = true;
40761 }
40762 }
40763 {
40764 if (!wxPyCheckForApp()) SWIG_fail;
40765 PyThreadState* __tstate = wxPyBeginAllowThreads();
40766 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40767 wxPyEndAllowThreads(__tstate);
40768 if (PyErr_Occurred()) SWIG_fail;
40769 }
40770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40771 {
40772 if (temp8)
40773 delete arg8;
40774 }
40775 return resultobj;
40776 fail:
40777 {
40778 if (temp8)
40779 delete arg8;
40780 }
40781 return NULL;
40782 }
40783
40784
40785 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40786 PyObject *resultobj = 0;
40787 wxDatePickerCtrl *result = 0 ;
40788
40789 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40790 {
40791 if (!wxPyCheckForApp()) SWIG_fail;
40792 PyThreadState* __tstate = wxPyBeginAllowThreads();
40793 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40794 wxPyEndAllowThreads(__tstate);
40795 if (PyErr_Occurred()) SWIG_fail;
40796 }
40797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40798 return resultobj;
40799 fail:
40800 return NULL;
40801 }
40802
40803
40804 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40805 PyObject *resultobj = 0;
40806 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40807 wxWindow *arg2 = (wxWindow *) 0 ;
40808 int arg3 = (int) -1 ;
40809 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40810 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40811 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40812 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40813 wxSize const &arg6_defvalue = wxDefaultSize ;
40814 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40815 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40816 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40817 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40818 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40819 wxString *arg9 = (wxString *) &arg9_defvalue ;
40820 bool result;
40821 void *argp1 = 0 ;
40822 int res1 = 0 ;
40823 void *argp2 = 0 ;
40824 int res2 = 0 ;
40825 int val3 ;
40826 int ecode3 = 0 ;
40827 void *argp4 = 0 ;
40828 int res4 = 0 ;
40829 wxPoint temp5 ;
40830 wxSize temp6 ;
40831 long val7 ;
40832 int ecode7 = 0 ;
40833 void *argp8 = 0 ;
40834 int res8 = 0 ;
40835 bool temp9 = false ;
40836 PyObject * obj0 = 0 ;
40837 PyObject * obj1 = 0 ;
40838 PyObject * obj2 = 0 ;
40839 PyObject * obj3 = 0 ;
40840 PyObject * obj4 = 0 ;
40841 PyObject * obj5 = 0 ;
40842 PyObject * obj6 = 0 ;
40843 PyObject * obj7 = 0 ;
40844 PyObject * obj8 = 0 ;
40845 char * kwnames[] = {
40846 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40847 };
40848
40849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40851 if (!SWIG_IsOK(res1)) {
40852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40853 }
40854 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40856 if (!SWIG_IsOK(res2)) {
40857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40858 }
40859 arg2 = reinterpret_cast< wxWindow * >(argp2);
40860 if (obj2) {
40861 ecode3 = SWIG_AsVal_int(obj2, &val3);
40862 if (!SWIG_IsOK(ecode3)) {
40863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40864 }
40865 arg3 = static_cast< int >(val3);
40866 }
40867 if (obj3) {
40868 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40869 if (!SWIG_IsOK(res4)) {
40870 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40871 }
40872 if (!argp4) {
40873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40874 }
40875 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40876 }
40877 if (obj4) {
40878 {
40879 arg5 = &temp5;
40880 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40881 }
40882 }
40883 if (obj5) {
40884 {
40885 arg6 = &temp6;
40886 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40887 }
40888 }
40889 if (obj6) {
40890 ecode7 = SWIG_AsVal_long(obj6, &val7);
40891 if (!SWIG_IsOK(ecode7)) {
40892 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40893 }
40894 arg7 = static_cast< long >(val7);
40895 }
40896 if (obj7) {
40897 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40898 if (!SWIG_IsOK(res8)) {
40899 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40900 }
40901 if (!argp8) {
40902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40903 }
40904 arg8 = reinterpret_cast< wxValidator * >(argp8);
40905 }
40906 if (obj8) {
40907 {
40908 arg9 = wxString_in_helper(obj8);
40909 if (arg9 == NULL) SWIG_fail;
40910 temp9 = true;
40911 }
40912 }
40913 {
40914 PyThreadState* __tstate = wxPyBeginAllowThreads();
40915 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40916 wxPyEndAllowThreads(__tstate);
40917 if (PyErr_Occurred()) SWIG_fail;
40918 }
40919 {
40920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40921 }
40922 {
40923 if (temp9)
40924 delete arg9;
40925 }
40926 return resultobj;
40927 fail:
40928 {
40929 if (temp9)
40930 delete arg9;
40931 }
40932 return NULL;
40933 }
40934
40935
40936 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40937 PyObject *resultobj = 0;
40938 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40939 wxDateTime *arg2 = 0 ;
40940 void *argp1 = 0 ;
40941 int res1 = 0 ;
40942 void *argp2 = 0 ;
40943 int res2 = 0 ;
40944 PyObject * obj0 = 0 ;
40945 PyObject * obj1 = 0 ;
40946 char * kwnames[] = {
40947 (char *) "self",(char *) "dt", NULL
40948 };
40949
40950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40952 if (!SWIG_IsOK(res1)) {
40953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40954 }
40955 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40957 if (!SWIG_IsOK(res2)) {
40958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40959 }
40960 if (!argp2) {
40961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40962 }
40963 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40964 {
40965 PyThreadState* __tstate = wxPyBeginAllowThreads();
40966 (arg1)->SetValue((wxDateTime const &)*arg2);
40967 wxPyEndAllowThreads(__tstate);
40968 if (PyErr_Occurred()) SWIG_fail;
40969 }
40970 resultobj = SWIG_Py_Void();
40971 return resultobj;
40972 fail:
40973 return NULL;
40974 }
40975
40976
40977 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40978 PyObject *resultobj = 0;
40979 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40980 wxDateTime result;
40981 void *argp1 = 0 ;
40982 int res1 = 0 ;
40983 PyObject *swig_obj[1] ;
40984
40985 if (!args) SWIG_fail;
40986 swig_obj[0] = args;
40987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40988 if (!SWIG_IsOK(res1)) {
40989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40990 }
40991 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40992 {
40993 PyThreadState* __tstate = wxPyBeginAllowThreads();
40994 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40995 wxPyEndAllowThreads(__tstate);
40996 if (PyErr_Occurred()) SWIG_fail;
40997 }
40998 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40999 return resultobj;
41000 fail:
41001 return NULL;
41002 }
41003
41004
41005 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41006 PyObject *resultobj = 0;
41007 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41008 wxDateTime *arg2 = 0 ;
41009 wxDateTime *arg3 = 0 ;
41010 void *argp1 = 0 ;
41011 int res1 = 0 ;
41012 void *argp2 = 0 ;
41013 int res2 = 0 ;
41014 void *argp3 = 0 ;
41015 int res3 = 0 ;
41016 PyObject * obj0 = 0 ;
41017 PyObject * obj1 = 0 ;
41018 PyObject * obj2 = 0 ;
41019 char * kwnames[] = {
41020 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41021 };
41022
41023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41025 if (!SWIG_IsOK(res1)) {
41026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41027 }
41028 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41030 if (!SWIG_IsOK(res2)) {
41031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41032 }
41033 if (!argp2) {
41034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41035 }
41036 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41037 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41038 if (!SWIG_IsOK(res3)) {
41039 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41040 }
41041 if (!argp3) {
41042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41043 }
41044 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41045 {
41046 PyThreadState* __tstate = wxPyBeginAllowThreads();
41047 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41048 wxPyEndAllowThreads(__tstate);
41049 if (PyErr_Occurred()) SWIG_fail;
41050 }
41051 resultobj = SWIG_Py_Void();
41052 return resultobj;
41053 fail:
41054 return NULL;
41055 }
41056
41057
41058 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41059 PyObject *resultobj = 0;
41060 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41061 wxDateTime result;
41062 void *argp1 = 0 ;
41063 int res1 = 0 ;
41064 PyObject *swig_obj[1] ;
41065
41066 if (!args) SWIG_fail;
41067 swig_obj[0] = args;
41068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41069 if (!SWIG_IsOK(res1)) {
41070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41071 }
41072 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41073 {
41074 PyThreadState* __tstate = wxPyBeginAllowThreads();
41075 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41076 wxPyEndAllowThreads(__tstate);
41077 if (PyErr_Occurred()) SWIG_fail;
41078 }
41079 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41080 return resultobj;
41081 fail:
41082 return NULL;
41083 }
41084
41085
41086 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41087 PyObject *resultobj = 0;
41088 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41089 wxDateTime result;
41090 void *argp1 = 0 ;
41091 int res1 = 0 ;
41092 PyObject *swig_obj[1] ;
41093
41094 if (!args) SWIG_fail;
41095 swig_obj[0] = args;
41096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41097 if (!SWIG_IsOK(res1)) {
41098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41099 }
41100 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41101 {
41102 PyThreadState* __tstate = wxPyBeginAllowThreads();
41103 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41104 wxPyEndAllowThreads(__tstate);
41105 if (PyErr_Occurred()) SWIG_fail;
41106 }
41107 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41108 return resultobj;
41109 fail:
41110 return NULL;
41111 }
41112
41113
41114 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41115 PyObject *obj;
41116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41117 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41118 return SWIG_Py_Void();
41119 }
41120
41121 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41122 return SWIG_Python_InitShadowInstance(args);
41123 }
41124
41125 static PyMethodDef SwigMethods[] = {
41126 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
41127 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
41128 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
41130 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
41131 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41132 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
41133 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
41134 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
41135 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
41136 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
41138 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
41139 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
41140 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
41141 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
41142 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
41143 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
41144 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41145 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41146 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
41147 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41148 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
41149 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
41150 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
41151 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
41152 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
41154 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41155 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
41156 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
41157 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41158 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
41159 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
41160 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
41161 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
41162 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41163 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
41164 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
41165 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
41166 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
41167 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41168 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
41169 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41170 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
41171 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
41172 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
41173 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
41174 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
41176 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41177 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
41178 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
41179 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
41180 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41181 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
41182 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
41183 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
41186 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
41187 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41190 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
41191 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
41193 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
41194 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
41195 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
41196 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
41197 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
41198 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
41199 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
41200 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
41201 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
41203 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
41204 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
41205 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
41206 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41207 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41208 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
41209 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
41211 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41212 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41213 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41214 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41215 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41216 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41218 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41219 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41220 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41221 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41222 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41223 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41224 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41225 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41226 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41227 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41228 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41229 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41230 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41231 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41232 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41233 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
41234 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
41235 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41236 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
41237 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41238 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
41239 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
41240 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41241 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
41242 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41243 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
41244 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41245 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41246 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41247 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
41248 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
41249 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41250 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
41251 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41252 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
41253 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
41254 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41255 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41256 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41257 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41258 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
41259 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
41260 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41261 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
41262 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
41263 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
41264 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41266 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
41267 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41268 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41269 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41270 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41272 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
41273 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
41274 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41275 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
41276 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41277 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
41278 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
41279 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
41280 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41281 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41282 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41283 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41284 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
41285 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
41286 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41287 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41288 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41289 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41290 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41291 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41292 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41293 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41294 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41295 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41296 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41297 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41298 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41299 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41300 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41301 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41302 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41303 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41304 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41305 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41306 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41307 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41308 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41309 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41310 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41311 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41312 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41313 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
41314 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
41315 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41316 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
41317 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41318 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
41319 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41321 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
41323 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
41324 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
41325 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
41326 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
41327 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
41328 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
41329 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
41330 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
41331 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41332 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41333 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
41334 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
41335 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
41336 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
41337 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
41338 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
41340 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
41341 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41342 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41344 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
41345 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
41347 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
41351 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
41352 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
41353 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
41354 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
41355 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
41356 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
41357 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
41358 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
41359 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
41360 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41361 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
41362 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
41363 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
41364 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41365 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
41366 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41367 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
41368 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
41369 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
41370 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41371 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41372 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
41373 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
41374 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41375 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
41376 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
41377 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
41378 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
41379 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
41380 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
41381 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
41382 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41383 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
41384 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
41385 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
41386 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
41387 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
41388 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41389 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41390 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
41391 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
41392 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
41393 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
41394 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
41396 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
41397 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
41398 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41400 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41401 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41402 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
41403 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41404 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
41405 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
41406 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
41408 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41409 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
41410 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
41412 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41413 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
41414 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
41415 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41416 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41417 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
41418 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
41419 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41420 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
41421 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41422 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
41423 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
41424 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41425 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41426 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41428 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41429 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41430 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41431 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41432 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41433 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41434 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41435 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41436 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
41437 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41438 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
41439 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41440 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41441 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41442 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41443 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41444 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41445 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41446 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41447 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41448 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41449 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41450 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41451 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41452 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41453 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41454 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41455 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41456 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41457 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41458 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41459 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41460 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41461 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41462 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41463 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41464 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41465 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41466 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41467 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41468 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41469 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41470 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41471 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41472 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41473 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41474 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41475 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41476 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41477 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41478 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41479 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41480 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41481 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41482 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41483 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41484 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41485 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41486 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41487 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41488 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41489 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41490 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41491 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41492 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41493 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41494 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41495 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41497 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41498 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41499 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41500 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41501 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41502 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41503 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41504 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41505 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
41506 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
41507 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
41508 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41509 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
41510 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
41511 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41512 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41513 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41514 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41515 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41516 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41517 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41518 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41519 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41520 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41522 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41523 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41524 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41525 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41526 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41527 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41528 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41529 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41530 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41531 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41532 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41533 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41534 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41535 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41536 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41537 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41538 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41539 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41540 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41541 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41542 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41543 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41544 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41545 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41546 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41547 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41548 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41549 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41550 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41551 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41552 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41554 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41555 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41556 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41557 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41558 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41559 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41560 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41561 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41564 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41565 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41566 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41567 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41568 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41569 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41570 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41571 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41572 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41573 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41574 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41575 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41576 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41577 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41578 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41579 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41580 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41581 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41582 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41583 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41584 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41585 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41586 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41587 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41588 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41589 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41590 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41591 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41592 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41593 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41594 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41595 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41596 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41597 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41598 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41599 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41600 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41601 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41602 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41603 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41604 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41605 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41606 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41607 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41608 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41609 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41610 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41611 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41612 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41613 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41614 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41615 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41616 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41618 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41619 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41620 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41621 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41622 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41623 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41625 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41626 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41627 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41628 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41629 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41630 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41631 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41632 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41633 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41634 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41635 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41636 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41637 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41638 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41639 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41640 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41641 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41642 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41643 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41644 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41645 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41646 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41647 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41648 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41649 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41650 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41651 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41652 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41653 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41654 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41655 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41656 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41657 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41658 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41659 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41660 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41661 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41662 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41663 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41664 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41665 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41666 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41667 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41668 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41669 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41670 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41671 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41672 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41673 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41674 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41675 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41676 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41677 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41678 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41679 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41680 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41681 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41682 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41683 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41684 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41685 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41686 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41687 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41688 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41689 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41690 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41691 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41692 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41693 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41694 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41695 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41696 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41697 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41698 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41699 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41700 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41701 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41702 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41703 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41704 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41705 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41706 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41707 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41708 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41709 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41710 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41711 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41712 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41713 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41714 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41715 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41716 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41717 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41718 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41719 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41720 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41721 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41722 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41723 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41724 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41725 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41726 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41727 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41728 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41729 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41730 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41731 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41732 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41733 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41734 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41735 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41736 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41737 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41738 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41739 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41740 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41741 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41742 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41743 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41744 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41745 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41746 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41747 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41748 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41749 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41750 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41751 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41752 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41753 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41754 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41755 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41756 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41757 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41758 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41759 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41760 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41761 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41762 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41763 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41764 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41765 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41766 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41767 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41768 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41769 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41770 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41771 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41772 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41773 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41774 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41775 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41776 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41777 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41778 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41779 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41780 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41781 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41782 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41783 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41784 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41785 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41786 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41787 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41788 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41789 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41790 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41791 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41792 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41793 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41794 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41795 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41796 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41797 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41798 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41799 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41800 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41801 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41802 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41803 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41804 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41805 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41806 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41807 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41808 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41809 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41810 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41811 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41812 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41813 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41814 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41815 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41816 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41817 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41818 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41819 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41820 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41821 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41822 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41823 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41824 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41825 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41826 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41827 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41828 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41829 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41830 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41831 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41832 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41833 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41834 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41835 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41836 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41837 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41838 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41839 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41840 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41841 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41842 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41843 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41844 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41845 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41846 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41847 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41848 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41849 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41850 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41851 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41852 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41853 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41854 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41855 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41856 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41857 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41858 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41859 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41860 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41861 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41862 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41863 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41864 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41865 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41866 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41867 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41868 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41869 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41870 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41871 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41872 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41873 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41874 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41875 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41876 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41877 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41878 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41879 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41880 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41881 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41882 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41883 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41884 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41885 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41886 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41887 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41888 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41889 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41890 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41891 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41892 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41893 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41894 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41895 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41896 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41897 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41898 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41899 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41900 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41901 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41902 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41903 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41904 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41905 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41906 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41907 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41908 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41909 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41910 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41911 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41912 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41913 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41914 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41915 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41916 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41917 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41918 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41919 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41920 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41921 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41922 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41923 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41924 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41925 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41926 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41927 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41928 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41929 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41930 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41931 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41932 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41933 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41934 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41935 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41936 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41937 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41938 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41939 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41940 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41941 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41942 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41943 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41944 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41945 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41946 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41947 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41948 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41949 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41950 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41951 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41952 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41953 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41954 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41955 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41956 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41957 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41958 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41959 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41960 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
41961 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41962 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41963 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
41964 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41965 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41966 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41967 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41968 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41969 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41970 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41971 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41972 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41973 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41974 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41975 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41976 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41977 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41978 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41979 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41980 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41981 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41982 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41983 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41984 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41985 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41986 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41987 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41988 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41989 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41990 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41991 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41992 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41993 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41994 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41995 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41996 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41997 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41998 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41999 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
42000 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42001 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
42002 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
42003 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
42004 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
42005 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
42006 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
42007 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
42008 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
42009 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
42010 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
42011 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
42012 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
42013 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42014 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
42015 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42016 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
42017 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
42018 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
42019 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
42020 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
42021 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
42022 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42023 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
42024 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42025 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
42026 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
42027 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
42028 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
42029 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
42030 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
42031 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
42032 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42033 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
42034 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42035 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42036 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42037 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
42038 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42039 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
42040 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
42041 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
42042 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
42043 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
42044 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
42045 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42046 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
42047 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
42048 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
42049 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
42050 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42051 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
42052 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
42053 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
42054 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
42055 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
42056 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
42057 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
42058 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42059 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42060 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42061 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
42062 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
42063 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42064 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
42065 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42066 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42067 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
42068 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42069 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
42070 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
42071 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
42072 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
42073 { NULL, NULL, 0, NULL }
42074 };
42075
42076
42077 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42078
42079 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42080 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42081 }
42082 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42083 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42084 }
42085 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42086 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42087 }
42088 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42089 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42090 }
42091 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42092 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42093 }
42094 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
42095 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42096 }
42097 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
42098 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42099 }
42100 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42101 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42102 }
42103 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42104 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42105 }
42106 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42107 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42108 }
42109 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
42110 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
42111 }
42112 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42113 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42114 }
42115 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42116 return (void *)((wxEvent *) ((wxPyEvent *) x));
42117 }
42118 static void *_p_wxListEventTo_p_wxEvent(void *x) {
42119 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42120 }
42121 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
42122 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42123 }
42124 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
42125 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42126 }
42127 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
42128 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42129 }
42130 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
42131 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42132 }
42133 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
42134 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42135 }
42136 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
42137 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
42138 }
42139 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42140 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42141 }
42142 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42143 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42144 }
42145 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42146 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42147 }
42148 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42149 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42150 }
42151 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42152 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42153 }
42154 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42155 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42156 }
42157 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42158 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42159 }
42160 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42161 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42162 }
42163 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
42164 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
42165 }
42166 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
42167 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
42168 }
42169 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42170 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42171 }
42172 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42173 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42174 }
42175 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42176 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42177 }
42178 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42179 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42180 }
42181 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42182 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42183 }
42184 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42185 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42186 }
42187 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42188 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42189 }
42190 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42191 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42192 }
42193 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42194 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42195 }
42196 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42197 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42198 }
42199 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42200 return (void *)((wxEvent *) ((wxShowEvent *) x));
42201 }
42202 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42203 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42204 }
42205 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42206 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42207 }
42208 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42209 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42210 }
42211 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
42212 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
42213 }
42214 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
42215 return (void *)((wxEvent *) ((wxKeyEvent *) x));
42216 }
42217 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42218 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42219 }
42220 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
42221 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42222 }
42223 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
42224 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42225 }
42226 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
42227 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42228 }
42229 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
42230 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
42231 }
42232 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42233 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42234 }
42235 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
42236 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
42237 }
42238 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
42239 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42240 }
42241 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
42242 return (void *)((wxPyListCtrl *) ((wxListView *) x));
42243 }
42244 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
42245 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
42246 }
42247 static void *_p_wxToolBarTo_p_wxControl(void *x) {
42248 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
42249 }
42250 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
42251 return (void *)((wxControl *) ((wxToggleButton *) x));
42252 }
42253 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
42254 return (void *)((wxControl *) ((wxRadioButton *) x));
42255 }
42256 static void *_p_wxToolbookTo_p_wxControl(void *x) {
42257 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
42258 }
42259 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
42260 return (void *)((wxControl *) ((wxToolBarBase *) x));
42261 }
42262 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
42263 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42264 }
42265 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
42266 return (void *)((wxControl *) ((wxPyListCtrl *) x));
42267 }
42268 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
42269 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42270 }
42271 static void *_p_wxPyControlTo_p_wxControl(void *x) {
42272 return (void *)((wxControl *) ((wxPyControl *) x));
42273 }
42274 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
42275 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
42276 }
42277 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
42278 return (void *)((wxControl *) ((wxScrollBar *) x));
42279 }
42280 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42281 return (void *)((wxControl *) ((wxControlWithItems *) x));
42282 }
42283 static void *_p_wxGaugeTo_p_wxControl(void *x) {
42284 return (void *)((wxControl *) ((wxGauge *) x));
42285 }
42286 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
42287 return (void *)((wxControl *) ((wxStaticLine *) x));
42288 }
42289 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
42290 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
42291 }
42292 static void *_p_wxListbookTo_p_wxControl(void *x) {
42293 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
42294 }
42295 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
42296 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
42297 }
42298 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
42299 return (void *)((wxControl *) ((wxCheckBox *) x));
42300 }
42301 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
42302 return (void *)((wxControl *) ((wxRadioBox *) x));
42303 }
42304 static void *_p_wxChoiceTo_p_wxControl(void *x) {
42305 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
42306 }
42307 static void *_p_wxListBoxTo_p_wxControl(void *x) {
42308 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
42309 }
42310 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
42311 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42312 }
42313 static void *_p_wxListViewTo_p_wxControl(void *x) {
42314 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
42315 }
42316 static void *_p_wxNotebookTo_p_wxControl(void *x) {
42317 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
42318 }
42319 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
42320 return (void *)((wxControl *) ((wxStaticBitmap *) x));
42321 }
42322 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
42323 return (void *)((wxControl *) ((wxSpinCtrl *) x));
42324 }
42325 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
42326 return (void *)((wxControl *) ((wxStaticText *) x));
42327 }
42328 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
42329 return (void *)((wxControl *) ((wxStaticBox *) x));
42330 }
42331 static void *_p_wxSliderTo_p_wxControl(void *x) {
42332 return (void *)((wxControl *) ((wxSlider *) x));
42333 }
42334 static void *_p_wxTreebookTo_p_wxControl(void *x) {
42335 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
42336 }
42337 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
42338 return (void *)((wxControl *) ((wxSpinButton *) x));
42339 }
42340 static void *_p_wxButtonTo_p_wxControl(void *x) {
42341 return (void *)((wxControl *) ((wxButton *) x));
42342 }
42343 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
42344 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
42345 }
42346 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
42347 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42348 }
42349 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
42350 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
42351 }
42352 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
42353 return (void *)((wxControl *) ((wxTextCtrl *) x));
42354 }
42355 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
42356 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
42357 }
42358 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
42359 return (void *)((wxChoice *) ((wxComboBox *) x));
42360 }
42361 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
42362 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
42363 }
42364 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
42365 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42366 }
42367 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
42368 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
42369 }
42370 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
42371 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
42372 }
42373 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
42374 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
42375 }
42376 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
42377 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42378 }
42379 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
42380 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42381 }
42382 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
42383 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42384 }
42385 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
42386 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42387 }
42388 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
42389 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42390 }
42391 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
42392 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
42393 }
42394 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
42395 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
42396 }
42397 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
42398 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
42399 }
42400 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
42401 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
42402 }
42403 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
42404 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
42405 }
42406 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42407 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42408 }
42409 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
42410 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42411 }
42412 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42413 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42414 }
42415 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42416 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42417 }
42418 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
42419 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42420 }
42421 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42422 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42423 }
42424 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
42425 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
42426 }
42427 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
42428 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
42429 }
42430 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
42431 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42432 }
42433 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42434 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42435 }
42436 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42437 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42438 }
42439 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42440 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42441 }
42442 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42443 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42444 }
42445 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42446 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42447 }
42448 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42449 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42450 }
42451 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42452 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42453 }
42454 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42455 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42456 }
42457 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42458 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42459 }
42460 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42461 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42462 }
42463 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42464 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42465 }
42466 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42467 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42468 }
42469 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42470 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42471 }
42472 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42473 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42474 }
42475 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42476 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42477 }
42478 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42479 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42480 }
42481 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42482 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42483 }
42484 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42485 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42486 }
42487 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42488 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42489 }
42490 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42491 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42492 }
42493 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42494 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42495 }
42496 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42497 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42498 }
42499 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42500 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42501 }
42502 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42503 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42504 }
42505 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42506 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42507 }
42508 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42509 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42510 }
42511 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42512 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42513 }
42514 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42515 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42516 }
42517 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42518 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42519 }
42520 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42521 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42522 }
42523 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42524 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42525 }
42526 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42527 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42528 }
42529 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42530 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42531 }
42532 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42533 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42534 }
42535 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42536 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42537 }
42538 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42539 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42540 }
42541 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42542 return (void *)((wxButton *) ((wxBitmapButton *) x));
42543 }
42544 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42545 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42546 }
42547 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42548 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42549 }
42550 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42551 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42552 }
42553 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42554 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42555 }
42556 static void *_p_wxToolbookTo_p_wxObject(void *x) {
42557 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42558 }
42559 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42560 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42561 }
42562 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42563 return (void *)((wxObject *) ((wxSizerItem *) x));
42564 }
42565 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42567 }
42568 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42569 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42570 }
42571 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42572 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42573 }
42574 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42575 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42576 }
42577 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42578 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42579 }
42580 static void *_p_wxSizerTo_p_wxObject(void *x) {
42581 return (void *)((wxObject *) ((wxSizer *) x));
42582 }
42583 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42584 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42585 }
42586 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42587 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42588 }
42589 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42590 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42591 }
42592 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42593 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42594 }
42595 static void *_p_wxEventTo_p_wxObject(void *x) {
42596 return (void *)((wxObject *) ((wxEvent *) x));
42597 }
42598 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42599 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42600 }
42601 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42602 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42603 }
42604 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42605 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42606 }
42607 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42608 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42609 }
42610 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42611 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42612 }
42613 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42614 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42615 }
42616 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
42617 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
42618 }
42619 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42620 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42621 }
42622 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42623 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42624 }
42625 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42626 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42627 }
42628 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42629 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42630 }
42631 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42632 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42633 }
42634 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42635 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42636 }
42637 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42638 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42639 }
42640 static void *_p_wxControlTo_p_wxObject(void *x) {
42641 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42642 }
42643 static void *_p_wxPyControlTo_p_wxObject(void *x) {
42644 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42645 }
42646 static void *_p_wxGaugeTo_p_wxObject(void *x) {
42647 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42648 }
42649 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42650 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42651 }
42652 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42653 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42654 }
42655 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42656 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42657 }
42658 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42659 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42660 }
42661 static void *_p_wxChoiceTo_p_wxObject(void *x) {
42662 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42663 }
42664 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42665 return (void *)((wxObject *) ((wxFSFile *) x));
42666 }
42667 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42668 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42669 }
42670 static void *_p_wxTreebookTo_p_wxObject(void *x) {
42671 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42672 }
42673 static void *_p_wxListViewTo_p_wxObject(void *x) {
42674 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42675 }
42676 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42677 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42678 }
42679 static void *_p_wxNotebookTo_p_wxObject(void *x) {
42680 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42681 }
42682 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42683 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42684 }
42685 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42686 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42687 }
42688 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42689 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42690 }
42691 static void *_p_wxListbookTo_p_wxObject(void *x) {
42692 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42693 }
42694 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42695 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42696 }
42697 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42698 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42699 }
42700 static void *_p_wxSliderTo_p_wxObject(void *x) {
42701 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42702 }
42703 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42704 return (void *)((wxObject *) ((wxMenuItem *) x));
42705 }
42706 static void *_p_wxDateEventTo_p_wxObject(void *x) {
42707 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42708 }
42709 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42710 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42711 }
42712 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42713 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42714 }
42715 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42716 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42717 }
42718 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42719 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42720 }
42721 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42722 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42723 }
42724 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42725 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42726 }
42727 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42728 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42729 }
42730 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42731 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42732 }
42733 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42734 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42735 }
42736 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42737 return (void *)((wxObject *) ((wxContextHelp *) x));
42738 }
42739 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42740 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42741 }
42742 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42743 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42744 }
42745 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42746 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42747 }
42748 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42749 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42750 }
42751 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42752 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42753 }
42754 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42755 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42756 }
42757 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42758 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42759 }
42760 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42761 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42762 }
42763 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42764 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42765 }
42766 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42767 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42768 }
42769 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42770 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42771 }
42772 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42773 return (void *)((wxObject *) ((wxImageHandler *) x));
42774 }
42775 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42776 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42777 }
42778 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42779 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42780 }
42781 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42782 return (void *)((wxObject *) ((wxEvtHandler *) x));
42783 }
42784 static void *_p_wxListEventTo_p_wxObject(void *x) {
42785 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42786 }
42787 static void *_p_wxListBoxTo_p_wxObject(void *x) {
42788 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42789 }
42790 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42791 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42792 }
42793 static void *_p_wxButtonTo_p_wxObject(void *x) {
42794 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42795 }
42796 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42797 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42798 }
42799 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42800 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42801 }
42802 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42803 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42804 }
42805 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42806 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42807 }
42808 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42809 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42810 }
42811 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42812 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42813 }
42814 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42816 }
42817 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42818 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42819 }
42820 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42821 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42822 }
42823 static void *_p_wxListItemTo_p_wxObject(void *x) {
42824 return (void *)((wxObject *) ((wxListItem *) x));
42825 }
42826 static void *_p_wxImageTo_p_wxObject(void *x) {
42827 return (void *)((wxObject *) ((wxImage *) x));
42828 }
42829 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42830 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42831 }
42832 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42833 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42834 }
42835 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42836 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42837 }
42838 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42839 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42840 }
42841 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42842 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42843 }
42844 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42845 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42846 }
42847 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42848 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42849 }
42850 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42852 }
42853 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42855 }
42856 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42857 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42858 }
42859 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42860 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42861 }
42862 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42863 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42864 }
42865 static void *_p_wxWindowTo_p_wxObject(void *x) {
42866 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42867 }
42868 static void *_p_wxMenuTo_p_wxObject(void *x) {
42869 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42870 }
42871 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42872 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42873 }
42874 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42875 return (void *)((wxObject *) ((wxFileSystem *) x));
42876 }
42877 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42878 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42879 }
42880 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42881 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42882 }
42883 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42884 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42885 }
42886 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42887 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42888 }
42889 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42890 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42891 }
42892 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42893 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42894 }
42895 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42896 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42897 }
42898 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42899 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42900 }
42901 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42902 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42903 }
42904 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42905 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42906 }
42907 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42908 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42909 }
42910 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42911 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42912 }
42913 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42914 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42915 }
42916 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42917 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42918 }
42919 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42920 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42921 }
42922 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42923 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42924 }
42925 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42926 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42927 }
42928 static void *_p_wxToolBarTo_p_wxObject(void *x) {
42929 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42930 }
42931 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42932 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42933 }
42934 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42935 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42936 }
42937 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42938 return (void *)((wxWindow *) ((wxMenuBar *) x));
42939 }
42940 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42941 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42942 }
42943 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42944 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42945 }
42946 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42947 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42948 }
42949 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42950 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42951 }
42952 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42953 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42954 }
42955 static void *_p_wxControlTo_p_wxWindow(void *x) {
42956 return (void *)((wxWindow *) ((wxControl *) x));
42957 }
42958 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42959 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42960 }
42961 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42962 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42963 }
42964 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42965 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42966 }
42967 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42968 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42969 }
42970 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42971 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42972 }
42973 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42974 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42975 }
42976 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42977 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42978 }
42979 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42980 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42981 }
42982 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42983 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42984 }
42985 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42986 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42987 }
42988 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42989 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42990 }
42991 static void *_p_wxListbookTo_p_wxWindow(void *x) {
42992 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42993 }
42994 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42995 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42996 }
42997 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42998 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42999 }
43000 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
43001 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
43002 }
43003 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
43004 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43005 }
43006 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
43007 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43008 }
43009 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
43010 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43011 }
43012 static void *_p_wxListViewTo_p_wxWindow(void *x) {
43013 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43014 }
43015 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
43016 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43017 }
43018 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
43019 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
43020 }
43021 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
43022 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
43023 }
43024 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
43025 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
43026 }
43027 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
43028 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
43029 }
43030 static void *_p_wxSliderTo_p_wxWindow(void *x) {
43031 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
43032 }
43033 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
43034 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43035 }
43036 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
43037 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
43038 }
43039 static void *_p_wxButtonTo_p_wxWindow(void *x) {
43040 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
43041 }
43042 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
43043 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
43044 }
43045 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
43046 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43047 }
43048 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
43049 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
43050 }
43051 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
43052 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
43053 }
43054 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43055 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43056 }
43057 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43058 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43059 }
43060 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43061 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43062 }
43063 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43064 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43065 }
43066 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43067 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43068 }
43069 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
43070 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43071 }
43072 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
43073 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
43074 }
43075 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
43076 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
43077 }
43078 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
43079 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
43080 }
43081 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
43082 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
43083 }
43084 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
43085 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
43086 }
43087 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
43088 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
43089 }
43090 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
43091 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43092 }
43093 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
43094 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43095 }
43096 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
43097 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43098 }
43099 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
43100 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43101 }
43102 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
43103 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43104 }
43105 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
43106 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
43107 }
43108 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
43109 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
43110 }
43111 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
43112 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
43113 }
43114 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
43115 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43116 }
43117 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
43118 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
43119 }
43120 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
43121 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
43122 }
43123 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
43124 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
43125 }
43126 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
43127 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
43128 }
43129 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
43130 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
43131 }
43132 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
43133 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
43134 }
43135 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
43136 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
43137 }
43138 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
43139 return (void *)((wxControlWithItems *) ((wxChoice *) x));
43140 }
43141 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
43142 return (void *)((wxControlWithItems *) ((wxListBox *) x));
43143 }
43144 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
43145 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
43146 }
43147 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
43148 return (void *)((wxValidator *) ((wxPyValidator *) x));
43149 }
43150 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
43151 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
43152 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};
43153 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
43154 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
43155 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
43156 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
43157 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
43158 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
43159 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
43160 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
43161 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
43162 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
43163 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
43164 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
43165 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
43166 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
43167 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
43168 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
43169 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
43170 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
43171 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
43172 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
43173 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
43174 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
43175 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
43176 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
43177 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
43178 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
43179 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
43180 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
43181 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
43182 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
43183 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
43184 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
43185 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
43186 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
43187 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
43188 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
43189 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
43190 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
43191 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
43192 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
43193 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
43194 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
43195 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
43196 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
43197 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
43198 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
43199 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
43200 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
43201 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
43202 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
43203 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
43204 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
43205 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
43206 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
43207 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
43208 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
43209 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
43210 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
43211 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
43212 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
43213 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
43214 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
43215 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
43216 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
43217 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
43218 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
43219 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
43220 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
43221 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
43222 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
43223 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
43224 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
43225 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
43226 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
43227 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
43228 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
43229 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
43230 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
43231 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
43232 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
43233 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
43234 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
43235 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
43236 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
43237 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
43238 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
43239 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
43240 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
43241 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
43242 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
43243 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
43244 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
43245 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
43246 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
43247 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
43248 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
43249 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
43250 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
43251 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
43252 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
43253 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
43254 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
43255 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
43256 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
43257 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
43258 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
43259 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
43260 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
43261 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
43262 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
43263 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
43264 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
43265 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
43266 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
43267 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
43268 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
43269 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
43270 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
43271 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
43272 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
43273 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
43274 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
43275 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
43276 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
43277 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
43278 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
43279 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
43280 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
43281 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
43282 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
43283 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
43284 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
43285 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
43286 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
43287 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
43288 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
43289 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
43290 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
43291 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
43292 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
43293 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
43294 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
43295 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
43296 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
43297 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
43298 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
43299 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
43300 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
43301 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
43302 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
43303 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
43304 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
43305 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
43306 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
43307 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
43308 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
43309 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
43310 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
43311 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
43312 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
43313 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
43314
43315 static swig_type_info *swig_type_initial[] = {
43316 &_swigt__p_bool,
43317 &_swigt__p_char,
43318 &_swigt__p_form_ops_t,
43319 &_swigt__p_int,
43320 &_swigt__p_long,
43321 &_swigt__p_unsigned_char,
43322 &_swigt__p_unsigned_int,
43323 &_swigt__p_unsigned_long,
43324 &_swigt__p_void,
43325 &_swigt__p_wxANIHandler,
43326 &_swigt__p_wxAcceleratorTable,
43327 &_swigt__p_wxActivateEvent,
43328 &_swigt__p_wxArrayInt,
43329 &_swigt__p_wxArrayString,
43330 &_swigt__p_wxBMPHandler,
43331 &_swigt__p_wxBitmap,
43332 &_swigt__p_wxBitmapButton,
43333 &_swigt__p_wxBookCtrlBase,
43334 &_swigt__p_wxBookCtrlBaseEvent,
43335 &_swigt__p_wxBoxSizer,
43336 &_swigt__p_wxButton,
43337 &_swigt__p_wxCURHandler,
43338 &_swigt__p_wxCheckBox,
43339 &_swigt__p_wxCheckListBox,
43340 &_swigt__p_wxChildFocusEvent,
43341 &_swigt__p_wxChoice,
43342 &_swigt__p_wxChoicebook,
43343 &_swigt__p_wxChoicebookEvent,
43344 &_swigt__p_wxClipboardTextEvent,
43345 &_swigt__p_wxCloseEvent,
43346 &_swigt__p_wxColour,
43347 &_swigt__p_wxComboBox,
43348 &_swigt__p_wxCommandEvent,
43349 &_swigt__p_wxContextHelp,
43350 &_swigt__p_wxContextHelpButton,
43351 &_swigt__p_wxContextMenuEvent,
43352 &_swigt__p_wxControl,
43353 &_swigt__p_wxControlWithItems,
43354 &_swigt__p_wxCursor,
43355 &_swigt__p_wxDC,
43356 &_swigt__p_wxDateEvent,
43357 &_swigt__p_wxDatePickerCtrl,
43358 &_swigt__p_wxDateTime,
43359 &_swigt__p_wxDirFilterListCtrl,
43360 &_swigt__p_wxDisplayChangedEvent,
43361 &_swigt__p_wxDropFilesEvent,
43362 &_swigt__p_wxDuplexMode,
43363 &_swigt__p_wxEraseEvent,
43364 &_swigt__p_wxEvent,
43365 &_swigt__p_wxEvtHandler,
43366 &_swigt__p_wxFSFile,
43367 &_swigt__p_wxFileSystem,
43368 &_swigt__p_wxFlexGridSizer,
43369 &_swigt__p_wxFocusEvent,
43370 &_swigt__p_wxFont,
43371 &_swigt__p_wxGBSizerItem,
43372 &_swigt__p_wxGIFHandler,
43373 &_swigt__p_wxGauge,
43374 &_swigt__p_wxGenericDirCtrl,
43375 &_swigt__p_wxGenericDragImage,
43376 &_swigt__p_wxGridBagSizer,
43377 &_swigt__p_wxGridSizer,
43378 &_swigt__p_wxHelpEvent,
43379 &_swigt__p_wxHelpProvider,
43380 &_swigt__p_wxICOHandler,
43381 &_swigt__p_wxIcon,
43382 &_swigt__p_wxIconizeEvent,
43383 &_swigt__p_wxIdleEvent,
43384 &_swigt__p_wxImage,
43385 &_swigt__p_wxImageHandler,
43386 &_swigt__p_wxImageList,
43387 &_swigt__p_wxIndividualLayoutConstraint,
43388 &_swigt__p_wxInitDialogEvent,
43389 &_swigt__p_wxItemContainer,
43390 &_swigt__p_wxJPEGHandler,
43391 &_swigt__p_wxKeyEvent,
43392 &_swigt__p_wxLayoutConstraints,
43393 &_swigt__p_wxListBox,
43394 &_swigt__p_wxListEvent,
43395 &_swigt__p_wxListItem,
43396 &_swigt__p_wxListItemAttr,
43397 &_swigt__p_wxListView,
43398 &_swigt__p_wxListbook,
43399 &_swigt__p_wxListbookEvent,
43400 &_swigt__p_wxMaximizeEvent,
43401 &_swigt__p_wxMemoryDC,
43402 &_swigt__p_wxMenu,
43403 &_swigt__p_wxMenuBar,
43404 &_swigt__p_wxMenuEvent,
43405 &_swigt__p_wxMenuItem,
43406 &_swigt__p_wxMouseCaptureChangedEvent,
43407 &_swigt__p_wxMouseEvent,
43408 &_swigt__p_wxMoveEvent,
43409 &_swigt__p_wxNavigationKeyEvent,
43410 &_swigt__p_wxNcPaintEvent,
43411 &_swigt__p_wxNotebook,
43412 &_swigt__p_wxNotebookEvent,
43413 &_swigt__p_wxNotifyEvent,
43414 &_swigt__p_wxObject,
43415 &_swigt__p_wxPCXHandler,
43416 &_swigt__p_wxPNGHandler,
43417 &_swigt__p_wxPNMHandler,
43418 &_swigt__p_wxPaintEvent,
43419 &_swigt__p_wxPaletteChangedEvent,
43420 &_swigt__p_wxPaperSize,
43421 &_swigt__p_wxPoint,
43422 &_swigt__p_wxPyApp,
43423 &_swigt__p_wxPyCommandEvent,
43424 &_swigt__p_wxPyControl,
43425 &_swigt__p_wxPyEvent,
43426 &_swigt__p_wxPyImageHandler,
43427 &_swigt__p_wxPyListCtrl,
43428 &_swigt__p_wxPySizer,
43429 &_swigt__p_wxPyTreeCtrl,
43430 &_swigt__p_wxPyTreeItemData,
43431 &_swigt__p_wxPyValidator,
43432 &_swigt__p_wxQueryNewPaletteEvent,
43433 &_swigt__p_wxRadioBox,
43434 &_swigt__p_wxRadioButton,
43435 &_swigt__p_wxRect,
43436 &_swigt__p_wxScrollBar,
43437 &_swigt__p_wxScrollEvent,
43438 &_swigt__p_wxScrollWinEvent,
43439 &_swigt__p_wxSetCursorEvent,
43440 &_swigt__p_wxShowEvent,
43441 &_swigt__p_wxSimpleHelpProvider,
43442 &_swigt__p_wxSize,
43443 &_swigt__p_wxSizeEvent,
43444 &_swigt__p_wxSizer,
43445 &_swigt__p_wxSizerItem,
43446 &_swigt__p_wxSlider,
43447 &_swigt__p_wxSpinButton,
43448 &_swigt__p_wxSpinCtrl,
43449 &_swigt__p_wxSpinEvent,
43450 &_swigt__p_wxStaticBitmap,
43451 &_swigt__p_wxStaticBox,
43452 &_swigt__p_wxStaticBoxSizer,
43453 &_swigt__p_wxStaticLine,
43454 &_swigt__p_wxStaticText,
43455 &_swigt__p_wxStdDialogButtonSizer,
43456 &_swigt__p_wxString,
43457 &_swigt__p_wxSysColourChangedEvent,
43458 &_swigt__p_wxTIFFHandler,
43459 &_swigt__p_wxTextAttr,
43460 &_swigt__p_wxTextCtrl,
43461 &_swigt__p_wxTextUrlEvent,
43462 &_swigt__p_wxToggleButton,
43463 &_swigt__p_wxToolBar,
43464 &_swigt__p_wxToolBarBase,
43465 &_swigt__p_wxToolBarToolBase,
43466 &_swigt__p_wxToolbook,
43467 &_swigt__p_wxToolbookEvent,
43468 &_swigt__p_wxTreeCtrl,
43469 &_swigt__p_wxTreeEvent,
43470 &_swigt__p_wxTreeItemId,
43471 &_swigt__p_wxTreebook,
43472 &_swigt__p_wxTreebookEvent,
43473 &_swigt__p_wxUpdateUIEvent,
43474 &_swigt__p_wxValidator,
43475 &_swigt__p_wxVisualAttributes,
43476 &_swigt__p_wxWindow,
43477 &_swigt__p_wxWindowCreateEvent,
43478 &_swigt__p_wxWindowDestroyEvent,
43479 &_swigt__p_wxXPMHandler,
43480 };
43481
43482 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43483 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43484 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43485 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43486 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43487 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43488 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43489 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43490 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43491 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43492 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43493 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43494 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}};
43495 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}};
43496 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}};
43497 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}};
43498 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43499 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43500 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
43501 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43502 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43503 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43504 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43505 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43506 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
43507 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43508 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43509 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43510 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43511 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43512 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43513 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43514 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_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}};
43515 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43516 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43517 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
43518 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
43519 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43520 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43521 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43522 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43523 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43524 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43525 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43526 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43527 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43528 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43529 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43530 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43531 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43532 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43533 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43534 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43535 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43536 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43537 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43538 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43539 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43540 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43541 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43542 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43543 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43544 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43545 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43546 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43547 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43548 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43549 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_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}};
43550 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43551 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43552 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43553 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43554 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
43555 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43556 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43557 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43558 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43559 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43560 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}};
43561 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43562 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43563 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}};
43564 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43565 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}};
43566 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43567 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43568 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43569 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43570 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43571 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43572 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43573 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43574 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43575 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43576 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}};
43577 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43578 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43579 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43580 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43581 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43582 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43583 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43584 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43585 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43586 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43587 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43588 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43589 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43590 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43591 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43592 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43593 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43594 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43595 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43596 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43597 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43598 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43599 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43600 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43601 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43602 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43603 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43604 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43605 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43606 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43607 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_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
43608 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43609 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43610 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43611 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}};
43612 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43613 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43614 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43615 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43616 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43617 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43618 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43619 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43620 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43621 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43622 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43623 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43624 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43625 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43626 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43627 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43628 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43629 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43630 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43631 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43632 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43633 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43634 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}};
43635 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43636 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43637 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43638 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43639 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43640 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43641 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43642 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43643 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}};
43644 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43645 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
43646
43647 static swig_cast_info *swig_cast_initial[] = {
43648 _swigc__p_bool,
43649 _swigc__p_char,
43650 _swigc__p_form_ops_t,
43651 _swigc__p_int,
43652 _swigc__p_long,
43653 _swigc__p_unsigned_char,
43654 _swigc__p_unsigned_int,
43655 _swigc__p_unsigned_long,
43656 _swigc__p_void,
43657 _swigc__p_wxANIHandler,
43658 _swigc__p_wxAcceleratorTable,
43659 _swigc__p_wxActivateEvent,
43660 _swigc__p_wxArrayInt,
43661 _swigc__p_wxArrayString,
43662 _swigc__p_wxBMPHandler,
43663 _swigc__p_wxBitmap,
43664 _swigc__p_wxBitmapButton,
43665 _swigc__p_wxBookCtrlBase,
43666 _swigc__p_wxBookCtrlBaseEvent,
43667 _swigc__p_wxBoxSizer,
43668 _swigc__p_wxButton,
43669 _swigc__p_wxCURHandler,
43670 _swigc__p_wxCheckBox,
43671 _swigc__p_wxCheckListBox,
43672 _swigc__p_wxChildFocusEvent,
43673 _swigc__p_wxChoice,
43674 _swigc__p_wxChoicebook,
43675 _swigc__p_wxChoicebookEvent,
43676 _swigc__p_wxClipboardTextEvent,
43677 _swigc__p_wxCloseEvent,
43678 _swigc__p_wxColour,
43679 _swigc__p_wxComboBox,
43680 _swigc__p_wxCommandEvent,
43681 _swigc__p_wxContextHelp,
43682 _swigc__p_wxContextHelpButton,
43683 _swigc__p_wxContextMenuEvent,
43684 _swigc__p_wxControl,
43685 _swigc__p_wxControlWithItems,
43686 _swigc__p_wxCursor,
43687 _swigc__p_wxDC,
43688 _swigc__p_wxDateEvent,
43689 _swigc__p_wxDatePickerCtrl,
43690 _swigc__p_wxDateTime,
43691 _swigc__p_wxDirFilterListCtrl,
43692 _swigc__p_wxDisplayChangedEvent,
43693 _swigc__p_wxDropFilesEvent,
43694 _swigc__p_wxDuplexMode,
43695 _swigc__p_wxEraseEvent,
43696 _swigc__p_wxEvent,
43697 _swigc__p_wxEvtHandler,
43698 _swigc__p_wxFSFile,
43699 _swigc__p_wxFileSystem,
43700 _swigc__p_wxFlexGridSizer,
43701 _swigc__p_wxFocusEvent,
43702 _swigc__p_wxFont,
43703 _swigc__p_wxGBSizerItem,
43704 _swigc__p_wxGIFHandler,
43705 _swigc__p_wxGauge,
43706 _swigc__p_wxGenericDirCtrl,
43707 _swigc__p_wxGenericDragImage,
43708 _swigc__p_wxGridBagSizer,
43709 _swigc__p_wxGridSizer,
43710 _swigc__p_wxHelpEvent,
43711 _swigc__p_wxHelpProvider,
43712 _swigc__p_wxICOHandler,
43713 _swigc__p_wxIcon,
43714 _swigc__p_wxIconizeEvent,
43715 _swigc__p_wxIdleEvent,
43716 _swigc__p_wxImage,
43717 _swigc__p_wxImageHandler,
43718 _swigc__p_wxImageList,
43719 _swigc__p_wxIndividualLayoutConstraint,
43720 _swigc__p_wxInitDialogEvent,
43721 _swigc__p_wxItemContainer,
43722 _swigc__p_wxJPEGHandler,
43723 _swigc__p_wxKeyEvent,
43724 _swigc__p_wxLayoutConstraints,
43725 _swigc__p_wxListBox,
43726 _swigc__p_wxListEvent,
43727 _swigc__p_wxListItem,
43728 _swigc__p_wxListItemAttr,
43729 _swigc__p_wxListView,
43730 _swigc__p_wxListbook,
43731 _swigc__p_wxListbookEvent,
43732 _swigc__p_wxMaximizeEvent,
43733 _swigc__p_wxMemoryDC,
43734 _swigc__p_wxMenu,
43735 _swigc__p_wxMenuBar,
43736 _swigc__p_wxMenuEvent,
43737 _swigc__p_wxMenuItem,
43738 _swigc__p_wxMouseCaptureChangedEvent,
43739 _swigc__p_wxMouseEvent,
43740 _swigc__p_wxMoveEvent,
43741 _swigc__p_wxNavigationKeyEvent,
43742 _swigc__p_wxNcPaintEvent,
43743 _swigc__p_wxNotebook,
43744 _swigc__p_wxNotebookEvent,
43745 _swigc__p_wxNotifyEvent,
43746 _swigc__p_wxObject,
43747 _swigc__p_wxPCXHandler,
43748 _swigc__p_wxPNGHandler,
43749 _swigc__p_wxPNMHandler,
43750 _swigc__p_wxPaintEvent,
43751 _swigc__p_wxPaletteChangedEvent,
43752 _swigc__p_wxPaperSize,
43753 _swigc__p_wxPoint,
43754 _swigc__p_wxPyApp,
43755 _swigc__p_wxPyCommandEvent,
43756 _swigc__p_wxPyControl,
43757 _swigc__p_wxPyEvent,
43758 _swigc__p_wxPyImageHandler,
43759 _swigc__p_wxPyListCtrl,
43760 _swigc__p_wxPySizer,
43761 _swigc__p_wxPyTreeCtrl,
43762 _swigc__p_wxPyTreeItemData,
43763 _swigc__p_wxPyValidator,
43764 _swigc__p_wxQueryNewPaletteEvent,
43765 _swigc__p_wxRadioBox,
43766 _swigc__p_wxRadioButton,
43767 _swigc__p_wxRect,
43768 _swigc__p_wxScrollBar,
43769 _swigc__p_wxScrollEvent,
43770 _swigc__p_wxScrollWinEvent,
43771 _swigc__p_wxSetCursorEvent,
43772 _swigc__p_wxShowEvent,
43773 _swigc__p_wxSimpleHelpProvider,
43774 _swigc__p_wxSize,
43775 _swigc__p_wxSizeEvent,
43776 _swigc__p_wxSizer,
43777 _swigc__p_wxSizerItem,
43778 _swigc__p_wxSlider,
43779 _swigc__p_wxSpinButton,
43780 _swigc__p_wxSpinCtrl,
43781 _swigc__p_wxSpinEvent,
43782 _swigc__p_wxStaticBitmap,
43783 _swigc__p_wxStaticBox,
43784 _swigc__p_wxStaticBoxSizer,
43785 _swigc__p_wxStaticLine,
43786 _swigc__p_wxStaticText,
43787 _swigc__p_wxStdDialogButtonSizer,
43788 _swigc__p_wxString,
43789 _swigc__p_wxSysColourChangedEvent,
43790 _swigc__p_wxTIFFHandler,
43791 _swigc__p_wxTextAttr,
43792 _swigc__p_wxTextCtrl,
43793 _swigc__p_wxTextUrlEvent,
43794 _swigc__p_wxToggleButton,
43795 _swigc__p_wxToolBar,
43796 _swigc__p_wxToolBarBase,
43797 _swigc__p_wxToolBarToolBase,
43798 _swigc__p_wxToolbook,
43799 _swigc__p_wxToolbookEvent,
43800 _swigc__p_wxTreeCtrl,
43801 _swigc__p_wxTreeEvent,
43802 _swigc__p_wxTreeItemId,
43803 _swigc__p_wxTreebook,
43804 _swigc__p_wxTreebookEvent,
43805 _swigc__p_wxUpdateUIEvent,
43806 _swigc__p_wxValidator,
43807 _swigc__p_wxVisualAttributes,
43808 _swigc__p_wxWindow,
43809 _swigc__p_wxWindowCreateEvent,
43810 _swigc__p_wxWindowDestroyEvent,
43811 _swigc__p_wxXPMHandler,
43812 };
43813
43814
43815 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43816
43817 static swig_const_info swig_const_table[] = {
43818 {0, 0, 0, 0.0, 0, 0}};
43819
43820 #ifdef __cplusplus
43821 }
43822 #endif
43823 /* -----------------------------------------------------------------------------
43824 * Type initialization:
43825 * This problem is tough by the requirement that no dynamic
43826 * memory is used. Also, since swig_type_info structures store pointers to
43827 * swig_cast_info structures and swig_cast_info structures store pointers back
43828 * to swig_type_info structures, we need some lookup code at initialization.
43829 * The idea is that swig generates all the structures that are needed.
43830 * The runtime then collects these partially filled structures.
43831 * The SWIG_InitializeModule function takes these initial arrays out of
43832 * swig_module, and does all the lookup, filling in the swig_module.types
43833 * array with the correct data and linking the correct swig_cast_info
43834 * structures together.
43835 *
43836 * The generated swig_type_info structures are assigned staticly to an initial
43837 * array. We just loop though that array, and handle each type individually.
43838 * First we lookup if this type has been already loaded, and if so, use the
43839 * loaded structure instead of the generated one. Then we have to fill in the
43840 * cast linked list. The cast data is initially stored in something like a
43841 * two-dimensional array. Each row corresponds to a type (there are the same
43842 * number of rows as there are in the swig_type_initial array). Each entry in
43843 * a column is one of the swig_cast_info structures for that type.
43844 * The cast_initial array is actually an array of arrays, because each row has
43845 * a variable number of columns. So to actually build the cast linked list,
43846 * we find the array of casts associated with the type, and loop through it
43847 * adding the casts to the list. The one last trick we need to do is making
43848 * sure the type pointer in the swig_cast_info struct is correct.
43849 *
43850 * First off, we lookup the cast->type name to see if it is already loaded.
43851 * There are three cases to handle:
43852 * 1) If the cast->type has already been loaded AND the type we are adding
43853 * casting info to has not been loaded (it is in this module), THEN we
43854 * replace the cast->type pointer with the type pointer that has already
43855 * been loaded.
43856 * 2) If BOTH types (the one we are adding casting info to, and the
43857 * cast->type) are loaded, THEN the cast info has already been loaded by
43858 * the previous module so we just ignore it.
43859 * 3) Finally, if cast->type has not already been loaded, then we add that
43860 * swig_cast_info to the linked list (because the cast->type) pointer will
43861 * be correct.
43862 * ----------------------------------------------------------------------------- */
43863
43864 #ifdef __cplusplus
43865 extern "C" {
43866 #if 0
43867 } /* c-mode */
43868 #endif
43869 #endif
43870
43871 #if 0
43872 #define SWIGRUNTIME_DEBUG
43873 #endif
43874
43875 SWIGRUNTIME void
43876 SWIG_InitializeModule(void *clientdata) {
43877 size_t i;
43878 swig_module_info *module_head;
43879 static int init_run = 0;
43880
43881 clientdata = clientdata;
43882
43883 if (init_run) return;
43884 init_run = 1;
43885
43886 /* Initialize the swig_module */
43887 swig_module.type_initial = swig_type_initial;
43888 swig_module.cast_initial = swig_cast_initial;
43889
43890 /* Try and load any already created modules */
43891 module_head = SWIG_GetModule(clientdata);
43892 if (module_head) {
43893 swig_module.next = module_head->next;
43894 module_head->next = &swig_module;
43895 } else {
43896 /* This is the first module loaded */
43897 swig_module.next = &swig_module;
43898 SWIG_SetModule(clientdata, &swig_module);
43899 }
43900
43901 /* Now work on filling in swig_module.types */
43902 #ifdef SWIGRUNTIME_DEBUG
43903 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43904 #endif
43905 for (i = 0; i < swig_module.size; ++i) {
43906 swig_type_info *type = 0;
43907 swig_type_info *ret;
43908 swig_cast_info *cast;
43909
43910 #ifdef SWIGRUNTIME_DEBUG
43911 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43912 #endif
43913
43914 /* if there is another module already loaded */
43915 if (swig_module.next != &swig_module) {
43916 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
43917 }
43918 if (type) {
43919 /* Overwrite clientdata field */
43920 #ifdef SWIGRUNTIME_DEBUG
43921 printf("SWIG_InitializeModule: found type %s\n", type->name);
43922 #endif
43923 if (swig_module.type_initial[i]->clientdata) {
43924 type->clientdata = swig_module.type_initial[i]->clientdata;
43925 #ifdef SWIGRUNTIME_DEBUG
43926 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43927 #endif
43928 }
43929 } else {
43930 type = swig_module.type_initial[i];
43931 }
43932
43933 /* Insert casting types */
43934 cast = swig_module.cast_initial[i];
43935 while (cast->type) {
43936 /* Don't need to add information already in the list */
43937 ret = 0;
43938 #ifdef SWIGRUNTIME_DEBUG
43939 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43940 #endif
43941 if (swig_module.next != &swig_module) {
43942 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43943 #ifdef SWIGRUNTIME_DEBUG
43944 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43945 #endif
43946 }
43947 if (ret) {
43948 if (type == swig_module.type_initial[i]) {
43949 #ifdef SWIGRUNTIME_DEBUG
43950 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43951 #endif
43952 cast->type = ret;
43953 ret = 0;
43954 } else {
43955 /* Check for casting already in the list */
43956 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43957 #ifdef SWIGRUNTIME_DEBUG
43958 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43959 #endif
43960 if (!ocast) ret = 0;
43961 }
43962 }
43963
43964 if (!ret) {
43965 #ifdef SWIGRUNTIME_DEBUG
43966 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43967 #endif
43968 if (type->cast) {
43969 type->cast->prev = cast;
43970 cast->next = type->cast;
43971 }
43972 type->cast = cast;
43973 }
43974 cast++;
43975 }
43976 /* Set entry in modules->types array equal to the type */
43977 swig_module.types[i] = type;
43978 }
43979 swig_module.types[i] = 0;
43980
43981 #ifdef SWIGRUNTIME_DEBUG
43982 printf("**** SWIG_InitializeModule: Cast List ******\n");
43983 for (i = 0; i < swig_module.size; ++i) {
43984 int j = 0;
43985 swig_cast_info *cast = swig_module.cast_initial[i];
43986 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43987 while (cast->type) {
43988 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43989 cast++;
43990 ++j;
43991 }
43992 printf("---- Total casts: %d\n",j);
43993 }
43994 printf("**** SWIG_InitializeModule: Cast List ******\n");
43995 #endif
43996 }
43997
43998 /* This function will propagate the clientdata field of type to
43999 * any new swig_type_info structures that have been added into the list
44000 * of equivalent types. It is like calling
44001 * SWIG_TypeClientData(type, clientdata) a second time.
44002 */
44003 SWIGRUNTIME void
44004 SWIG_PropagateClientData(void) {
44005 size_t i;
44006 swig_cast_info *equiv;
44007 static int init_run = 0;
44008
44009 if (init_run) return;
44010 init_run = 1;
44011
44012 for (i = 0; i < swig_module.size; i++) {
44013 if (swig_module.types[i]->clientdata) {
44014 equiv = swig_module.types[i]->cast;
44015 while (equiv) {
44016 if (!equiv->converter) {
44017 if (equiv->type && !equiv->type->clientdata)
44018 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
44019 }
44020 equiv = equiv->next;
44021 }
44022 }
44023 }
44024 }
44025
44026 #ifdef __cplusplus
44027 #if 0
44028 {
44029 /* c-mode */
44030 #endif
44031 }
44032 #endif
44033
44034
44035
44036 #ifdef __cplusplus
44037 extern "C" {
44038 #endif
44039
44040 /* Python-specific SWIG API */
44041 #define SWIG_newvarlink() SWIG_Python_newvarlink()
44042 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
44043 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
44044
44045 /* -----------------------------------------------------------------------------
44046 * global variable support code.
44047 * ----------------------------------------------------------------------------- */
44048
44049 typedef struct swig_globalvar {
44050 char *name; /* Name of global variable */
44051 PyObject *(*get_attr)(void); /* Return the current value */
44052 int (*set_attr)(PyObject *); /* Set the value */
44053 struct swig_globalvar *next;
44054 } swig_globalvar;
44055
44056 typedef struct swig_varlinkobject {
44057 PyObject_HEAD
44058 swig_globalvar *vars;
44059 } swig_varlinkobject;
44060
44061 SWIGINTERN PyObject *
44062 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
44063 return PyString_FromString("<Swig global variables>");
44064 }
44065
44066 SWIGINTERN PyObject *
44067 swig_varlink_str(swig_varlinkobject *v) {
44068 PyObject *str = PyString_FromString("(");
44069 swig_globalvar *var;
44070 for (var = v->vars; var; var=var->next) {
44071 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
44072 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
44073 }
44074 PyString_ConcatAndDel(&str,PyString_FromString(")"));
44075 return str;
44076 }
44077
44078 SWIGINTERN int
44079 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
44080 PyObject *str = swig_varlink_str(v);
44081 fprintf(fp,"Swig global variables ");
44082 fprintf(fp,"%s\n", PyString_AsString(str));
44083 Py_DECREF(str);
44084 return 0;
44085 }
44086
44087 SWIGINTERN void
44088 swig_varlink_dealloc(swig_varlinkobject *v) {
44089 swig_globalvar *var = v->vars;
44090 while (var) {
44091 swig_globalvar *n = var->next;
44092 free(var->name);
44093 free(var);
44094 var = n;
44095 }
44096 }
44097
44098 SWIGINTERN PyObject *
44099 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
44100 PyObject *res = NULL;
44101 swig_globalvar *var = v->vars;
44102 while (var) {
44103 if (strcmp(var->name,n) == 0) {
44104 res = (*var->get_attr)();
44105 break;
44106 }
44107 var = var->next;
44108 }
44109 if (res == NULL && !PyErr_Occurred()) {
44110 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44111 }
44112 return res;
44113 }
44114
44115 SWIGINTERN int
44116 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
44117 int res = 1;
44118 swig_globalvar *var = v->vars;
44119 while (var) {
44120 if (strcmp(var->name,n) == 0) {
44121 res = (*var->set_attr)(p);
44122 break;
44123 }
44124 var = var->next;
44125 }
44126 if (res == 1 && !PyErr_Occurred()) {
44127 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44128 }
44129 return res;
44130 }
44131
44132 SWIGINTERN PyTypeObject*
44133 swig_varlink_type(void) {
44134 static char varlink__doc__[] = "Swig var link object";
44135 static PyTypeObject varlink_type;
44136 static int type_init = 0;
44137 if (!type_init) {
44138 const PyTypeObject tmp
44139 = {
44140 PyObject_HEAD_INIT(NULL)
44141 0, /* Number of items in variable part (ob_size) */
44142 (char *)"swigvarlink", /* Type name (tp_name) */
44143 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
44144 0, /* Itemsize (tp_itemsize) */
44145 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
44146 (printfunc) swig_varlink_print, /* Print (tp_print) */
44147 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
44148 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
44149 0, /* tp_compare */
44150 (reprfunc) swig_varlink_repr, /* tp_repr */
44151 0, /* tp_as_number */
44152 0, /* tp_as_sequence */
44153 0, /* tp_as_mapping */
44154 0, /* tp_hash */
44155 0, /* tp_call */
44156 (reprfunc)swig_varlink_str, /* tp_str */
44157 0, /* tp_getattro */
44158 0, /* tp_setattro */
44159 0, /* tp_as_buffer */
44160 0, /* tp_flags */
44161 varlink__doc__, /* tp_doc */
44162 0, /* tp_traverse */
44163 0, /* tp_clear */
44164 0, /* tp_richcompare */
44165 0, /* tp_weaklistoffset */
44166 #if PY_VERSION_HEX >= 0x02020000
44167 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
44168 #endif
44169 #if PY_VERSION_HEX >= 0x02030000
44170 0, /* tp_del */
44171 #endif
44172 #ifdef COUNT_ALLOCS
44173 0,0,0,0 /* tp_alloc -> tp_next */
44174 #endif
44175 };
44176 varlink_type = tmp;
44177 varlink_type.ob_type = &PyType_Type;
44178 type_init = 1;
44179 }
44180 return &varlink_type;
44181 }
44182
44183 /* Create a variable linking object for use later */
44184 SWIGINTERN PyObject *
44185 SWIG_Python_newvarlink(void) {
44186 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
44187 if (result) {
44188 result->vars = 0;
44189 }
44190 return ((PyObject*) result);
44191 }
44192
44193 SWIGINTERN void
44194 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
44195 swig_varlinkobject *v = (swig_varlinkobject *) p;
44196 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
44197 if (gv) {
44198 size_t size = strlen(name)+1;
44199 gv->name = (char *)malloc(size);
44200 if (gv->name) {
44201 strncpy(gv->name,name,size);
44202 gv->get_attr = get_attr;
44203 gv->set_attr = set_attr;
44204 gv->next = v->vars;
44205 }
44206 }
44207 v->vars = gv;
44208 }
44209
44210 SWIGINTERN PyObject *
44211 SWIG_globals() {
44212 static PyObject *_SWIG_globals = 0;
44213 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
44214 return _SWIG_globals;
44215 }
44216
44217 /* -----------------------------------------------------------------------------
44218 * constants/methods manipulation
44219 * ----------------------------------------------------------------------------- */
44220
44221 /* Install Constants */
44222 SWIGINTERN void
44223 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
44224 PyObject *obj = 0;
44225 size_t i;
44226 for (i = 0; constants[i].type; ++i) {
44227 switch(constants[i].type) {
44228 case SWIG_PY_POINTER:
44229 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
44230 break;
44231 case SWIG_PY_BINARY:
44232 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
44233 break;
44234 default:
44235 obj = 0;
44236 break;
44237 }
44238 if (obj) {
44239 PyDict_SetItemString(d, constants[i].name, obj);
44240 Py_DECREF(obj);
44241 }
44242 }
44243 }
44244
44245 /* -----------------------------------------------------------------------------*/
44246 /* Fix SwigMethods to carry the callback ptrs when needed */
44247 /* -----------------------------------------------------------------------------*/
44248
44249 SWIGINTERN void
44250 SWIG_Python_FixMethods(PyMethodDef *methods,
44251 swig_const_info *const_table,
44252 swig_type_info **types,
44253 swig_type_info **types_initial) {
44254 size_t i;
44255 for (i = 0; methods[i].ml_name; ++i) {
44256 char *c = methods[i].ml_doc;
44257 if (c && (c = strstr(c, "swig_ptr: "))) {
44258 int j;
44259 swig_const_info *ci = 0;
44260 char *name = c + 10;
44261 for (j = 0; const_table[j].type; ++j) {
44262 if (strncmp(const_table[j].name, name,
44263 strlen(const_table[j].name)) == 0) {
44264 ci = &(const_table[j]);
44265 break;
44266 }
44267 }
44268 if (ci) {
44269 size_t shift = (ci->ptype) - types;
44270 swig_type_info *ty = types_initial[shift];
44271 size_t ldoc = (c - methods[i].ml_doc);
44272 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
44273 char *ndoc = (char*)malloc(ldoc + lptr + 10);
44274 if (ndoc) {
44275 char *buff = ndoc;
44276 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
44277 if (ptr) {
44278 strncpy(buff, methods[i].ml_doc, ldoc);
44279 buff += ldoc;
44280 strncpy(buff, "swig_ptr: ", 10);
44281 buff += 10;
44282 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
44283 methods[i].ml_doc = ndoc;
44284 }
44285 }
44286 }
44287 }
44288 }
44289 }
44290
44291 #ifdef __cplusplus
44292 }
44293 #endif
44294
44295 /* -----------------------------------------------------------------------------*
44296 * Partial Init method
44297 * -----------------------------------------------------------------------------*/
44298
44299 #ifdef __cplusplus
44300 extern "C"
44301 #endif
44302 SWIGEXPORT void SWIG_init(void) {
44303 PyObject *m, *d;
44304
44305 /* Fix SwigMethods to carry the callback ptrs when needed */
44306 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
44307
44308 m = Py_InitModule((char *) SWIG_name, SwigMethods);
44309 d = PyModule_GetDict(m);
44310
44311 SWIG_InitializeModule(0);
44312 SWIG_InstallConstants(d,swig_const_table);
44313
44314
44315 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
44316 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
44317 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
44318 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
44319 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
44320 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
44321 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
44322 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
44323 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
44324 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
44325 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
44326 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
44327 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
44328 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
44329 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
44330 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
44331 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
44332 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
44333 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
44334 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
44335 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
44336 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
44337 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
44338 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
44339 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
44340 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
44341 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
44342 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
44343 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
44344 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
44345 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
44346 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
44347 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
44348 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
44349 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
44350 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
44351 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
44352 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
44353 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
44354 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
44355 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
44356 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
44357 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
44358 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
44359 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
44360 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
44361 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
44362 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
44363 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
44364 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
44365 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
44366 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
44367 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
44368 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
44369 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
44370 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
44371 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
44372 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
44373 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
44374 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
44375 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
44376 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
44377 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
44378 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
44379 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
44380 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
44381 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
44382 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
44383 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
44384 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
44385 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
44386 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
44387 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
44388 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
44389 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
44390 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
44391 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
44392 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
44393 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
44394 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
44395 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
44396 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
44397 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
44398 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
44399 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
44400 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
44401 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
44402 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
44403 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
44404 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
44405 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
44406 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
44407 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
44408 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
44409 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
44410 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
44411 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
44412 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
44413 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
44414 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
44415 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
44416 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
44417 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
44418 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
44419 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
44420 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
44421 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
44422 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
44423 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
44424 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
44425 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
44426 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
44427 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
44428 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
44429 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
44430 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
44431 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
44432 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
44433 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
44434 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
44435 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
44436 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
44437 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
44438 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
44439 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
44440 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
44441 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
44442 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
44443 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
44444 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
44445 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44446 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44447 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44448 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44449 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44450 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44451 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44452 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44453 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44454 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44455 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44456 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44457 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44458 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44459 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44460 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44461 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44462 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44463 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44464 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44465 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44466 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44467 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44468 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44469 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44470 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44471 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44472 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44473 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44474 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44475 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44476 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44477 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44478 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44479 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44480 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44481 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44482 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44483 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44484 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44485 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44486 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44487 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44488 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44489 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44490 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44491 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44492 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44493 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44494 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44495 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44496 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44497 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44498 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44499 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44500 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44501 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44502 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44503 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44504 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44505 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44506 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44507 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44508 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44509 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44510 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44511 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44512 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44513 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44514 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44515 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44516 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44517 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44518 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44519 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44520 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44521 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44522 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44523 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44524 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44525 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44526 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44527 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44528 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44529 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44530 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44531 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44532 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44533 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44534 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44535 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44536 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44537 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44538 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44539 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44540 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44541 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44542 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44543 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44544 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44545 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44546 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44547 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44548 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44549 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44550 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44551 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44552 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44553 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44554 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44555 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44556 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44557 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44558 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44559 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44560 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44561 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44562
44563 // Map renamed classes back to their common name for OOR
44564 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44565
44566 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44567 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44568 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44569 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44570 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44571 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44572 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44573 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44574 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44575 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44576 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44577 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44578 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44579 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44580 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
44581 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44582 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44583 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44584 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44585 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44586 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44587 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44588 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44589 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44590 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44591 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44592 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44593 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44594 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44595 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44596 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44597 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44598 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44599 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44600 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44601 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44602 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44603 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44604 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44605 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44606 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44607 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44608 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44609 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44610 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44611 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44612 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44613 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44614 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44615 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44616 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44617 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44618 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44619 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44620 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44621
44622 // Map renamed classes back to their common name for OOR
44623 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44624 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44625
44626 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44627 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44628 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44629 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44630 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44631 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44632 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44633 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44634 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44635 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44636
44637 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44638
44639 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44640 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44641 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44642 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44643 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44644 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
44645 }
44646